Skip to content

docs: add Phase 4 (Web Interface) design spec - #12

Merged
leyder-ben merged 2 commits into
mainfrom
docs/phase-4-web-interface-design
Jul 20, 2026
Merged

docs: add Phase 4 (Web Interface) design spec#12
leyder-ben merged 2 commits into
mainfrom
docs/phase-4-web-interface-design

Conversation

@leyder-ben

Copy link
Copy Markdown
Owner

Summary

  • Adds docs/superpowers/specs/2026-07-19-phase-4-web-interface-design.md — the design spec for Phase 4, covering visual design tokens (dark theme, Geist, an accessible icon+color pairing so the four confidence/error states don't rely on hue alone), layout, the Radix-primitives-plus-custom-Tailwind architecture choice, component tree, the confidence-state and index-status discriminators (both spelled out against the real API/DB shapes to remove ambiguity), data flow via TanStack Query, error handling (frontend never renders 5xx bodies verbatim — checked against the actual backend's current exception behavior), and testing per 09-testing.md's existing split.
  • Docs only, no code changes — implementation plan is the next step once this is reviewed.

Test plan

  • Review spec for accuracy against current repo state (backend API shapes, testing conventions)

Covers visual design tokens (dark theme, Geist, accessible icon+color
pairing for the four confidence/error states), layout, the Radix-primitives-
plus-custom-Tailwind architecture choice, component tree, the confidence-
state and index-status discriminators (both spelled out explicitly against
real API/DB shapes to remove ambiguity), data flow via TanStack Query, error
handling (frontend never renders 5xx bodies verbatim, checked against the
actual backend exception behavior), and testing per 09-testing.md's existing
split.
The spec called the index-status interaction "hover/click" while the
component tree paired it with Popover, which only opens on click by
default -- a silent narrowing the implementation plan then inherited
without flagging. Resolved (Ben's call): swap to HoverCard, Radix's
purpose-built primitive for hover+focus-triggered content, and document
the real caveat (click opens it via the focus side-effect, which isn't
guaranteed in Safari) rather than asserting perfect click support.
@leyder-ben
leyder-ben merged commit 7f342fa into main Jul 20, 2026
1 check passed
@leyder-ben
leyder-ben deleted the docs/phase-4-web-interface-design branch July 20, 2026 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant