feat(management): responsive mobile cards for stok, pembelian, and penjualan tables #178
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
The data tables in
/stok,/pembelian, and/penjualanrequire wide displays because of multiple columns (6–7 columns). On mobile screens (< 640px), users must scroll horizontally back and forth to inspect data.Acceptance Criteria
renderMobileCardrender slot inapps/management/components/ui/data-table.tsx.renderMobileCardis provided,DataTablerenders a vertical list of accessible button cards on<smscreens (sm:hidden) and hides the table structure (hidden sm:block).apps/management/app/(dashboard)/stok/inventory-table.tsx(InventoryMobileCard), showing product name, stock badge, type, category, and buy vs sell prices.apps/management/app/(dashboard)/pembelian/purchase-table.tsx(PurchaseMobileCard), showing supplier, date, total amount, item count, receipt indicator, and item summary.apps/management/app/(dashboard)/penjualan/penjualan-table.tsx(PenjualanMobileCard), showing order number, status badge, grand total, date, receipt dot, and line items.onRowClick, preserving existing detail sheet interactions.pnpm --filter garage typecheck), tests (pnpm --filter garage test), and biome checks pass with 0 errors.