Flag already-booked cars red on the new booking form #7

Merged
sb merged 3 commits from update-task-tracker into main 2026-09-03 06:24:01 +10:00
Owner

Summary

  • New booking form's car dropdown now marks a car red when it has any other booking that same day, instead of only when the entered pickup time/duration overlaps. The car stays visible and selectable — it's not hidden.
  • Committed CLAUDE.md (existed locally, was never checked in) and removed the stale plans/chauffeur-offer-html-email.md (feature already shipped in v1.61.0).

Test plan

  • Verified in browser via Playwright: a car with a same-day booking (no time overlap) shows red with the conflicting booking's time/client in the label; a car with no booking that day stays unstyled.
## Summary - New booking form's car dropdown now marks a car red when it has any other booking that same day, instead of only when the entered pickup time/duration overlaps. The car stays visible and selectable — it's not hidden. - Committed CLAUDE.md (existed locally, was never checked in) and removed the stale plans/chauffeur-offer-html-email.md (feature already shipped in v1.61.0). ## Test plan - [x] Verified in browser via Playwright: a car with a same-day booking (no time overlap) shows red with the conflicting booking's time/client in the label; a car with no booking that day stays unstyled.
sb added 3 commits 2026-09-03 06:20:44 +10:00
task.md hadn't been touched since v1.84.9; logged the Next.js 16
upgrade, dead-code cleanup, chauffeur job-change notifications, env var
renames, and live schedule updates/UI fixes, plus the Turbopack
dynamic-filesystem-access warnings as a new pending item.
Car availability was only flagged as double-booked when the entered
pickup time/duration overlapped an existing assignment. Now any car
with another booking the same day is marked red, regardless of time,
while staying visible and selectable in the dropdown.
CLAUDE.md existed on disk with project guidance for Claude Code but
had never been added to git. plans/chauffeur-offer-html-email.md was
deleted locally after its feature shipped in v1.61.0 but the deletion
was never committed.
Author
Owner

Summary of what was done:

  • New booking form's car dropdown (BookingForm.tsx) now flags a car red when it has any other booking on the same day, rather than only when the entered pickup time/duration overlaps an existing assignment (carStatus in src/lib/availability.ts). Cars are never hidden from the list, just visually marked.
  • Verified in the browser (Playwright): a car booked that day but at a non-overlapping time now correctly shows red with the conflicting booking's time/client appended to its label; cars with no booking that day remain unstyled.
  • Also committed CLAUDE.md (existed locally, was never checked in) and removed the stale plans/chauffeur-offer-html-email.md (its feature already shipped in v1.61.0).
Summary of what was done: - New booking form's car dropdown (`BookingForm.tsx`) now flags a car red when it has **any other booking on the same day**, rather than only when the entered pickup time/duration overlaps an existing assignment (`carStatus` in `src/lib/availability.ts`). Cars are never hidden from the list, just visually marked. - Verified in the browser (Playwright): a car booked that day but at a non-overlapping time now correctly shows red with the conflicting booking's time/client appended to its label; cars with no booking that day remain unstyled. - Also committed `CLAUDE.md` (existed locally, was never checked in) and removed the stale `plans/chauffeur-offer-html-email.md` (its feature already shipped in v1.61.0).
sb merged commit c873cb31fd into main 2026-09-03 06:24:01 +10:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sb/ACC-System!7
No description provided.