Wire currency picker to a real preference store #45
Labels
No labels
app:activities
app:chat
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Today the currency button in
Hub.vue(and soon in the unified profile sheet) firesnotImplementedtoast — seeHub.vue:91-95. It needs to actually pick a preferred display currency (sats / USD / EUR / …) and persist it.Scope
useCurrencyPreferencecomposable, or extend the existing locale store pattern.ThemeandLanguageuse (DropdownMenuRadioGroup).formatPrice()callsites inmarket,activities,wallet,accounting. Each module already has its owncurrencyfield on items; the user preference becomes a display override, with sat-denominated values converted via Lightning price feed if needed.sats.Out of scope
Why now
Surfaced while planning the unified bottom-nav / profile-sheet refactor — both the hub bottom row and the new profile sheet expose the currency dropdown, so it's worth wiring once.
Acceptance