Page MenuHomeSealhub

Badges on treatments
Closed, ResolvedPublic1 Points

Assigned To
Authored By
kuba-orlik
Jun 5 2024, 00:36
Tags
Referenced Files
F873669: image.png
Jun 5 2024, 00:36
F873665: image.png
Jun 5 2024, 00:36
Subscribers

Description

Add a structured array field called badges for storing the badges assigned to each treatment. Each badge consists of:

  • badge text
  • is_emphasized (boolean)

see https://hub.sealcode.org/source/sealious/browse/dev/src/app/base-chips/field-types/field-types.remarkup for reference on how to create a StructuredArray field.

Add the badges to the tiles that display a treatment (especially on treatment_tile function), on treatment list and treatment-tabs component. Display the first badge for that treatment.

image.png (541×937 px, 479 KB)

Note that on a treatment tile, if a badge is emphasized, it's slightly bigger and has a different color than a regular badge.


Add a list of badges for a given treatment when displaying a single treatment:

image.png (502×1 px, 247 KB)

Details

Coded by
mates
Reviewed by
kuba-orlik
Action required from
kuba-orlik

Revisions and Commits

Restricted Differential Revision

Related Objects

StatusAssignedTask
Resolvedkuba-orlik

Event Timeline

kuba-orlik added a subtask: Unknown Object (Maniphest Task).
kuba-orlik closed subtask Unknown Object (Maniphest Task) as Resolved.Jun 11 2024, 13:42
ziomek updated Coded by, added: ziomek.
ziomek moved this task from To do to Doing on the Kanban board.
ziomek removed ziomek as the assignee of this task.Jun 11 2024, 21:08
ziomek updated Coded by, removed: ziomek.
ziomek updated Action required from, removed: ziomek.
ziomek subscribed.
jenkins-user updated Coded by, added: ziomek.
jenkins-user updated Action required from, added: ziomek.
ziomek removed ziomek as the assignee of this task.Jun 11 2024, 21:08
ziomek moved this task from Doing to To do on the Kanban board.
ziomek updated Coded by, removed: ziomek.
ziomek updated Action required from, removed: ziomek.
ziomek unsubscribed.
jenkins-user updated Coded by, added: mates.
jenkins-user updated Action required from, added: mates.
mates added a revision: Restricted Differential Revision.Jun 13 2024, 15:42
jenkins-user moved this task from Doing to Review on the Kanban board.
jenkins-user updated Action required from, added: FilipI; removed: mates.
jenkins-user added a subscriber: mates.
jenkins-user moved this task from Review to Doing on the Kanban board.
jenkins-user updated Reviewed by, added: kuba-orlik.
jenkins-user updated Action required from, added: mates; removed: FilipI.
jenkins-user moved this task from Doing to Review on the Kanban board.
jenkins-user updated Action required from, added: kuba-orlik; removed: mates.
kuba-orlik added a commit: Restricted Diffusion Commit.Jun 15 2024, 13:10