Issue 1135
feat: "Your share" tab: the earliest year reads "Base year"
Back to our planDone
enhancementfrontenduxpriority: mediumready
Problem
On a whole-bill tab, choosing the earliest tax year shows "No increase" on the answer card's increase line. That year is the one the later year is compared with, so the line reads as if the tax did not change.
Owner's decision (2026-11-12, chat session): in the earliest year's view the line reads "Base year", in the primary green; the later year's increase line stays in the accent (orange). The line is kept, not hidden, so the card's height does not change when the year switches.
Proposed fix
- In the view of the earliest stored year, the answer card's line reads "Base year" in the primary green token (with the contrast the theme contract requires).
- In a later year the line is unchanged: the increase in the accent color, or "No increase" when that year's City tax is not higher than the year before.
- The card's height is the same in both views.
- The rich text note's sentences about this tab are brought up to date in the same pull request: the first open-and-close row is open on load, the split follows the priced years, and its example figures match what the tab shows.
Acceptance criteria
- Not done: Failing tests first: the earliest year shows "Base year" with the primary token; a later year with an increase shows the increase line with the accent token; a later year without one shows "No increase".
- Not done: The answer card's height is equal in both years at 320, 390 and 1280 px (measured in a real render).
- Not done: "Base year" meets 4.5:1 on the card in light and dark.
- Not done: The screen-reader status line still announces the year's figures and does not announce an increase for the base year.
- Not done: The rich text note is corrected as listed;
e2e/billTab.spec.tscovers the base-year line.
Files likely touched
src/platform/richtext/editorial/BillAnswer.tsx,src/platform/richtext/editorial/billFigures.ts,src/platform/richtext/editorial/BillShare.client.tsx, and their testse2e/billTab.spec.tssrc/platform/richtext/README.md
Must not touch
src/platform/ui/Tabs.client.tsx,src/platform/richtext/editorial/FactCard.tsx- Stored content and tax years
Open questions
None.
Generated by Claude Code, opens in a new tab