Skip to content

refactor: redesign custom value handling - #369

Draft
edoardo wants to merge 12 commits into
masterfrom
refactor/custom-value
Draft

edoardo wants to merge 12 commits into
masterfrom
refactor/custom-value

Conversation

@edoardo

@edoardo edoardo commented Sep 3, 2026

Copy link
Copy Markdown
Member

Implements DHIS2-XXXX

Description

The redesign replaces the previous 4th action button with a plain statement of what the visualization shows:

  • Line list — a non-interactive label: "One row for each Person", "One row for each Enrollment", "One row for each Event".
  • Pivot table — a button: "Cells show MCH BCG dose average", falling back to "Cells show {{outputTypeLabel}} count" when no custom value is set. Always clickable, with an edit icon.

The modal becomes two radio cards — Count (default) and Custom value — where the second expands to reveal the item list and the aggregation dropdown.
The list is no longer filtered by program stage, and the custom value survives switching output type.

The new component lives in the bottom bar; the custom value is independent of output type; the stage-mismatch handling is removed entirely.


Quality checklist

Add N/A to items that are not applicable and check them.


Notes

The radio cards reuse the same component introduced for the grouping feature.
For this reason the styling of the help text does not match entirely the prototype.
@cooper-joe can you review this part and see if the styles can be reused?


Screenshots

No label/button until the outputType is chosen:
Screenshot 2026-09-03 at 16 00 19

Label for LL:
Screenshot 2026-09-03 at 15 59 49
Screenshot 2026-09-03 at 15 59 55
Screenshot 2026-09-03 at 16 00 00

Cell value button for PT (no custom value selected):
Screenshot 2026-09-03 at 15 59 14

Cell value button for PT (with custom value selected):
Screenshot 2026-09-03 at 15 59 28

Cell value modal (no custom value selected, count is default):
Screenshot 2026-09-03 at 15 58 52

Cell value modal (custom value selected):
Screenshot 2026-09-03 at 15 58 46

@dhis2-bot

Copy link
Copy Markdown
Contributor

🚀 Deployed on https://pr-369.event-visualizer.netlify.dhis2.org

@dhis2-bot
dhis2-bot temporarily deployed to netlify September 3, 2026 14:09 Inactive
@sonarqubecloud

sonarqubecloud Bot commented Sep 3, 2026

Copy link
Copy Markdown

@edoardo
edoardo marked this pull request as draft September 7, 2026 11:09
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