Keep layout invariants correct after scroll #1371

Merged
PlasticDigits merged 1 commit from fix/issue-1316-scroll-invariants into main 2026-10-04 01:32:18 +00:00
Owner

When an open pair picker scrolls behind the sticky header, its menu previously followed the trigger into the header. Reserve the live header band and clamp menu attachment edges to the usable viewport, preserving existing capture scroll handling and visualViewport/mobile/in-app reserves.

Adds one bundled frontend regression surface for picker anchoring, opaque/reachable header, the Trade Limit CTA dock, and chart zoom preservation across the actual 30s candle refresh. Only the two portal geometry/viewport production modules change; chart, shell and ticket implementations already satisfy their checks.

Closes #1316.

Completed issue criteria

  • Picker follows document and inner ancestor scroll at 1280×720 and 375×667, stays clear of header/tab bar, and selects the requested pair.
  • Desktop Limit money CTA remains within 8px of card bottom at ticket scroll top/middle/bottom without overlapping visible clipped controls.
  • Actual same-interval 30s candle refresh preserves real mouse-panned logical range at both sizes, with no historical setData rewrite.
  • Both viewports and dark/light themes keep sticky header opaque and its brand navigation reachable after scroll; Trade heading keeps its documented clearance.
  • Existing portal/viewport/chart unit tests and portal compatibility verifier pass.
  • No contract, indexer, router, quote, tax, wallet-session or production chart changes. Related closed issues remain closed.
  • S1316 invariants, frontend docs, QA record and existing agent playbooks are crosslinked.

Validation and agent review instructions

From the reviewed checkout:

  1. Run make verify-issue-1316 with Node 24 and installed frontend dependencies/Playwright Chromium. It starts a dedicated server (default 5136; override PLAYWRIGHT_WEB_PORT for conflicts), uses five workers, mocks transport, and broadcasts nothing. Expect 46 unit checks and 13 Chromium checks.
  2. Run make verify-issue-632, make lint-frontend, and VITE_WC_PROJECT_ID=00000000000000000000000000000000 make build-frontend for a local production-mode build without live WalletConnect enrollment.
  3. Inspect git diff --check, geometry edge cases and the before/after screenshots in docs/qa/issue-1316/; compare header bottom62px and previous menu59.5px with fixed menu70px.
  4. Follow skills/AGENTS_FRONTEND_SCROLL_INVARIANTS.md and docs/qa/issue-1316/README.md for exact evidence and checklist. Independent agent review passed. Bundled tests were repeated after fixing test fixture/remount races.

Agents may SKIP checks they cannot complete and mark overall PASS (available checks; skips listed) when all executed checks pass. Record each skipped check and reason; leave it unchecked. Never mark skipped work completed or an observed failure PASS.

Not run: optional old #632 chain-backed browser suite, real wallet/in-app device QA, or production deployment. The new acceptance suite exercises real Chromium geometry/canvas and the production polling timer using mock market transport, as requested by #1316. No operator follow-up is required. Lint retains five existing hook warnings with zero errors.

When an open pair picker scrolls behind the sticky header, its menu previously followed the trigger into the header. Reserve the live header band and clamp menu attachment edges to the usable viewport, preserving existing capture scroll handling and visualViewport/mobile/in-app reserves. Adds one bundled frontend regression surface for picker anchoring, opaque/reachable header, the Trade Limit CTA dock, and chart zoom preservation across the actual 30s candle refresh. Only the two portal geometry/viewport production modules change; chart, shell and ticket implementations already satisfy their checks. Closes #1316. ## Completed issue criteria - [x] Picker follows document and inner ancestor scroll at 1280×720 and 375×667, stays clear of header/tab bar, and selects the requested pair. - [x] Desktop Limit money CTA remains within 8px of card bottom at ticket scroll top/middle/bottom without overlapping visible clipped controls. - [x] Actual same-interval 30s candle refresh preserves real mouse-panned logical range at both sizes, with no historical setData rewrite. - [x] Both viewports and dark/light themes keep sticky header opaque and its brand navigation reachable after scroll; Trade heading keeps its documented clearance. - [x] Existing portal/viewport/chart unit tests and portal compatibility verifier pass. - [x] No contract, indexer, router, quote, tax, wallet-session or production chart changes. Related closed issues remain closed. - [x] S1316 invariants, frontend docs, QA record and existing agent playbooks are crosslinked. ## Validation and agent review instructions From the reviewed checkout: 1. Run `make verify-issue-1316` with Node 24 and installed frontend dependencies/Playwright Chromium. It starts a dedicated server (default 5136; override PLAYWRIGHT_WEB_PORT for conflicts), uses five workers, mocks transport, and broadcasts nothing. Expect 46 unit checks and 13 Chromium checks. 2. Run `make verify-issue-632`, `make lint-frontend`, and `VITE_WC_PROJECT_ID=00000000000000000000000000000000 make build-frontend` for a local production-mode build without live WalletConnect enrollment. 3. Inspect `git diff --check`, geometry edge cases and the before/after screenshots in `docs/qa/issue-1316/`; compare header bottom62px and previous menu59.5px with fixed menu70px. 4. Follow `skills/AGENTS_FRONTEND_SCROLL_INVARIANTS.md` and `docs/qa/issue-1316/README.md` for exact evidence and checklist. Independent agent review passed. Bundled tests were repeated after fixing test fixture/remount races. Agents may SKIP checks they cannot complete and mark **overall PASS (available checks; skips listed)** when all executed checks pass. Record each skipped check and reason; leave it unchecked. Never mark skipped work completed or an observed failure PASS. Not run: optional old #632 chain-backed browser suite, real wallet/in-app device QA, or production deployment. The new acceptance suite exercises real Chromium geometry/canvas and the production polling timer using mock market transport, as requested by #1316. No operator follow-up is required. Lint retains five existing hook warnings with zero errors.
Keep portaled pickers clear of sticky chrome after scroll
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
e34890a903
PlasticDigits deleted branch fix/issue-1316-scroll-invariants 2026-10-04 01:32:18 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

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