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

@ -37,9 +37,9 @@ const REGULAR_NAV_ITEMS: NavItem[] = [
];
const ADMIN_NAV_ITEMS: NavItem[] = [
{ id: "admin-invites", label: "Invites", href: "/admin/invites", adminOnly: true },
{ id: "admin-appointments", label: "Trades", href: "/admin/trades", adminOnly: true },
{ id: "admin-availability", label: "Availability", href: "/admin/availability", adminOnly: true },
{ id: "admin-appointments", label: "Appointments", href: "/admin/appointments", adminOnly: true },
{ id: "admin-invites", label: "Invites", href: "/admin/invites", adminOnly: true },
{ id: "admin-price-history", label: "Prices", href: "/admin/price-history", adminOnly: true },
];