fix: stabilize maintenance flow run/resume and procedural scrolling

This commit is contained in:
chihlasm
2026-02-17 20:12:07 -05:00
parent 058e2c5a23
commit db715929e7
10 changed files with 151 additions and 13 deletions

View File

@@ -97,7 +97,7 @@ export function ProceduralNavigationPage() {
setIsLoading(true)
try {
const treeData = await treesApi.get(id)
if (treeData.tree_type !== 'procedural') {
if (treeData.tree_type !== 'procedural' && treeData.tree_type !== 'maintenance') {
navigate(`/trees/${id}/navigate`, { replace: true })
return
}
@@ -116,7 +116,7 @@ export function ProceduralNavigationPage() {
await startSession(id, {})
}
} catch {
toast.error('Failed to load procedure')
toast.error('Failed to load flow')
navigate('/my-trees')
} finally {
setIsLoading(false)
@@ -340,7 +340,7 @@ export function ProceduralNavigationPage() {
const currentStepState = currentStep ? stepStates.get(currentStep.id) : undefined
return (
<div className="flex h-full flex-col">
<div className="flex h-full min-h-0 flex-col">
{/* Top bar */}
<div className="border-b border-border px-4 py-3 sm:px-6">
<div className="flex items-center justify-between gap-4">
@@ -370,8 +370,8 @@ export function ProceduralNavigationPage() {
{/* Left sidebar - step checklist */}
<div
className={cn(
'border-r border-border bg-card transition-all duration-200',
sidebarOpen ? 'w-72 p-3' : 'w-0 overflow-hidden p-0'
'min-h-0 border-r border-border bg-card transition-all duration-200',
sidebarOpen ? 'w-72 overflow-y-auto p-3' : 'w-0 overflow-hidden p-0'
)}
>
{sidebarOpen && (