fix(swap): keep the form stable and consolidate route, fees and signing into DETAILS #1498

Closed
opened 2026-10-14 03:02:18 +00:00 by PlasticDigits · 4 comments
Owner

Problem and why this change is needed

The Swap form shifts vertically when quote loading/errors appear above the input area. Below the inputs, a separate route card, duplicate network fee rows, two independent disclosures and technical explanatory copy consume space. A valid disconnected-wallet quote can show no minimum return. The information is difficult to scan and changing quote state changes the card's structure. Bundle these layout, disclosure, alignment and minimum-return presentation defects in one implementation.

Investigation baseline: reviewed repository HEAD (efb5fba29d3dc401d0d026d8b683db8054458920) (2026-10-14 UTC). This report is a sanitized technical synthesis. No reporter identity, conversation, supplied screenshot, wallet actor/context digest, credential, private endpoint or workstation information is attached. Reported live symptoms are distinguished from independently observed/source-confirmed behavior.

Current codebase and confirmed findings

  • frontend-dapp/src/pages/SwapPage.tsx:1703–1777 renders outage, pricing progress and quote failures before the inputs; line 1718 conditionally inserts QuoteDataLoadingProgress. The upper input position therefore depends on quote state.
  • Lines 2058–2075 clear the receive value while calculating and insert “Quote only”. showQuoteOnly comes from disconnected-wallet acquire guidance, not a distinct quote economic model.
  • Lines 2145–2355 conditionally mount a card-glass route section, a visible “Route” heading, a compact TerraClassicTxFeeHint, and a separate “Trade details” disclosure. A second TerraClassicTxFeeHint appears inside that disclosure at line 2239.
  • Lines 2251 and 2280–2345 include wallet fee override advice, wrapping implementation copy and inconsistent label/value layouts. Lines 2404–2441 mount a separate “Signing details” disclosure containing SwapPreSubmitSummary.
  • Both the visible minimum row (line 2159) and minReceiveHuman passed to the signing summary (line 2435) are gated on !showQuoteOnly. Consequently a valid anonymous quote deliberately renders “Min return —”, even though the executable quote contains a checked positive floor.
  • Relevant supporting files: components/swap/SwapPreSubmitSummary.tsx, components/common/TerraClassicTxFeeHint.tsx, components/ui/TokenLogo.tsx, components/QuoteDataLoadingProgress.tsx, utils/swapPayAcquireGuidance.ts, hooks/useSubmitAlignedSimQuote.ts, utils/rawAmountMath.ts, services/terraclassic/swapNetworkFee.ts, services/terraclassic/offlineSwapBudget.ts (paths relative to frontend-dapp/src). Existing tests include pages/SwapPage.test.tsx, components/swap/__tests__/SwapPreSubmitSummary.test.tsx and fee-hint/network-fee tests.

Independent investigation evidence (2026-10-14 UTC)

A bounded anonymous live phone observation of native USTC→CL8Y at 132 units ran from approximately 02:29:41–02:30:16 UTC at 390×844. In 225 samples across 35,054ms, receive output changed nine times and loading toggled eight times. Four settled→blank/loading→settled cycles returned the identical 1.088581125941251074 CL8Y amount. The Pay input's top position alternated between 266px and 290px; route and both existing DETAILS sections disappeared during each wait. Seventeen samples had blank receive. There was no unsupported notice in this specific phone window. This is a fresh independent UI reproduction of quote flicker and 24px displacement, not proof of the original historical cohort or its cause.

A separate bounded backend probe admitted 17 anonymous GETs (15 quotes and two attempted health reads) over at least 185s. It used 5% quote-relative protection and maker cap 8 with native pool-only behavior. Native USTC→CL8Y (132), CL8Y→USTC (132), and CL8Y→cLUNC (13) produced 12 validated positive quote responses. CL8Y→USTC changed from validated HTTP200 at phases 0/10/25/90s to typed HTTP422 unsupported_semantics at phase 185s (02:28:35 UTC). Two USTC quote reads had no response in the probe transport; they are retained as probe failures, not called product rejections. The API result demonstrates an intermittent backend outcome under this observation window; it does not establish whether the final negative was authoritative, stale admission state or configuration recovery failure.

Limits retained: initial browser setup timed out before samples; the next attempt completed phone sampling but timed out in desktop setup. Both timed-out attempts remain failed/incomplete and are not desktop coverage; the separately recorded desktop retest below supplies a later completed observation. The initial health reads used the wrong API path, leaving contemporaneous deployed revision unverified; a separate official read-only artifact attester was stopped after its bounded investigation window and did not establish frontend/root provenance. A later public /health read reported backend efb5fba29d3dc401d0d026d8b683db8054458920; it is backend-only and later than the samples. No request included an actor, no provider access or wallet signing was permitted, and no screenshot or conversation was published. Browser observations are DOM samples rather than independent validation of every intercepted response; investigate the expiry/publication race before claiming a root cause.

A separately retained desktop retest completed 200 DOM samples over 35,143ms for CL8Y→USTC at 132 units (1280×900, approximately 02:35:55–02:36:31 UTC). It initially displayed 14080.882263 USTC, briefly switched to loading/blank and recovered the same amount, then rendered “This trade is not supported by current pricing.” That notice disappeared and returned while the receive remained blank. Across the window there were four receive/loading/price-notice switches, three unsupported-notice switches, 146 blank-receive samples and 135 unsupported-notice samples; Pay moved between 278px and 336px (58px). The retest admitted 73 reads, blocked five disallowed requests and completed with no setup error. The initial failed desktop attempt remains retained; this new successful observation does not erase it. These are real current UI transitions, but DOM sampling alone cannot determine whether a later backend negative was legitimate.

Relevant source links: SwapPage.tsx, SwapPreSubmitSummary.tsx, TerraClassicTxFeeHint.tsx.

Keep one Swap card in this order:

SWAP                       SHARE   SETTINGS
YOU PAY     [token picker]
[amount]
YOU RECEIVE [token picker]
[amount]
[Slippage %] [Fee %] [token/icon → token/icon → token/icon]
[✓ None | ✕ specific current error]
DETAILS ▼
[CONNECT WALLET / SWAP]
  1. Keep the header and input area at a stable position and height through initial loading, same-intent refresh, recovery and failures. Remove quote/loading/error insertions above the inputs. Explicitly opening Settings may change layout; automatic quote updates may not.
  2. Reserve one compact summary row immediately below the input area. Render slippage, trading fee and actual selected tokens/icons on one line, without a “ROUTE” heading or separate route card. Replace the contents with an equal-height accessible indeterminate “Loading price” bar while initial/new-intent pricing is unresolved. Same-intent fresh background refresh must not replace settled summary data solely because isFetching is true.
  3. Reserve one error/status area with identical height for “✓ None” and “✕ current actionable error”. Wait states must not masquerade as unsupported trades or signing readiness. Bound copy; accommodate accessible multi-line messages within the reserved envelope and 200% text zoom. Keep the input position stable and avoid clipped text.
  4. Merge trade and signing information into exactly one keyboard-accessible DETAILS disclosure. Preserve its open state across same-intent refreshes; do not remount it when a quote updates. Show trading/wrapper/tax costs, one network fee estimate, slippage protection, transaction deadline, positive minimum return with output symbol, action, actual pay/receive, genuine execution contract(s) and chain. Avoid duplicate values/labels where a single checked row suffices. Keep label/value baselines aligned on phone and desktop.
  5. Remove “Quote only”, “If your wallet shows a much larger fee…” and routine “This swap will wrap your tokens” copy. Retain any separately required exchange-deposit/trust/risk acknowledgement. Move legitimate fee guidance into actionable fee state rather than advising arbitrary wallet overrides.
  6. Show the checked quoted minimum even while disconnected when a supported current quote provides it. Derive it from the canonical quote/submit-plan net floor, including wrap/unwrap and receive-target constraints. Revalidate actor-bound data after connection; anonymous display never grants execution permission. In unresolved or expired states, retain the row with a truthful unavailable/pending value rather than inventing a floor.

Slippage/fee meanings are handled by the linked metric issue; quote lifetime/recovery by the linked lifecycle issue. Do not reproduce those algorithms in the layout component.

Constraints and guardrails

The new layout explicitly supersedes older guidance requiring a separate route card, “Trade details”/“Signing details” labels and pricing banners above the form. Update docs/frontend.md, docs/swap-max-spread-ux.md and applicable agent guidance so it no longer conflicts with this requirement. Preserve all independent execution controls: original expiry/intent/generation/actor binding; positive upward-rounded post-hook/final floors; quote-relative policy; exact gross funding; fee/Max/native reserve parity; 5/30/99 controls; pause/freeze/blacklist/launch guards; required risk acknowledgement; no automatic signing/resend. Local quote/review/preparation must remain offline. Network gas is a separate LUNC cost, shown once in DETAILS and excluded from order slippage.

Acceptance criteria

  • AC1: The specified card order is implemented. No quote-driven loading/error content appears above Pay/Receive. The input area does not move during quote state changes.
  • AC2: The one-line slippage/fee/token route row and its loading replacement have matching height. The actual execution identities/route order are represented; full bounded routes remain accessible on narrow screens without horizontal page overflow.
  • AC3: One fixed-height error/status area renders a check plus “None” or a cross plus truthful current failure. Text is accessible and cannot overlap inputs or CTA.
  • AC4: Exactly one DETAILS toggle exists, preserves expansion during refresh, and contains one network fee row and a checked minimum return for every supported current quote, including disconnected quotes. No removed technical copy or separate route card remains.
  • AC5: Slippage protection labels/values align; Settings, Share, token selection, amount editing, direction flip, deadline editing, keyboard navigation and CTA remain functional.
  • AC6: Displayed route, minimum, fees and reviewed signing operations all refer to the same exact quote/plan. Moving or removing UI elements cannot bypass any signing guard.

Test plan for all paths

Path group Required checks
Quote states Empty/zero/dust; first load; success; delayed same-intent refresh; missing/stale data; typed rejection; transport/client-validation failure; manual retry; recovery; original expiry; obsolete response after edit. Assert bounding rectangles, row heights and persistent DETAILS state, not snapshots alone.
Execution shapes Direct pool, supported hybrid/manual split, multihop, native wrap-enter/unwrap-exit, direct wrap/unwrap, mixed 6/18/9/12 decimals and supported receive sizing. Check selected route, quoted net/minimum and cost denomination. Explicitly unsupported shapes stay blocked.
Wallet/UI Disconnected, connected fixture, insufficient principal/native fee, Max, account/tier change, Settings open/closed, Share/deep links, flip, mobile 320/390/430px, desktop, large text, keyboard/screen-reader and reduced-motion behavior.
Review/submission Confirm/cancel, >5% consent, >30% Expert, ≥99% refusal; stale/expired/context-mutated quote; unknown budget, signed-fee mismatch, sequence error and uncertain/included failure. No extra signing or resend.

Attack, hack and abuse test plan

Attempt spoofed token symbols/long labels, missing or hostile logos, HTML/script-bearing API errors, malicious contract/explorer URLs and repeated assets. UI must use escaped bounded allowlisted copy, real execution identities and safe URL handling. Attempt forged quote floors/fees, malformed/overflow decimals, same-symbol identity substitution, expired quote reuse, A→B→A response races and account/context replay; no display simplification or green “None” can make these executable. Flood rapid edits and disclosure toggles to verify cancellation, bounded requests, no duplicate submits, retained focus and no hidden controls. Exercise all genuine pause/freeze/blacklist/tax/hook/unknown-budget refusals after rendering changes.

Verification criteria

Run meaningful component/geometry/accessibility tests, typecheck and applicable make verify-issue-1480, 1473, 1452, 1483, 1489; repeat final stable source. Use only owned disposable DB/chain fixtures. Test the actual production build on desktop/phone over multiple refresh/expiry cycles; separately attest deployed frontend/backend/root artifacts for live claims. Baseline passing tests describe the old layout, not acceptance of this redesign. Complete feasible checks first; unavailable workflow holds/device/deployment prerequisites do not block implementation or issue filing. Mark unavailable acceptance explicitly, retain every executed failure, and never remove runtime safety controls to satisfy the visual design.

Follow-up to #1473 (quote outcomes), #1480 (offline fees), #1483 (economic explanation) and #1489 (refresh/adoption). Implement alongside #1499 for quote lifecycle and #1500 for metric semantics. This issue owns layout/disclosure/geometry, not those algorithms. Advanced Trade entry/navigation is outside this redesign; preserve the independent #1497 work.

Completed baseline verification and retained limits

Unchanged reviewed source efb5fba29d3dc401d0d026d8b683db8054458920; independent first/retest checks on 2026-10-14 UTC. Owned disposable Postgres had a dedicated QA role/admin-owned marked control database and fresh per-process child databases; its containers were removed. The final repository working tree is clean. These are baseline investigation checks, not implementation/acceptance of this issue.

Command Final observed result Scope
make verify-issue-1483 PASS WITH SKIPS: 21 PASS, 0 FAIL, 2 SKIP Attribution/ranking/validation/components/types; funded and deployed acceptance separate.
make verify-issue-1489 PASS WITH SKIPS: 20 PASS, 0 FAIL, 2 SKIP Producer/discovery/adoption/resource regressions; deployed/funded scope separate.
make verify-issue-1480 PASS WITH SKIPS: 10 PASS, 0 FAIL, 3 SKIP Offline budget/fee/native-balance/signing guards; owned funded calibration and physical signing unverified.
make verify-issue-1473 corrected, scoped retest PASS WITH SKIPS: 17 PASS, 0 FAIL, 2 SKIP Full named source/socket/frontend groups; 482 frontend tests in each internal first/retest. Browser fixture explicitly limited to 120 rows per viewport at 5% protection, private output, truncated:true; not the full matrix.
make verify-issue-1452 final full local run PASS: 14 PASS, 0 FAIL, 0 SKIP Named local source/socket/frontend/controlled-browser/types checks, including 518 frontend tests in each first/retest; deployed/funded acceptance remains separate.

The scoped #1473 production-build browser fixture completed 240 rows across desktop/phone: 220 useful quotes, 20 typed blockers, zero fixture failures, 114 quote requests and zero provider requests. Its original-input-through-render useful timing was p50/p95/p99/max 89.7/149.1/166.7/169.8ms against 750ms. Directions actually exercised were UST1→CL8Y, CL8Y→UST1 and USTC→CL8Y at 5%; no complete pair/protection corpus is claimed. The fixture uses synthetic pinned pool economics and zero-fee native wrappers, not production settlement or nonzero-wrapper-cost acceptance.

Retained failures: the initial #1473 run finished FAIL (14 PASS, 3 FAIL, 2 SKIP). Two configured-default fixture assertions failed in both first/retest (480/482 frontend tests passed); explicit fixture-aligned CL8Y configuration subsequently passed all 482 twice, plus a standalone 16-test retest. The initial full browser attempt failed writing its receipt with ENOSPC; its generated truncated QA file was restored from a pre-run backup. The initial #1452 run was interrupted during the disk-space incident; the later full local run above is separate. Passing later/subset tests do not erase these failures or certify the failed full browser matrix. No shared build/user data was deleted to obtain a pass.

Live evidence remains narrower: the anonymous API sample has 12 useful responses, one typed unsupported outcome and two no-response probe failures. One useful HTTP duration was 849.278ms (above the separate 500ms target); transport classes were not captured, so this is retained rather than claimed as initialized socket acceptance. Phone/desktop live DOM transitions reproduce the presentation failures but do not independently validate every response. Initial browser setup/timeouts and the stopped independent deployment attester remain failed/incomplete; a later public health read matches the reviewed backend SHA only. Exact frontend/root/contracts, full sustained live matrix, physical wallets and funded execution remain unverified. No incomplete acceptance criterion is checked, and related open issues are not closed by these source passes.

## Problem and why this change is needed The Swap form shifts vertically when quote loading/errors appear above the input area. Below the inputs, a separate route card, duplicate network fee rows, two independent disclosures and technical explanatory copy consume space. A valid disconnected-wallet quote can show no minimum return. The information is difficult to scan and changing quote state changes the card's structure. Bundle these layout, disclosure, alignment and minimum-return presentation defects in one implementation. Investigation baseline: [reviewed repository HEAD](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/efb5fba29d3dc401d0d026d8b683db8054458920) (`efb5fba29d3dc401d0d026d8b683db8054458920`) (2026-10-14 UTC). This report is a sanitized technical synthesis. No reporter identity, conversation, supplied screenshot, wallet actor/context digest, credential, private endpoint or workstation information is attached. Reported live symptoms are distinguished from independently observed/source-confirmed behavior. ## Current codebase and confirmed findings - `frontend-dapp/src/pages/SwapPage.tsx:1703–1777` renders outage, pricing progress and quote failures before the inputs; line 1718 conditionally inserts `QuoteDataLoadingProgress`. The upper input position therefore depends on quote state. - Lines 2058–2075 clear the receive value while calculating and insert “Quote only”. `showQuoteOnly` comes from disconnected-wallet acquire guidance, not a distinct quote economic model. - Lines 2145–2355 conditionally mount a `card-glass` route section, a visible “Route” heading, a compact `TerraClassicTxFeeHint`, and a separate “Trade details” disclosure. A second `TerraClassicTxFeeHint` appears inside that disclosure at line 2239. - Lines 2251 and 2280–2345 include wallet fee override advice, wrapping implementation copy and inconsistent label/value layouts. Lines 2404–2441 mount a separate “Signing details” disclosure containing `SwapPreSubmitSummary`. - Both the visible minimum row (line 2159) and `minReceiveHuman` passed to the signing summary (line 2435) are gated on `!showQuoteOnly`. Consequently a valid anonymous quote deliberately renders “Min return —”, even though the executable quote contains a checked positive floor. - Relevant supporting files: `components/swap/SwapPreSubmitSummary.tsx`, `components/common/TerraClassicTxFeeHint.tsx`, `components/ui/TokenLogo.tsx`, `components/QuoteDataLoadingProgress.tsx`, `utils/swapPayAcquireGuidance.ts`, `hooks/useSubmitAlignedSimQuote.ts`, `utils/rawAmountMath.ts`, `services/terraclassic/swapNetworkFee.ts`, `services/terraclassic/offlineSwapBudget.ts` (paths relative to `frontend-dapp/src`). Existing tests include `pages/SwapPage.test.tsx`, `components/swap/__tests__/SwapPreSubmitSummary.test.tsx` and fee-hint/network-fee tests. ## Independent investigation evidence (2026-10-14 UTC) A bounded anonymous live phone observation of native USTC→CL8Y at 132 units ran from approximately 02:29:41–02:30:16 UTC at 390×844. In 225 samples across 35,054ms, receive output changed nine times and loading toggled eight times. Four settled→blank/loading→settled cycles returned the identical `1.088581125941251074 CL8Y` amount. The Pay input's top position alternated between 266px and 290px; route and both existing DETAILS sections disappeared during each wait. Seventeen samples had blank receive. There was no unsupported notice in this specific phone window. This is a fresh independent UI reproduction of quote flicker and 24px displacement, not proof of the original historical cohort or its cause. A separate bounded backend probe admitted 17 anonymous GETs (15 quotes and two attempted health reads) over at least 185s. It used 5% quote-relative protection and maker cap 8 with native pool-only behavior. Native USTC→CL8Y (132), CL8Y→USTC (132), and CL8Y→cLUNC (13) produced 12 validated positive quote responses. CL8Y→USTC changed from validated HTTP200 at phases 0/10/25/90s to typed HTTP422 `unsupported_semantics` at phase 185s (02:28:35 UTC). Two USTC quote reads had no response in the probe transport; they are retained as probe failures, not called product rejections. The API result demonstrates an intermittent backend outcome under this observation window; it does not establish whether the final negative was authoritative, stale admission state or configuration recovery failure. Limits retained: initial browser setup timed out before samples; the next attempt completed phone sampling but timed out in desktop setup. Both timed-out attempts remain failed/incomplete and are not desktop coverage; the separately recorded desktop retest below supplies a later completed observation. The initial health reads used the wrong API path, leaving contemporaneous deployed revision unverified; a separate official read-only artifact attester was stopped after its bounded investigation window and did not establish frontend/root provenance. A later public `/health` read reported backend `efb5fba29d3dc401d0d026d8b683db8054458920`; it is backend-only and later than the samples. No request included an actor, no provider access or wallet signing was permitted, and no screenshot or conversation was published. Browser observations are DOM samples rather than independent validation of every intercepted response; investigate the expiry/publication race before claiming a root cause. A separately retained desktop retest completed 200 DOM samples over 35,143ms for CL8Y→USTC at 132 units (1280×900, approximately 02:35:55–02:36:31 UTC). It initially displayed `14080.882263 USTC`, briefly switched to loading/blank and recovered the same amount, then rendered “This trade is not supported by current pricing.” That notice disappeared and returned while the receive remained blank. Across the window there were four receive/loading/price-notice switches, three unsupported-notice switches, 146 blank-receive samples and 135 unsupported-notice samples; Pay moved between 278px and 336px (58px). The retest admitted 73 reads, blocked five disallowed requests and completed with no setup error. The initial failed desktop attempt remains retained; this new successful observation does not erase it. These are real current UI transitions, but DOM sampling alone cannot determine whether a later backend negative was legitimate. Relevant source links: [SwapPage.tsx](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/efb5fba29d3dc401d0d026d8b683db8054458920/frontend-dapp/src/pages/SwapPage.tsx), [SwapPreSubmitSummary.tsx](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/efb5fba29d3dc401d0d026d8b683db8054458920/frontend-dapp/src/components/swap/SwapPreSubmitSummary.tsx), [TerraClassicTxFeeHint.tsx](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/efb5fba29d3dc401d0d026d8b683db8054458920/frontend-dapp/src/components/common/TerraClassicTxFeeHint.tsx). ## Recommended implementation and required layout Keep one Swap card in this order: ```text SWAP SHARE SETTINGS YOU PAY [token picker] [amount] YOU RECEIVE [token picker] [amount] [Slippage %] [Fee %] [token/icon → token/icon → token/icon] [✓ None | ✕ specific current error] DETAILS ▼ [CONNECT WALLET / SWAP] ``` 1. Keep the header and input area at a stable position and height through initial loading, same-intent refresh, recovery and failures. Remove quote/loading/error insertions above the inputs. Explicitly opening Settings may change layout; automatic quote updates may not. 2. Reserve one compact summary row immediately below the input area. Render slippage, trading fee and actual selected tokens/icons on one line, without a “ROUTE” heading or separate route card. Replace the contents with an equal-height accessible indeterminate “Loading price” bar while initial/new-intent pricing is unresolved. Same-intent fresh background refresh must not replace settled summary data solely because `isFetching` is true. 3. Reserve one error/status area with identical height for “✓ None” and “✕ current actionable error”. Wait states must not masquerade as unsupported trades or signing readiness. Bound copy; accommodate accessible multi-line messages within the reserved envelope and 200% text zoom. Keep the input position stable and avoid clipped text. 4. Merge trade and signing information into exactly one keyboard-accessible `DETAILS` disclosure. Preserve its open state across same-intent refreshes; do not remount it when a quote updates. Show trading/wrapper/tax costs, one network fee estimate, slippage protection, transaction deadline, positive minimum return with output symbol, action, actual pay/receive, genuine execution contract(s) and chain. Avoid duplicate values/labels where a single checked row suffices. Keep label/value baselines aligned on phone and desktop. 5. Remove “Quote only”, “If your wallet shows a much larger fee…” and routine “This swap will wrap your tokens” copy. Retain any separately required exchange-deposit/trust/risk acknowledgement. Move legitimate fee guidance into actionable fee state rather than advising arbitrary wallet overrides. 6. Show the checked quoted minimum even while disconnected when a supported current quote provides it. Derive it from the canonical quote/submit-plan net floor, including wrap/unwrap and receive-target constraints. Revalidate actor-bound data after connection; anonymous display never grants execution permission. In unresolved or expired states, retain the row with a truthful unavailable/pending value rather than inventing a floor. Slippage/fee meanings are handled by the linked metric issue; quote lifetime/recovery by the linked lifecycle issue. Do not reproduce those algorithms in the layout component. ## Constraints and guardrails The new layout explicitly supersedes older guidance requiring a separate route card, “Trade details”/“Signing details” labels and pricing banners above the form. Update `docs/frontend.md`, `docs/swap-max-spread-ux.md` and applicable agent guidance so it no longer conflicts with this requirement. Preserve all independent execution controls: original expiry/intent/generation/actor binding; positive upward-rounded post-hook/final floors; quote-relative policy; exact gross funding; fee/Max/native reserve parity; 5/30/99 controls; pause/freeze/blacklist/launch guards; required risk acknowledgement; no automatic signing/resend. Local quote/review/preparation must remain offline. Network gas is a separate LUNC cost, shown once in DETAILS and excluded from order slippage. ## Acceptance criteria - [ ] AC1: The specified card order is implemented. No quote-driven loading/error content appears above Pay/Receive. The input area does not move during quote state changes. - [ ] AC2: The one-line slippage/fee/token route row and its loading replacement have matching height. The actual execution identities/route order are represented; full bounded routes remain accessible on narrow screens without horizontal page overflow. - [ ] AC3: One fixed-height error/status area renders a check plus “None” or a cross plus truthful current failure. Text is accessible and cannot overlap inputs or CTA. - [ ] AC4: Exactly one DETAILS toggle exists, preserves expansion during refresh, and contains one network fee row and a checked minimum return for every supported current quote, including disconnected quotes. No removed technical copy or separate route card remains. - [ ] AC5: Slippage protection labels/values align; Settings, Share, token selection, amount editing, direction flip, deadline editing, keyboard navigation and CTA remain functional. - [ ] AC6: Displayed route, minimum, fees and reviewed signing operations all refer to the same exact quote/plan. Moving or removing UI elements cannot bypass any signing guard. ## Test plan for all paths | Path group | Required checks | | --- | --- | | Quote states | Empty/zero/dust; first load; success; delayed same-intent refresh; missing/stale data; typed rejection; transport/client-validation failure; manual retry; recovery; original expiry; obsolete response after edit. Assert bounding rectangles, row heights and persistent DETAILS state, not snapshots alone. | | Execution shapes | Direct pool, supported hybrid/manual split, multihop, native wrap-enter/unwrap-exit, direct wrap/unwrap, mixed 6/18/9/12 decimals and supported receive sizing. Check selected route, quoted net/minimum and cost denomination. Explicitly unsupported shapes stay blocked. | | Wallet/UI | Disconnected, connected fixture, insufficient principal/native fee, Max, account/tier change, Settings open/closed, Share/deep links, flip, mobile 320/390/430px, desktop, large text, keyboard/screen-reader and reduced-motion behavior. | | Review/submission | Confirm/cancel, >5% consent, >30% Expert, ≥99% refusal; stale/expired/context-mutated quote; unknown budget, signed-fee mismatch, sequence error and uncertain/included failure. No extra signing or resend. | ## Attack, hack and abuse test plan Attempt spoofed token symbols/long labels, missing or hostile logos, HTML/script-bearing API errors, malicious contract/explorer URLs and repeated assets. UI must use escaped bounded allowlisted copy, real execution identities and safe URL handling. Attempt forged quote floors/fees, malformed/overflow decimals, same-symbol identity substitution, expired quote reuse, A→B→A response races and account/context replay; no display simplification or green “None” can make these executable. Flood rapid edits and disclosure toggles to verify cancellation, bounded requests, no duplicate submits, retained focus and no hidden controls. Exercise all genuine pause/freeze/blacklist/tax/hook/unknown-budget refusals after rendering changes. ## Verification criteria Run meaningful component/geometry/accessibility tests, typecheck and applicable `make verify-issue-1480`, `1473`, `1452`, `1483`, `1489`; repeat final stable source. Use only owned disposable DB/chain fixtures. Test the actual production build on desktop/phone over multiple refresh/expiry cycles; separately attest deployed frontend/backend/root artifacts for live claims. Baseline passing tests describe the old layout, not acceptance of this redesign. Complete feasible checks first; unavailable workflow holds/device/deployment prerequisites do not block implementation or issue filing. Mark unavailable acceptance explicitly, retain every executed failure, and never remove runtime safety controls to satisfy the visual design. ## Related work Follow-up to #1473 (quote outcomes), #1480 (offline fees), #1483 (economic explanation) and #1489 (refresh/adoption). Implement alongside [#1499](https://git.cl8y.com/code/cl8y-dex-terraclassic/issues/1499) for quote lifecycle and [#1500](https://git.cl8y.com/code/cl8y-dex-terraclassic/issues/1500) for metric semantics. This issue owns layout/disclosure/geometry, not those algorithms. Advanced Trade entry/navigation is outside this redesign; preserve the independent #1497 work. ## Completed baseline verification and retained limits Unchanged reviewed source `efb5fba29d3dc401d0d026d8b683db8054458920`; independent first/retest checks on 2026-10-14 UTC. Owned disposable Postgres had a dedicated QA role/admin-owned marked control database and fresh per-process child databases; its containers were removed. The final repository working tree is clean. These are baseline investigation checks, not implementation/acceptance of this issue. | Command | Final observed result | Scope | | --- | --- | --- | | `make verify-issue-1483` | PASS WITH SKIPS: 21 PASS, 0 FAIL, 2 SKIP | Attribution/ranking/validation/components/types; funded and deployed acceptance separate. | | `make verify-issue-1489` | PASS WITH SKIPS: 20 PASS, 0 FAIL, 2 SKIP | Producer/discovery/adoption/resource regressions; deployed/funded scope separate. | | `make verify-issue-1480` | PASS WITH SKIPS: 10 PASS, 0 FAIL, 3 SKIP | Offline budget/fee/native-balance/signing guards; owned funded calibration and physical signing unverified. | | `make verify-issue-1473` corrected, scoped retest | PASS WITH SKIPS: 17 PASS, 0 FAIL, 2 SKIP | Full named source/socket/frontend groups; 482 frontend tests in each internal first/retest. Browser fixture explicitly limited to 120 rows per viewport at 5% protection, private output, `truncated:true`; not the full matrix. | | `make verify-issue-1452` final full local run | PASS: 14 PASS, 0 FAIL, 0 SKIP | Named local source/socket/frontend/controlled-browser/types checks, including 518 frontend tests in each first/retest; deployed/funded acceptance remains separate. | The scoped #1473 production-build browser fixture completed 240 rows across desktop/phone: 220 useful quotes, 20 typed blockers, zero fixture failures, 114 quote requests and zero provider requests. Its original-input-through-render useful timing was p50/p95/p99/max 89.7/149.1/166.7/169.8ms against 750ms. Directions actually exercised were UST1→CL8Y, CL8Y→UST1 and USTC→CL8Y at 5%; no complete pair/protection corpus is claimed. The fixture uses synthetic pinned pool economics and zero-fee native wrappers, not production settlement or nonzero-wrapper-cost acceptance. Retained failures: the initial #1473 run finished **FAIL (14 PASS, 3 FAIL, 2 SKIP)**. Two configured-default fixture assertions failed in both first/retest (480/482 frontend tests passed); explicit fixture-aligned CL8Y configuration subsequently passed all 482 twice, plus a standalone 16-test retest. The initial full browser attempt failed writing its receipt with `ENOSPC`; its generated truncated QA file was restored from a pre-run backup. The initial #1452 run was interrupted during the disk-space incident; the later full local run above is separate. Passing later/subset tests do not erase these failures or certify the failed full browser matrix. No shared build/user data was deleted to obtain a pass. Live evidence remains narrower: the anonymous API sample has 12 useful responses, one typed unsupported outcome and two no-response probe failures. One useful HTTP duration was 849.278ms (above the separate 500ms target); transport classes were not captured, so this is retained rather than claimed as initialized socket acceptance. Phone/desktop live DOM transitions reproduce the presentation failures but do not independently validate every response. Initial browser setup/timeouts and the stopped independent deployment attester remain failed/incomplete; a later public health read matches the reviewed backend SHA only. Exact frontend/root/contracts, full sustained live matrix, physical wallets and funded execution remain unverified. No incomplete acceptance criterion is checked, and related open issues are not closed by these source passes.
Author
Owner

Implementation merged in PR #1501, main revision 9dfa373f989ca9684c00ce40bc0525265243dfe9 (2026-10-14 UTC). Woodpecker PR pipeline #456 passed, including secrets, contracts, full frontend, indexer library/Postgres and required functional checks.

Completed source/local scope:

  • Restore genuine advanced Trade entry and stable active-navigation history.
  • One stable Swap summary/status and DETAILS disclosure, positive anonymous minimum and one separate LUNC network fee.
  • Original-cohort unexpired retention, original expiry/recovery and missing-versus-unsupported producer classification.
  • Independent signed fee-free pool/book metrics, original maker-term binding and separate fees/costs/fair-reference safeguards.
  • Relevant source verifiers, meaningful first/retest fixtures, 4,250 complete controlled desktop/phone rows (zero failures/provider RPC), funded pool/native/tax/invoice checks, docs and agent invariants.
  • Exact deployed artifact/live sustained acceptance: Coolify deployment and final probes are now running.
  • Complete physical-wallet/production settlement and unmeasured funded/shape scopes: remain separate and unclaimed.

Individual acceptance criteria are not closed by this shared source summary. Evidence, retained failures and remaining scope and the individual QA checklists are included in main. The initial documentation/owned-fixture failures were corrected and retested; prior failures remain recorded. Final issue-specific live results will follow; this issue remains open until all body/comment criteria pass.

Implementation merged in [PR #1501](https://git.cl8y.com/code/cl8y-dex-terraclassic/pulls/1501), main revision `9dfa373f989ca9684c00ce40bc0525265243dfe9` (2026-10-14 UTC). Woodpecker PR pipeline #456 passed, including secrets, contracts, full frontend, indexer library/Postgres and required functional checks. Completed source/local scope: - [x] Restore genuine advanced Trade entry and stable active-navigation history. - [x] One stable Swap summary/status and DETAILS disclosure, positive anonymous minimum and one separate LUNC network fee. - [x] Original-cohort unexpired retention, original expiry/recovery and missing-versus-unsupported producer classification. - [x] Independent signed fee-free pool/book metrics, original maker-term binding and separate fees/costs/fair-reference safeguards. - [x] Relevant source verifiers, meaningful first/retest fixtures, 4,250 complete controlled desktop/phone rows (zero failures/provider RPC), funded pool/native/tax/invoice checks, docs and agent invariants. - [ ] Exact deployed artifact/live sustained acceptance: Coolify deployment and final probes are now running. - [ ] Complete physical-wallet/production settlement and unmeasured funded/shape scopes: remain separate and unclaimed. Individual acceptance criteria are not closed by this shared source summary. [Evidence, retained failures and remaining scope](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/main/docs/qa/trading-1497-1500/RESULTS.md) and the individual QA checklists are included in main. The initial documentation/owned-fixture failures were corrected and retested; prior failures remain recorded. Final issue-specific live results will follow; this issue remains open until all body/comment criteria pass.
Author
Owner

Producer follow-up PR #1502 is merged into main 14055610ebe86fd3640ff85e8adc15e16785c6dd; required CI #458 passed all eight steps. Main and the feature worktree are synchronized.

  • Independent scheduled tax/router/denom observations preserve completed fields when an unrelated read times out. Mapper/treasury capabilities use the same bounded rule.
  • Original two-second phases, two permits/four RPS, eight-second outer deadline, original freshness, offline requests and fail-closed signing remain enforced.
  • Thirteen producer tests and the real LCD shared-budget check pass first/retest; broader lifecycle/attribution/provider source/socket checks pass available scopes.
  • The exact controlled-browser step passes fresh first/retest (40 samples each; maxima 49.9/48.0ms below unchanged 250ms). The earlier full #1452 command remains recorded as FAIL for its isolated 401.2ms transport/scheduling sample; it was not relabeled or hidden.
  • New deployment/live first/retest: Coolify deployment is in progress. The earlier 9dfa live latency and unresolved observer/readiness failures remain recorded separately.
  • Complete physical-wallet, contract/oracle and all-family acceptance: remaining scope stays unchecked.

See release results and invariant links. This is source/CI completion, not a claim that every issue criterion passed. Final issue-specific live results will follow; the issues remain open.

Producer follow-up [PR #1502](https://git.cl8y.com/code/cl8y-dex-terraclassic/pulls/1502) is merged into main `14055610ebe86fd3640ff85e8adc15e16785c6dd`; required [CI #458](https://ci.cl8y.com/repos/7/pipeline/458/1) passed all eight steps. Main and the feature worktree are synchronized. - [x] Independent scheduled tax/router/denom observations preserve completed fields when an unrelated read times out. Mapper/treasury capabilities use the same bounded rule. - [x] Original two-second phases, two permits/four RPS, eight-second outer deadline, original freshness, offline requests and fail-closed signing remain enforced. - [x] Thirteen producer tests and the real LCD shared-budget check pass first/retest; broader lifecycle/attribution/provider source/socket checks pass available scopes. - [x] The exact controlled-browser step passes fresh first/retest (40 samples each; maxima 49.9/48.0ms below unchanged 250ms). The earlier full #1452 command remains recorded as FAIL for its isolated 401.2ms transport/scheduling sample; it was not relabeled or hidden. - [ ] New deployment/live first/retest: Coolify deployment is in progress. The earlier 9dfa live latency and unresolved observer/readiness failures remain recorded separately. - [ ] Complete physical-wallet, contract/oracle and all-family acceptance: remaining scope stays unchecked. See [release results and invariant links](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/main/docs/qa/trading-1497-1500/RESULTS.md). This is source/CI completion, not a claim that every issue criterion passed. Final issue-specific live results will follow; the issues remain open.
Author
Owner

Final QA/evidence PR #1503 merged into main 4bd3e8d31485613d6c3ddca62abbac1a1f6e6469; required CI #460 passed all eight steps. Main and the worktree are clean and synchronized with origin/main. Application runtime inputs did not change in this QA-only merge; the actual deployed revision remains the attested 14055610… below.

Fixes merged in PR #1501 and PR #1502. Both Coolify applications finished at independently attested release 14055610ebe86fd3640ff85e8adc15e16785c6dd; required CI pipelines 456/458 each passed all eight steps. Later helper/evidence changes do not claim a newer application deployment.

  • Implemented fixed Pay/Receive → Slippage/Fee/actual route → status → one DETAILS → CTA order, anonymous checked minimum and one separate LUNC network fee.
  • Controlled production-build geometry passes 36/36 across 1440/320/390/430 px, keyboard, 200% text zoom, reduced motion, refresh/negative/missing/recovery/expiry/new intent.
  • Source first/retest, types and affected page/tax/receive regressions pass; displayed/signing cohorts and original safeguards remain enforced.
  • Full deployed AC1–AC6 corpus: sustained live runs retain native readiness/latency and unresolved validation/expiry observer failures. Available geometry/metric checks pass their scopes, not every acceptance criterion.
  • All interactive/wallet/signing scenarios and full economic route families remain separate acceptance.

The card no longer inserts quote messages above inputs or duplicates routine wrapper/network-fee copy. No safety threshold was reduced to obtain a stable layout.

Results, retained failed runs and invariant links. All issue bodies and current comments were reviewed. No complete acceptance claim: this issue stays open for the unchecked scope.

Final QA/evidence [PR #1503](https://git.cl8y.com/code/cl8y-dex-terraclassic/pulls/1503) merged into main `4bd3e8d31485613d6c3ddca62abbac1a1f6e6469`; [required CI #460](https://ci.cl8y.com/repos/7/pipeline/460/1) passed all eight steps. Main and the worktree are clean and synchronized with origin/main. Application runtime inputs did not change in this QA-only merge; the actual deployed revision remains the attested `14055610…` below. Fixes merged in [PR #1501](https://git.cl8y.com/code/cl8y-dex-terraclassic/pulls/1501) and [PR #1502](https://git.cl8y.com/code/cl8y-dex-terraclassic/pulls/1502). Both Coolify applications finished at independently attested release `14055610ebe86fd3640ff85e8adc15e16785c6dd`; required CI pipelines 456/458 each passed all eight steps. Later helper/evidence changes do not claim a newer application deployment. - [x] Implemented fixed Pay/Receive → Slippage/Fee/actual route → status → one DETAILS → CTA order, anonymous checked minimum and one separate LUNC network fee. - [x] Controlled production-build geometry passes 36/36 across 1440/320/390/430 px, keyboard, 200% text zoom, reduced motion, refresh/negative/missing/recovery/expiry/new intent. - [x] Source first/retest, types and affected page/tax/receive regressions pass; displayed/signing cohorts and original safeguards remain enforced. - [ ] Full deployed AC1–AC6 corpus: sustained live runs retain native readiness/latency and unresolved validation/expiry observer failures. Available geometry/metric checks pass their scopes, not every acceptance criterion. - [ ] All interactive/wallet/signing scenarios and full economic route families remain separate acceptance. The card no longer inserts quote messages above inputs or duplicates routine wrapper/network-fee copy. No safety threshold was reduced to obtain a stable layout. [Results, retained failed runs and invariant links](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/main/docs/qa/trading-1497-1500/RESULTS.md). All issue bodies and current comments were reviewed. No complete acceptance claim: this issue stays open for the unchecked scope.
Author
Owner

Closed at the user's request as part of consolidating issues #1449–#1500.

The stable Swap summary/status, single DETAILS disclosure and anonymous minimum are implemented and deployed. Remaining native readiness/recovery failures move to #1504.

Replacement: #1504

Wallet/device chores and verification-only holds are intentionally excluded. Historical failed receipts remain unchanged; this closure does not claim every old acceptance checkbox passed.

Closed at the user's request as part of consolidating issues #1449–#1500. The stable Swap summary/status, single DETAILS disclosure and anonymous minimum are implemented and deployed. Remaining native readiness/recovery failures move to #1504. Replacement: https://git.cl8y.com/code/cl8y-dex-terraclassic/issues/1504 Wallet/device chores and verification-only holds are intentionally excluded. Historical failed receipts remain unchanged; this closure does not claim every old acceptance checkbox passed.
Sign in to join this conversation.
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#1498
No description provided.