fix: Wire up "Add Maintenance" button on vehicle detail page #194

Closed
opened 2026-02-15 15:41:51 +00:00 by egullickson · 0 comments
Owner

Problem

The "Schedule Maintenance" button on the vehicle detail page (/garage/vehicles/:id) does nothing when clicked. It has no onClick handler on both desktop (VehicleDetailPage.tsx) and mobile (VehicleDetailMobile.tsx).

Acceptance Criteria

  • Rename "Schedule Maintenance" to "Add Maintenance" on desktop
  • Rename "Maintenance" to "Add Maintenance" on mobile
  • Match the button style to "Add Fuel Log" (contained variant on desktop)
  • Clicking the button opens an inline dialog with MaintenanceRecordForm (same pattern as Add Fuel Log dialog)
  • On successful record creation, the dialog closes and maintenance data refreshes
  • Works on both desktop and mobile viewports

Files to Change

  • frontend/src/features/vehicles/pages/VehicleDetailPage.tsx (desktop)
  • frontend/src/features/vehicles/mobile/VehicleDetailMobile.tsx (mobile)
## Problem The "Schedule Maintenance" button on the vehicle detail page (`/garage/vehicles/:id`) does nothing when clicked. It has no onClick handler on both desktop (`VehicleDetailPage.tsx`) and mobile (`VehicleDetailMobile.tsx`). ## Acceptance Criteria - Rename "Schedule Maintenance" to "Add Maintenance" on desktop - Rename "Maintenance" to "Add Maintenance" on mobile - Match the button style to "Add Fuel Log" (contained variant on desktop) - Clicking the button opens an inline dialog with `MaintenanceRecordForm` (same pattern as Add Fuel Log dialog) - On successful record creation, the dialog closes and maintenance data refreshes - Works on both desktop and mobile viewports ## Files to Change - `frontend/src/features/vehicles/pages/VehicleDetailPage.tsx` (desktop) - `frontend/src/features/vehicles/mobile/VehicleDetailMobile.tsx` (mobile)
egullickson added the
status
in-progress
type
bug
labels 2026-02-15 15:42:01 +00:00
egullickson added this to the Sprint 2026-02-02 milestone 2026-02-15 15:42:12 +00:00
egullickson added
status
review
and removed
status
in-progress
labels 2026-02-15 16:01:54 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: egullickson/motovaultpro#194