fix: every number on a Programs card and hierarchy row describes one population (#699, #643) - #723
Merged
Merged
Conversation
added 3 commits
September 28, 2026 15:46
…site (#699) The range scoped each card's open-case count but not the rate or chips beside it, so a card read "Overdue 1,643" by "Open cases (364)" and every trend box went empty. Rates are measurement-year figures: Programs no longer sends the range, and the header hides the selector on the Programs pages while keeping it (and any range set) for the pages that use it. The Open cases link dropped the site, so with a clinic selected it opened Cases for every site (340 on the card, 1,643 on arrival). It now carries the site.
…ad as the Programs card reads it (#643) Evaluated sat beside a rate made from a denominator the table never showed, so two patients reading "Evaluated 6, Compliant 1" showed 50% and 25%. In population replaces Evaluated, and each row's rate, numerator and denominator come from displayRate, the Programs card's reader. Filtered to one lower-is-better measure the table reads Poor control, as its card does (CMS122 showed Compliance 53.9% beside a card reading Poor control 46.1%). The hierarchy also stops sending the date range (#699).
… leaves out and describes the table; a fixture with exclusions and out-of-population rows
65 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #643, closes #699.
Two places where a number sat next to another that described a different population, and nothing on screen said so.
#699: Programs has no date range
/programsand/programs/*, and keeps it on every other page. A range already in the URL is kept for those pages.#643: the hierarchy shows what its rate is made of
displayRate, the function the Programs card uses. Filtered to one lower-is-better measure, the table reads Poorly controlled · Poor control, as its card does. A note under the filters says what the rate divides by.complianceRateOfdivides by.Frontend only; the API still accepts
from/to.Tests
layout.date-range.test.tsx: the selector is hidden on the three Programs paths in both the header and the mobile bar, and kept on/worklist,/cases,/runsand/programsx.programs/__tests__/page.range.test.tsx: nofrom/tois sent even when a range is set, and "Open cases" carries the site.hierarchy/__tests__/page.numbers.test.tsx:Each test was mutation-checked: 10 mutations, all caught. The full frontend suite (577 tests), lint and build pass locally.