Skip to content
SprecherEast
Issue 483

Civic items show their source and date, and civic updates get their own category

Back to our plan
Done
enhancementfrontendcmspriority: high

Type

enhancement

Problem

#161 asks that every civic item show where it came from and when. Posts already have a source name and source link: the review-queue fields from #123, sourceName and sourceUrl. But nothing on the site shows them, so a resident reading a city council summary can't see where it came from or open the original. Nothing gives civic updates a place of their own either.

Proposed fix

  • On the post page, when a post has a source, show "Source: <name>" linking to the original (external link, opens in a new tab and says so), next to the published date. Show the name alone if there's no link. Show nothing when there's no source.
  • Show the same short source line on post cards.
  • Seed a "City council" (civic) category, so editors can tag civic summaries and the home page's existing archive block can show the latest civic update apart from neighborhood news.
  • Add the source to the post's JSON-LD (isBasedOn) when it is set.

Acceptance criteria

  • A post with a source shows its name and a working link on its page and its card. A post without one shows nothing extra.
  • The published date is always visible next to it.
  • The link is announced as opening a new tab.
  • A test checks that a non-http(s) source link never renders. The field already validates links on save; the display must not trust old data.
  • Screenshots at the 6 widths in light and dark show no overflow, and axe passes.

Area

frontend, cms

Priority

high


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab