feat: maintenance flow UX redesign — batch hub, context strip, run history upgrades #89

Merged
chihlasm merged 39 commits from feat/maintenance-ux-redesign into main 2026-02-26 04:17:29 +00:00
Showing only changes of commit 2bc8a85bfa - Show all commits

View File

@@ -221,8 +221,10 @@ export function ProceduralNavigationPage() {
setRuntimeSteps(hydrated)
const initialStates = new Map<string, StepState>()
for (const step of allSteps) {
initialStates.set(step.id, { notes: '', verificationValue: '', completedAt: null })
for (const step of hydrated) {
if (step.type === 'procedure_step') {
initialStates.set(step.id, { notes: '', verificationValue: '', completedAt: null })
}
}
// Hydrate completed steps from decisions
@@ -406,7 +408,7 @@ export function ProceduralNavigationPage() {
toast.error('Failed to save custom step')
}
setCurrentStepIndex(currentStepIndex + 1)
setCurrentStepIndex(prev => prev + 1)
}
const handleSaveForLater = async () => {
@@ -625,7 +627,7 @@ export function ProceduralNavigationPage() {
</div>
)}
{session && currentStep && (
{session && currentStep && !('isCustom' in currentStep && currentStep.isCustom) && (
<div className="mt-3 flex justify-end">
<StepFeedback stepId={currentStep.id} sessionId={session.id} />
</div>