feat: Reorder Log Fuel fields by usage and add decimal keypad (#246) #247
Reference in New Issue
Block a user
Delete Branch "issue-246-reorder-log-fuel-fields"
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?
Fixes #246
Summary
Reorder the Add Fuel Log form so the most-used inputs come first and calculated/auto-filled fields are de-emphasized, and trigger the mobile decimal keypad on the numeric fields. Applies to both mobile and desktop.
New field order
Changes
frontend/src/features/fuel-logs/components/FuelLogForm.tsx-- reordered Grid items to the new order. The now-solo MPG and Date & Time fields changed from sm=6 to xs=12 (full width on desktop). AddedinputMode: 'decimal'to the Fuel Amount and Cost Per Gallon inputs.frontend/src/features/fuel-logs/components/DistanceInput.tsx-- addedinputMode: 'decimal'so the Mileage field shows the decimal keypad.Decisions
Test plan
tsc --noEmit-- clean, zero errors.eslinton changed files -- 0 errors (pre-existingno-explicit-anywarnings only; none introduced).mainand unrelated to this change.Notes
FuelLogForm/DistanceInput(pre-existing gap); none added in this change.Acceptance criteria
inputMode="decimal".