1.2 KiB
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 addedsrc/client/hooks/useCurrency.ts— CurrencyContext interfacesrc/client/hooks/useFormatters.ts— Destructure updatesrc/client/hooks/useExchangeRates.ts— New hooksrc/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