feat: Tax rates by year in Admin, and a 'Where a sample bill goes' block
Back to our planProblem
In plain words: tax rates change every year. Neighbors need one place that always shows the latest split of a sample bill, and editors need to update a few numbers once a year, without rewriting an article.
Summary of the owner's request (2026-11-02, Claude conversation, text): he wants something very intuitive out of the box, so any neighbor visiting the website finds it interactive and easy to see where their property tax money goes.
Today (checked):
- The rates are published yearly. The City publishes them each year in a "Local Property Tax Levies" table, by taxing body (2025 example in 02).
- Nowhere to keep them. The site has no place for them.
- Page blocks. Page blocks are registered in three places (
payload-cms.md, "Blocks").
Proposed fix
A taxYears collection in a new small civic module (or news, to be decided in the PR by the architecture rules). One document per bill year:
- the bill year and the budget year
- the average assessed home value and its source
- a row per taxing body: name, rate in mills, link to its budget
- the credits: rate, amount on the average home
- each value with up to two source links and a "checked on" date (01)
- a "verified by" editor
Drafts and versions are on. Access is like a content collection (draftContentAccess).
A "Where a sample bill goes" page block:
- It reads the newest published year.
- It shows the average home's gross tax by body, the credit and the net, as the Chart block's "share of $100" (03), plus one sentence per body.
- Each body links to its budget and to the projects page (08) when it exists.
Facts shown are the stored ones. The block only multiplies stored rates by the stored value, and labels the result "calculated".
Native first, one line per step:
- Native: a Payload collection with drafts and versions, field validation (rates ≥ 0, two sources required for "confirmed"), a page-builder block.
- Official plugins: none needed.
- Open source: none needed.
- Our code: the collection, a mapper, the block, and the calculation (a pure function, unit tested).
Acceptance criteria
- Not done: An editor can add a year with its rates and sources. Saving a value marked confirmed with fewer than two sources is refused.
- Not done: The block shows the newest published year, with the year in its heading. The totals match a hand calculation in a unit test, for the 2025 rates in 02.
- Not done: The table fallback, contrast and the six widths in light and dark mode are checked as in 03.
- Not done: A migration adds the collection. It runs up and down on a copy with data.
Area
cms, frontend, visualization
Priority
high
Generated by Claude Code, opens in a new tab