feat: add inspection_expiry/has_etc/tire_type fields, icons in schedule view, and WebSocket real-time sync

Co-authored-by: pdf114514 <57948770+pdf114514@users.noreply.github.com>
Agent-Logs-Url: https://github.com/pdf114514/CarReservation/sessions/6d0f25ae-6db4-4937-ae2b-6674456a5ca1
This commit is contained in:
copilot-swe-agent[bot]
2026-03-22 03:58:07 +00:00
parent 09872737b7
commit 8e9db971d3
13 changed files with 451 additions and 26 deletions

View File

@@ -31,7 +31,7 @@ function dateToStr(date) {
return format(date, 'yyyy-MM-dd');
}
export default function TimelineView() {
export default function TimelineView({ reloadKey = 0 }) {
const [cars, setCars] = useState([]);
const [reservations, setReservations] = useState([]);
const [loading, setLoading] = useState(true);
@@ -75,7 +75,7 @@ export default function TimelineView() {
useEffect(() => {
loadData();
}, [loadData]);
}, [loadData, reloadKey]);
// Close context menu on click / Escape
useEffect(() => {