teqo-backup/src/components/campaign
Francisco Ignácio Fontoura Solla 0e4e6855dc Add the tooling gate: knip, CI, zero-warning lint, as-never ban
- knip (files/deps at error level; unused exports ledgered as warn) with
  config for Payload/Next entries; deleted the dead modules it confirmed:
  RecentlyVisited + UpcomingActionPlansCard + actionPlanUpcomingPreview,
  lazy-dialog helpers, tseZone, federalCandidateTotalsAggregate (test-only),
  unused ui kit files, one-shot rename script; pruned unused radix deps and
  typescript-eslint; added pg/@types/pg (pinned to drizzle's 8.10.2)
- GitHub Actions CI on the mirror: lint, typecheck, knip, unit, migrate, int
  against a Postgres 17 service
- eslint: unused-vars with ^_ ignore patterns (migrations args exempt),
  repo-wide ban on `as never` (no-restricted-syntax), lint gate at
  --max-warnings=0; fixed all 54 pre-existing warnings (dead imports,
  hooks deps, tracking-pixel img disable with impeccable config exception)
- tsconfig: include consolidated from 219 lines to 5 (wildcard covers all
  .next dist variants), noUnusedLocals on
- typed replacements for every as-never: hookFilledCreateData (actions
  create data completed by collection hooks), drizzle scopeColumn narrowing,
  tests' stub<T> helper (property-level checking kept, completeness waived)
- test infra: leased-consent generalization used by onda0 spec (shared
  leases over the stable consent keys; window race ledgered), purge fix
- docs: IMPROVE-CODE-QUALITY-PLAN.md tracker, TECH-DEBT.md ledger,
  TESTING.md safety-net map (package.json also gains the Phase 2
  build:election-aggregates script entry; the script lands next commit)
2026-07-23 23:06:12 -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 Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -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 Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -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 Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
MunicipalityMapPanelDynamic.tsx Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -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