refactor: tenants surface uses @crema/table-ui + search-ui + feedback-ui
Replaces the hand-rolled shadcn primitives in app/routes/tenants.tsx with manifest libs: DataTable + ActionsCell + BadgeCell + DateCell + Pagination + useTable from table-ui, SearchInput from search-ui, and AlertBanner + ConfirmDialog + EmptyState + LoadingOverlay from feedback-ui. Behaviour preserved: same columns, same row actions, same suspend/ deactivate/activate handlers. Gains: built-in sortable columns, pagination controls, density toggle support, proper confirmation dialogs for destructive actions, accessible empty/loading/error states. Wires three new sibling libs into tsconfig.json paths and app.css @source lines: lib-table-ui, lib-search-ui, lib-feedback-ui, plus lib-auth-ui (used by lib-arcadia-auth-ui after its refactor). Corrects the earlier miss of not checking docs/LIBS.md before rolling custom UI — the manifest already had what we needed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,14 @@
|
||||
"@crema/arcadia-client/*": ["../lib-arcadia-client/src/*"],
|
||||
"@crema/arcadia-auth-ui": ["../lib-arcadia-auth-ui/src/index.tsx"],
|
||||
"@crema/arcadia-auth-ui/*": ["../lib-arcadia-auth-ui/src/*"],
|
||||
"@crema/table-ui": ["../lib-table-ui/src/index.tsx"],
|
||||
"@crema/table-ui/*": ["../lib-table-ui/src/*"],
|
||||
"@crema/search-ui": ["../lib-search-ui/src/index.tsx"],
|
||||
"@crema/search-ui/*": ["../lib-search-ui/src/*"],
|
||||
"@crema/feedback-ui": ["../lib-feedback-ui/src/index.tsx"],
|
||||
"@crema/feedback-ui/*": ["../lib-feedback-ui/src/*"],
|
||||
"@crema/auth-ui": ["../lib-auth-ui/src/index.tsx"],
|
||||
"@crema/auth-ui/*": ["../lib-auth-ui/src/*"],
|
||||
"// CREMA:PATHS": [""],
|
||||
"react": ["./node_modules/@types/react"],
|
||||
"react/*": ["./node_modules/@types/react/*"],
|
||||
|
||||
Reference in New Issue
Block a user