Francisco Ignácio Fontoura Solla
|
0407f02ce2
|
Import projection-sheet strategy columns into municipalities (E4R fase 2)
- pnpm db:seed:projecao now also imports SITUAÇÃO -> politicalTrend,
DOBRADINHAS -> stateDeputy + stateDeputies + dobradinhaNotes,
LIDERANÇAS -> name-only contact + leadership (statewide slug dedupe),
ASSESSOR RESPONSÁVEL -> campaignUser + advisors (Edizio=coordinator,
Solla=candidate, placeholder @planilha.invalid emails),
ENCAMINHAMENTOS -> nextSteps, OBSERVAÇÃO -> strengths/risks (curated).
PRIORITÁRIAS overrides MAPA GERAL when non-empty; Salvador stays skipped;
relationships are unions; re-run is idempotent.
- parseSituationCell + splitNameCell (noise/collective/action filters,
honorific protection, parenthetical extraction) with unit tests.
- Contact.phone optional (migration 20260724_175500_contact_phone_optional);
phone invariant hooks skip phone-less contacts; invite flows guard.
- candidate role now eligible for municipality/action-plan advisors
(eligibleCampaignStaffWhere) per product decision.
|
2026-07-24 15:58:06 -03:00 |
|
Francisco Ignácio Fontoura Solla
|
f23c2582ee
|
Break up the god modules into deep domain modules
- campaignAccess.ts (990 lines, ~80 exports) is now a 130-line explicit
re-export surface over 14 domain modules in src/utilities/access/
(shared actor predicates + per-collection access); public surface
AST-verified identical, import sites untouched
- actions/supporter.ts split: single-supporter lifecycle (407) vs the CSV
import pipeline in supporterImport.ts (357); 'use server' re-export
constraint honored with thin async delegates
- organization/stateDeputy clone twins deduped by POLICY:
runStaffEntityMutation (fresh staff assert + unique-conflict translation)
keeps each caller's concretely-typed Payload mutation
- runCampaignRedirectFormAction removes the copy-pasted try/map/redirect
ladder from 4 create formActions (planos kept its genuinely custom flow)
- Plaza→Municipality identifier rename finished (context keys, list-label
and leadership constants, fixture sequence, test constants)
- RefreshRouteOnSave (React component) moved out of utilities/ to components/
|
2026-07-23 23:44:45 -03:00 |
|