feat: Redesign dashboard with vehicle-centric layout (#196) #202

Merged
egullickson merged 5 commits from issue-196-redesign-dashboard-vehicle-centric into main 2026-02-15 17:13:31 +00:00
Showing only changes of commit 767df9e9f2 - Show all commits

View File

@@ -0,0 +1,38 @@
/**
* @ai-summary Compact action bar for dashboard with Add Vehicle and Log Fuel buttons
*/
import React from 'react';
import Button from '@mui/material/Button';
import Add from '@mui/icons-material/Add';
import LocalGasStation from '@mui/icons-material/LocalGasStation';
interface ActionBarProps {
onAddVehicle: () => void;
onLogFuel: () => void;
}
export const ActionBar: React.FC<ActionBarProps> = ({ onAddVehicle, onLogFuel }) => {
return (
<div className="flex flex-row gap-2 items-center">
<Button
variant="contained"
size="small"
startIcon={<Add />}
onClick={onAddVehicle}
sx={{ minHeight: 44 }}
>
Add Vehicle
</Button>
<Button
variant="outlined"
size="small"
startIcon={<LocalGasStation />}
onClick={onLogFuel}
sx={{ minHeight: 44 }}
>
Log Fuel
</Button>
</div>
);
};