Imported from nodirumurkulov/return-zero (
frontend/components/ui/AGENTS.md). Install upstream withnpx skills add nodirumurkulov/return-zero --skill ui. Copyright stays with the author.
AGENTS.md — components/ui
shadcn/ui primitives (radix-nova) and thin wrappers. Parent: ../../../AGENTS.md
Best practices
- Primitives stay generic — if a badge needs domain enums, pass narrow string unions from parents; do not import
@/lib/*here. - Add new shared UI via
bunx shadcn@latest add <name>; avoid one-off custom CSS components when a shadcn primitive fits.
Rules
- No business logic, no domain types, no Supabase.
- Domain badges (
SeverityBadge,StatusBadge,ImpactTag) composeBadge+ style maps only. EmptyStatecomposes shadcnEmpty; keep the stabletitle/description/actionAPI for call sites.- Keep components stateless when possible.