feat: A plain-language glossary: one definition per term (mill, levy, assessed value, TIF...), a Terms block and a /glossary page
Back to our planSize: M Depends on: nothing. #593's converter pattern for the Markdown tag. #649 builds on it. #591, #643, #644 and #645 link to it once it ships.
Problem
In plain words: tax posts can't avoid a few words: mill, levy, assessed value, equalized value, levy limit, school levy credit, capital budget, general obligation borrowing, debt service, impact fee, special assessment, TIF. Each post explains them again, slightly differently, or not at all. The site needs one plain definition per word, written once and used everywhere: a short list in a post, and one page that lists them all.
The owner (Amine, 2026-11-03, Claude Code session, text) asked for an accessible explainer and for reusable UI elements for this and future explainers.
Today (checked 2026-11-03):
- No glossary. No
<dfn>,<dl>component, glossary collection or terms block insrc/.docs/has a developer glossary (#128), but none for readers. - The draft defines terms inline, differently each time. For example, "A mill is $1 of tax per $1,000 of assessed value".
- A wrong definition is a wrong fact, so definitions need sources too (#590).
Proposed fix
- A
glossaryTermscollection in thenewsmodule, or where the architecture rules point:- term, slug, a short definition (one or two sentences, plain words, no other glossary term)
- an optional longer note and an example
- sources (
linkFields) and a "checked on" date - Drafts and versions. Access like content (
draftContentAccess).
- A
/glossarypage:- A–Z, each term with an
idanchor (/glossary#mill) - a native
<dl>with<dfn> - ISR like other lists
- A–Z, each term with an
- A Terms block for posts and events. The editor picks 2 to 6 terms, and they render as a compact
<dl>with "All terms" linking to/glossary.- A Markdown tag for agents follows #593's converter pattern:
<Terms slugs={[...]} />. - An unknown slug is refused with a clear error.
- A Markdown tag for agents follows #593's converter pattern:
- Seed terms, each defined from an official source: mill, levy, assessed value, equalized value, school levy credit, lottery and gaming credit, levy limit, operating budget, capital budget, general obligation borrowing, debt service, impact fee, special assessment, TIF.
Native first, one line per step:
- Native: HTML
<dl>,<dt>and<dfn>, a Payload collection,BlocksFeature, the blockjsxconverter, and a Next route with ISR. - Official plugins: none fits (SEO and search plugins don't define terms).
- Open source: none needed for a definition list.
- Our code: the collection, mapper, block, page route and tests.
Acceptance criteria
- Not done: An editor adds a term with a source. Saving one without a source or without a definition is refused.
- Not done:
/glossarylists published terms A–Z with working anchors. axe passes at 320 and 1280 px, in light and dark mode. - Not done: A Terms block in a post shows its terms and links to
/glossary. The Markdown round-trip test passes, and a malformed tag is refused for agents. - Not done: The 14 seed terms are in, each with its official source, and reviewed independently for plain wording and neutrality.
- Not done: The access policy test covers the collection. The migration runs up and down.
Area
frontend, cms, ux
Priority
medium
Generated by Claude Code, opens in a new tab