From 5e4d323ef12711c867c5e59ef9263aaa09190c9c Mon Sep 17 00:00:00 2001 From: chihlasm Date: Mon, 16 Mar 2026 01:13:29 -0400 Subject: [PATCH] feat: add fallback_steps to TypeScript types (Task 15) Add optional fallback_steps field to ProceduralStep interface. Add FallbackStepRecord interface and fallback_decisions field to Session. Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/types/session.ts | 9 +++++++++ frontend/src/types/tree.ts | 1 + 2 files changed, 10 insertions(+) diff --git a/frontend/src/types/session.ts b/frontend/src/types/session.ts index 9f87b191..fb600e51 100644 --- a/frontend/src/types/session.ts +++ b/frontend/src/types/session.ts @@ -42,6 +42,14 @@ export interface TreeSnapshot extends TreeStructure { tree_type?: string } +export interface FallbackStepRecord { + parent_step_id: string + fallback_step_id: string + completed_at: string | null + notes: string | null + outcome: 'resolved' | 'not_resolved' | 'skipped' +} + export interface Session { id: string tree_id: string @@ -66,6 +74,7 @@ export interface Session { target_label?: string psa_ticket_id?: string | null psa_connection_id?: string | null + fallback_decisions?: FallbackStepRecord[] } export interface SessionCreate { diff --git a/frontend/src/types/tree.ts b/frontend/src/types/tree.ts index 9294f6d9..c2d32562 100644 --- a/frontend/src/types/tree.ts +++ b/frontend/src/types/tree.ts @@ -122,6 +122,7 @@ export interface ProceduralStep { section_header?: string reference_url?: string library_visibility?: 'team' | 'public' + fallback_steps?: ProceduralStep[] // Optional fallback alternatives } export interface CustomProceduralStep {