Artifacts Associated With Ticket cffde42876bf0b89c2f999f1539cdb6627adeb01
Ticket change [c64331a7a2] (rid 1611) by ai-local on 2026-08-21 19:48:46:
- Untracked field cmimetype: "text/x-markdown"
- comment initialized to:
The fleet row menu was first built as a <details> disclosure while the account menu is a native popover — nothing names the sanctioned pattern, so the next author reaches for whatever works. Make native-first enforceable. 1. internal/web/components.go: Go helpers returning template.HTML for each sanctioned primitive, registered in the FuncMap like navlink/tipcol: menu (popover + anchor + .menu, the only dropdown), fold (<details>), badge (.tl-badge variants), confirm (acknowledgement form), toggle, pager, rows. Two-line doc each: when to use, which native element it wraps, what it deliberately does not do. 2. args helper (dict) so named templates take parameters instead of copying fragments. 3. TestNativeComponentsOnly: scan template sources and fail on reinvented patterns — .menu without popover, <details> without a catalogued class, role=menu/dialog on a div, onclick beyond the pinned allowlist, class=dropdown|modal|tooltip. Failure message names the component to use. 4. One-paragraph rule at the top of the template file; a pointer from the wiki page Audit after change. 5. Migrate the existing account menu, fleet kebab, folds, pager and toggle onto the catalogue as the proof. Not: a templates directory or a component framework — one file, one script, html/template stays.
- priority initialized to: "Medium"
- severity initialized to: "Important"
- status initialized to: "Open"
- subsystem initialized to: "web"
- title initialized to:
Component catalogue and guard test: native elements first, one source of markup
- type initialized to: "Feature_Request"
Ticket change [cd76d76e89] (rid 1682) by ai-local on 2026-08-22 00:41:36:
- status changed to: "Review"
Ticket change [25ec393c92] (rid 1683) by ai-local on 2026-08-22 00:43:11:
- status changed to: "Open"
Ticket change [97185986ad] (rid 12499) by zeitgeist on 2026-09-24 00:53:30:
- Untracked field number: "64"
Ticket change [fe9d44ef48] (rid 25932) by zeitgeist on 2026-11-17 06:50:09:
- icomment:
Closing as a duplicate of #173, which asks for the same thing (one source of markup for each pattern, native elements first, a guard test that keeps pages on it) and carries the discussion. The catalogue and guard test described here are part of that ticket's scope.
- mimetype: "text/x-markdown"
- resolution changed to: "Rejected"
- status changed to: "Closed"
- icomment: