feat/PBI-98-products-table #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/PBI-98-products-table"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
- components/dashboard/products-table.tsx: client-component met shadcn Table-primitives. Kolommen: Code (CodeBadge) · Naam (+Actief-badge bij active product) · #PBI's (rechts, tabular-nums) · Status (alleen badge bij archived) · Bijgewerkt (nl-NL date) · Acties (placeholder voor T-1088). - Filter/sort state via useUserSettingsStore.views.productsTable (search, includeArchived, sort, sortDir met defaults via fallbacks). - handleSort wisselt asc↔desc bij dezelfde kolom; nieuwe kolom → asc. - Rij-klik opent <ProductDialog mode="edit">; acties-cell heeft stopPropagation zodat klik op de cel niet dialog opent. - ProductsTableRow shape = ProductDialogProduct + {archived, pbiCount, updated_at}. - Empty-filter-result toont info-text in tbody; volledig-empty-state komt in T-1092. - 1028 tests blijven groen. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>- app/(app)/dashboard/page.tsx: vervang ProductList-grid door ProductsTable + ProductsTableToolbar. Data-fetch met include: { _count: { select: { pbis: true } } } — geen N+1 voor #PBI's-kolom. Geen archived-searchParam meer; filter zit nu client-side in useUserSettingsStore via toolbar. - max-w-4xl → max-w-6xl voor de bredere tabel. - Verwijderd: - components/dashboard/product-list.tsx (grid, obsolete) - __tests__/components/dashboard/product-list.test.tsx - 1024 tests blijven groen (1028 → 1024 door obsolete ProductList-tests). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>