fix: suppress StepFeedback on custom steps, fix resume stepState seeding, functional updater for step index
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -221,8 +221,10 @@ export function ProceduralNavigationPage() {
|
|||||||
setRuntimeSteps(hydrated)
|
setRuntimeSteps(hydrated)
|
||||||
|
|
||||||
const initialStates = new Map<string, StepState>()
|
const initialStates = new Map<string, StepState>()
|
||||||
for (const step of allSteps) {
|
for (const step of hydrated) {
|
||||||
initialStates.set(step.id, { notes: '', verificationValue: '', completedAt: null })
|
if (step.type === 'procedure_step') {
|
||||||
|
initialStates.set(step.id, { notes: '', verificationValue: '', completedAt: null })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hydrate completed steps from decisions
|
// Hydrate completed steps from decisions
|
||||||
@@ -406,7 +408,7 @@ export function ProceduralNavigationPage() {
|
|||||||
toast.error('Failed to save custom step')
|
toast.error('Failed to save custom step')
|
||||||
}
|
}
|
||||||
|
|
||||||
setCurrentStepIndex(currentStepIndex + 1)
|
setCurrentStepIndex(prev => prev + 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleSaveForLater = async () => {
|
const handleSaveForLater = async () => {
|
||||||
@@ -625,7 +627,7 @@ export function ProceduralNavigationPage() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{session && currentStep && (
|
{session && currentStep && !('isCustom' in currentStep && currentStep.isCustom) && (
|
||||||
<div className="mt-3 flex justify-end">
|
<div className="mt-3 flex justify-end">
|
||||||
<StepFeedback stepId={currentStep.id} sessionId={session.id} />
|
<StepFeedback stepId={currentStep.id} sessionId={session.id} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user