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:
@@ -13,6 +13,10 @@
|
||||
@source "../../lib-action-bus/src";
|
||||
@source "../../lib-arcadia-client/src";
|
||||
@source "../../lib-arcadia-auth-ui/src";
|
||||
@source "../../lib-table-ui/src";
|
||||
@source "../../lib-search-ui/src";
|
||||
@source "../../lib-feedback-ui/src";
|
||||
@source "../../lib-auth-ui/src";
|
||||
/* CREMA:SOURCES */
|
||||
|
||||
@custom-variant dark (&:is(.dark *));
|
||||
|
||||
Reference in New Issue
Block a user