fix(swap): use output on switch and tighten error spacing #1566
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!1566
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/swap-status-and-direction"
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?
When switching Swap direction, use the currently displayed receive amount as the new pay draft. Preserve raw precision with the old receive asset’s decimals, including 18-decimal and large amounts; clear unavailable/expired outputs and old denomination-bound consent. Long generated amounts remain editable. The reversed pair receives a separate exact-input quote.
Compact errors on every device use 1.35 leading and inline Expert/Cancel actions, retaining 44px hit areas and keyboard focus. Long errors grow naturally without covering DETAILS. Mobile footer/centering and right-aligned route spacing remain intact.
Validation: issue-1498 186 tests on each run; issue-1500 171 on each run; issue-1497 161; types, focused lint and hooks pass. Source-matched production browser batches cover compact errors at 375/768/1440 widths, geometry/200% text and connected/disconnected paths, touch hit tests, keyboard modal focus and zero serious/critical axe findings. Each test batch capped at 55s. QA docs and agent invariants crosslink exact scope and retained failure/repair evidence.
Follow-up to #1560/#1561. Frontend-only rolling release and read-only live direction-switch checks follow merge. Full repository CI, physical-device and funded acceptance remain separate; keep issues open until all acceptance criteria pass.