Edit the Character Creator step flow in Aralia...
Use this skill to modify the multi-step character creation flow. Focus on the reducer-driven step map, render switch, and sidebar config so navigation, backtracking, and visibility stay consistent.
src/components/CharacterCreator/state/characterCreatorState.ts for CreationStep, reducer transitions, stepDefinitions, GO_BACK resets, and step gating helpers.src/components/CharacterCreator/CharacterCreator.tsx for renderStep() and step-level handlers.src/components/CharacterCreator/config/sidebarSteps.ts for sidebar labels, grouping, visibility, and completion summaries.src/components/CharacterCreator/CreationSidebar.tsx if sidebar layout or grouping behavior changes.src/components/CharacterCreator/CharacterCreator.README.md and src/components/CharacterCreator/state/characterCreatorState.README.md for state/flow notes.tests/character-creator-flow.spec.ts and src/components/CharacterCreator/state/__tests__/characterCreatorReducer.test.ts for flow coverage.CreationStep enum entry.CharacterCreationState fields and action types.determineNextStepAfterRace, getNextStep, and any gating helpers (canOfferFeatAtLevelOne, getFeatStepOrReview, getPreviousStepBeforeFeat) if the path changes.case handlers in characterCreatorReducer.stepDefinitions for back navigation.getFieldsToResetOnGoBack to clear the data captured by the step.renderStep() branch in CharacterCreator.tsx.SET_STEP, GO_BACK, NAVIGATE_TO_STEP) keeps the user in valid state.SIDEBAR_STEPS with label, group, visibility, and selection summary.isStepCompleted for the new step.AbilityScores or before ClassFeatures) and update the stepDefinitions previous step mapping.stepDefinitions, SIDEBAR_STEPS, and completion logic.stepDefinitions for back navigation and forward flow helpers.SET_STEP transitions that assume the old order.SIDEBAR_STEPS.isVisible.SELECT_* or SET_ABILITY_SCORES).GO_BACK resets the conditional data if the step is skipped or revisited.RaceDetailPane unless a step must block forward progress (see existing centaur/changeling patterns).NAVIGATE_TO_STEP conservative: it must not allow jumping past incomplete data.useCharacterAssembly so preview and final assembly match.Before concluding any character creator step task, you must satisfy the following checklist:
getFieldsToResetOnGoBack are executed).determineNextStepAfterRace, getNextStep, etc.) prevent jumping past incomplete required steps.isStepCompleted) are updated to reflect the new step's active state.tests/character-creator-flow.spec.ts) and reducer tests run and pass without failures.