Skip to content
SprecherEast
Issue 416

enhancement: EmptyState, the shared empty message

Back to our plan
Done
enhancementfrontendpriority: medium

Type

enhancement

Summary

Build EmptyState in src/platform/ui, the shared "nothing here" message from the approved component set (docs/ui/component-set.md), and use it for the six empty states.

Problem

The six empty states have five looks (evidence D6): boxed or plain, centred or left-aligned, text-lg or not, p-8 to p-12. They live in PostsFeed.client.tsx, events/page.tsx, faq/page.tsx, resources/page.tsx, search/page.tsx and not-found.tsx (inventory S1–S6).

Proposed fix

One EmptyState with variant boxed, plain and page, props title, description and action, using theme tokens only. It's centred, as the UI/UX guideline allows for empty states. The six places use it, matching the component set's mapping (boxed: S1, S2, S4; plain: S3, S5; page: S6).

Acceptance criteria

  • Not done: One EmptyState in src/platform/ui with tests (jsdom and axe).
  • Not done: The six empty states use it; none keeps its own markup.
  • Not done: Screenshots of each at 320 and 1280 in light and dark, plus the six widths for one of them.

Area

frontend

Priority

priority: medium


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab