Skip to content
SprecherEast
Issue 1118

feat: "Your share" tab matches the approved mockup

Back to our plan
Done
enhancementfrontendstylinguxpriority: highready

Problem

The "Your share" tab was rebuilt in the right order (#1111), but it does not look or read like the mockup the owner approved. #1111 described an order of sections and left the wording and the grouping open, so text was shortened and boxes were dropped to save height.

Owner's decision (2026-11-12, chat session): the tab must match the approved mockup. Where this issue and #1111 disagree, this issue wins.

Proposed fix

Make each part match the approved first screen. Colors, radius and type come from the site's theme tokens (the orange estimator card and the site's greens stay); the list below is about structure and wording.

  1. Estimator row: the value box (with its check-mark button) and the tax years as ONE compact joined control with two options that show the years only ("2026", "2027"), the same height as the box, on the same row at phone width. No note under the control and no empty space reserved for one.
  2. Answer card:
    • Top row: a label on the left, "City tax on an average home" while the home is the City's average and "City tax on your home" after the reader estimates another value; the status badge on the right of the same row.
    • The City's tax as the largest text, followed by a small "a year".
    • The increase line in the primary (green) color: "Up $90 a year, about $7.50 a month" (figures from the same source as {yearly} and {monthly}; "No increase" when there is none).
    • One small sentence: "Average home: $500,300. The City is 37% of the whole bill." ("Your home: …" after an estimate).
    • The badge states the chosen year's status from the stored year (proposed or adopted), so it can never disagree with the year. It replaces the note that sat under the year buttons.
  3. Whole bill: inside its own card. Title "Your whole bill" on the left, the total on the right, then the bar and the four receipt rows. The City's slice uses the primary green; the other slices are neutral tones that differ in lightness.
  4. Open-and-close rows: one card holding the three rows, separated by divider lines (not three separate boxes), titled "Where the City share goes", "How we estimate this" and "Sources".
  5. Nothing else changes: the order, the counting, the status line for screen readers, reduced motion, each source once, and no information lost.

The mockup fits tab buttons, heading, intro and all of the above in one 390 x 844 screen. Keep that: tighten spacing and type sizes within the theme's scale before anything else. If it still cannot fit with this exact wording, stop and report the measured overflow; do not shorten or change the wording to make it fit.

Acceptance criteria

  • Not done: Failing tests first for: both answer-card labels, the increase line's wording and color token, the small sentence in both forms, the badge following the chosen year's stored status, the three row titles, and the joined year control (two options, years only).
  • Not done: At 390 x 844 the panel shows heading, intro, estimator row, answer card, whole-bill card and the one card of three closed rows without scrolling inside the panel; the measured height is recorded in the pull request.
  • Not done: At 320 px no row or column is knocked out of line; a sentence may wrap as whole lines, a label or a button may not.
  • Not done: The badge and the year control never disagree: choosing each stored year shows that year's status.
  • Not done: Opening a row keeps its title where it was on screen (the page does not jump).
  • Not done: Real renders at the standard widths in light and dark, looked at and compared part by part with the list above; the comparison is recorded in the pull request.
  • Not done: The rich text note and the UI kit note describe the new wording and grouping in the same pull request.

Files likely touched

  • src/platform/richtext/editorial/BillAnswer.tsx, src/platform/richtext/editorial/BillDetails.tsx, src/platform/richtext/editorial/BillShare.client.tsx, src/platform/richtext/editorial/RoughEstimator.tsx, and their tests
  • src/platform/ui/ShareBill.tsx, src/platform/ui/shareTones.ts, src/platform/ui/Disclosure.tsx
  • src/app/(frontend)/dev/gallery/
  • src/platform/richtext/README.md, src/platform/ui/README.md, docs/ui/component-set.md

Must not touch

  • src/platform/ui/Tabs.client.tsx, src/platform/richtext/editorial/FactCard.tsx, src/platform/richtext/editorial/tabAnchors.ts
  • Stored content and tax years

Open questions

None.


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab