feat(frontend): add Compact and Full number display settings #1377
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/cl8y-dex-terraclassic!1377
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-1259-number-display"
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?
What
Add persisted Compact / Full number display chips to retail Swap Settings. Compact remains the first-visit default; Full groups exact human amounts with en-US separators across balances, Charts/Pool volume, Protocol headlines, tape, Tiers, and Portfolio. Mounted and memoized displays update without refetching queries or resetting drafts.
Keep prices independent of the preference and signing amounts always full grouped. Confirmation digits come from the actual raw transaction values, including excess-precision truncation. Inputs remain plain decimals; quote, execute, slippage, Expert, hybrid, freeze/blacklist, and gem-filtering behavior remain unchanged. Limit receive estimates now return plain decimals for numeric calculations, with formatting at the display boundary. Required-gas messages stay full grouped.
Document Q1259-1–Q1259-10 invariants, an agent playbook, and an acceptance/abuse checklist. Add a verifier and real Settings browser smoke with mocked LCD reads. Update reverse-input expectations for plain drafts and correct a stale ALPHA human-pane inversion assertion reproduced on pristine main.
Why
Fixes #1259. The issue's sole comment confirms Compact as default and Full as opt-in. Previously every retail amount formatter abbreviated values without a Settings preference.
Implementation and review instructions: invariants, AC/abuse checklist and evidence, third-party agent playbook.
Testing
Validation on
c4ec8a75:verify-issue-522,553,557,564,565: all passed, including host Cargo and Postgres integration coverage. Used isolateddex_indexer_test_1259after the existing shared test DB reported a migration checksum mismatch; shared data/checksums were not changed.VITE_WC_PROJECT_ID=00000000000000000000000000000000; this validates bundling, not WalletConnect connectivity. Lint passed with zero errors and five existing warnings.Checklist
Agent review: run
make verify-issue-1259; run the full suite withbash scripts/with-node.sh --cwd frontend-dapp -- npm run test:run -- --maxWorkers=5; runmake lint-frontend; then runVERIFY_ISSUE_1259_BROWSER=1 make verify-issue-1259. Follow the linked AC1–AC10 / A1–A8 checklist. Agents may skip unavailable items, record the reason and unverified scope, and mark the overall result PASS with SKIPs when runnable checks pass. A reproducible failed check remains FAIL until fixed and retested. Optional live QA creates no hold.