From e691c978f1b52fefeb191b5c141a29dfce9432e4 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Tue, 24 Feb 2026 21:46:55 -0500 Subject: [PATCH] feat: StepChecklist accepts RuntimeStep[], renders amber Custom badge Co-Authored-By: Claude Sonnet 4.6 --- .../components/procedural/StepChecklist.tsx | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/procedural/StepChecklist.tsx b/frontend/src/components/procedural/StepChecklist.tsx index 5823eff9..3bdd4942 100644 --- a/frontend/src/components/procedural/StepChecklist.tsx +++ b/frontend/src/components/procedural/StepChecklist.tsx @@ -1,9 +1,9 @@ import { CheckCircle2, Circle, ArrowRight } from 'lucide-react' -import type { ProceduralStep } from '@/types' +import type { RuntimeStep } from '@/types' import { cn } from '@/lib/utils' interface StepChecklistProps { - steps: ProceduralStep[] + steps: RuntimeStep[] currentStepIndex: number completedStepIds: Set onStepClick: (index: number) => void @@ -16,7 +16,8 @@ export function StepChecklist({ steps, currentStepIndex, completedStepIds, onSte const sectionVisibility = new Set() let prevSection: string | undefined for (let i = 0; i < procedureSteps.length; i++) { - const header = procedureSteps[i].section_header + const s = procedureSteps[i] + const header = 'section_header' in s ? s.section_header : undefined if (header && header !== prevSection) sectionVisibility.add(i) if (header) prevSection = header } @@ -32,7 +33,7 @@ export function StepChecklist({ steps, currentStepIndex, completedStepIds, onSte
{showSection && (
- {step.section_header} + {'section_header' in step ? step.section_header : undefined}
)}