fix: add type-aware routing for procedural flows

Centralizes tree navigation routing via getTreeNavigatePath helper.
Fixes all pages to route procedural sessions to /flows/:id/navigate
instead of /trees/:id/navigate. Adds safety redirect in troubleshooting
navigator and resume support in procedural navigator.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Michael Chihlas
2026-02-14 22:04:29 -05:00
parent 505b1c8246
commit 60e52763a7
8 changed files with 101 additions and 10 deletions

View File

@@ -12,7 +12,7 @@ TreeType = Literal['troubleshooting', 'procedural']
# --- Intake Form Schemas ---
FIELD_TYPES = Literal[
'text', 'textarea', 'number', 'ip_address', 'email',
'text', 'textarea', 'number', 'ip_address', 'email', 'url',
'select', 'multi_select', 'checkbox', 'password'
]