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/scripts
Thomas Joise 6bce248c2e feat(onboarding): one-time migration swapping seeded modules to new templates (ticks preserved)
Idempotent migrateOnboardingTemplates(db): for every client_module whose module
has a per-module onboarding template (task 2), rebuilds its milestone rows from
that template, carrying mapped ticks (installed->installation, go_live->go_live,
advance_paid->advance_payment, balance_paid->balance_payment, setup_done->
setup_configuration when present) with done_on and payment_id intact. Unmapped
ticks (amc_start, or setup_done where the new template has no matching step) are
dropped and counted. Audited per project; a second run is a no-op via an
identical-key-set short-circuit. Adds the CLI wrapper (mirrors
apply-name-fixes.ts's open-DB idiom, Postgres or SQLite) for the real one-time
run against production data.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2 days ago
..
apply-ltd-numbers.ts chore(d35): script to append directory-sourced LTD numbers to client names 2 days ago
apply-name-fixes.ts chore(d35): script to apply approved client-name corrections (audited) 2 days ago
backup-hq.sh docs(hq): go-live runbook, env template and S3 backup script 1 week ago
demo-seed.ts chore: remove all 'Tecnostac' references — everything is SiMS 2 days ago
gmail-connect.ts feat(db): D19 P1-P3 — async DB interface, dual engines, Postgres adapter 4 days ago
import-apex-full.ts feat(d20): importer v2 rework from the 46-agent real-data audit 4 days ago
import-employees.ts feat(d34): import employee master + invited/pending-login flag 2 days ago
migrate-onboarding-templates.ts feat(onboarding): one-time migration swapping seeded modules to new templates (ticks preserved) 2 days ago