chore: Fuel Logs default to list view instead of form-first (#162) #168
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
The Fuel Logs page opens directly to an Add form with a Summary sidebar. There's no log history list/table as the primary view. Users likely want to view their fuel history more often than they add entries.
Recommendation
Acceptance Criteria
Implementation Plan (from #162 -- Milestone 12)
Phase: 5 (Fuel Logs restructure) | Priority: High | Depends on: None | Blocks: None
Context
The Fuel Logs page currently uses a two-column layout with the form always visible on the left and the list on the right. This is form-first rather than list-first. Users should see their fuel log history as the primary view, with the form accessible via a button/dialog.
Implementation
1. Restructure
frontend/src/features/fuel-logs/pages/FuelLogsPage.tsx:FuelStatsCardat top, thenFuelLogsListas main content (full width)AddFuelLogDialog2. Create
frontend/src/features/fuel-logs/components/AddFuelLogDialog.tsx(new):FuelLogForm.tsxinside a MUI<Dialog>componentFuelLogForm.tsxremains as-is (standalone form component, reused by both dialog and edit flow)FuelLogEditDialog.tsx(which wraps the form for editing)AddFuelLogDialog.tsxcoexists withFuelLogEditDialog.tsx-- they serve different purposes (create vs edit)3. Minor update to
frontend/src/features/fuel-logs/components/FuelLogForm.tsx:onSuccesscallback prop for dialog close notification (if not already present)4. Documentation: After completion, add
AddFuelLogDialog.tsxentry to components table infrontend/src/features/fuel-logs/CLAUDE.mdFiles
frontend/src/features/fuel-logs/pages/FuelLogsPage.tsxfrontend/src/features/fuel-logs/components/AddFuelLogDialog.tsx(new)frontend/src/features/fuel-logs/components/FuelLogForm.tsx(minor: onSuccess callback)frontend/src/features/fuel-logs/CLAUDE.md(doc update)Commit Convention
Test Criteria
Risk Notes
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
pages/FuelLogsPage.tsx(restructured):components/AddFuelLogDialog.tsx(new):onSuccesscloses dialog after submissionVerification
onSuccessprop already existed -- no form changes needede4be744on branchissue-162-ux-design-audit-cleanupVerdict: PASS | Next: Visual verification on mobile and desktop viewports