teqo/src/components/campaign
Francisco Ignácio Fontoura Solla a32ba3b4f0 Cache the campaign hot path: committed TSE artifact + request-scoped dedup
- committed artifact src/lib/electionAggregates/bahia-federal-baseline.json
  (Solla nominal + federal T1 valid votes per catalog municipality × TSE year,
  Salvador split by zone) generated by pnpm build:election-aggregates from the
  locally seeded TSE data; typed loader src/lib/bahiaElectionAggregates.ts;
  snapshot spec pins artifact ↔ catalog ↔ baseline ticket
- map bundle: historical years now read the artifact (was 6 statewide
  city×zone scans per dashboard visit); compare mode keeps only the OTHER
  candidate on the DB path (Solla side from the artifact)
- loadMunicipalityScope (React cache()): one municipality find + pledge
  aggregate per request shared by dashboard KPIs, map bundle, and the
  municípios list overview (was 2-3 duplicate loads)
- unstable_cache + election-tse tag on the immutable elections-tab loaders
  (baseline, candidate comparison, candidate options); tag added to the
  /api/revalidate allowlist — runbook: re-seed then bust the tag
- municipalityMapContract.ts: client-safe map vocabulary/bundle types so the
  client panel no longer imports the server data module (build had pulled
  @payload-config into the client graph); municipalityMapData is server-only
  and re-exports the contract; PLAZA_MAP_* renamed to MUNICIPALITY_MAP_*
- petition generateStaticParams enumerates bare ids (getPetitionIds)
2026-07-23 23:06:28 -03:00
..
ActionPlanCard.tsx Remodel /campanha around predefined Praças replacing electoral nuclei. 2026-07-21 02:28:00 -03:00
ActionPlanFilters.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
ActionPlanForm.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
ActionPlanLifecycleDialog.tsx Add action-plan agenda vertical for /campanha/planos. 2026-07-18 20:56:20 -03:00
ActionPlanList.tsx Add action-plan agenda vertical for /campanha/planos. 2026-07-18 20:56:20 -03:00
ActionPlanResultForm.tsx Remodel /campanha around predefined Praças replacing electoral nuclei. 2026-07-21 02:28:00 -03:00
ActionPlanStatusBadge.tsx Add action-plan agenda vertical for /campanha/planos. 2026-07-18 20:56:20 -03:00
ActionPlanTabNav.tsx Add action-plan agenda vertical for /campanha/planos. 2026-07-18 20:56:20 -03:00
ActionPlanTaskChecklist.tsx Add action-plan agenda vertical for /campanha/planos. 2026-07-18 20:56:20 -03:00
ActionPlanTaskFields.tsx Add action-plan agenda vertical for /campanha/planos. 2026-07-18 20:56:20 -03:00
ActionPlanUpdateFeed.tsx Add action-plan agenda vertical for /campanha/planos. 2026-07-18 20:56:20 -03:00
ActionPlanUpdateForm.tsx Deliver C9 scale/DRY for supporters and register C10 follow-ups. 2026-07-19 03:23:25 -03:00
AsyncSearchCombobox.tsx Add missing C7 modules and register C11 simplify follow-ups. 2026-07-19 03:52:22 -03:00
BahiaMap.tsx Add the tooling gate: knip, CI, zero-warning lint, as-never ban 2026-07-23 23:06:12 -03:00
campaign-logo.tsx Ship /campanha nuclei MVP with RBAC, invites, and vote estimates. 2026-07-18 15:01:56 -03:00
CampaignAuthBackToLoginLink.tsx Polish campaign login auth UI after Impeccable critique. 2026-07-19 19:24:12 -03:00
CampaignAuthCardHeader.tsx Polish campaign login auth UI after Impeccable critique. 2026-07-19 19:24:12 -03:00
CampaignAuthPageShell.tsx Polish campaign login auth UI after Impeccable critique. 2026-07-19 19:24:12 -03:00
CampaignBottomNav.tsx Remodel /campanha around predefined Praças replacing electoral nuclei. 2026-07-21 02:28:00 -03:00
CampaignDashboard.tsx Cache the campaign hot path: committed TSE artifact + request-scoped dedup 2026-07-23 23:06:28 -03:00
CampaignDataFreshness.tsx Polish /campanha Field Desk UX and register FD+/FD2 follow-ups. 2026-07-19 08:17:12 -03:00
CampaignInfoHint.tsx Ship A10 vote estimate scenarios (pessimistic/central/optimistic) for Praças. 2026-07-23 19:12:22 -03:00
CampaignInviteForm.tsx Deliver C8 scale/DRY for supporters and register C9 follow-ups. 2026-07-19 00:31:06 -03:00
CampaignListPagination.tsx Add C6 scale/DRY for supporters: bulk import, KPI aggregate, shared shells. 2026-07-18 22:17:31 -03:00
CampaignMetricStrip.tsx Ship A10 vote estimate scenarios (pessimistic/central/optimistic) for Praças. 2026-07-23 19:12:22 -03:00
CampaignPageShell.tsx Refactor campaign dashboard UX and add product discovery artifacts. 2026-07-19 21:56:01 -03:00
CampaignProfileSettings.tsx Remodel /campanha around predefined Praças replacing electoral nuclei. 2026-07-21 02:28:00 -03:00
CampaignScopeBadge.tsx Ship /campanha nuclei MVP with RBAC, invites, and vote estimates. 2026-07-18 15:01:56 -03:00
CampaignSearchInput.tsx Ship /campanha nuclei MVP with RBAC, invites, and vote estimates. 2026-07-18 15:01:56 -03:00
CampaignSidebar.tsx Add campaign password reset, profile photo, and RS+ follow-up plan. 2026-07-19 05:26:56 -03:00
CampaignUserAvatar.tsx Add campaign password reset, profile photo, and RS+ follow-up plan. 2026-07-19 05:26:56 -03:00
CandidateComparePicker.tsx Remodel /campanha around predefined Praças replacing electoral nuclei. 2026-07-21 02:28:00 -03:00
ChoroplethLegend.tsx Deliver B11 percent-of-valid-votes scale on Praças map. 2026-07-21 13:12:05 -03:00
ConsentText.tsx Ship /campanha nuclei MVP with RBAC, invites, and vote estimates. 2026-07-18 15:01:56 -03:00
ContactCombobox.tsx Deliver C7 scale/DRY for action plans: territory composition, tab-scoped reads, and hook shortcuts. 2026-07-19 03:50:58 -03:00
DeclareVotesForm.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
DemandForm.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
DemandWorkflowCard.tsx Lock down CMS/PII collection access and leader routes 2026-07-23 22:25:18 -03:00
InstallPwaToast.tsx Add installable PWA foundation for the /campanha field app. 2026-07-18 17:28:34 -03:00
InvalidCampaignInvite.tsx Ship /campanha nuclei MVP with RBAC, invites, and vote estimates. 2026-07-18 15:01:56 -03:00
LeaderContactsPanel.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
LeadershipForm.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
LeadershipInternalForm.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
LeadershipInviteButtons.tsx Remodel /campanha around predefined Praças replacing electoral nuclei. 2026-07-21 02:28:00 -03:00
MapFeatureReadout.tsx Cache the campaign hot path: committed TSE artifact + request-scoped dedup 2026-07-23 23:06:28 -03:00
MunicipalityAdvisorAvatarStack.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityAdvisorsForm.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityBaselineCard.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityCandidateComparisonTable.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityEstimateScenarioContext.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityFilters.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityLeadershipsPanel.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityList.tsx Add the tooling gate: knip, CI, zero-warning lint, as-never ban 2026-07-23 23:06:12 -03:00
MunicipalityListAdvisorsControl.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityListExpectedVotesControl.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityListOverview.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityListTrendControl.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityMapPanel.tsx Cache the campaign hot path: committed TSE artifact + request-scoped dedup 2026-07-23 23:06:28 -03:00
MunicipalityMapPanelDynamic.tsx Cache the campaign hot path: committed TSE artifact + request-scoped dedup 2026-07-23 23:06:28 -03:00
MunicipalityPledgesPanel.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityStrategyCard.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityStrategyForm.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityTabNav.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityUpdateFeed.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityUpdateForm.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityZoneNeighborhoodsCard.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
nav.ts Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
OrganizationForm.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
PledgeEstimateForm.tsx Ship A10 vote estimate scenarios (pessimistic/central/optimistic) for Praças. 2026-07-23 19:12:22 -03:00
RecentlyVisitedCard.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
RecentVisitTracker.tsx Add the tooling gate: knip, CI, zero-warning lint, as-never ban 2026-07-23 23:06:12 -03:00
RegisterServiceWorker.tsx Add installable PWA foundation for the /campanha field app. 2026-07-18 17:28:34 -03:00
RelationMultiSelect.tsx Remodel /campanha around predefined Praças replacing electoral nuclei. 2026-07-21 02:28:00 -03:00
RemoveSupporterDataButton.tsx Add C6 scale/DRY for supporters: bulk import, KPI aggregate, shared shells. 2026-07-18 22:17:31 -03:00
StaffMunicipalityVotesDisplay.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
StateDeputyChips.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
StateDeputyForm.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
StrictCombobox.tsx Ship /campanha nuclei MVP with RBAC, invites, and vote estimates. 2026-07-18 15:01:56 -03:00
SupporterFilters.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
SupporterForm.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
SupporterImportWizard.tsx Simplify C6 supporter paths and register C8 scale/DRY follow-ups. 2026-07-18 22:34:55 -03:00
SupporterList.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
SupporterListOverview.tsx Polish /campanha Field Desk UX and register FD+/FD2 follow-ups. 2026-07-19 08:17:12 -03:00
SupporterShareKit.tsx Add C2 nominal supporter registry for /campanha. 2026-07-18 20:32:54 -03:00
SupportStatusBadge.tsx Remodel /campanha around predefined Praças replacing electoral nuclei. 2026-07-21 02:28:00 -03:00
TseZoneBadge.tsx Ship /campanha nuclei MVP with RBAC, invites, and vote estimates. 2026-07-18 15:01:56 -03:00
VoteEstimateScenarioField.tsx Ship A10 vote estimate scenarios (pessimistic/central/optimistic) for Praças. 2026-07-23 19:12:22 -03:00
VoteEstimateScenarioInputs.tsx Ship A10 vote estimate scenarios (pessimistic/central/optimistic) for Praças. 2026-07-23 19:12:22 -03:00
VoteEstimateScenarioStrip.tsx Ship A10 vote estimate scenarios (pessimistic/central/optimistic) for Praças. 2026-07-23 19:12:22 -03:00
VoteIntentionControl.tsx Add C2 nominal supporter registry for /campanha. 2026-07-18 20:32:54 -03:00