arbret/backend/routes
counterweight 1008eea2d9
Fix: Update permissions and add missing /api/exchange/slots endpoint
- Updated auth-context.tsx to use new exchange permissions
  (CREATE_EXCHANGE, VIEW_OWN_EXCHANGES, etc.) instead of old
  appointment permissions (BOOK_APPOINTMENT, etc.)

- Updated exchange/page.tsx, trades/page.tsx, admin/trades/page.tsx
  to use correct permission constants

- Updated profile/page.test.tsx mock permissions

- Updated admin/availability/page.tsx to use constants.exchange
  instead of constants.booking

- Added /api/exchange/slots endpoint to return available slots
  for a date, filtering out already booked slots

- Fixed E2E tests:
  - exchange.spec.ts: Wait for button to be enabled before clicking
  - permissions.spec.ts: Use more specific heading selector
  - price-history.spec.ts: Expect /exchange redirect for regular users
2025-12-22 21:42:42 +01:00
..
__init__.py first implementation 2025-12-20 22:18:14 +01:00
audit.py Phase 0.1: Remove backend deprecated code 2025-12-22 18:07:14 +01:00
auth.py Add ruff linter/formatter for Python 2025-12-21 21:54:26 +01:00
availability.py refactor(backend): extract date range validation utilities 2025-12-22 00:02:41 +01:00
exchange.py Fix: Update permissions and add missing /api/exchange/slots endpoint 2025-12-22 21:42:42 +01:00
invites.py refactor(backend): standardize model-to-response conversion naming 2025-12-22 09:16:05 +01:00
meta.py refactor: derive Permission type from generated OpenAPI schema 2025-12-21 23:55:47 +01:00
profile.py refactor(auth): unify authorization patterns with MANAGE_OWN_PROFILE permission 2025-12-21 23:50:06 +01:00