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 dc3d651b08 feat(reminders): dated reminder_schedule table + resolveSchedule resolver (Phase 4)
reminder_schedule (id, rule_kind, effective_from/_to, day_offsets CSV,
subject, body) added to SCHEMA (CREATE TABLE IF NOT EXISTS, exec'd on every
open = the additive migration path). resolveSchedule(db, ruleKind, today)
picks the row active on the business date (from<=today, to NULL or >today,
latest from wins) with code-constant fallbacks (quote_followup 3/7/14 +
spec s7 subject/body; invoice_overdue 7/15/30). seedIfEmpty seeds one
open-ended dated row per kind, audited in the same transaction.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
6 days ago
..
api.ts feat(clients): account-owner plumbing — client.owner_id, audited owner route, role gate 6 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 6 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(reminders): dated reminder_schedule table + resolveSchedule resolver (Phase 4) 6 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(hq): reminder templates and idempotent reminder repo 2 weeks 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 6 days ago
repos-dashboard.ts feat(hq): dashboard money view and 6-hourly scheduler wiring 2 weeks ago
repos-documents.ts feat(hq): extract pure prepareDraft from createDraft (permissive preview path) 1 week 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 feat(hq): employee foundation — manager role, employee repo, session hardening (phase 1) 6 days ago
repos-interactions.ts feat(hq): interaction log with types, follow-ups and routes 2 weeks ago
repos-modules.ts feat(hq): HQ-1.5 — module quote content, pack pick-lists, bundle isolation check 2 weeks ago
repos-payments.ts feat(hq): payment receipts — own RCT/ series, zero-GST acknowledgment PDF 2 weeks ago
repos-recurring.ts feat(hq): recurring plan repo and owner-gated routes 2 weeks ago
repos-reminders.ts feat(reminders): dated reminder_schedule table + resolveSchedule resolver (Phase 4) 6 days ago
repos-reports.ts feat(hq): reports — dues aging, module revenue, client profitability with margin 2 weeks ago
repos-shares.ts feat(hq): shareable document link backend (mint/validate/revoke/list) 1 week ago
scheduler.ts feat(hq): recurring invoice generation with at-most-once auto-send 2 weeks ago
seed.ts feat(reminders): dated reminder_schedule table + resolveSchedule resolver (Phase 4) 6 days ago
send-reminder.ts feat(hq): GET /reminders/:id/preview — exact email via shared reminderContext 1 week 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(hq): beautify document template — "Slate Ledger" visual system + template.accent 1 week ago