UI: Load currencies from operations DB — 120+ with 'top' section #11
Labels
No Label
approved
audit
bug
cardinal-rule-1
changes-requested
critical
feature
high
in-progress
low
medium
needs-qa
needs-review
qa-failed
security
security-approved
security-issues
security-review
violation
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: johan/clavitor#11
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
Summary
Populate the currency dropdown from the
currenciestable incorporate.db. Display ~10 "top currencies" first (common/major currencies), followed by the full alphabetical list (~120 total).Database Context
The
currenciestable exists inclavitor.ai/admin/corporate.db:Rates are populated via
go run admin/scripts/fetch_rates.go(Frankfurter API).Top Currencies (display first)
Define as constant/array in code:
API Endpoint Needed
Create in
clavitor.ai/main.go:/api/currencies{ "top": [...], "all": [...] }Frontend Implementation
/api/currencieson page load (or embed in template)Files to Modify
clavitor.ai/main.go— add/api/currenciesendpointclavitor.ai/test-index.html— dynamic currency renderingclavitor.ai/clavitor.css— section headers in dropdownCSS Additions Needed
Implementation Phases
/api/currenciesendpoint that queries DBDepends On
Priority
Medium — enables international pricing display.
Assignee
Emma (backend) / Luna (frontend styling)