From bd3ba5c2a5d098d2c722568239cd572c571a54cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ign=C3=A1cio=20Fontoura=20Solla?= Date: Tue, 4 Aug 2026 02:56:05 -0300 Subject: [PATCH] =?UTF-8?q?style:=20format=20ap=C3=B3s=20rebase=20com=20B1?= =?UTF-8?q?55?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../campanha/(app)/municipios/page.tsx | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/app/(campaign)/campanha/(app)/municipios/page.tsx b/src/app/(campaign)/campanha/(app)/municipios/page.tsx index 1b0222ec..f4491a74 100644 --- a/src/app/(campaign)/campanha/(app)/municipios/page.tsx +++ b/src/app/(campaign)/campanha/(app)/municipios/page.tsx @@ -87,17 +87,18 @@ export default async function MunicipalitiesPage({ searchParams }: Municipalitie ...filterFacets.advisorIDs, ]), ] - const [advisorSummaries, advisorOptions, leadershipOptions, stateDeputyOptions] = await Promise.all([ - isStaffView ? loadAdvisorSummaries(payload, user, advisorIDs) : [], - // Only the coordinator-only assign-advisors control consumes these. - isCoordinator ? getEligibleAdvisorOptions(payload, user) : [], - // All staff edit the Lideranças column (scoped server-side); the leader - // never reaches this page (`gate: noLeader`). - isStaffView ? getEligibleLeadershipOptions(payload, user) : [], - // B157 — the Dobradinhas column is coordinator + candidate only; the - // catalog serves the avatar-stack display, the tooltip and the search. - canMoveEngagementLevel ? loadStateDeputyOptions(payload, user) : [], - ]) + const [advisorSummaries, advisorOptions, leadershipOptions, stateDeputyOptions] = + await Promise.all([ + isStaffView ? loadAdvisorSummaries(payload, user, advisorIDs) : [], + // Only the coordinator-only assign-advisors control consumes these. + isCoordinator ? getEligibleAdvisorOptions(payload, user) : [], + // All staff edit the Lideranças column (scoped server-side); the leader + // never reaches this page (`gate: noLeader`). + isStaffView ? getEligibleLeadershipOptions(payload, user) : [], + // B157 — the Dobradinhas column is coordinator + candidate only; the + // catalog serves the avatar-stack display, the tooltip and the search. + canMoveEngagementLevel ? loadStateDeputyOptions(payload, user) : [], + ]) const advisorNamesById = new Map(advisorSummaries.map((advisor) => [advisor.id, advisor])) const selectedAdvisorIDs = new Set(state.advisors ?? [])