Phase 3.2: Add My Trades page

New /trades page for viewing user's Bitcoin trades:
- Upcoming trades with cancel functionality
- Trade history (completed, cancelled, no-show)
- Direction badges (BUY/SELL with colors)
- EUR ↔ BTC amounts in readable format
- Rate and premium display

Update Header navigation:
- Exchange replaces Book for regular users
- My Trades replaces Appointments

Update profile page test for new nav items.
This commit is contained in:
counterweight 2025-12-22 20:02:00 +01:00
parent 361dc8764d
commit 3785d6242d
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
3 changed files with 462 additions and 6 deletions

View file

@ -211,8 +211,8 @@ describe("ProfilePage - Navigation", () => {
render(<ProfilePage />);
await waitFor(() => {
expect(screen.getByText("Book")).toBeDefined();
expect(screen.getByText("Appointments")).toBeDefined();
expect(screen.getByText("Exchange")).toBeDefined();
expect(screen.getByText("My Trades")).toBeDefined();
});
});