mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-23 06:33:06 +00:00
B98 — format Prettier nos arquivos do encadeamento
This commit is contained in:
parent
346949d035
commit
d8f54a5d73
7 changed files with 7 additions and 25 deletions
|
|
@ -38,10 +38,7 @@ import {
|
||||||
resolveWizardTrendNoteDestination,
|
resolveWizardTrendNoteDestination,
|
||||||
} from '@/lib/politicalTrendWizardUi'
|
} from '@/lib/politicalTrendWizardUi'
|
||||||
import { toVoteEstimateScenarioViewModel } from '@/lib/voteEstimate'
|
import { toVoteEstimateScenarioViewModel } from '@/lib/voteEstimate'
|
||||||
import {
|
import { isWizardChainActionId, wizardChainContinueHref } from '@/lib/wizardActionChain'
|
||||||
isWizardChainActionId,
|
|
||||||
wizardChainContinueHref,
|
|
||||||
} from '@/lib/wizardActionChain'
|
|
||||||
import config from '@/payload.config'
|
import config from '@/payload.config'
|
||||||
import { requireCampaignPageActor } from '@/utilities/campaignPageActor'
|
import { requireCampaignPageActor } from '@/utilities/campaignPageActor'
|
||||||
import { loadWizardLeadershipTiles } from '@/utilities/leadership/leadershipData'
|
import { loadWizardLeadershipTiles } from '@/utilities/leadership/leadershipData'
|
||||||
|
|
|
||||||
|
|
@ -36,10 +36,7 @@ import {
|
||||||
} from '@/lib/campaignWizardCopy'
|
} from '@/lib/campaignWizardCopy'
|
||||||
import { truncateNameAtWordBoundary } from '@/lib/leadershipNameTruncate'
|
import { truncateNameAtWordBoundary } from '@/lib/leadershipNameTruncate'
|
||||||
import { cn } from '@/lib/utils'
|
import { cn } from '@/lib/utils'
|
||||||
import {
|
import { resolveWizardChainEntry, wizardChainContinueHref } from '@/lib/wizardActionChain'
|
||||||
resolveWizardChainEntry,
|
|
||||||
wizardChainContinueHref,
|
|
||||||
} from '@/lib/wizardActionChain'
|
|
||||||
import {
|
import {
|
||||||
resolveWizardLeadershipSkip,
|
resolveWizardLeadershipSkip,
|
||||||
type WizardLeadershipTileViewModel,
|
type WizardLeadershipTileViewModel,
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,7 @@ import { recordLastActedMunicipality } from '@/lib/campaignLastActedMunicipality
|
||||||
import { wizardFlowTitleForSlug } from '@/lib/campaignWizardCopy'
|
import { wizardFlowTitleForSlug } from '@/lib/campaignWizardCopy'
|
||||||
import type { MunicipalitySignalType } from '@/lib/schemas/municipalityUpdate'
|
import type { MunicipalitySignalType } from '@/lib/schemas/municipalityUpdate'
|
||||||
import { municipalitySignalTypeLabels } from '@/lib/schemas/municipalityUpdate'
|
import { municipalitySignalTypeLabels } from '@/lib/schemas/municipalityUpdate'
|
||||||
import {
|
import { resolveWizardChainEntry, wizardChainContinueHref } from '@/lib/wizardActionChain'
|
||||||
resolveWizardChainEntry,
|
|
||||||
wizardChainContinueHref,
|
|
||||||
} from '@/lib/wizardActionChain'
|
|
||||||
import {
|
import {
|
||||||
resolveWizardSignalSkip,
|
resolveWizardSignalSkip,
|
||||||
WIZARD_SIGNAL_BODY_STEP_TITLE_PREFIX,
|
WIZARD_SIGNAL_BODY_STEP_TITLE_PREFIX,
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,7 @@ import {
|
||||||
WIZARD_TREND_SAVE_LABEL,
|
WIZARD_TREND_SAVE_LABEL,
|
||||||
} from '@/lib/politicalTrendWizardUi'
|
} from '@/lib/politicalTrendWizardUi'
|
||||||
import type { PoliticalTrendStatusValue } from '@/lib/schemas/municipality'
|
import type { PoliticalTrendStatusValue } from '@/lib/schemas/municipality'
|
||||||
import {
|
import { resolveWizardChainEntry, wizardChainContinueHref } from '@/lib/wizardActionChain'
|
||||||
resolveWizardChainEntry,
|
|
||||||
wizardChainContinueHref,
|
|
||||||
} from '@/lib/wizardActionChain'
|
|
||||||
import { politicalTrendLabels } from '@/utilities/municipality/municipalityLabels'
|
import { politicalTrendLabels } from '@/utilities/municipality/municipalityLabels'
|
||||||
|
|
||||||
type WizardTrendNoteStepProps = {
|
type WizardTrendNoteStepProps = {
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,7 @@ import {
|
||||||
wizardNextStepTitle,
|
wizardNextStepTitle,
|
||||||
} from '@/lib/campaignWizardCopy'
|
} from '@/lib/campaignWizardCopy'
|
||||||
import { type VoteEstimateScenario, type VoteEstimateScenarioViewModel } from '@/lib/voteEstimate'
|
import { type VoteEstimateScenario, type VoteEstimateScenarioViewModel } from '@/lib/voteEstimate'
|
||||||
import {
|
import { resolveWizardChainEntry, wizardChainContinueHref } from '@/lib/wizardActionChain'
|
||||||
resolveWizardChainEntry,
|
|
||||||
wizardChainContinueHref,
|
|
||||||
} from '@/lib/wizardActionChain'
|
|
||||||
import {
|
import {
|
||||||
applyVoteShortcut,
|
applyVoteShortcut,
|
||||||
getWizardVoteViolation,
|
getWizardVoteViolation,
|
||||||
|
|
|
||||||
|
|
@ -94,5 +94,4 @@ export const wizardChainContinueHref = (
|
||||||
export const resolveWizardChainEntry = (
|
export const resolveWizardChainEntry = (
|
||||||
entryAction: CampaignWizardActionId | undefined,
|
entryAction: CampaignWizardActionId | undefined,
|
||||||
currentAction: WizardChainActionId,
|
currentAction: WizardChainActionId,
|
||||||
): WizardChainActionId =>
|
): WizardChainActionId => (isWizardChainActionId(entryAction) ? entryAction : currentAction)
|
||||||
isWizardChainActionId(entryAction) ? entryAction : currentAction
|
|
||||||
|
|
|
||||||
|
|
@ -69,9 +69,7 @@ describe('wizardActionChain', () => {
|
||||||
expect(wizardChainContinueHref('change-trend', 'update-leadership', 'cairu')).toBe(
|
expect(wizardChainContinueHref('change-trend', 'update-leadership', 'cairu')).toBe(
|
||||||
CAMPAIGN_HOME,
|
CAMPAIGN_HOME,
|
||||||
)
|
)
|
||||||
expect(wizardChainContinueHref('register-demand', 'update-votes', 'cairu')).toBe(
|
expect(wizardChainContinueHref('register-demand', 'update-votes', 'cairu')).toBe(CAMPAIGN_HOME)
|
||||||
CAMPAIGN_HOME,
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it('resolves session entry from query or current principal', () => {
|
it('resolves session entry from query or current principal', () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue