Skip to content
SprecherEast
Issue 328

documentation: UI kit rule in the UI designer guide, and a lint comment, still stale after #321

Back to our plan
Done
documentationfrontendpriority: low

Type

documentation

Problem

Two stale statements left after #321 (#214):

  • docs/roles/ui-designer.md, "UI Kit Rules", says every interactive component (Dialog, Dropdown, Tabs, Accordion…) is built in src/platform/ui/ on Radix primitives. That contradicts docs/architecture/README.md ("Where does it go?": a component one module uses stays in its ui/, moving to src/platform/ on the second use) and docs/ui/component-set.md (the FAQ accordion stays FaqList, a native <details>, in directory/ui). Copilot raised it on #321; the fix was pushed after #321 had merged, so it never reached main.
  • eslint.boundaries.config.mjs:15 says a file in src/app/ that queries Payload outside STILL_QUERYING_PAYLOAD "gets a warning". Since #137 the dependency rules are errors. Raised as Minor by the independent review of #321.

Both are fact fixes within the owner's approval on #214. Summary of his decision (2026-10-24, Claude Code session, text):

Approval for #250, #214 and #198: refresh the labeling rules and the development guidelines that have gone out of date, and check the changes through the usual review and CI process.

Proposed fix

  • ui-designer.md: a component one module uses stays in its ui/ until a second use; shared components are built once in src/platform/ui/ with cva variants, native elements first and Radix where native isn't enough.
  • eslint.boundaries.config.mjs: the comment says such a file fails lint.

Acceptance criteria

  • Not done: The UI kit rules match the architecture's "where does it go" and the component set.
  • Not done: The lint config comment matches the rule's severity.

Area

frontend

Priority

priority: low


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab