Implement session outcomes, step timing, and live timer fixes

This commit is contained in:
Michael Chihlas
2026-02-11 17:52:12 -05:00
parent 2a1ed4d250
commit ca4ce7cad6
15 changed files with 574 additions and 59 deletions

View File

@@ -1,6 +1,8 @@
import type { TreeStructure } from './tree'
import type { Step, StepContent } from './step'
export type SessionOutcome = 'resolved' | 'escalated' | 'workaround' | 'unresolved'
export interface DecisionRecord {
node_id: string
question: string | null
@@ -9,6 +11,9 @@ export interface DecisionRecord {
notes: string | null
automation_used: boolean
timestamp: string
entered_at?: string | null
exited_at?: string | null
duration_seconds?: number | null
attachments: string[]
}
@@ -45,6 +50,8 @@ export interface Session {
custom_steps: CustomStep[]
started_at: string
completed_at: string | null
outcome: SessionOutcome | null
outcome_notes: string | null
ticket_number: string | null
client_name: string | null
exported: boolean
@@ -72,6 +79,11 @@ export interface SessionExport {
include_tree_info?: boolean
}
export interface SessionComplete {
outcome: SessionOutcome
outcome_notes?: string
}
// Navigation state for active session
export interface SessionNavigationState {
activeSession: Session | null