fix: stabilize maintenance flow run/resume and procedural scrolling
This commit is contained in:
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user