chore: add Maintenance page title and remove duplicate vehicle dropdown (#162) #169
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Relates to #162
Severity: High
Problem
Two issues on the Maintenance page:
No page title: The Maintenance page has no h1 page title like other pages have ("My Vehicles", "Documents", etc.). It starts immediately with a Vehicle dropdown and tabs. On initial load the user may not be sure what page they're on.
Duplicate vehicle dropdown: The vehicle dropdown appears twice -- once at the top of the page and again duplicated inside the "Add Maintenance Record" and "Create Maintenance Schedule" sections.
Recommendation
Acceptance Criteria
Implementation Plan (from #162 -- Milestone 13)
Phase: 6 (Maintenance fixes) | Priority: High | Depends on: None | Blocks: None
Context
The Maintenance page lacks a page title (inconsistent with Documents page which has one) and the vehicle dropdown selector is duplicated -- once at the page level and again inside each form (MaintenanceRecordForm and MaintenanceScheduleForm).
Implementation
1. Add page title to
frontend/src/features/maintenance/pages/MaintenancePage.tsx:<Typography variant="h5" fontWeight={600}>Maintenance</Typography>as the first child of the page container, BEFORE the vehicle selector dropdownDocumentsPage.tsxline 89:<Typography variant="h5" fontWeight={600}>Documents</Typography>)2. Remove duplicate vehicle dropdown from forms:
frontend/src/features/maintenance/components/MaintenanceRecordForm.tsx: Remove the vehicleFormControl/Selectfrontend/src/features/maintenance/components/MaintenanceScheduleForm.tsx: Remove the vehicleFormControl/SelectselectedVehicleIdas a prop from the page-level selector to both forms3. Same treatment for mobile:
frontend/src/features/maintenance/mobile/MaintenanceMobileScreen.tsx: Add page title and ensure single vehicle dropdown at page levelFiles
frontend/src/features/maintenance/pages/MaintenancePage.tsxfrontend/src/features/maintenance/mobile/MaintenanceMobileScreen.tsxfrontend/src/features/maintenance/components/MaintenanceRecordForm.tsxfrontend/src/features/maintenance/components/MaintenanceScheduleForm.tsxCommit Convention
Test Criteria
Branch
Work on branch
issue-162-ux-design-audit-cleanup(shared with all #162 sub-issues)Milestone: Implementation Complete
Phase: Execution | Agent: Developer | Status: PASS
Changes
MaintenancePage.tsx:selectedVehicleIdto bothMaintenanceRecordFormandMaintenanceScheduleFormMaintenanceRecordForm.tsx:vehicleIdpropvehicle_iddefault from prop, syncs via useEffectvehicleIdis providedMaintenanceScheduleForm.tsx:vehicleIdprop, pre-set, sync, hide dropdownMaintenanceMobileScreen.tsx:selectedVehicleIdto both formsVerification
f03cd42on branchissue-162-ux-design-audit-cleanupVerdict: PASS | Next: Visual verification on mobile and desktop viewports