shadcn: install missing components (card, input, label, field, alert, badge, checkbox, separator, accordion, item)
closedTask
Install the shadcn-templ components needed for the migration. button/ and table/ already exist in internal/appview/components/.
Files:
- Run: go tool shadcn-templ add card input label field alert badge checkbox separator accordion item
- Verify: components.json, internal/appview/components/*/, internal/appview/ui/static/input.css, rebuilt static/tailwind.css
Steps:
1. Read https://shadcn-templ.com/llms.txt install flow before running the CLI.
2. Add the components above (skip any already present; defer dialog, dropdown-menu, tooltip, command, sidebar, pagination).
3. Confirm @source in ui/static/input.css covers ../../components/**/*.templ.
4. Run: go generate ./internal/appview/ui
5. Confirm static/tailwind.css contains the new utilities (e.g. bg-primary, bg-card, text-muted-foreground).
Verify:
- grep -c "bg-primary\|bg-card\|text-muted-foreground" internal/appview/ui/static/tailwind.css is non-zero.
- SOVRN_INTEGRATION=0 go test ./internal/appview/...
Done when: all listed components are vendored, CSS rebuilds clean, tests pass.
1 Comment
Complete (commit xuzrwzkz)
go tool shadcn-templ add: card, input, label, field, alert, badge, checkbox, separator, accordion, item, empty, skeleton (+ genuine transitive depsicon/,scripts.templbundle scaffolding).aspectratio/the CLI pulled in (spec review catch; nothing referenced it).@sourcelines intact;go generate ./internal/appview/uiexit 0;tailwind.csscontains bg-primary/bg-card/text-muted-foreground;SOVRN_INTEGRATION=0 go test -count=1 ./internal/appview/...passes (appview, ui ok).scripts_bundle.go->/assets/js/shadcn-templ-*.js) is not built/served yet andScripts()has no call site. Tracked as scope of 135a5ee (layout owns<head>).