feat(management): paginate aging inventory table and clean mobile stock card layout #188

Closed
opened 2026-10-01 16:41:24 +00:00 by yuris · 0 comments
Owner

Problem

  1. The "Modal Mengendap (>60 Hari)" section on the dashboard currently displays only a static slice of the top 5 aged items without pagination controls. Unlike other data tables in the application (/stok, /pembelian, /penjualan, /pelanggan), users cannot page through all aging inventory or adjust page sizes.
  2. In the mobile card view for stock (InventoryMobileCard in apps/management/app/(dashboard)/stok/inventory-table.tsx), the horizontal border line separator between the category row and the prices row is visually distracting.

Acceptance Criteria

  • Implement pagination on the "Modal Mengendap" table in the dashboard using DataTable and @tanstack/react-table matching the behavior and styling of the other tables in the app.
  • Initialize pagination starting from 5 items per page (pageSize: 5), with page size options including 5, 10, 25, 50.
  • Ensure all aging inventory items are available in the table (removing the hardcoded slice(0, 5) limit), sorted initially by aged cost value descending.
  • Provide responsive layout support (mobile card view via renderMobileCard and desktop table view) for the aging inventory table.
  • In apps/management/app/(dashboard)/stok/inventory-table.tsx, remove the separator (border-t border-zinc-100) between the category row and the prices row in InventoryMobileCard.
  • All package test suites, typechecks (pnpm exec tsc --noEmit), and biome lint gates pass cleanly with 0 regressions.
## Problem 1. The "Modal Mengendap (>60 Hari)" section on the dashboard currently displays only a static slice of the top 5 aged items without pagination controls. Unlike other data tables in the application (`/stok`, `/pembelian`, `/penjualan`, `/pelanggan`), users cannot page through all aging inventory or adjust page sizes. 2. In the mobile card view for stock (`InventoryMobileCard` in `apps/management/app/(dashboard)/stok/inventory-table.tsx`), the horizontal border line separator between the category row and the prices row is visually distracting. ## Acceptance Criteria - [ ] Implement pagination on the "Modal Mengendap" table in the dashboard using `DataTable` and `@tanstack/react-table` matching the behavior and styling of the other tables in the app. - [ ] Initialize pagination starting from 5 items per page (`pageSize: 5`), with page size options including 5, 10, 25, 50. - [ ] Ensure all aging inventory items are available in the table (removing the hardcoded `slice(0, 5)` limit), sorted initially by aged cost value descending. - [ ] Provide responsive layout support (mobile card view via `renderMobileCard` and desktop table view) for the aging inventory table. - [ ] In `apps/management/app/(dashboard)/stok/inventory-table.tsx`, remove the separator (`border-t border-zinc-100`) between the category row and the prices row in `InventoryMobileCard`. - [ ] All package test suites, typechecks (`pnpm exec tsc --noEmit`), and biome lint gates pass cleanly with 0 regressions.
yuris closed this issue 2026-10-01 17:04:34 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
yuris/garage#188
No description provided.