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
This commit is contained in:
counterweight 2025-12-22 20:06:16 +01:00
parent 3785d6242d
commit d6002b0cfc
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
3 changed files with 607 additions and 4 deletions

View file

@ -22,9 +22,9 @@ export default function Home() {
// Redirect based on role
if (hasRole(ADMIN)) {
router.replace("/admin/appointments");
router.replace("/admin/trades");
} else if (hasRole(REGULAR)) {
router.replace("/booking");
router.replace("/exchange");
} else {
// User with no roles - redirect to login
router.replace("/login");