You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sims-hq/apps/hq/src
Thomas Joise 584fb291f8 feat(documents): paginated register with honest total + Documents page (Phase 2, WS-D)
listDocuments now returns { documents, total, page, pageSize } (default 50,
cap 200, newest first) with the client name joined server-side — no N+1.
GET /documents passes page/pageSize through; type/status/clientId filters
compose against the same WHERE for both count and page (rule 8: no silent
caps). clientLedger walks the paginated repo in 200-row batches so the
ledger still surfaces every document. New /documents screen: type chips,
status filter, mono doc numbers, amount column, pager honouring the server
total; rows open /documents/:id. Nav entry under WORK (exact-match so New
Document keeps its own highlight).

Note: the GET /documents route hunk itself landed via 8861b46, swept into
a concurrent commit from the same working tree; this commit carries the
repo/ledger/web halves and the tests.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
5 days ago
..
api.ts feat(settings): configurable default share-link expiry (owner, audited) 5 days ago
audit.ts feat(hq): sqlite schema + audit log (HQ-1 task 2) 2 weeks ago
auth.ts feat(clients): account-owner plumbing — client.owner_id, audited owner route, role gate 5 days ago
aws-costs.ts feat(hq): aws cost explorer ingestion — sigv4 signer and monthly tag-grouped pull 2 weeks ago
bounces.ts feat(hq): mailbox bounce detection with email_bounced reminders 2 weeks ago
crypto.ts feat(hq): gmail send with token-death handling and email log (HQ-1 task 11) 2 weeks ago
db.ts feat(documents): invoice due dates — terms default + override, honest overdue chase (Phase 1, D18) 5 days ago
gmail.ts feat(hq): reminder email send reusing gmail, plus manual-queue routes 2 weeks ago
import-apex.ts feat(hq): seed + apex csv importer with verification and series seeding (HQ-1 task 13) 2 weeks ago
pdf.ts feat(hq): letterhead HTML templates and puppeteer PDF (HQ-1 task 10) 2 weeks ago
reminder-templates.ts feat(documents): invoice due dates — terms default + override, honest overdue chase (Phase 1, D18) 5 days ago
repos-amc.ts feat(hq): amc contracts with renewal invoice and derived paid state 2 weeks ago
repos-aws.ts feat(hq): aws usage repo — upsert/list, cross-client cost ranking, routes 2 weeks ago
repos-clients.ts feat(clients): account-owner plumbing — client.owner_id, audited owner route, role gate 5 days ago
repos-dashboard.ts feat(reminders): escalating quote follow-up (Phase 6, spec §7) 5 days ago
repos-documents.ts feat(documents): paginated register with honest total + Documents page (Phase 2, WS-D) 5 days ago
repos-email.ts feat(hq): gmail send with token-death handling and email log (HQ-1 task 11) 2 weeks ago
repos-employees.ts fix(employees): purge sessions on password reset; reject empty patches and duplicate emails cleanly 5 days ago
repos-interactions.ts feat(hq): interaction log with types, follow-ups and routes 2 weeks ago
repos-modules.ts feat(modules): module→client roster, notify-all, CSV export (Phase 10, spec §10) 5 days ago
repos-payments.ts feat(documents): paginated register with honest total + Documents page (Phase 2, WS-D) 5 days ago
repos-pipeline.ts fix(funnel): review fixes — stop-chase on convert/cancel/lost, scoped ?status=, send guards, F3/F4 convert hardening 5 days ago
repos-recurring.ts feat(hq): recurring plan repo and owner-gated routes 2 weeks ago
repos-reminders.ts feat(settings): reminder day-settings + append-only dated schedule endpoints (owner, audited) 5 days ago
repos-reports.ts feat(hq): reports — dues aging, module revenue, client profitability with margin 2 weeks ago
repos-shares.ts feat(settings): configurable default share-link expiry (owner, audited) 5 days ago
scheduler.ts feat(documents): invoice due dates — terms default + override, honest overdue chase (Phase 1, D18) 5 days ago
seed.ts feat(documents): invoice due dates — terms default + override, honest overdue chase (Phase 1, D18) 5 days ago
send-reminder.ts feat(documents): invoice due dates — terms default + override, honest overdue chase (Phase 1, D18) 5 days ago
series.ts docs(hq): comment ON CONFLICT portability quirk in doc series (D12 guardrail) 2 weeks ago
server.ts feat(hq): public GET /share/:token document view route 1 week ago
templates.ts feat(documents): invoice due dates — terms default + override, honest overdue chase (Phase 1, D18) 5 days ago