Single-line behavioural change: buildRecentInvoiceRange now subtracts 5 days from today instead of 3. The "in last 3 days OR unprinted" rule shipped in the previous commit picks up the new window automatically — the window affects which old-but-unprinted rows are still considered "in the window" (purely a UX nuance; the unprinted branch already covers anything older). Also tighten the section-header + empty-state copy and the test fixtures to reflect the new window. The "INV-OLD-*" dates in the range test had to push back from 2026-07-05 to 2026-07-02 — 2026-07-05 fell inside the new 5-day window, which would have flipped the test's expectation (it was asserting that printed-old dates are hidden). Files: - src/app/(app)/invoicing/view-model.ts — buildRecentInvoiceRange: -3 → -5 - src/app/(app)/invoicing/view-model.test.ts — expected `from` date shifts by 2 days; test name updated - src/app/(app)/invoicing/page.tsx — section header + empty state + inline comments mention "5 days" instead of "3 days" - src/app/(app)/invoicing/page.test.tsx — test name updated; INV-OLD-*/INV-OLD-PRINTED fixture dates pushed back from 07-05 to 07-02 to stay outside the new 5-day window |
||
|---|---|---|
| .. | ||
| (app) | ||
| (auth) | ||
| api | ||
| favicon.ico | ||
| globals.css | ||
| layout.tsx | ||
| offline.tsx | ||
| page.tsx | ||