teqo-backup/.cursor/rules
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
..
projects Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
access-control-advanced.md feat: initial commit 2026-02-14 16:11:51 -03:00
access-control.md feat: initial commit 2026-02-14 16:11:51 -03:00
adapters.md feat: initial commit 2026-02-14 16:11:51 -03:00
campanha-action-feedback.mdc Codify feel-the-action as a campaign UI principle. 2026-07-21 17:50:42 -03:00
campanha-edit-where-you-see.mdc Ship A10 vote estimate scenarios (pessimistic/central/optimistic) for Praças. 2026-07-23 19:12:22 -03:00
collections.md feat: initial commit 2026-02-14 16:11:51 -03:00
components.md Add Post and Tag collections for news and publications 2026-07-15 19:12:11 -03:00
endpoints.md feat: initial commit 2026-02-14 16:11:51 -03:00
field-type-guards.md feat: initial commit 2026-02-14 16:11:51 -03:00
fields.md feat: initial commit 2026-02-14 16:11:51 -03:00
hooks.md feat: initial commit 2026-02-14 16:11:51 -03:00
payload-overview.md feat: initial commit 2026-02-14 16:11:51 -03:00
plugin-development.md feat: initial commit 2026-02-14 16:11:51 -03:00
queries.md feat: initial commit 2026-02-14 16:11:51 -03:00
security-critical.mdc feat: initial commit 2026-02-14 16:11:51 -03:00