arbret/backend
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
..
routes Fix: Update permissions and add missing /api/exchange/slots endpoint 2025-12-22 21:42:42 +01:00
tests Fix: Update test_permissions.py to use new exchange permissions 2025-12-22 20:23:41 +01:00
auth.py Phase 0.1: Remove backend deprecated code 2025-12-22 18:07:14 +01:00
database.py Extract duplicated DATABASE_URL parsing to database.py 2025-12-21 23:16:29 +01:00
date_validation.py refactor(backend): extract date range validation utilities 2025-12-22 00:02:41 +01:00
env.example reviewed 2025-12-20 22:38:39 +01:00
invite_utils.py Add ruff linter/formatter for Python 2025-12-21 21:54:26 +01:00
main.py Fix: Remove booking import from main.py 2025-12-22 20:19:23 +01:00
models.py Fix: Update permission names, models and constants 2025-12-22 20:28:21 +01:00
pagination.py refactor(backend): extract pagination utilities 2025-12-22 00:00:24 +01:00
price_fetcher.py feat: add explicit 30 second timeout for Bitfinex API requests 2025-12-22 16:07:33 +01:00
pyproject.toml chore: promote httpx from dev to regular dependency 2025-12-22 15:41:40 +01:00
pytest.ini tests passing 2025-12-18 22:08:31 +01:00
schemas.py Fix: Update permission names, models and constants 2025-12-22 20:28:21 +01:00
seed.py Add ruff linter/formatter for Python 2025-12-21 21:54:26 +01:00
shared_constants.py Fix: Update permission names, models and constants 2025-12-22 20:28:21 +01:00
validate_constants.py Fix: Update permission names, models and constants 2025-12-22 20:28:21 +01:00
validation.py Add ruff linter/formatter for Python 2025-12-21 21:54:26 +01:00
words.txt first implementation 2025-12-20 11:12:11 +01:00