arbret/frontend/app
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
..
admin Fix: Update permissions and add missing /api/exchange/slots endpoint 2025-12-22 21:42:42 +01:00
components Phase 3.3: Add Admin Trades page 2025-12-22 20:06:16 +01:00
exchange Fix: Update permissions and add missing /api/exchange/slots endpoint 2025-12-22 21:42:42 +01:00
generated Fix: Update permissions and add missing /api/exchange/slots endpoint 2025-12-22 21:42:42 +01:00
hooks Phase 7: Final cleanup - Remove deprecated booking/appointment code 2025-12-22 20:18:33 +01:00
invites Phase 7: Final cleanup - Remove deprecated booking/appointment code 2025-12-22 20:18:33 +01:00
login Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
profile Fix: Update permissions and add missing /api/exchange/slots endpoint 2025-12-22 21:42:42 +01:00
signup Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
styles refactor(frontend): consolidate shared styles into centralized style system 2025-12-21 23:45:47 +01:00
trades Fix: Update permissions and add missing /api/exchange/slots endpoint 2025-12-22 21:42:42 +01:00
utils Phase 7: Final cleanup - Remove deprecated booking/appointment code 2025-12-22 20:18:33 +01:00
api.ts Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
auth-context.tsx Fix: Update permissions and add missing /api/exchange/slots endpoint 2025-12-22 21:42:42 +01:00
config.ts Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
layout.tsx tests passing 2025-12-18 22:08:31 +01:00
page.tsx Phase 3.3: Add Admin Trades page 2025-12-22 20:06:16 +01:00