d6002b0cfc
Phase 3.3: Add Admin Trades page
...
New /admin/trades page for managing exchange trades:
- Upcoming trades tab with user contact info
- History tab with status/user search filters
- Complete/No-show/Cancel actions for admin
- Trade details: direction, amounts, rates, premium
Update navigation:
- Admin home redirects to /admin/trades
- Regular user home redirects to /exchange
- Header shows 'Trades' for admin
2025-12-22 20:06:16 +01:00
a5c1eccb4b
Phase 0.2: Remove frontend deprecated code
...
- Delete pages: sum, audit, admin/random-jobs
- Delete old homepage (counter) and create redirect page
- Update Header.tsx: remove Counter, Sum, Audit, Random Jobs nav items
- Update auth-context.tsx: remove VIEW_COUNTER, INCREMENT_COUNTER, USE_SUM permissions
- Update profile/page.test.tsx: fix nav link assertions
2025-12-22 18:09:09 +01:00
81cd34b0e7
refactor(frontend): consolidate shared styles into centralized style system
...
- Create comprehensive shared.ts with design tokens and categorized styles:
- layoutStyles: main, loader, content variants
- cardStyles: card, tableCard, cardHeader
- tableStyles: complete table styling
- paginationStyles: pagination controls
- formStyles: inputs, labels, errors
- buttonStyles: primary, secondary, accent, danger variants
- badgeStyles: status badges with color variants
- bannerStyles: error/success banners
- modalStyles: modal overlay and content
- toastStyles: toast notifications
- utilityStyles: divider, emptyState, etc.
- Refactor all page components to use shared styles:
- page.tsx (counter)
- audit/page.tsx
- booking/page.tsx
- appointments/page.tsx
- profile/page.tsx
- invites/page.tsx
- admin/invites/page.tsx
- admin/availability/page.tsx
- Reduce code duplication significantly (each page now has only
truly page-specific styles)
- Maintain backwards compatibility with sharedStyles export
2025-12-21 23:45:47 +01:00
37de6f70e0
Add Prettier for TypeScript formatting
...
- Install prettier
- Configure .prettierrc.json and .prettierignore
- Add npm scripts: format, format:check
- Add Makefile target: format-frontend
- Format all frontend files
2025-12-21 21:59:26 +01:00
75cfc6c928
some fixes and refactors
2025-12-19 11:08:19 +01:00
409e0df9a6
implemented
2025-12-19 10:12:55 +01:00
66bc4c5a45
review
2025-12-18 23:54:51 +01:00
b173b47925
tests passing
2025-12-18 23:33:32 +01:00
322bdd3e6e
silly features in place
2025-12-18 22:51:43 +01:00
ca55932a41
second round of review
2025-12-18 22:31:19 +01:00
da5a0d03eb
first round of review
2025-12-18 22:24:46 +01:00
7ebfb7a2dd
tests passing
2025-12-18 22:08:31 +01:00
0995e1cc77
with some tests
2025-12-18 21:48:41 +01:00
a764c92a0b
starting
2025-12-18 21:37:28 +01:00