arbret/frontend/app
counterweight 1a47b3643f
Extract reusable UI components to reduce DRY violations
- Created StatusBadge component: Standardizes status badge display
  - Supports tradeStatus prop for trade-specific styling
  - Supports variant prop for simple badges (success/error/ready)
  - Eliminates repetitive badge style combinations

- Created EmptyState component: Standardizes empty state display
  - Handles loading and empty states consistently
  - Supports message, hint, and action props
  - Used across trades, invites, admin pages

- Created ConfirmationButton component: Standardizes confirmation flows
  - Two-step confirmation pattern (action -> confirm/cancel)
  - Supports different variants (danger/success/primary)
  - Handles loading states automatically
  - Used for cancel, complete, no-show actions

- Migrated pages to use new components:
  - trades/page.tsx: StatusBadge, EmptyState, ConfirmationButton
  - trades/[id]/page.tsx: StatusBadge
  - invites/page.tsx: StatusBadge, EmptyState
  - admin/trades/page.tsx: StatusBadge, EmptyState, ConfirmationButton
  - admin/invites/page.tsx: StatusBadge

Benefits:
- Eliminated ~50+ lines of repetitive badge styling code
- Consistent UI patterns across all pages
- Easier to maintain and update styling
- Better type safety

All tests passing (32 frontend, 33 e2e)
2025-12-25 21:40:07 +01:00
..
admin Extract reusable UI components to reduce DRY violations 2025-12-25 21:40:07 +01:00
api Refactor API layer into structured domain-specific modules 2025-12-25 20:32:11 +01:00
components Extract reusable UI components to reduce DRY violations 2025-12-25 21:40:07 +01:00
exchange Refactor API layer into structured domain-specific modules 2025-12-25 20:32:11 +01:00
generated lots of stuff 2025-12-23 17:03:51 +01:00
hooks Refactor frontend: Add reusable hooks and components 2025-12-25 21:30:35 +01:00
invites Extract reusable UI components to reduce DRY violations 2025-12-25 21:40:07 +01:00
login Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
profile Refactor API layer into structured domain-specific modules 2025-12-25 20:32:11 +01:00
signup Refactor API layer into structured domain-specific modules 2025-12-25 20:32:11 +01:00
styles refactor(frontend): improve code quality and maintainability 2025-12-25 19:04:45 +01:00
trades Extract reusable UI components to reduce DRY violations 2025-12-25 21:40:07 +01:00
utils Refactor API layer into structured domain-specific modules 2025-12-25 20:32:11 +01:00
auth-context.tsx Refactor API layer into structured domain-specific modules 2025-12-25 20:32:11 +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