Merge branch 'feature/invoice-filter-toolbar' into feature/columns-slideover

This commit is contained in:
Adam Moussa 2026-09-25 17:43:27 -04:00
commit 56bfc5f84f
No known key found for this signature in database
2 changed files with 6 additions and 5 deletions

View file

@ -16,6 +16,7 @@ test.describe("Invoice Processing filters (AP-43)", () => {
await page.getByTestId("vendor-filter").fill("Harbor");
await expect(page.getByTestId("filter-toggle").locator(".MuiBadge-badge")).toHaveText("2");
await expect(grid.locator(".MuiDataGrid-row")).toHaveCount(1);
await expect(page.getByTestId("tab-pending").locator("span").last()).toHaveText("1");
await expect(page.getByTestId("attention-banner")).toContainText(
"1 invoices require approval. Show invoices ready to approve.",
);

View file

@ -180,7 +180,7 @@ export function DashboardGrids() {
label={
<InvoiceTabLabel
title="For My Attention"
count={attentionRows.length}
count={filteredAttention.length}
active={tab === "attention"}
/>
}
@ -191,7 +191,7 @@ export function DashboardGrids() {
label={
<InvoiceTabLabel
title="New Invoices"
count={invoices.length}
count={filteredAll.length}
active={tab === "all"}
/>
}
@ -202,7 +202,7 @@ export function DashboardGrids() {
label={
<InvoiceTabLabel
title="Approved Invoices"
count={approvedRows.length}
count={filteredApproved.length}
active={tab === "approved"}
/>
}
@ -213,7 +213,7 @@ export function DashboardGrids() {
label={
<InvoiceTabLabel
title="Rejected Invoices"
count={rejectedRows.length}
count={filteredRejected.length}
active={tab === "rejected"}
/>
}
@ -224,7 +224,7 @@ export function DashboardGrids() {
label={
<InvoiceTabLabel
title="Late Invoices"
count={lateRows.length}
count={filteredLate.length}
active={tab === "late"}
urgency
/>