);
}
```
**Step 2: Verify TypeScript compiles**
Run: `npx tsc --noEmit`
Expected: No errors
**Step 3: Commit**
```bash
git add src/components/card-detail/DueDatePicker.tsx
git commit -m "feat: rewrite DueDatePicker to use custom CalendarPopover"
```
---
### Task 3: Visual verification and final commit
**Step 1: Run TypeScript check**
Run: `npx tsc --noEmit`
Expected: No errors
**Step 2: Run the dev server**
Run: `npx tauri dev`
Verify:
- Open a card → Due Date cell shows "Click to set date..." or the current date
- Click the cell → calendar popover appears below
- Calendar shows correct month with today highlighted (ring)
- Click a date → it's selected (filled accent), popover closes, cell shows formatted date
- Click month name → month selector grid appears, click a month → returns to days
- Click year → year selector grid appears, click a year → returns to days
- Left/right arrows navigate months
- "Today" button selects today and closes
- "Clear" button in popover footer removes the date and closes
- × button in cell header clears the date without opening calendar
- Past dates are dimmed but clickable
- Overdue dates show in red
**Step 3: Commit**
```bash
git add -A
git commit -m "feat: custom date picker with calendar popover complete"
```