teqo-backup/tests/int
Francisco Ignácio Fontoura Solla 473c82d09d Lock down CMS/PII collection access and leader routes
- users/signature/subscription/consent: all operations Payload-admin-only
  (Payload's default allowed ANY authenticated user, incl. campaign JWTs
  via /api — privilege escalation + PII exposure)
- post/tag/media/petition: public read kept, writes admin-only,
  readVersions admin-only on drafted collections
- leader lockdown: staff gates on /campanha/demandas* and /campanha/planos*;
  removed the dead leader branch of the demand detail page
- fix createLeaderSupporter: scope now asserted via the leader's engaged
  leadership municipalities (canReadMunicipality always denied leaders)
- candidate alignment: supporter area, invite creation, and escalated
  demand decisions now treat candidate as unrestricted staff consistently
- tests: collectionAccessLockdown.int.spec pins the lockdown; leased-consent
  helpers generalized (supporter keys); fixtures purge deletes residue
  invites before leaderships; stale leader-phone tests updated to the
  lockdown model; 'sem Praça' copy renamed to 'sem município'
2026-07-23 22:25:18 -03:00
..
api.int.spec.ts feat: initial commit 2026-02-14 16:11:51 -03:00
assertTestDatabase.int.spec.ts Ship /campanha nuclei MVP with RBAC, invites, and vote estimates. 2026-07-18 15:01:56 -03:00
bahiaGeometries.int.spec.ts Deliver B3 Leaflet choropleth maps and register post-simplify follow-ups. 2026-07-19 17:13:27 -03:00
bahiaMunicipalityCodes.int.spec.ts Add static Bahia municipality and territory geometries for the campaign map. 2026-07-18 22:07:41 -03:00
bahiaMunicipalityDemographics.int.spec.ts Deliver A8 IBGE voter profile on Eleitorado tab with post-simplify scale plan. 2026-07-19 23:05:27 -03:00
bahiaTerritories.int.spec.ts Remodel /campanha around predefined Praças replacing electoral nuclei. 2026-07-21 02:28:00 -03:00
bahiaTseCityCodes.int.spec.ts Deliver A7 Fase 2 cityCode TSE geography filters and absorb simplify debts. 2026-07-19 22:48:08 -03:00
bahiaTseZones.int.spec.ts Add opt-in TSE zone and territory suggestion chips for nuclei. 2026-07-18 20:04:04 -03:00
campaignActionPlan.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
campaignAuth.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
campaignDemandWorkflow.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
campaignFixtures.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
campaignFixturesRowCounts.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
campaignInvite.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
campaignInviteUi.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
campaignLeadership.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
campaignLeadershipActions.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
campaignMigrationReconciliation.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
campaignMunicipalityAccess.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
campaignMunicipalityUpdate.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
campaignMunicipalityUpdatePageData.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
campaignPasswordReset.int.spec.ts Remodel /campanha around predefined Praças replacing electoral nuclei. 2026-07-21 02:28:00 -03:00
campaignSupporter.int.spec.ts Lock down CMS/PII collection access and leader routes 2026-07-23 22:25:18 -03:00
campaignUserPhone.int.spec.ts Lock down CMS/PII collection access and leader routes 2026-07-23 22:25:18 -03:00
campaignVotePledge.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
collectionAccessLockdown.int.spec.ts Lock down CMS/PII collection access and leader routes 2026-07-23 22:25:18 -03:00
contactPhoneNormalization.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
electionResultsImport.int.spec.ts Remodel /campanha around predefined Praças replacing electoral nuclei. 2026-07-21 02:28:00 -03:00
eslintConventions.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
formData.int.spec.ts Ship /campanha nuclei MVP with RBAC, invites, and vote estimates. 2026-07-18 15:01:56 -03:00
municipalityCatalog.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
municipalityMapData.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
municipalityPageData.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
municipalityZoneNeighborhoods.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
onda0Provision.int.spec.ts Deliver Onda 0 MVP: provisional Consent, privacy policy, and /privacidade. 2026-07-19 03:38:21 -03:00
payloadTransaction.int.spec.ts Ship /campanha nuclei MVP with RBAC, invites, and vote estimates. 2026-07-18 15:01:56 -03:00
petition-page-layout.int.spec.ts Add Post and Tag collections for news and publications 2026-07-15 19:12:11 -03:00
postgresTransactionLocks.int.spec.ts Deliver C8 scale/DRY for supporters and register C9 follow-ups. 2026-07-19 00:31:06 -03:00
relationship.int.spec.ts Ship /campanha nuclei MVP with RBAC, invites, and vote estimates. 2026-07-18 15:01:56 -03:00
schemaPrimitives.int.spec.ts Ship /campanha nuclei MVP with RBAC, invites, and vote estimates. 2026-07-18 15:01:56 -03:00
supporterListFilters.int.spec.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
testDatabaseLease.int.spec.ts Ship /campanha nuclei MVP with RBAC, invites, and vote estimates. 2026-07-18 15:01:56 -03:00