teqo-backup/scripts
Francisco Ignácio Fontoura Solla 0407f02ce2 Import projection-sheet strategy columns into municipalities (E4R fase 2)
- pnpm db:seed:projecao now also imports SITUAÇÃO -> politicalTrend,
  DOBRADINHAS -> stateDeputy + stateDeputies + dobradinhaNotes,
  LIDERANÇAS -> name-only contact + leadership (statewide slug dedupe),
  ASSESSOR RESPONSÁVEL -> campaignUser + advisors (Edizio=coordinator,
  Solla=candidate, placeholder @planilha.invalid emails),
  ENCAMINHAMENTOS -> nextSteps, OBSERVAÇÃO -> strengths/risks (curated).
  PRIORITÁRIAS overrides MAPA GERAL when non-empty; Salvador stays skipped;
  relationships are unions; re-run is idempotent.
- parseSituationCell + splitNameCell (noise/collective/action filters,
  honorific protection, parenthetical extraction) with unit tests.
- Contact.phone optional (migration 20260724_175500_contact_phone_optional);
  phone invariant hooks skip phone-less contacts; invite flows guard.
- candidate role now eligible for municipality/action-plan advisors
  (eligibleCampaignStaffWhere) per product decision.
2026-07-24 15:58:06 -03:00
..
consent-texts Restore full roadmap detail and align project documentation. 2026-07-19 16:19:36 -03:00
assert-local-database.mjs Add TSE 2022 election results model and local seed import. 2026-07-18 18:25:19 -03:00
build-bahia-demographics.mjs Add the tooling gate: knip, CI, zero-warning lint, as-never ban 2026-07-23 23:06:12 -03:00
build-bahia-geometries.mjs Add static Bahia municipality and territory geometries for the campaign map. 2026-07-18 22:07:41 -03:00
build-bahia-tse-city-codes.mjs Deliver A7 Fase 2 cityCode TSE geography filters and absorb simplify debts. 2026-07-19 22:48:08 -03:00
build-election-aggregates.mjs Cache the campaign hot path: committed TSE artifact + request-scoped dedup 2026-07-23 23:06:28 -03:00
db-pull.mjs Isolate local/dev and tests from the production database 2026-07-15 13:52:30 -03:00
generate-remodel-municipalities-migration.mjs Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
guard-dev-db.mjs Add TSE 2022 election results model and local seed import. 2026-07-18 18:25:19 -03:00
import-projecao.mjs Import projection-sheet strategy columns into municipalities (E4R fase 2) 2026-07-24 15:58:06 -03:00
regenerate-municipality-catalog-snapshot.mjs Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
seed-consent.mjs Add allowlisted global cache revalidation for Onda 0 F1. 2026-07-19 22:21:16 -03:00
seed-loader.mjs Add TSE 2022 election results model and local seed import. 2026-07-18 18:25:19 -03:00
seed-posts.mjs Add TSE 2022 election results model and local seed import. 2026-07-18 18:25:19 -03:00
seed-tse-results.mjs Add E2 TSE 2014/2018 vote series and historical trend insights. 2026-07-19 05:09:43 -03:00