fix: FAB maintenance button navigates to correct screen (refs #13)
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 5m22s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 37s
Deploy to Staging / Verify Staging (pull_request) Successful in 6s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 5s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped

The mobile FAB 'Maintenance' option was navigating to the Vehicles screen
instead of the Maintenance screen. Updated handleQuickAction to navigate
to 'Maintenance' which displays MaintenanceMobileScreen.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Eric Gullickson
2026-01-03 22:31:07 -06:00
parent 3053b62fa5
commit 17484d7b5f

View File

@@ -437,8 +437,7 @@ function App() {
navigateToScreen('Documents', { source: 'quick-action' });
break;
case 'add-maintenance':
// Navigate to maintenance or open form (future implementation)
navigateToScreen('Vehicles', { source: 'quick-action' });
navigateToScreen('Maintenance', { source: 'quick-action' });
break;
}
}, [navigateToScreen, navigateToVehicleSubScreen]);