mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-15 10:43:07 +00:00
- MunicipalityListAdvisorsControl: stop advancing lastPropsIDsRef from a successful delta response — it exists only to detect a genuine external prop change, and writing it there made a later stale re-render of the pre-edit content look external and clobber optimistic state back to it. Also reconcile with the latest confirmed server set on the error path once every in-flight delta settles (previously only the success path did), and consolidate chip/tooltip name resolution onto the shared advisorEntriesFromIds helper instead of a bespoke lookup with an '#id' placeholder. - Extract campaignJsonMutationErrorResponse/parseCampaignJsonRequestBody (src/utilities/campaignJsonMutationRoute.ts) and adopt them in both municipios/advisors/route.ts and municipios/expected-votes/route.ts, removing the duplicated body-parse + error-mapping ladder. - Municipality.ts's validateMunicipalityAdvisors now uses uniqueRelationshipIds instead of re-inlining the Set+map+filter dance the helper was extracted for. Verified: tsc --noEmit, lint, format:check, check:cycles all clean; full unit suite (450 tests) and the municipality/advisor int suites pass. knip's pre-existing payload.config.ts load error is unrelated (P3). Playwright's spawned webServer failed to boot in this sandbox (unrelated module-resolution environment issue, reproduced even before this diff); manual pnpm dev boots fine and the change is covered by unit/int tests. |
||
|---|---|---|
| .. | ||
| Activity.ts | ||
| AllocationDecision.ts | ||
| CampaignDemand.ts | ||
| CampaignInvite.ts | ||
| CampaignUser.ts | ||
| Consent.ts | ||
| Contact.ts | ||
| ElectionCandidate.ts | ||
| ElectionCandidateVote.ts | ||
| ElectionTally.ts | ||
| Leadership.ts | ||
| Media.ts | ||
| Municipality.ts | ||
| MunicipalityUpdate.ts | ||
| Organization.ts | ||
| Petition.ts | ||
| Post.ts | ||
| Signature.ts | ||
| StateDeputy.ts | ||
| Subscription.ts | ||
| Supporter.ts | ||
| SupporterImportBatch.ts | ||
| Tag.ts | ||
| Users.ts | ||
| VotePledge.ts | ||