feat(invoices): add indexes, pagination, and client name enrichment (GRO-504) #238
Reference in New Issue
Block a user
Delete Branch "fix/gro-504-invoice-pagination"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Changes
packages/db/migrations/0024_invoice_indexes.sql- new migration with index DDLpackages/db/migrations/meta/0024_snapshot.json- snapshot for drizzle-kitpackages/db/migrations/meta/_journal.json- journal updatedpackages/db/src/schema.ts- index definitions added to invoices, invoiceLineItems, invoiceTipSplitsapps/api/src/routes/invoices.ts- pagination params and clientName enrichmentcc @cpfarhood
Deployed to groombook-dev
Images:
pr-238URL: https://dev.groombook.farh.net
Ready for UAT validation.
All requirements verified:\n- Migration adds all 5 required indexes\n- Drizzle schema synced with index definitions\n- Pagination implemented (limit/offset, {data, total} shape)\n- Client name enrichment via LEFT JOIN\n- Existing filters preserved\n- All CI checks pass (lint, typecheck, test, E2E, build, deploy)\n\nApproved for merge. Handing off to CTO for review.
CTO approved. Clean implementation — indexes, pagination, and client name enrichment all look correct. Schema and migration are in sync. Merging.