Skip to content
SprecherEast
Issue 1158

enhancement: Retitle "How we estimate this" and make its notes say what the estimate is not

Back to our plan
Done
enhancementfrontenduxpriority: medium

Problem

In plain words: on the budget post's "Your share" tab, the row titled "How we estimate this" reads as a jumble. Its title doesn't say what the row is for, and its bullets mix what the numbers are, how they were worked out and why a real bill differs, with a separate paragraph under them. A neighbor can't tell quickly that this is an approximation they shouldn't rely on, and why it can be off.

Summary of the owner's request (2026-11-13, Claude Code session, text): make the row's title and bullets easy to follow and cover everything, with no extra paragraph. It should say plainly that this is an approximation and not an official source, that it depends on the assessed value the City uses, that credits, exemptions, who owns the home and the type of property change a real bill, which rates it uses, and that we'd like to hear when a real bill comes out far from it.

Proposed fix

The row's text becomes content, not code (the owner's rule, recorded on #1162): fields on the whole-bill block that an editor words and orders, with the page only deciding when a note shows.

  • Row titles: three fields on the block ("Your City tax breakdown", "Why your bill may differ", "Sources" are the starting text).
  • Notes: a list on the block. Each note has its words, a condition (always, when the tab has more than one year, in a year with a proposed rate, or when a rate is missing) and an optional link. Blanks the page fills in: {year}, {years}, {bodies}, and {link} where the note's link goes. Admin refuses a blank the condition can't fill.
  • Starting text is typed once (billShareDefaults.ts): a new block starts with it, and a block stored before the fields existed shows it until it is saved.
  • The notes keep their room when one isn't showing, so the open row never changes height.

Native first, one line per step:

  1. Native: Payload text, select, group and array fields hold the copy; defaultValue holds the starting text; field validate refuses a bad blank.
  2. Official plugins: not applicable.
  3. Open source: not applicable.
  4. Our code: only the rule for when a note applies and the blank filling (billShareNotes.ts), the mapper, and a small NoteText that draws the link.

Acceptance criteria

  • Not done: The row's three titles and every note come from fields of the block; the component and helpers contain none of the wording.
  • Not done: An editor can reword, reorder, add and remove notes, and choose when each shows; Admin refuses a blank its condition can't fill, and a {link} with no link.
  • Not done: A block stored before the fields existed shows the starting titles and notes (the new wording) until it is saved.
  • Not done: The row says it is a rough, unofficial estimate, not tax advice, that the City's assessed value may differ, and that credits, exemptions, ownership and property type change a real bill, and links to the contact page.
  • Not done: The rich-text note, the generated reference and the guidelines describe it as it now is.

Files likely touched

  • src/platform/richtext/editorial/ (the block's fields, defaults, notes rules, mapper, component, tests), src/payload-types.ts
  • e2e/billTab.spec.ts, e2e/support/billRows.ts, the gallery
  • src/platform/richtext/README.md, docs/guidelines/payload-cms.md (the short rule, #1162), docs/reference/, and their generated copies under .claude/rules/generated/

Must not touch

  • The answer card, the whole bill, the other rows' behavior, and the estimator's own labels (the audit on #1162 covers them).
  • The article's own text in the CMS (the paragraph under the bullets): an editor changes that in Admin.

Open questions

Decided: text already stored in the live article has no notes yet, so the page shows the starting text until an editor saves the block (no one-off data change to production content). The paragraph under the bullets is article text; an editor removes or rewrites it in Admin, and the fact it alone carries (School, County and Madison College rates come from last year's bill) can become a note with the blank {bodies} if wanted.


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab