Skip to content

feat: multi-column legend with tooltips [KFMT] [DHIS2-18242]#3657

Open
BRaimbault wants to merge 11 commits into
feat/DHIS2-18242from
feat/DHIS2-18242-KFMT
Open

feat: multi-column legend with tooltips [KFMT] [DHIS2-18242]#3657
BRaimbault wants to merge 11 commits into
feat/DHIS2-18242from
feat/DHIS2-18242-KFMT

Conversation

@BRaimbault
Copy link
Copy Markdown
Collaborator

@BRaimbault BRaimbault commented May 30, 2026

Implements DHIS2-18242

Description

Redesigns the legend to use a consistent column layout across the main app, download mode, and plugin (0.85× zoom):

  • Column system: the legend renders as a table with dedicated columns for the color swatch, name, start value, dash separator, end value, and count — giving all legend types a uniform, aligned structure.
  • Compact number format: range values switch to compact notation (k, M, B) when any value is too long to fit its column, or whenever named ranges are present. Counts are always compact. Hovering a compacted value shows the full number in a portal tooltip.
  • Ellipsis + tooltips: long legend item names and bubble map labels are truncated with ; hovering reveals the full text via a position: fixed portal tooltip that escapes table/SVG clipping.
  • Single design: the same Legend / LegendItem components now drive the drawer, the download panel, and the plugin — range suppression, decimal inference, and compact mode all resolve at the Legend level so each consumer gets consistent output.
  • "" instead of "Not set": in events and tracked entity popups an events data table.
  • Bug fixes: donut double-count for shared colors, empty value display, and layer error display in the legend and layer card.
  • Bug fixes: allow -0 entry in input type number.

Quality checklist

Add N/A to items that are not applicable.

  • Dashboard tested
  • Cypress and/or Jest tests added/updated
  • Docs added N/A
  • d2-ci dependencies replaced N/A
  • Tester approved (JHØ)

@dhis2-bot
Copy link
Copy Markdown
Contributor

dhis2-bot commented May 30, 2026

🚀 Deployed on https://pr-3657.maps.netlify.dhis2.org

@dhis2-bot dhis2-bot temporarily deployed to netlify May 30, 2026 01:03 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify May 30, 2026 02:10 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 08:24 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 08:29 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 08:37 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 08:53 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 10:16 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 10:33 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 10:35 Inactive
@BRaimbault BRaimbault force-pushed the feat/DHIS2-18242-KFMT branch from 79c0b27 to f5e04c3 Compare June 1, 2026 10:36
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 10:37 Inactive
@BRaimbault BRaimbault force-pushed the feat/DHIS2-18242-KFMT branch from f5e04c3 to 0824e69 Compare June 1, 2026 10:46
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 10:48 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 11:26 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 15:52 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 15:58 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 17:02 Inactive
@BRaimbault BRaimbault force-pushed the feat/DHIS2-18242-KFMT branch from bc9613d to 6745973 Compare June 1, 2026 17:31
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 17:33 Inactive
@BRaimbault BRaimbault marked this pull request as ready for review June 1, 2026 17:50
@dhis2-bot dhis2-bot temporarily deployed to netlify June 2, 2026 09:59 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 2, 2026 10:13 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 2, 2026 10:25 Inactive
Base automatically changed from feat/DHIS2-18242-PR8 to feat/DHIS2-18242 June 2, 2026 14:49
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 2, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants