fix(swap): fit mobile CTA and full route; replace error cards with inline text #1561

Closed
opened 2026-10-19 02:53:41 +00:00 by PlasticDigits · 4 comments
Owner

Problem and desired result

The Swap form wastes enough vertical space on a 375×667 CSS-pixel viewport that the Connect Wallet / Swap action falls below the visible content and behind the fixed bottom navigation. The route is horizontally scrollable and clips its destination on small screens. Errors appear as padded bordered cards with a detached cross above them and unnecessary scrolling.

Bundle these related presentation fixes:

  1. Show one decorative red Unicode cross inline with the error sentence, with readable subdued red text. Remove the detached cross entirely. No dismiss/close control for persistent blocking errors; no padding, border, background or card chrome around the inline error. No horizontal scrollbar. A short message should not produce an internal vertical scrollbar either.
  2. Fit the actual full route to the available mobile width, preferably through CSS sizing/compression rather than a horizontal scrollbar. Keep route order, endpoints, actual wrapper boundaries and accessible identity inspection.
  3. On mobile only, compact the page so the primary action is fully visible and clickable above the fixed bottom bar on 375×667 at normal text size with Settings/DETAILS collapsed. Remove the redundant outer content card and visible Swap heading; reduce input font size, unnecessary padding/margins and input minimum heights, and visually omit redundant You Pay/You Receive labels while keeping accessible labels. Remove the unnecessary gap above the header, respecting real safe-area insets.

Preserve comfortable interaction targets and readable information. The rough layout demonstrates the vertical budget, not a request for cramped concatenated text or a partly covered button. Desktop density/chrome remains unchanged; the inline-error cleanup applies wherever this Swap status is displayed.

Current codebase and investigation

Inspected main at b7b08736; remote main matched during investigation on 2026-10-19. This issue contains sanitized behavior and source facts, without reporter identities, account/wallet information, conversation text, or attachments.

  • frontend-dapp/src/pages/SwapPage.tsx: outer shell-panel-strong !p-5 sm:!p-6; visible Swap heading and mb-4; Pay/Receive use stacked label/picker headers on mobile, !p-4 / receive !pt-6, and text-[1.75rem] mobile amount inputs. Connected balance/Max/fraction actions add further height. Settings/Share, the flip seam, DETAILS and CTA must remain functional.
  • The same file mounts swap-quote-status at h-[6em] overflow-y-auto ... mb-3; a separate aria-hidden cross is emitted before most notices. The screenshot cross is consistent with this decorative span, not an actual dismiss button. Child errors are block elements, so the cross occupies a separate line.
  • frontend-dapp/src/components/swap/SwapImpactAside.tsx and multiple status branches use .alert-error; frontend-dapp/src/index.css defines it with p-3, an 18px radius, border and tinted background. The global class also serves other pages; avoid silently restyling every consumer.
  • frontend-dapp/src/components/swap/SwapQuoteSummary.tsx: fixed h-12 row; Slippage/Fee are shrink-0; route gets remaining width with overflow-x-auto, while its content is inline-flex ... whitespace-nowrap. Individual symbols already truncate at max-w-20; a destination can still remain outside the visible route area.
  • frontend-dapp/src/index.css: mobile header has a 4px top margin; main shell adds 14px top padding; shell/card/control spacing accumulates. .app-mobile-nav-shell is fixed with safe-area padding and a nominal 72px stack.
  • frontend-dapp/src/components/common/Layout.tsx measures the bottom navigation into --app-mobile-nav-stack. Reuse the actual height and visual viewport; padding beneath the page only permits scrolling and does not establish initial CTA visibility.
  • frontend-dapp/src/components/trade/TokenSearchSelect.tsx, components/common/AmountBalanceActions.tsx and token-selector CSS govern shared controls. Scope density overrides to mobile Swap rather than shrinking targets throughout the app.
  • scripts/qa/swap-layout-geometry-1498.cjs tests widths 1440/320/390/430 at height 1000 and checks page overflow/stable geometry. It currently expects a focusable scrolling route and visible None; it does not establish initial action visibility on 375×667 or absence of route/status scrollbars. scripts/qa/browser-local-quotes-1452.cjs supplies an isolated production-build browser fixture.

Relevant policy and tests: skills/AGENTS_SWAP_LAYOUT.md, skills/AGENTS_FRONTEND_A11Y_CI.md, skills/AGENTS_FRONTEND_A11Y_FOCUS.md, skills/AGENTS_FRONTEND_COPY_COGNITIVE_LOAD.md, docs/design-system.md, docs/qa/issue-1498/README.md, SwapQuoteSummary.test.tsx, SwapImpactAside.test.tsx, SwapPage.test.tsx, SwapPage.acquireGuidance.test.tsx, and the swap picker/seam/route-alignment E2E specs.

Source entry points: SwapPage.tsx, SwapQuoteSummary.tsx, index.css.

Why a new implementation is needed

The current implementation deliberately reserves a large status envelope and scrolls the route. Those choices satisfy older layout invariants while making a short-screen trading form harder to use. Redundant containers and labels consume the vertical budget, and the status card makes routine warnings visually dominant. Hiding overflow alone would conceal information; merely adding page bottom padding does not meet the initial-screen action requirement.

  • Add explicit mobile Swap layout hooks and a responsive compact mode. Remove the outer visual shell/heading at the mobile breakpoint, tighten form/control gaps, use smaller readable numeric text (avoid iOS focus zoom), reduce redundant input/control chrome and remove the header's artificial top gap. Keep real safe-area padding. Preserve desktop rendering and other pages unless a separately tested shared header adjustment is intentional.
  • Visually hide redundant field labels with accessible-label/sr-only techniques; retain clear pay/receive roles, names, IDs, input mode and edit behavior. Keep the direction button, Settings, Share, picker, balance/Max and CTA keyboard/touch operable with visible focus. Do not shrink the entire page or disable zoom to fit it.
  • Use a scoped inline-status component/style: one cross in the same text flow as the short error, cross aria-hidden, no independent dismiss control, no padding/border/background. Use theme tokens with sufficient contrast in both themes, no flashing/aggressive emphasis, and word wrapping for long content. Preserve retry, Expert and other necessary actions and persist errors until resolved. Do not globally strip .alert-error styling without auditing its consumers.
  • Keep a compact stable status space across normal automatic quote transitions at each breakpoint; reconcile the old fixed-six-em reservation with this mobile vertical budget. Long/zoomed errors may reflow into normal page scrolling rather than clipping or becoming nested horizontal scrollers. Inputs and focused controls must not jump on routine refresh.
  • Make the route strip fit the width available after Slippage/Fee, preferably with responsive CSS font/icon/gap sizing and flexible/container-aware widths. If actual horizontal scaling is needed, scope it to the noninteractive route content and account for transformed bounds. No overflowing original-width box, page-wide transform, scrollbar hiding, clipped destination or silently dropped intermediate hop. Preserve a readable full-route/identity view in the single DETAILS disclosure when labels/path length require expansion; do not reduce text indefinitely to unreadability or scale interactive targets.
  • Update SL1498-3/SL1498-6 and related QA expectations to explicitly supersede the old oversized status envelope and horizontal-route-scroll prescription. Preserve stable input geometry, one mounted DETAILS, accurate current minimum including disconnected quotes, and one network fee. Coordinate with #1560 warning policy so a below-threshold quote no longer consumes a warning block.
  • Preserve all execution/reference checks and original quote amounts. Formatting or visual truncation must never round the amount used for signing. Keep exact current quote/route/minimum binding, review and expiry, the 30-minute reviewed signing window, offline execution, positive floors, tax/refund accounting, gas/Max parity and no-resend. The primary CTA may be visible but must remain disabled when genuinely blocked.
  • No absolute positioning over errors or fixed-height clipping of the whole form. At enlarged text, open disclosures, software keyboard or shorter visual viewports, allow normal vertical scrolling with enough measured bottom-bar clearance so every action and error remains reachable.

Acceptance criteria

  • AC1: At 375×667 CSS pixels, normal font size and scrollY=0, after quote settlement with Settings/DETAILS collapsed, the entire Connect Wallet CTA and the connected Swap CTA lie inside the visible viewport above the measured bottom-nav top edge, with no occlusion. Test connected balance controls and a concise current warning/error as well as the no-warning state.
  • AC2: Mobile-only compaction removes outer content-card chrome/redundant heading, visibly redundant field labels and excess spacing while retaining accessible pay/receive names, legible amounts, comfortable touch targets and working controls. Header starts at the real safe-area edge. Desktop geometry remains unchanged.
  • AC3: Error text has exactly one inline decorative red cross, subdued accessible red text, no close/dismiss control, no card padding/border/background and no horizontal scrollbar. Long error text wraps; a single short message needs no nested vertical scrollbar. Blockers persist, and retry/review actions and announcements work.
  • AC4: At normal mobile sizes the actual full bounded token route, including its destination and wrapper boundaries, fits the route region without horizontal scrolling, hidden hops or overlap with Slippage/Fee. Long labels have a readable accessible full-route/identity presentation in DETAILS. Loading/unavailable states remain truthful.
  • AC5: No page/route/status horizontal overflow at target widths. Normal quote refresh/loading/error/recovery does not move input controls or lose focus. One persistent DETAILS and one network fee remain.
  • AC6: Keyboard, screen reader, 200% text zoom, reduced motion, portrait/landscape, light/dark themes, picker/modal/keyboard-open states and safe areas have no unreachable/covered CTA or clipped status. At zoom/open-details sizes, vertical reflow is acceptable and all content stays reachable.
  • AC7: Geometry tests explicitly cover 375×667, measure CTA versus nav/visual viewport at initial scroll position, and test internal route/status overflow. Do not substitute Playwright toBeVisible() or tall-viewport screenshots for these measurements.

Test plan: all UI paths

Coverage Required evidence
Viewports 320×568, 375×667, 390×844, 414/430 phone widths, mobile landscape, breakpoint neighbors 767/768 and existing desktop widths. Both themes; safe-area zero/nonzero; text at 100% and 200%; browser chrome/visual viewport changes.
Form state Empty/initial load, settled quote with no notice, low-risk control (3.34% order / 6.91% total), >5 order or >10 total warning, Expert/extreme refusal, pending/review/broadcast/recovery/success and persistent failed submission. Disconnected and connected, low/no balance, fee shortage, Max/fractions, ordinary/very long amounts, receive-exact edits, direction flip.
Data/recovery Delayed initial quote, unchanged fresh refresh, new intent, route promotion, authoritative rejection, unavailable metric/reference, offline/provider outage, retry, expiry, unsupported wrapper, paused/frozen/restricted/rate-limited/funding-blocked states. Status stays accurate and reachable; never enables unsafe submit.
Route shapes Direct, native wrap/unwrap boundaries, 2/3/4 execution hops and all allowed extra displayed wrapper boundaries, repeated similar symbols, long symbols, missing/broken logos and identities not in the registry. Exact displayed order must match selected operations.
Controls Share/Settings, keyboard/pointer picker open/close, direction seam, input caret/selection, balance/Max, DETAILS expand/collapse and focus retention, connect modal, wallet actions, retry/Expert controls and software keyboard. The compact layout must not obscure menus behind the bottom bar.
Geometry/a11y Measure CTA rect top/bottom versus visual viewport and nav top, and use hit testing at CTA center/edges to detect overlays. Measure page/route/status scrollWidth versus clientWidth, text bounds and overlap. Check focus rings/touch targets, meaningful names, one live announcement per transition and persistent error text; axe has zero serious/critical violations.

Test plan: attacks, hacks and abuse

  • Supply extremely long/unbroken/Unicode/RTL token labels, HTML-like names, identical spoofed symbols, missing logos and unexpected error strings. Text stays escaped, layout bounded, canonical identities inspectable, and actual route is not replaced by a misleading shortened path. No CSS/HTML/script injection.
  • Flood quote/status updates and alternate errors; ensure no layout/focus thrashing, alert storm, unbounded sizing observers or per-frame rerender loop. A real blocker must not disappear to make the form fit.
  • Repeatedly resize/rotate/zoom and open keyboard/More/picker/wallet overlays while clicking/tabbing to the CTA. No transparent overlay intercepts taps, hidden unsafe submit, focus trap or navigation overlap. Transforming the route must not alter button hitboxes.
  • Edit amount/asset/policy or expire/promote a quote during layout reflow/review. Displayed route, minimum and signed amounts stay bound; no stale confirmation, rounded execution amount, bypassed disabled state or double broadcast.
  • Test numeric extremes and excessive fractional precision without horizontal page overflow; retain exact underlying raw amount and accessible full value even if compact display formatting is used.

Verification criteria

Run updated make verify-issue-1498 and make verify-issue-1500, frontend types/lint and the relevant Swap component/page/picker/seam/route-alignment tests; run make verify-issue-1497 if shared Trade presentation is touched. Add production-build short-viewport geometry/overflow assertions, not source-class checks alone. Run the critical-routes accessibility scan and keyboard testing on the final revision; include sanitized before/after 375×667 screenshots and numerical CTA/nav bounds for connected and disconnected paths. Extend tests to fail the current oversized/scrolling layout and pass the fix while retaining loading/expiry/signing guards.

Run feasible checks before release; explicitly record unavailable physical-device/live/funded checks and do not represent source/synthetic evidence as deployment or settlement. Such unavailable checks do not prevent filing or implementing this issue. Retain executed failures for repair/retest. Publish only sanitized product evidence, with no conversation captures, reporter details, wallet/session identifiers, credentials or private endpoints.

Related work: #1498 stable layout, #1500 distinct order metrics, and #1330 executable-route presentation. This follow-up does not expand route search or replace net-output ranking.

Investigation verification receipts (2026-10-19)

  • make verify-issue-1500: FAIL overall on the unmodified revision. First and retest each passed 6 independent order-economics tests, 1 manual-split identity test, and 143 frontend tests in 8 files; frontend types and invariant/documentation checks passed. cargo fmt --check failed in indexer/src/api/local_quote.rs and indexer/src/db/queries/hub_prices.rs under rustfmt 1.10.0. This existing formatting failure is retained, not reclassified as a skip or repaired as part of issue filing. Two declared deployed/funded/device scopes remain unverified.
  • An isolated Chrome 151 production Vite build with a synthetic local indexer and no wallet/broadcast reproduced the short-screen defect after settling a disconnected quote with no risk warning, Settings/DETAILS closed, scrollY=0. At 375×667, CTA top/bottom were 688/742px, bottom-nav top was 594px, route scrollWidth/clientWidth were 215/103px, and status height was 72px. The initial CTA-visibility assertion is FAIL; the page-level horizontal-overflow check passed, demonstrating why page-only checks miss the route bug. At 390×844 the CTA fit but the route still overflowed (215/118px); the 1440×1000 desktop control fit. There were zero provider requests. The fixture used a direct synthetic pair and amount 10000, so it does not certify the reported native route or connected-wallet geometry.
  • make verify-issue-1498: PASS WITH SKIPS, 9 passed / 0 failed / 1 skipped. First/retest each passed 145 frontend tests in 8 files; the production-build geometry fixture passed 9 scenarios at each of 1440/320/390/430 widths with height 1000, including 200% root text, and types/crosslinks/stable-source checks passed. The declared live-artifact/device/funded scope was skipped. These passes do not exercise the missing 375×667 initial-CTA criterion.
## Problem and desired result The Swap form wastes enough vertical space on a 375×667 CSS-pixel viewport that the Connect Wallet / Swap action falls below the visible content and behind the fixed bottom navigation. The route is horizontally scrollable and clips its destination on small screens. Errors appear as padded bordered cards with a detached cross above them and unnecessary scrolling. Bundle these related presentation fixes: 1. Show one decorative red Unicode cross **inline with the error sentence**, with readable subdued red text. Remove the detached cross entirely. No dismiss/close control for persistent blocking errors; no padding, border, background or card chrome around the inline error. No horizontal scrollbar. A short message should not produce an internal vertical scrollbar either. 2. Fit the actual full route to the available mobile width, preferably through CSS sizing/compression rather than a horizontal scrollbar. Keep route order, endpoints, actual wrapper boundaries and accessible identity inspection. 3. On mobile only, compact the page so the primary action is fully visible and clickable above the fixed bottom bar on 375×667 at normal text size with Settings/DETAILS collapsed. Remove the redundant outer content card and visible Swap heading; reduce input font size, unnecessary padding/margins and input minimum heights, and visually omit redundant You Pay/You Receive labels while keeping accessible labels. Remove the unnecessary gap above the header, respecting real safe-area insets. Preserve comfortable interaction targets and readable information. The rough layout demonstrates the vertical budget, not a request for cramped concatenated text or a partly covered button. Desktop density/chrome remains unchanged; the inline-error cleanup applies wherever this Swap status is displayed. ## Current codebase and investigation Inspected [main at b7b08736](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/b7b08736b3529af344a693ae6d16236a4f324c13); remote main matched during investigation on 2026-10-19. This issue contains sanitized behavior and source facts, without reporter identities, account/wallet information, conversation text, or attachments. - `frontend-dapp/src/pages/SwapPage.tsx`: outer `shell-panel-strong !p-5 sm:!p-6`; visible Swap heading and `mb-4`; Pay/Receive use stacked label/picker headers on mobile, `!p-4` / receive `!pt-6`, and `text-[1.75rem]` mobile amount inputs. Connected balance/Max/fraction actions add further height. Settings/Share, the flip seam, DETAILS and CTA must remain functional. - The same file mounts `swap-quote-status` at `h-[6em] overflow-y-auto ... mb-3`; a separate `aria-hidden` cross is emitted before most notices. The screenshot cross is consistent with this decorative span, **not an actual dismiss button**. Child errors are block elements, so the cross occupies a separate line. - `frontend-dapp/src/components/swap/SwapImpactAside.tsx` and multiple status branches use `.alert-error`; `frontend-dapp/src/index.css` defines it with `p-3`, an 18px radius, border and tinted background. The global class also serves other pages; avoid silently restyling every consumer. - `frontend-dapp/src/components/swap/SwapQuoteSummary.tsx`: fixed `h-12` row; Slippage/Fee are `shrink-0`; route gets remaining width with `overflow-x-auto`, while its content is `inline-flex ... whitespace-nowrap`. Individual symbols already truncate at `max-w-20`; a destination can still remain outside the visible route area. - `frontend-dapp/src/index.css`: mobile header has a 4px top margin; main shell adds 14px top padding; shell/card/control spacing accumulates. `.app-mobile-nav-shell` is fixed with safe-area padding and a nominal 72px stack. - `frontend-dapp/src/components/common/Layout.tsx` measures the bottom navigation into `--app-mobile-nav-stack`. Reuse the actual height and visual viewport; padding beneath the page only permits scrolling and does not establish initial CTA visibility. - `frontend-dapp/src/components/trade/TokenSearchSelect.tsx`, `components/common/AmountBalanceActions.tsx` and token-selector CSS govern shared controls. Scope density overrides to mobile Swap rather than shrinking targets throughout the app. - `scripts/qa/swap-layout-geometry-1498.cjs` tests widths 1440/320/390/430 at **height 1000** and checks page overflow/stable geometry. It currently expects a focusable scrolling route and visible `None`; it does not establish initial action visibility on 375×667 or absence of route/status scrollbars. `scripts/qa/browser-local-quotes-1452.cjs` supplies an isolated production-build browser fixture. Relevant policy and tests: `skills/AGENTS_SWAP_LAYOUT.md`, `skills/AGENTS_FRONTEND_A11Y_CI.md`, `skills/AGENTS_FRONTEND_A11Y_FOCUS.md`, `skills/AGENTS_FRONTEND_COPY_COGNITIVE_LOAD.md`, `docs/design-system.md`, `docs/qa/issue-1498/README.md`, `SwapQuoteSummary.test.tsx`, `SwapImpactAside.test.tsx`, `SwapPage.test.tsx`, `SwapPage.acquireGuidance.test.tsx`, and the swap picker/seam/route-alignment E2E specs. Source entry points: [SwapPage.tsx](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/b7b08736b3529af344a693ae6d16236a4f324c13/frontend-dapp/src/pages/SwapPage.tsx), [SwapQuoteSummary.tsx](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/b7b08736b3529af344a693ae6d16236a4f324c13/frontend-dapp/src/components/swap/SwapQuoteSummary.tsx), [index.css](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/b7b08736b3529af344a693ae6d16236a4f324c13/frontend-dapp/src/index.css). ## Why a new implementation is needed The current implementation deliberately reserves a large status envelope and scrolls the route. Those choices satisfy older layout invariants while making a short-screen trading form harder to use. Redundant containers and labels consume the vertical budget, and the status card makes routine warnings visually dominant. Hiding overflow alone would conceal information; merely adding page bottom padding does not meet the initial-screen action requirement. ## Recommended direction and constraints - Add explicit mobile Swap layout hooks and a responsive compact mode. Remove the outer visual shell/heading at the mobile breakpoint, tighten form/control gaps, use smaller readable numeric text (avoid iOS focus zoom), reduce redundant input/control chrome and remove the header's artificial top gap. Keep real safe-area padding. Preserve desktop rendering and other pages unless a separately tested shared header adjustment is intentional. - Visually hide redundant field labels with accessible-label/sr-only techniques; retain clear pay/receive roles, names, IDs, input mode and edit behavior. Keep the direction button, Settings, Share, picker, balance/Max and CTA keyboard/touch operable with visible focus. Do not shrink the entire page or disable zoom to fit it. - Use a scoped inline-status component/style: one cross in the same text flow as the short error, cross `aria-hidden`, no independent dismiss control, no padding/border/background. Use theme tokens with sufficient contrast in both themes, no flashing/aggressive emphasis, and word wrapping for long content. Preserve retry, Expert and other necessary actions and persist errors until resolved. Do not globally strip `.alert-error` styling without auditing its consumers. - Keep a compact stable status space across normal automatic quote transitions at each breakpoint; reconcile the old fixed-six-em reservation with this mobile vertical budget. Long/zoomed errors may reflow into normal page scrolling rather than clipping or becoming nested horizontal scrollers. Inputs and focused controls must not jump on routine refresh. - Make the route strip fit the width available after Slippage/Fee, preferably with responsive CSS font/icon/gap sizing and flexible/container-aware widths. If actual horizontal scaling is needed, scope it to the noninteractive route content and account for transformed bounds. No overflowing original-width box, page-wide transform, scrollbar hiding, clipped destination or silently dropped intermediate hop. Preserve a readable full-route/identity view in the single DETAILS disclosure when labels/path length require expansion; do not reduce text indefinitely to unreadability or scale interactive targets. - Update SL1498-3/SL1498-6 and related QA expectations to explicitly supersede the old oversized status envelope and horizontal-route-scroll prescription. Preserve stable input geometry, one mounted DETAILS, accurate current minimum including disconnected quotes, and one network fee. Coordinate with [#1560 warning policy](https://git.cl8y.com/code/cl8y-dex-terraclassic/issues/1560) so a below-threshold quote no longer consumes a warning block. - Preserve all execution/reference checks and original quote amounts. Formatting or visual truncation must never round the amount used for signing. Keep exact current quote/route/minimum binding, review and expiry, the 30-minute reviewed signing window, offline execution, positive floors, tax/refund accounting, gas/Max parity and no-resend. The primary CTA may be visible but must remain disabled when genuinely blocked. - No absolute positioning over errors or fixed-height clipping of the whole form. At enlarged text, open disclosures, software keyboard or shorter visual viewports, allow normal vertical scrolling with enough measured bottom-bar clearance so every action and error remains reachable. ## Acceptance criteria - [ ] AC1: At 375×667 CSS pixels, normal font size and scrollY=0, after quote settlement with Settings/DETAILS collapsed, the entire Connect Wallet CTA and the connected Swap CTA lie inside the visible viewport **above** the measured bottom-nav top edge, with no occlusion. Test connected balance controls and a concise current warning/error as well as the no-warning state. - [ ] AC2: Mobile-only compaction removes outer content-card chrome/redundant heading, visibly redundant field labels and excess spacing while retaining accessible pay/receive names, legible amounts, comfortable touch targets and working controls. Header starts at the real safe-area edge. Desktop geometry remains unchanged. - [ ] AC3: Error text has exactly one inline decorative red cross, subdued accessible red text, no close/dismiss control, no card padding/border/background and no horizontal scrollbar. Long error text wraps; a single short message needs no nested vertical scrollbar. Blockers persist, and retry/review actions and announcements work. - [ ] AC4: At normal mobile sizes the actual full bounded token route, including its destination and wrapper boundaries, fits the route region without horizontal scrolling, hidden hops or overlap with Slippage/Fee. Long labels have a readable accessible full-route/identity presentation in DETAILS. Loading/unavailable states remain truthful. - [ ] AC5: No page/route/status horizontal overflow at target widths. Normal quote refresh/loading/error/recovery does not move input controls or lose focus. One persistent DETAILS and one network fee remain. - [ ] AC6: Keyboard, screen reader, 200% text zoom, reduced motion, portrait/landscape, light/dark themes, picker/modal/keyboard-open states and safe areas have no unreachable/covered CTA or clipped status. At zoom/open-details sizes, vertical reflow is acceptable and all content stays reachable. - [ ] AC7: Geometry tests explicitly cover 375×667, measure CTA versus nav/visual viewport at initial scroll position, and test internal route/status overflow. Do not substitute Playwright `toBeVisible()` or tall-viewport screenshots for these measurements. ## Test plan: all UI paths | Coverage | Required evidence | | --- | --- | | Viewports | 320×568, **375×667**, 390×844, 414/430 phone widths, mobile landscape, breakpoint neighbors 767/768 and existing desktop widths. Both themes; safe-area zero/nonzero; text at 100% and 200%; browser chrome/visual viewport changes. | | Form state | Empty/initial load, settled quote with no notice, low-risk control (3.34% order / 6.91% total), >5 order or >10 total warning, Expert/extreme refusal, pending/review/broadcast/recovery/success and persistent failed submission. Disconnected and connected, low/no balance, fee shortage, Max/fractions, ordinary/very long amounts, receive-exact edits, direction flip. | | Data/recovery | Delayed initial quote, unchanged fresh refresh, new intent, route promotion, authoritative rejection, unavailable metric/reference, offline/provider outage, retry, expiry, unsupported wrapper, paused/frozen/restricted/rate-limited/funding-blocked states. Status stays accurate and reachable; never enables unsafe submit. | | Route shapes | Direct, native wrap/unwrap boundaries, 2/3/4 execution hops and all allowed extra displayed wrapper boundaries, repeated similar symbols, long symbols, missing/broken logos and identities not in the registry. Exact displayed order must match selected operations. | | Controls | Share/Settings, keyboard/pointer picker open/close, direction seam, input caret/selection, balance/Max, DETAILS expand/collapse and focus retention, connect modal, wallet actions, retry/Expert controls and software keyboard. The compact layout must not obscure menus behind the bottom bar. | | Geometry/a11y | Measure CTA rect top/bottom versus visual viewport and nav top, and use hit testing at CTA center/edges to detect overlays. Measure page/route/status scrollWidth versus clientWidth, text bounds and overlap. Check focus rings/touch targets, meaningful names, one live announcement per transition and persistent error text; axe has zero serious/critical violations. | ## Test plan: attacks, hacks and abuse - Supply extremely long/unbroken/Unicode/RTL token labels, HTML-like names, identical spoofed symbols, missing logos and unexpected error strings. Text stays escaped, layout bounded, canonical identities inspectable, and actual route is not replaced by a misleading shortened path. No CSS/HTML/script injection. - Flood quote/status updates and alternate errors; ensure no layout/focus thrashing, alert storm, unbounded sizing observers or per-frame rerender loop. A real blocker must not disappear to make the form fit. - Repeatedly resize/rotate/zoom and open keyboard/More/picker/wallet overlays while clicking/tabbing to the CTA. No transparent overlay intercepts taps, hidden unsafe submit, focus trap or navigation overlap. Transforming the route must not alter button hitboxes. - Edit amount/asset/policy or expire/promote a quote during layout reflow/review. Displayed route, minimum and signed amounts stay bound; no stale confirmation, rounded execution amount, bypassed disabled state or double broadcast. - Test numeric extremes and excessive fractional precision without horizontal page overflow; retain exact underlying raw amount and accessible full value even if compact display formatting is used. ## Verification criteria Run updated `make verify-issue-1498` and `make verify-issue-1500`, frontend types/lint and the relevant Swap component/page/picker/seam/route-alignment tests; run `make verify-issue-1497` if shared Trade presentation is touched. Add production-build short-viewport geometry/overflow assertions, not source-class checks alone. Run the critical-routes accessibility scan and keyboard testing on the final revision; include sanitized before/after 375×667 screenshots and numerical CTA/nav bounds for connected and disconnected paths. Extend tests to fail the current oversized/scrolling layout and pass the fix while retaining loading/expiry/signing guards. Run feasible checks before release; explicitly record unavailable physical-device/live/funded checks and do not represent source/synthetic evidence as deployment or settlement. Such unavailable checks do not prevent filing or implementing this issue. Retain executed failures for repair/retest. Publish only sanitized product evidence, with no conversation captures, reporter details, wallet/session identifiers, credentials or private endpoints. Related work: [#1498 stable layout](https://git.cl8y.com/code/cl8y-dex-terraclassic/issues/1498), [#1500 distinct order metrics](https://git.cl8y.com/code/cl8y-dex-terraclassic/issues/1500), and [#1330 executable-route presentation](https://git.cl8y.com/code/cl8y-dex-terraclassic/issues/1330). This follow-up does not expand route search or replace net-output ranking. ## Investigation verification receipts (2026-10-19) - `make verify-issue-1500`: **FAIL overall** on the unmodified revision. First and retest each passed 6 independent order-economics tests, 1 manual-split identity test, and 143 frontend tests in 8 files; frontend types and invariant/documentation checks passed. `cargo fmt --check` failed in `indexer/src/api/local_quote.rs` and `indexer/src/db/queries/hub_prices.rs` under rustfmt 1.10.0. This existing formatting failure is retained, not reclassified as a skip or repaired as part of issue filing. Two declared deployed/funded/device scopes remain unverified. - An isolated Chrome 151 production Vite build with a synthetic local indexer and no wallet/broadcast reproduced the short-screen defect after settling a disconnected quote with no risk warning, Settings/DETAILS closed, scrollY=0. At **375×667**, CTA top/bottom were **688/742px**, bottom-nav top was **594px**, route `scrollWidth/clientWidth` were **215/103px**, and status height was **72px**. The initial CTA-visibility assertion is **FAIL**; the page-level horizontal-overflow check passed, demonstrating why page-only checks miss the route bug. At 390×844 the CTA fit but the route still overflowed (215/118px); the 1440×1000 desktop control fit. There were **zero provider requests**. The fixture used a direct synthetic pair and amount 10000, so it does not certify the reported native route or connected-wallet geometry. - `make verify-issue-1498`: **PASS WITH SKIPS**, 9 passed / 0 failed / 1 skipped. First/retest each passed 145 frontend tests in 8 files; the production-build geometry fixture passed 9 scenarios at each of 1440/320/390/430 widths with height 1000, including 200% root text, and types/crosslinks/stable-source checks passed. The declared live-artifact/device/funded scope was skipped. These passes do not exercise the missing 375×667 initial-CTA criterion.
Author
Owner

Implemented and live through PR #1562, with observer/evidence follow-up PR #1563. Deployed frontend 6a5118ffc2a3bf71b4ad638226d48228bd2eb64a, Coolify qvplhwapjhqfxd2mm8lfnzua.

  • AC1, automated scope: At 375×667 and scrollY=0, disconnected CTA 399–453px and connected unsigned-fixture CTA 450–504px sit above nav 594px. Center and four edge probes hit the button. Actual live disconnected native Swap repeats 399–453/nav 594.
  • AC2: Mobile-only outer chrome/heading/visible redundant labels removed; accessible names, legible inputs and 44px controls retained. Connected desktop control rectangles/CTA match the original exactly.
  • AC3: Exactly one inline decorative cross, subdued theme-aware text, no dismiss/error card chrome or nested scrollbar; persistent errors/actions remain. Normal/error axe scans have zero serious/critical findings.
  • AC4 complete family coverage: Route fitting, ordered tokens and full canonical DETAILS are implemented. Component tests and actual three-token native/wrapper live preview pass without overflow; complete browser/funded route-family coverage remains unperformed.
  • AC5, automated scope: No page/route/status horizontal overflow; stable inputs/focus across normal refresh/loading/rejection/recovery/expiry; one DETAILS and network fee. Review stays pinned within its original expiry.
  • AC6 complete physical scope: Automated keyboard, both themes, 200% root text, landscape, breakpoint neighbors and simulated nav/viewport changes pass. Real screen readers, software keyboards and hardware safe areas remain unverified.
  • AC7: Production-build geometry checks 375×667 CTA against measured nav/visual viewport and five hit points, independently checks internal overflow, and preserves sanitized before/after screenshots. Additional widths 320/390/414/430, 667 landscape, 767/768 and desktop pass.

The loop found and repaired two additional keyboard bugs: Escape from Connect Wallet lost invoking focus, and stacked dialogs shared the same accessible-title ID. Thirteen Modal tests and rebuilt production keyboard probes pass. Review also no longer forces a ten-second reading/confirmation window: a real production-build unsigned control retains confirmation 12s with no quote request while the independent producer advances, then revokes it on edit.

Final 1498 runs each pass 160 frontend tests and 1500 each 171; types/lint, required hooks/gitleaks, relevant source/Rust tests and live Swap/Trade previews pass. All test processes were bounded below 60s. Live Swap/Trade axe and runtime-error counts are zero. Deployment logs were inspected privately: 94 entries, 0 unexpected error-level matches, 2 exact expected cleanup messages. New frontend started 04:21:33 UTC, before old removal 04:21:38 UTC; sampled frontend/API serving remained HTTP200. Fresh exact-target monitoring passes; separate indexer-readiness 0 remains explicitly recorded.

The full funded/physical matrix and repository-wide CI are not claimed PASS. The user-authorized merge gate override was used while CI was pending. Keep both issues open. One physical-phone check is assigned in cl8y-pm Inbox, card 3fff415d-9cc2-42b1-b635-37e0be4fd0f7, without transaction signing. Full evidence and remaining scopes.

Implemented and live through [PR #1562](https://git.cl8y.com/code/cl8y-dex-terraclassic/pulls/1562), with observer/evidence follow-up [PR #1563](https://git.cl8y.com/code/cl8y-dex-terraclassic/pulls/1563). Deployed frontend `6a5118ffc2a3bf71b4ad638226d48228bd2eb64a`, Coolify `qvplhwapjhqfxd2mm8lfnzua`. - [x] AC1, automated scope: At 375×667 and scrollY=0, disconnected CTA 399–453px and connected unsigned-fixture CTA 450–504px sit above nav 594px. Center and four edge probes hit the button. Actual live disconnected native Swap repeats 399–453/nav 594. - [x] AC2: Mobile-only outer chrome/heading/visible redundant labels removed; accessible names, legible inputs and 44px controls retained. Connected desktop control rectangles/CTA match the original exactly. - [x] AC3: Exactly one inline decorative cross, subdued theme-aware text, no dismiss/error card chrome or nested scrollbar; persistent errors/actions remain. Normal/error axe scans have zero serious/critical findings. - [ ] AC4 complete family coverage: Route fitting, ordered tokens and full canonical DETAILS are implemented. Component tests and actual three-token native/wrapper live preview pass without overflow; complete browser/funded route-family coverage remains unperformed. - [x] AC5, automated scope: No page/route/status horizontal overflow; stable inputs/focus across normal refresh/loading/rejection/recovery/expiry; one DETAILS and network fee. Review stays pinned within its original expiry. - [ ] AC6 complete physical scope: Automated keyboard, both themes, 200% root text, landscape, breakpoint neighbors and simulated nav/viewport changes pass. Real screen readers, software keyboards and hardware safe areas remain unverified. - [x] AC7: Production-build geometry checks 375×667 CTA against measured nav/visual viewport and five hit points, independently checks internal overflow, and preserves sanitized before/after screenshots. Additional widths 320/390/414/430, 667 landscape, 767/768 and desktop pass. The loop found and repaired two additional keyboard bugs: Escape from Connect Wallet lost invoking focus, and stacked dialogs shared the same accessible-title ID. Thirteen Modal tests and rebuilt production keyboard probes pass. Review also no longer forces a ten-second reading/confirmation window: a real production-build unsigned control retains confirmation 12s with no quote request while the independent producer advances, then revokes it on edit. Final 1498 runs each pass 160 frontend tests and 1500 each 171; types/lint, required hooks/gitleaks, relevant source/Rust tests and live Swap/Trade previews pass. All test processes were bounded below 60s. Live Swap/Trade axe and runtime-error counts are zero. Deployment logs were inspected privately: 94 entries, 0 unexpected error-level matches, 2 exact expected cleanup messages. New frontend started 04:21:33 UTC, before old removal 04:21:38 UTC; sampled frontend/API serving remained HTTP200. Fresh exact-target monitoring passes; separate indexer-readiness 0 remains explicitly recorded. The full funded/physical matrix and repository-wide CI are not claimed PASS. The user-authorized merge gate override was used while CI was pending. Keep both issues open. One physical-phone check is assigned in [cl8y-pm Inbox](https://pm.cl8y.com/inbox), card `3fff415d-9cc2-42b1-b635-37e0be4fd0f7`, without transaction signing. [Full evidence and remaining scopes](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/main/docs/qa/issues-1560-1561/RESULTS.md).
Author
Owner

The requested follow-up is implemented and live through PR #1564, with live evidence #1565. Frontend 0941e9105142542009252295bb3ebb9bd2e3f1ca, Coolify xyidlzlftlxxntlkiyjulc6b.

  • Mobile content footer hidden; environment/product/legal information stays accessible in More → About and legal. Desktop footer retained.
  • Swap centered between header and measured bottom navigation. Live 375×667 form 134.5–517.5px between 58/594px gives 76.5px equal spare space above/below. Expanded/zoomed content scrolls normally. Navigation padding/safe-area changes now update its border-box measurement.
  • Routes cluster to the right instead of growing into equal-width slots. Live actual USTC/cUSTC/CL8Y path: right-edge gap 0px, item gaps 2px mobile /4px desktop. All nodes and canonical DETAILS remain.
  • Corrected the prior release's leftover checked None line. Quiet status is empty; genuine pricing/blocking announcements and reserved geometry remain.
  • 71 focused tests, 1500/1498/663 source checks, types/lint/hooks and production-browser checks pass within bounded test processes. Connected/disconnected, light/dark, 200% text, concise errors, More links and CTA hit tests pass; zero serious/critical axe findings or live runtime errors.

Deployment logs: 71 entries inspected privately, 0 unexpected error-level matches, 2 expected cleanup messages. Live native Swap and wrapped Trade previews pass, fresh exact-target Grafana/Loki/Prometheus checks pass, frontend/API serving sampled HTTP200 and backend source unchanged. No API/database/logging lifecycle change.

Measurements, verification scope and live screenshot. Existing physical/funded/full-CI acceptance remains unverified, so the issue stays open. The existing user-requested workflow-gate override was used; CI is not claimed PASS.

The requested follow-up is implemented and live through [PR #1564](https://git.cl8y.com/code/cl8y-dex-terraclassic/pulls/1564), with [live evidence #1565](https://git.cl8y.com/code/cl8y-dex-terraclassic/pulls/1565). Frontend `0941e9105142542009252295bb3ebb9bd2e3f1ca`, Coolify `xyidlzlftlxxntlkiyjulc6b`. - [x] Mobile content footer hidden; environment/product/legal information stays accessible in More → About and legal. Desktop footer retained. - [x] Swap centered between header and measured bottom navigation. Live 375×667 form 134.5–517.5px between 58/594px gives 76.5px equal spare space above/below. Expanded/zoomed content scrolls normally. Navigation padding/safe-area changes now update its border-box measurement. - [x] Routes cluster to the right instead of growing into equal-width slots. Live actual USTC/cUSTC/CL8Y path: right-edge gap 0px, item gaps 2px mobile /4px desktop. All nodes and canonical DETAILS remain. - [x] Corrected the prior release's leftover checked None line. Quiet status is empty; genuine pricing/blocking announcements and reserved geometry remain. - [x] 71 focused tests, 1500/1498/663 source checks, types/lint/hooks and production-browser checks pass within bounded test processes. Connected/disconnected, light/dark, 200% text, concise errors, More links and CTA hit tests pass; zero serious/critical axe findings or live runtime errors. Deployment logs: 71 entries inspected privately, 0 unexpected error-level matches, 2 expected cleanup messages. Live native Swap and wrapped Trade previews pass, fresh exact-target Grafana/Loki/Prometheus checks pass, frontend/API serving sampled HTTP200 and backend source unchanged. No API/database/logging lifecycle change. [Measurements, verification scope and live screenshot](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/main/docs/qa/issues-1560-1561/MOBILE-CENTERING.md). Existing physical/funded/full-CI acceptance remains unverified, so the issue stays open. The existing user-requested workflow-gate override was used; CI is not claimed PASS.
Author
Owner

PR #1566 implements both follow-up reports: compact all-device error leading, with inline Expert/Cancel actions that retain 44px hit targets; and direction switching that moves the exact current receive amount into the new pay field. Example: 10 CL8Y → 5.40572 SpaceUSD becomes 5.40572 SpaceUSD input for the reverse quote. Missing/expired output clears rather than carrying the old denomination. Old book budgets/review consent are cleared; signing safeguards stay enforced.

Verification checklist:

  • Exact 6/18-decimal and >2^53 amounts, original expiry, stale drafts/refresh, receive edits and long-value editing.

  • 186 Swap/layout tests and 171 metric tests on each verifier run, 161 Trade tests; types, focused lint and normal commit hooks.

  • Source-matched production browser status at 375/768/1440 widths: 16.2px leading on 12px text, 32.4–46.3px tested status heights, actual 44px hit tests, keyboard Expert modal/focus return, zero serious/critical axe findings.

  • Compact mobile centering/footer/route spacing, connected CTA clearance and 200% text regressions.

  • Coolify frontend bd2b4ba508d08bf8632b164c82ae02cff1284be0, deployment wezykqhxcuhuvdilkmbyogla, finished. Public frontend/API health/serving samples stayed HTTP200; backend unchanged.

  • Live phone/desktop switch: output 0.851568201759174334 became new pay, reverse request raw 851568201759174334, HTTP200. Compact status leading/minimum 16.2/32.4px; mobile footer hidden, form centered and route flush-right. No runtime errors or serious/critical axe findings; wrapped Trade preview also passed.

  • Deployment logs reviewed: 75 entries, two exact cleanup messages. The conservative checker’s one additional keyword FAIL was the exact public merge subject containing “error spacing”; retained and independently classified, with no remaining error tokens. No unexpected deployment fault found.

  • Fresh exact DEX Prometheus targets and Loki/Grafana observations, plus monitoring source/config verifier 1544. API serving/quote-readiness up; indexer readiness independently 0, so no recovery or traffic-SLO claim.

  • Full physical-device/funded/all-states acceptance and full repository CI. The explicit user-authorized CI gate override was used while CI was pending; CI is not claimed PASS. Keep both issues open. Physical reachability remains assigned in PM Inbox, card 3fff415d-9cc2-42b1-b635-37e0be4fd0f7.

Relevant #1561 criteria verified in the stated scope: AC1/AC7 numerical initial CTA/nav bounds; AC3 compact persistent error and keyboard action; AC4 real full native route; AC5 geometry/one DETAILS/no horizontal overflow; AC6 covered desktop browser keyboard/200% text/accessibility checks. Physical devices and the full matrix remain incomplete. The #1560 risk thresholds, original quote deadlines, raw amounts, floors and offline/signing protections remain enforced.

Invariants, verification scope, live receipts and screenshots and exact direction amount checklist. Agent guidance crosslinked in SL1498 and QL1499. No backend, database or chain reset needed for this frontend-only follow-up.

PR #1566 implements both follow-up reports: compact all-device error leading, with inline Expert/Cancel actions that retain 44px hit targets; and direction switching that moves the exact current receive amount into the new pay field. Example: 10 CL8Y → 5.40572 SpaceUSD becomes 5.40572 SpaceUSD input for the reverse quote. Missing/expired output clears rather than carrying the old denomination. Old book budgets/review consent are cleared; signing safeguards stay enforced. Verification checklist: - [x] Exact 6/18-decimal and >2^53 amounts, original expiry, stale drafts/refresh, receive edits and long-value editing. - [x] 186 Swap/layout tests and 171 metric tests on each verifier run, 161 Trade tests; types, focused lint and normal commit hooks. - [x] Source-matched production browser status at 375/768/1440 widths: 16.2px leading on 12px text, 32.4–46.3px tested status heights, actual 44px hit tests, keyboard Expert modal/focus return, zero serious/critical axe findings. - [x] Compact mobile centering/footer/route spacing, connected CTA clearance and 200% text regressions. - [x] Coolify frontend `bd2b4ba508d08bf8632b164c82ae02cff1284be0`, deployment `wezykqhxcuhuvdilkmbyogla`, finished. Public frontend/API health/serving samples stayed HTTP200; backend unchanged. - [x] Live phone/desktop switch: output `0.851568201759174334` became new pay, reverse request raw `851568201759174334`, HTTP200. Compact status leading/minimum 16.2/32.4px; mobile footer hidden, form centered and route flush-right. No runtime errors or serious/critical axe findings; wrapped Trade preview also passed. - [x] Deployment logs reviewed: 75 entries, two exact cleanup messages. The conservative checker’s one additional keyword FAIL was the exact public merge subject containing “error spacing”; retained and independently classified, with no remaining error tokens. No unexpected deployment fault found. - [x] Fresh exact DEX Prometheus targets and Loki/Grafana observations, plus monitoring source/config verifier 1544. API serving/quote-readiness up; indexer readiness independently 0, so no recovery or traffic-SLO claim. - [ ] Full physical-device/funded/all-states acceptance and full repository CI. The explicit user-authorized CI gate override was used while CI was pending; CI is not claimed PASS. Keep both issues open. Physical reachability remains assigned in [PM Inbox](https://pm.cl8y.com/inbox), card `3fff415d-9cc2-42b1-b635-37e0be4fd0f7`. Relevant #1561 criteria verified in the stated scope: AC1/AC7 numerical initial CTA/nav bounds; AC3 compact persistent error and keyboard action; AC4 real full native route; AC5 geometry/one DETAILS/no horizontal overflow; AC6 covered desktop browser keyboard/200% text/accessibility checks. Physical devices and the full matrix remain incomplete. The #1560 risk thresholds, original quote deadlines, raw amounts, floors and offline/signing protections remain enforced. [Invariants, verification scope, live receipts and screenshots](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/main/docs/qa/issues-1560-1561/STATUS-DENSITY.md) and [exact direction amount checklist](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/main/docs/qa/issues-1560-1561/DIRECTION-AMOUNT.md). Agent guidance crosslinked in SL1498 and QL1499. No backend, database or chain reset needed for this frontend-only follow-up.
Author
Owner

Closing the design/layout work following acceptance of the deployed result.

  • Mobile footer hidden; Swap centered between the header and measured bottom navigation.
  • Full route compact and right-aligned, with no horizontal overflow in verified cases.
  • Persistent errors use compact inline text and tighter leading across devices; keyboard focus and 44px action hit targets retained.
  • Direction switch carries the exact receive amount into the new pay field, preserving token precision.
  • Relevant bounded tests, production-build geometry/accessibility checks and live phone-width/desktop checks passed; deployed through Coolify. Fix PR #1566; live evidence PR #1567.

Verification and documented invariants.

Closure records acceptance of the design/layout result. Previously documented physical-device, funded settlement and full repository CI scopes are not newly claimed to have passed. Trading-risk policy acceptance remains separately tracked in #1560.

Closing the design/layout work following acceptance of the deployed result. - [x] Mobile footer hidden; Swap centered between the header and measured bottom navigation. - [x] Full route compact and right-aligned, with no horizontal overflow in verified cases. - [x] Persistent errors use compact inline text and tighter leading across devices; keyboard focus and 44px action hit targets retained. - [x] Direction switch carries the exact receive amount into the new pay field, preserving token precision. - [x] Relevant bounded tests, production-build geometry/accessibility checks and live phone-width/desktop checks passed; deployed through Coolify. Fix PR #1566; live evidence PR #1567. [Verification and documented invariants](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/main/docs/qa/issues-1560-1561/STATUS-DENSITY.md). Closure records acceptance of the design/layout result. Previously documented physical-device, funded settlement and full repository CI scopes are not newly claimed to have passed. Trading-risk policy acceptance remains separately tracked in #1560.
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#1561
No description provided.