B98 — format Prettier nos arquivos do encadeamento

This commit is contained in:
Cursor Agent 2026-08-01 11:42:08 +00:00
parent 346949d035
commit d8f54a5d73
No known key found for this signature in database
7 changed files with 7 additions and 25 deletions

View file

@ -38,10 +38,7 @@ import {
resolveWizardTrendNoteDestination,
} from '@/lib/politicalTrendWizardUi'
import { toVoteEstimateScenarioViewModel } from '@/lib/voteEstimate'
import {
isWizardChainActionId,
wizardChainContinueHref,
} from '@/lib/wizardActionChain'
import { isWizardChainActionId, wizardChainContinueHref } from '@/lib/wizardActionChain'
import config from '@/payload.config'
import { requireCampaignPageActor } from '@/utilities/campaignPageActor'
import { loadWizardLeadershipTiles } from '@/utilities/leadership/leadershipData'

View file

@ -36,10 +36,7 @@ import {
} from '@/lib/campaignWizardCopy'
import { truncateNameAtWordBoundary } from '@/lib/leadershipNameTruncate'
import { cn } from '@/lib/utils'
import {
resolveWizardChainEntry,
wizardChainContinueHref,
} from '@/lib/wizardActionChain'
import { resolveWizardChainEntry, wizardChainContinueHref } from '@/lib/wizardActionChain'
import {
resolveWizardLeadershipSkip,
type WizardLeadershipTileViewModel,

View file

@ -17,10 +17,7 @@ import { recordLastActedMunicipality } from '@/lib/campaignLastActedMunicipality
import { wizardFlowTitleForSlug } from '@/lib/campaignWizardCopy'
import type { MunicipalitySignalType } from '@/lib/schemas/municipalityUpdate'
import { municipalitySignalTypeLabels } from '@/lib/schemas/municipalityUpdate'
import {
resolveWizardChainEntry,
wizardChainContinueHref,
} from '@/lib/wizardActionChain'
import { resolveWizardChainEntry, wizardChainContinueHref } from '@/lib/wizardActionChain'
import {
resolveWizardSignalSkip,
WIZARD_SIGNAL_BODY_STEP_TITLE_PREFIX,

View file

@ -21,10 +21,7 @@ import {
WIZARD_TREND_SAVE_LABEL,
} from '@/lib/politicalTrendWizardUi'
import type { PoliticalTrendStatusValue } from '@/lib/schemas/municipality'
import {
resolveWizardChainEntry,
wizardChainContinueHref,
} from '@/lib/wizardActionChain'
import { resolveWizardChainEntry, wizardChainContinueHref } from '@/lib/wizardActionChain'
import { politicalTrendLabels } from '@/utilities/municipality/municipalityLabels'
type WizardTrendNoteStepProps = {

View file

@ -28,10 +28,7 @@ import {
wizardNextStepTitle,
} from '@/lib/campaignWizardCopy'
import { type VoteEstimateScenario, type VoteEstimateScenarioViewModel } from '@/lib/voteEstimate'
import {
resolveWizardChainEntry,
wizardChainContinueHref,
} from '@/lib/wizardActionChain'
import { resolveWizardChainEntry, wizardChainContinueHref } from '@/lib/wizardActionChain'
import {
applyVoteShortcut,
getWizardVoteViolation,

View file

@ -94,5 +94,4 @@ export const wizardChainContinueHref = (
export const resolveWizardChainEntry = (
entryAction: CampaignWizardActionId | undefined,
currentAction: WizardChainActionId,
): WizardChainActionId =>
isWizardChainActionId(entryAction) ? entryAction : currentAction
): WizardChainActionId => (isWizardChainActionId(entryAction) ? entryAction : currentAction)

View file

@ -69,9 +69,7 @@ describe('wizardActionChain', () => {
expect(wizardChainContinueHref('change-trend', 'update-leadership', 'cairu')).toBe(
CAMPAIGN_HOME,
)
expect(wizardChainContinueHref('register-demand', 'update-votes', 'cairu')).toBe(
CAMPAIGN_HOME,
)
expect(wizardChainContinueHref('register-demand', 'update-votes', 'cairu')).toBe(CAMPAIGN_HOME)
})
it('resolves session entry from query or current principal', () => {