mega-plant/components
David fe4b1fc3dd Invoices: confirm a successful import with a toast
Closing the dialog on success left the OK click completely silent — the user
had to go hunting the table for the new row to find out whether anything had
happened. A toast says so plainly and then gets out of the way.

It carries the useful part: invoice number, line count, billed total, how many
lines booked, and — the bit that actually needs action — the machine codes
that could not be matched, named rather than left for the user to infer from
the badge. Auto-dismisses after six seconds, dismissible by hand, and clears
when the dialog is reopened.

Announced via role=status / aria-live=polite rather than assertively: a
confirmation is not urgent and should not cut into whatever a screen reader
is currently saying.

No toast library — the app needs exactly one, and a dependency would carry
far more surface than that. Sits above the dialog's z-50, full-width on
mobile and bottom-right from sm up, with a 44px dismiss target.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-10-02 14:46:55 +02:00
..
BookingSelect.tsx Invoices: line-item extraction, booking to plant items, VAT-inclusive income 2026-10-01 15:59:30 +02:00
ChartsGrid.tsx Round 4: regressions fixed + mobile standard 2026-09-12 12:05:43 +02:00
DashboardCharts.tsx Round 3 (Parts A-B): charts fixes + expenses/overheads cleanup 2026-09-12 11:24:18 +02:00
ExpenseSectionPage.tsx Round 3 (Parts A-B): charts fixes + expenses/overheads cleanup 2026-09-12 11:24:18 +02:00
GlobalSearch.tsx Mega Plant dashboard — fix & harden (Parts 0-5) 2026-09-12 09:35:48 +02:00
IncomeView.tsx Invoices: line-item extraction, booking to plant items, VAT-inclusive income 2026-10-01 15:59:30 +02:00
InvoiceIntake.tsx Invoices: confirm a successful import with a toast 2026-10-02 14:46:55 +02:00
InvoiceList.tsx Invoices: Add Invoice becomes a real dialog; quieten the invoice table 2026-10-02 14:35:27 +02:00
InvoiceTable.tsx Invoices: line-item extraction, booking to plant items, VAT-inclusive income 2026-10-01 15:59:30 +02:00
InvoiceUploader.tsx Invoices: line-item extraction, booking to plant items, VAT-inclusive income 2026-10-01 15:59:30 +02:00
MachineLineChart.tsx Round 4: regressions fixed + mobile standard 2026-09-12 12:05:43 +02:00
PlantRegisterTable.tsx Plant Register: inline editing, active toggle and cascade-delete impact 2026-10-01 15:59:51 +02:00
RunningView.tsx Round 4: regressions fixed + mobile standard 2026-09-12 12:05:43 +02:00
Sidebar.tsx Brand logo: 3D cube/map icon replaces the M gradient mark 2026-09-12 12:12:30 +02:00
Sparkline.tsx Mega Plant dashboard — fix & harden (Parts 0-5) 2026-09-12 09:35:48 +02:00
ThemeProvider.tsx Mega Plant dashboard — fix & harden (Parts 0-5) 2026-09-12 09:35:48 +02:00
ThemeToggle.tsx Mega Plant dashboard — fix & harden (Parts 0-5) 2026-09-12 09:35:48 +02:00
Toast.tsx Invoices: confirm a successful import with a toast 2026-10-02 14:46:55 +02:00