Files
GearBox/.planning/phases/33-currency-system/33-05-SUMMARY.md
2026-04-13 18:10:24 +02:00

1.2 KiB

Plan 33-05 Summary

Status: Complete Completed: 2026-04-13

What Was Built

Client-side currency system: formatters, market/currency selector, auto-suggestion, conversion toggle.

Key Changes

  • Added formatDualPrice() for dual display format with ~ prefix
  • Evolved useCurrency() to return CurrencyContext { currency, market, showConversions }
  • Created useExchangeRates hook and convertClientPrice utility
  • Redesigned settings page: "Market & Currency" heading, conversion toggle
  • Added locale-based auto-suggestion banner
  • Updated useFormatters to destructure from CurrencyContext

Key Files Created/Modified

  • src/client/lib/formatters.ts — formatDualPrice added
  • src/client/hooks/useCurrency.ts — CurrencyContext interface
  • src/client/hooks/useFormatters.ts — Destructure update
  • src/client/hooks/useExchangeRates.ts — New hook
  • src/client/routes/settings.tsx — Full UI redesign

Self-Check: PASSED

  • formatDualPrice exports correctly
  • useCurrency returns CurrencyContext
  • Settings page has Market & Currency heading
  • Settings page has Show Converted Prices toggle
  • Auto-suggestion banner present
  • Build succeeds