teqo-backup/scripts
Francisco Ignácio Fontoura Solla e2724c10da Remodel the campaign vertical from Praça to Município
Rename the operational unit "Praça"/"Núcleo" to "Município" (code identifier
`municipality`) and land the 2026-07-23 course changes:

- New `candidate` role with unrestricted visibility (`isCampaignStaff` now
  includes it) alongside coordinator/advisor; leader is locked down to the
  supporter contact tool only.
- Demandas become staff-only; dobradinhas modeled via a `stateDeputy` entity.
- Camaçari consolidated to a single município (ZE 170/171 aggregated);
  Salvador keeps its 19 zone municípios.
- Map moves to the staff dashboard; `/campanha/municipios` is list/overview.
- Vote pledges keep the declared vs estimated (scenario) asymmetry; leaders
  never see estimates.

Destructive migration for the campaign vertical (drops nucleus/plaza-era
tables, wipes campaign rows, seeds 435 municípios). Public-site data untouched.

Includes the post-delivery /simplify cleanups: shared reloadStaffActor /
reloadCoordinatorActor helpers, req.context cache for getFreshCampaignUser,
parallelized dashboard loads, candidate dashboard-copy fix, and dead
leader-dashboard / roleKind code removal.
2026-07-23 21:36:20 -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 Deliver A8 IBGE voter profile on Eleitorado tab with post-simplify scale plan. 2026-07-19 23:05:27 -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
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
regenerate-municipality-catalog-snapshot.mjs Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
rename-plaza-to-municipality.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