Watering Calendar View
The watering page calendar shows who is available on each date and lets coordinators correct assignments or availability by removing individual names.
Calendar badges
Each selectable date displays a numeric badge when at least one person has registered availability for that date:
| Badge | Meaning |
|---|---|
| (none) | No one available |
1, 2, 3, … |
Count of people available on that date |
The badge reflects availability, not assignment count. After a plan is calculated, cell background colours still indicate staffing status (assigned vs target).
Selected date detail
Click a date to show person chips above the calendar:
- Assigned — primary outlined chips for people assigned by the calculated plan
- Available (fallback) — muted grey chips for people who registered availability but were not assigned; they may still be used manually as backups
Removing names (corrections)
Every chip has an × button. Deletion is contextual:
| Chip type | Action |
|---|---|
| Assigned | Removes that person from the plan assignment for the selected date |
| Available (fallback) | Removes that date from the person's availability entry |
Adding or editing availability after the initial wizard submission is not supported yet — only deletion.
API endpoints used
DELETE /api/watering/plan/:id/assignments— body:{ date, personIri }DELETE /api/watering/availability/date— body:{ gardenIri, personIri, targetMonth, date }
See Watering API for full endpoint documentation.
E2E test
./scripts/run-cypress.sh
Specs:
e2e/cypress/e2e/watering-api.cy.ts— delete assignment and availability datee2e/cypress/e2e/watering-date-detail.cy.ts— calendar badge, fallback chips, chip removal