arbret/backend
counterweight 63cf46c230
Fix: Prevent cancellation of past appointments
Add check to both user and admin cancel endpoints to reject
cancellation of appointments whose slot_start is in the past.
This matches the spec requirement that cancellations can only
happen 'before the appointment'.

Added tests for both user and admin cancel endpoints.

Also includes frontend styling updates.
2025-12-21 17:27:23 +01:00
..
routes Fix: Prevent cancellation of past appointments 2025-12-21 17:27:23 +01:00
tests Fix: Prevent cancellation of past appointments 2025-12-21 17:27:23 +01:00
auth.py reviewed 2025-12-20 22:38:39 +01:00
database.py with some tests 2025-12-18 21:48:41 +01:00
env.example reviewed 2025-12-20 22:38:39 +01:00
invite_utils.py first implementation 2025-12-20 11:12:11 +01:00
main.py Phase 6: Admin appointments view and cancellation with UI and backend tests 2025-12-21 00:30:09 +01:00
models.py Phase 3: Appointment model & booking API with timezone fix 2025-12-21 00:03:34 +01:00
pyproject.toml implemented 2025-12-19 10:12:55 +01:00
pytest.ini tests passing 2025-12-18 22:08:31 +01:00
schemas.py Phase 3: Appointment model & booking API with timezone fix 2025-12-21 00:03:34 +01:00
seed.py first round of review 2025-12-19 10:30:23 +01:00
validate_constants.py Phase 0: Add booking permissions and constants 2025-12-20 23:30:08 +01:00
validation.py implemented 2025-12-20 23:06:05 +01:00
words.txt first implementation 2025-12-20 11:12:11 +01:00