Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
P
purescript-gargantext
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 140
    • Issues 140
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 3
    • Merge Requests 3
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gargantext
  • purescript-gargantext
  • Issues
  • #574

Closed
Open
Opened Jun 20, 2023 by Przemyslaw Kaminski@cgenie
  • Report abuse
  • New issue
Report abuse New issue

Implement Doc class for rendering data types on frontend

This is a bit of an opaque task, however I think it could straighten things up in our code.

We often use a Show class to render things when serializing to JSON (or some other internal stuff) and, at the same time, rendering that to the frontend (see H.text $ show x).

This is error-prone. Instead, we could use Show for internal stuff and Doc for the frontend rendering.

See https://gitlab.iscpif.fr/gargantext/purescript-gargantext/blob/af6069dd32cf8851c6f6715e9235c1bd8faca68f/src/Gargantext/Components/Forest/Tree/Node/Action/Search/Types.purs#L42

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: gargantext/purescript-gargantext#574