fix(swap): use output on switch and tighten error spacing #1566

Merged
PlasticDigits merged 2 commits from fix/swap-status-and-direction into main 2026-10-19 06:15:09 +00:00
Owner

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.

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.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code/cl8y-dex-terraclassic!1566
No description provided.