Telegram (ask questions / claim the issue here first): https://t.me/+DOylgFv1jyJlNzM0
Why this matters
src/hooks/useSettings.ts persists theme/displayCurrency/amountFormat/decimalPlaces to localStorage, applies the theme class, and exports formatAmountWithPreference() which does bigint scaling and truncates to the user's decimalPlaces preference. This formatter feeds amount display and is untested - fractional truncation to 2/4/7 places and trailing-zero trimming have no coverage.
Acceptance criteria
Files to touch
frontend/src/hooks/useSettings.ts
Out of scope
- Settings page label/htmlFor a11y
Why this matters
src/hooks/useSettings.ts persists theme/displayCurrency/amountFormat/decimalPlaces to localStorage, applies the theme class, and exports formatAmountWithPreference() which does bigint scaling and truncates to the user's decimalPlaces preference. This formatter feeds amount display and is untested - fractional truncation to 2/4/7 places and trailing-zero trimming have no coverage.
Acceptance criteria
Files to touch
frontend/src/hooks/useSettings.tsOut of scope