Skip to content
SprecherEast
Issue 532

bug: Remove the card preview box from post and event pages, for good

Back to our plan
Done
bugfrontendpriority: medium

Problem

In plain words: when an editor previews a draft post or event, the page shows a dashed "Card preview" box between the hero photo and the article text. It is not part of the article and must never appear inside an article's layout. It keeps coming back (#363 added it).

Summary of the owner's decision (2026-10-31): no article's main layout may contain a card preview, in any mode.

Proposed fix

  • Stop rendering the card preview on post and event pages, in draft mode or otherwise.
  • Delete CardPreview, PostCardPreview and EventCardPreview and their exports and tests, so there is nothing to bring back by accident.
  • Add the rule to the UI guideline (no card preview inside an article's layout, in any mode) and a test that fails if one of the two article pages mentions a card preview.
  • Update docs/project.md (Live Preview gotcha) and the component list in docs/ui/elements-content.md.

Acceptance criteria

  • Not done: A draft post and a draft event show no "Card preview" box; the page layout matches the published one.
  • Not done: CardPreview, PostCardPreview, EventCardPreview no longer exist; LivePreviewListener (admin live refresh) still works.
  • Not done: The guideline says: no card preview inside an article's layout, in any mode; a test enforces it for the post and event pages.
  • Not done: Docs no longer mention the card preview.

Area

frontend

Priority

priority: medium


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab