From 3179ef848b5b1e5c8e1aeeb402c3dd7d7fef6ddd Mon Sep 17 00:00:00 2001 From: Adam Moussa Date: Fri, 25 Sep 2026 17:20:11 -0400 Subject: [PATCH 1/2] fix(ci): drop the unused catalog refresh index --- src/mocks/invoices.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/mocks/invoices.ts b/src/mocks/invoices.ts index 3ff6ff0..f4ef455 100644 --- a/src/mocks/invoices.ts +++ b/src/mocks/invoices.ts @@ -156,7 +156,7 @@ function invoiceDateBeforeDue(dueDate: string, index: number): string { } /** Keep catalog-derived fields in sync after mock mutations. */ -function withRefreshedCatalogFields(invoice: MockInvoice, index: number): MockInvoice { +function withRefreshedCatalogFields(invoice: MockInvoice): MockInvoice { return { ...invoice, actionLabel: actionLabelForStatus(invoice.status), @@ -190,7 +190,6 @@ function enrichInvoice(core: MockInvoiceCore, index: number): MockInvoice { relatedInvoice: null, rowCount: core.lines.length, }, - index, ); } @@ -596,7 +595,6 @@ export function updateMockInvoicePayDate(id: string, payDate: string | null): Mo }, ], }, - index, ), ); } @@ -609,7 +607,7 @@ export function updateMockInvoiceHeader(id: string, patch: MockInvoiceHeaderPatc return replaceInvoice( index, - withRefreshedCatalogFields({ ...invoiceStore[index], ...patch }, index), + withRefreshedCatalogFields({ ...invoiceStore[index], ...patch }), ); } @@ -626,7 +624,6 @@ export function updateMockInvoiceLines(id: string, lines: MockInvoiceLine[]): Mo ...invoiceStore[index], lines: lines.map((line) => ({ ...line })), }, - index, ), ); } @@ -659,7 +656,6 @@ export function addMockInvoiceComment( ...current, comments: [...current.comments, nextComment], }, - index, ), ); } @@ -694,7 +690,6 @@ export function transitionMockInvoiceStatus( status, activity: [...current.activity, nextActivity], }, - index, ), ); From 1faee81fbbc763051c8c16c63928e4fb06a40320 Mon Sep 17 00:00:00 2001 From: Adam Moussa Date: Fri, 25 Sep 2026 17:20:11 -0400 Subject: [PATCH 2/2] fix(web): restore link-style attention banner copy --- e2e/invoice-filters.spec.ts | 4 +++- src/dashboard/DashboardGrids.tsx | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/e2e/invoice-filters.spec.ts b/e2e/invoice-filters.spec.ts index 2b5588f..dedd371 100644 --- a/e2e/invoice-filters.spec.ts +++ b/e2e/invoice-filters.spec.ts @@ -16,6 +16,8 @@ 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("attention-banner")).toContainText("1 invoices require approval"); + await expect(page.getByTestId("attention-banner")).toContainText( + "1 invoices require approval. Show invoices ready to approve.", + ); }); }); diff --git a/src/dashboard/DashboardGrids.tsx b/src/dashboard/DashboardGrids.tsx index 31c6766..97a0b2f 100644 --- a/src/dashboard/DashboardGrids.tsx +++ b/src/dashboard/DashboardGrids.tsx @@ -222,10 +222,12 @@ export function DashboardGrids() { - {filteredAttention.length} invoices require approval. + {filteredAttention.length} invoices require approval.{" "} + + Show invoices ready to approve. + ) : null}