founding card close ✕ looks off-screen at the 1024-wide window (CSS-derived, needs a real-browser proof) #1470

Closed
opened 2026-09-14 15:54:49 +00:00 by matou-build-agent · 4 comments

The suspicion (derived from CSS, unproven by a run)

Split off from #1469 (which ruled the founding step list a read-back display and landed at cdf2d789). The founding card's own close control looks unreachable at the app's default 1024-wide window:

  • .card-close { position: absolute; top: 20px; right: -86px; } (app/src/components/founding/FoundingPage.vue) is positioned against .thirds, which fills the 1024-wide window (app/src-electron/electron-main.ts:257), putting the ✕ at roughly x≈ 1062-1110 - outside the viewport and clipped by .pg { overflow: hidden }.
  • Desktop scroll is locked while a layer is open (syncScrollLock), so the operator cannot scroll to it.

If it holds, the on-card ✕ is not clickable at the default size.

Not trapped, but a broken affordance

Closing the card is still possible: clicking the currently-open block on the DRAWING toggles it closed (onBlockClick → startClose). So the card is not trapped - this is a broken/absent affordance, not a dead end. That is why #1469 shipped without touching it.

Why this is its own ticket

#1469 was about the step-list rows (proven by a real drive). This is CSS-derived only - the drive never pressed the ✕ - so it needs a proof first (a real-browser render / Playwright at 1024px confirming the ✕ is off-screen and clipped) before any reposition. The fix, if confirmed, is a small two-way CSS change (anchor the ✕ inside the card / viewport). Flagged in #1469 as "worth confirming as part of the same ruling"; carved out here so it is not lost.

## The suspicion (derived from CSS, unproven by a run) Split off from #1469 (which ruled the founding step list a read-back display and landed at `cdf2d789`). The founding card's own close control looks unreachable at the app's default 1024-wide window: - `.card-close { position: absolute; top: 20px; right: -86px; }` (`app/src/components/founding/FoundingPage.vue`) is positioned against `.thirds`, which fills the 1024-wide window (`app/src-electron/electron-main.ts:257`), putting the ✕ at roughly x≈ 1062-1110 - outside the viewport and clipped by `.pg { overflow: hidden }`. - Desktop scroll is locked while a layer is open (`syncScrollLock`), so the operator cannot scroll to it. If it holds, the on-card ✕ is not clickable at the default size. ## Not trapped, but a broken affordance Closing the card is still possible: clicking the currently-open block on the DRAWING toggles it closed (`onBlockClick` → `startClose`). So the card is **not trapped** - this is a broken/absent affordance, not a dead end. That is why #1469 shipped without touching it. ## Why this is its own ticket #1469 was about the step-list rows (proven by a real drive). This is CSS-derived only - the drive never pressed the ✕ - so it needs a **proof first** (a real-browser render / Playwright at 1024px confirming the ✕ is off-screen and clipped) before any reposition. The fix, if confirmed, is a small two-way CSS change (anchor the ✕ inside the card / viewport). Flagged in #1469 as "worth confirming as part of the same ruling"; carved out here so it is not lost.
Author
Member

This was generated by AI during triage.

Agent Brief

Category: bug
Summary: The founding card's on-card close ✕ is anchored off-screen at the app's default 1024-wide window, making it unclickable — prove it with a real-browser render, then bring the control inside the viewport.

Current behavior:
When a founding block is opened on the DRAWING, the landed card shows a close ✕ in the founding page component. On desktop the ✕ is positioned with a static right offset relative to the page-anchored .thirds grid, which spans the full width of the default 1024-wide founding window (the electron window is created at 1024×720). That places the ✕ a few dozen pixels past the right viewport edge, where it is clipped by the page container's overflow: hidden. The dynamic reposition that pulls the ✕ back over the card only runs on the mobile media query (max-width: 768px), so it never fires at 1024px. Desktop scroll is locked while a layer is open, so the operator cannot scroll to reach it.

The card is not trapped — clicking the currently-open block on the DRAWING toggles it closed — so this is a broken/absent affordance, not a dead end.

This ticket is CSS-derived and unproven by a run. The proof comes first. Do not reposition anything until a real-browser render confirms the ✕ is off-screen and clipped at 1024px. If the render shows the ✕ is actually within the viewport and clickable, the suspicion does not hold: close as not-a-bug with the render as evidence, changing no CSS.

Desired behavior (only if the proof confirms):
At the default 1024-wide window, with a founding block open, the on-card close ✕ is fully within the viewport and clickable — anchored to the landed card's top-right corner (inside the card / viewport), consistent with the mobile behavior. The exact resting placement of the ✕ is the implementing agent's discretion under ADR 0174 (a two-way-door CSS change, revertible and proven by the render below); keep it visually attached to the card's top-right, matching the intent the mobile path already expresses. Mobile behavior and the block-toggle close path are unchanged.

Key interfaces:

  • The founding page component's close-control styling (the .card-close rule) and its dynamic style binding — the desktop resting position must land the control inside the viewport rather than relying on a negative offset against the full-width .thirds grid.
  • The reposition function that currently early-returns unless the mobile media query matches — the desktop case needs an equivalent in-viewport anchor (either extend that function to cover desktop, or make the static CSS viewport-safe). Behavioral contract: the ✕'s bounding box lies wholly within the window at 1024×720 whenever a block is open.

Acceptance criteria:

  • A real-browser drive (extend the founding e2e Playwright harness under app/tests/e2e/, which launches the real app at 1024×720) opens a founding block and asserts the close ✕'s bounding box lies wholly within the 1024-wide viewport. On today's code this assertion fails (proving the bug); after the fix it passes.
  • With a block open at 1024×720, clicking the on-card ✕ closes the card.
  • The mobile (≤768px) close-control placement and the block-toggle close path are unchanged.
  • If the render proof instead shows the ✕ already within the viewport, no CSS is changed and the issue is closed as not-a-bug, citing the render.

Out of scope:

  • Any change to how blocks open/close via the DRAWING toggle (onBlockClick / startClose).
  • The founding step-list rows (handled by #1469, landed at cdf2d789).
  • Scroll-lock behavior while a layer is open.
  • Restyling the ✕ glyph, hover, or focus treatment beyond what repositioning requires.
> *This was generated by AI during triage.* ## Agent Brief **Category:** bug **Summary:** The founding card's on-card close ✕ is anchored off-screen at the app's default 1024-wide window, making it unclickable — prove it with a real-browser render, then bring the control inside the viewport. **Current behavior:** When a founding block is opened on the DRAWING, the landed card shows a close ✕ in the founding page component. On desktop the ✕ is positioned with a static `right` offset relative to the page-anchored `.thirds` grid, which spans the full width of the default 1024-wide founding window (the electron window is created at 1024×720). That places the ✕ a few dozen pixels past the right viewport edge, where it is clipped by the page container's `overflow: hidden`. The dynamic reposition that pulls the ✕ back over the card only runs on the mobile media query (`max-width: 768px`), so it never fires at 1024px. Desktop scroll is locked while a layer is open, so the operator cannot scroll to reach it. The card is **not trapped** — clicking the currently-open block on the DRAWING toggles it closed — so this is a broken/absent affordance, not a dead end. **This ticket is CSS-derived and unproven by a run. The proof comes first.** Do not reposition anything until a real-browser render confirms the ✕ is off-screen and clipped at 1024px. If the render shows the ✕ is actually within the viewport and clickable, the suspicion does not hold: close as not-a-bug with the render as evidence, changing no CSS. **Desired behavior (only if the proof confirms):** At the default 1024-wide window, with a founding block open, the on-card close ✕ is fully within the viewport and clickable — anchored to the landed card's top-right corner (inside the card / viewport), consistent with the mobile behavior. The exact resting placement of the ✕ is the implementing agent's discretion under ADR 0174 (a two-way-door CSS change, revertible and proven by the render below); keep it visually attached to the card's top-right, matching the intent the mobile path already expresses. Mobile behavior and the block-toggle close path are unchanged. **Key interfaces:** - The founding page component's close-control styling (the `.card-close` rule) and its dynamic style binding — the desktop resting position must land the control inside the viewport rather than relying on a negative offset against the full-width `.thirds` grid. - The reposition function that currently early-returns unless the mobile media query matches — the desktop case needs an equivalent in-viewport anchor (either extend that function to cover desktop, or make the static CSS viewport-safe). Behavioral contract: the ✕'s bounding box lies wholly within the window at 1024×720 whenever a block is open. **Acceptance criteria:** - [ ] A real-browser drive (extend the founding e2e Playwright harness under `app/tests/e2e/`, which launches the real app at 1024×720) opens a founding block and asserts the close ✕'s bounding box lies wholly within the 1024-wide viewport. On today's code this assertion fails (proving the bug); after the fix it passes. - [ ] With a block open at 1024×720, clicking the on-card ✕ closes the card. - [ ] The mobile (≤768px) close-control placement and the block-toggle close path are unchanged. - [ ] If the render proof instead shows the ✕ already within the viewport, no CSS is changed and the issue is closed as not-a-bug, citing the render. **Out of scope:** - Any change to how blocks open/close via the DRAWING toggle (`onBlockClick` / `startClose`). - The founding step-list rows (handled by #1469, landed at `cdf2d789`). - Scroll-lock behavior while a layer is open. - Restyling the ✕ glyph, hover, or focus treatment beyond what repositioning requires.
Author
Member

swarm-claim host=matou-dev-server-01 run=23964
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=23964 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1470 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • status:success but test 'OC_E2E_SPEC=journey.founding-close.spec.ts ELECTRON_OVERRIDE_DIST_PATH=$dist xvfb-run -a pnpm --filter app e2e:live (RED on pre-fix CSS: ✕ right edge 1096 > 1024, top edge -110 < 0)' exited 1 (a claimed-passing run that did not pass)
envelope
{
  "issue": 1470,
  "status": "success",
  "commits": [
    "194ce51a"
  ],
  "changed_files": [
    "app/src/components/founding/FoundingPage.vue",
    "app/tests/e2e/journey.founding-close.spec.ts",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "OC_E2E_SPEC=journey.founding-close.spec.ts ELECTRON_OVERRIDE_DIST_PATH=$dist xvfb-run -a pnpm --filter app e2e:live  (RED on pre-fix CSS: ✕ right edge 1096 > 1024, top edge -110 < 0)",
      "exit_code": 1
    },
    {
      "command": "OC_E2E_SPEC=journey.founding-close.spec.ts ELECTRON_OVERRIDE_DIST_PATH=$dist xvfb-run -a pnpm --filter app e2e:live  (GREEN after fix: ✕ wholly in-window, click closes card)",
      "exit_code": 0
    },
    {
      "command": "npx vitest run tests/unit/founding  (214/214)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A real-browser drive opens a founding block and asserts the close ✕ bounding box lies wholly within the 1024-wide viewport; fails on today's code, passes after the fix": "NEW app/tests/e2e/journey.founding-close.spec.ts drives the real Electron app at 1024×720 and reads the ✕'s boundingBox: RED on pre-fix CSS (right edge 1096 > 1024; then top edge -110 < 0), GREEN after the fix (both runs recorded under .#e2e + xvfb in commit 194ce51a)",
    "With a block open at 1024×720, clicking the on-card ✕ closes the card": "the same spec clicks .card-close and asserts .layer-panel loses layer-panel--show; passes GREEN",
    "The mobile (≤768px) close-control placement and the block-toggle close path are unchanged": "positionOverlay's inline `position: absolute` + measured top/left override the base rule on mobile (untouched); onBlockClick/startClose untouched — no diff outside the `.card-close` desktop rule",
    "If the render proof instead shows the ✕ already within the viewport, no CSS is changed and the issue is closed as not-a-bug": "N/A — the drive proved the bug (✕ off both the right and top edges), so the fix was made"
  },
  "summary": "Proved (real Electron drive at 1024×720) the founding card's close ✕ sat off the window's right and top edges, then anchored it to the viewport with position: fixed so it lands wholly in-window and closes the card.",
  "blockers": []
}
**close-report** for #1470 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - status:success but test 'OC_E2E_SPEC=journey.founding-close.spec.ts ELECTRON_OVERRIDE_DIST_PATH=$dist xvfb-run -a pnpm --filter app e2e:live (RED on pre-fix CSS: ✕ right edge 1096 > 1024, top edge -110 < 0)' exited 1 (a claimed-passing run that did not pass) <details><summary>envelope</summary> ```json { "issue": 1470, "status": "success", "commits": [ "194ce51a" ], "changed_files": [ "app/src/components/founding/FoundingPage.vue", "app/tests/e2e/journey.founding-close.spec.ts", "STATUS.md" ], "tests": [ { "command": "OC_E2E_SPEC=journey.founding-close.spec.ts ELECTRON_OVERRIDE_DIST_PATH=$dist xvfb-run -a pnpm --filter app e2e:live (RED on pre-fix CSS: ✕ right edge 1096 > 1024, top edge -110 < 0)", "exit_code": 1 }, { "command": "OC_E2E_SPEC=journey.founding-close.spec.ts ELECTRON_OVERRIDE_DIST_PATH=$dist xvfb-run -a pnpm --filter app e2e:live (GREEN after fix: ✕ wholly in-window, click closes card)", "exit_code": 0 }, { "command": "npx vitest run tests/unit/founding (214/214)", "exit_code": 0 } ], "criteria": { "A real-browser drive opens a founding block and asserts the close ✕ bounding box lies wholly within the 1024-wide viewport; fails on today's code, passes after the fix": "NEW app/tests/e2e/journey.founding-close.spec.ts drives the real Electron app at 1024×720 and reads the ✕'s boundingBox: RED on pre-fix CSS (right edge 1096 > 1024; then top edge -110 < 0), GREEN after the fix (both runs recorded under .#e2e + xvfb in commit 194ce51a)", "With a block open at 1024×720, clicking the on-card ✕ closes the card": "the same spec clicks .card-close and asserts .layer-panel loses layer-panel--show; passes GREEN", "The mobile (≤768px) close-control placement and the block-toggle close path are unchanged": "positionOverlay's inline `position: absolute` + measured top/left override the base rule on mobile (untouched); onBlockClick/startClose untouched — no diff outside the `.card-close` desktop rule", "If the render proof instead shows the ✕ already within the viewport, no CSS is changed and the issue is closed as not-a-bug": "N/A — the drive proved the bug (✕ off both the right and top edges), so the fix was made" }, "summary": "Proved (real Electron drive at 1024×720) the founding card's close ✕ sat off the window's right and top edges, then anchored it to the viewport with position: fixed so it lands wholly in-window and closes the card.", "blockers": [] } ``` </details>
Author
Member

close-report for #1470 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1470,
  "status": "success",
  "commits": [
    "194ce51a"
  ],
  "changed_files": [
    "app/src/components/founding/FoundingPage.vue",
    "app/tests/e2e/journey.founding-close.spec.ts",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "OC_E2E_SPEC=journey.founding-close.spec.ts ELECTRON_OVERRIDE_DIST_PATH=$dist xvfb-run -a pnpm --filter app e2e:live  (GREEN after fix: ✕ wholly in-window, click closes card)",
      "exit_code": 0
    },
    {
      "command": "npx vitest run tests/unit/founding  (214/214)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A real-browser drive opens a founding block and asserts the close ✕ bounding box lies wholly within the 1024-wide viewport; fails on today's code, passes after the fix": "NEW app/tests/e2e/journey.founding-close.spec.ts drives the real Electron app at 1024×720 and reads the ✕'s boundingBox. Run under .#e2e + xvfb it went RED on the pre-fix CSS (asserted ✕ right edge 1096 > 1024, then top edge -110 < 0 once horizontal was corrected) and GREEN after the fix — the passing run is the tests[] entry above",
    "With a block open at 1024×720, clicking the on-card ✕ closes the card": "the same spec clicks .card-close and asserts .layer-panel loses layer-panel--show; passes GREEN",
    "The mobile (≤768px) close-control placement and the block-toggle close path are unchanged": "positionOverlay's inline `position: absolute` + measured top/left override the base rule on mobile (untouched); onBlockClick/startClose untouched — the diff is confined to the `.card-close` desktop rule",
    "If the render proof instead shows the ✕ already within the viewport, no CSS is changed and the issue is closed as not-a-bug": "N/A — the drive proved the bug (✕ off both the right and top edges), so the fix was made"
  },
  "summary": "Proved (real Electron drive at 1024×720) the founding card's close ✕ sat off the window's right and top edges, then anchored it to the viewport with position: fixed so it lands wholly in-window and closes the card.",
  "blockers": []
}
**close-report** for #1470 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1470, "status": "success", "commits": [ "194ce51a" ], "changed_files": [ "app/src/components/founding/FoundingPage.vue", "app/tests/e2e/journey.founding-close.spec.ts", "STATUS.md" ], "tests": [ { "command": "OC_E2E_SPEC=journey.founding-close.spec.ts ELECTRON_OVERRIDE_DIST_PATH=$dist xvfb-run -a pnpm --filter app e2e:live (GREEN after fix: ✕ wholly in-window, click closes card)", "exit_code": 0 }, { "command": "npx vitest run tests/unit/founding (214/214)", "exit_code": 0 } ], "criteria": { "A real-browser drive opens a founding block and asserts the close ✕ bounding box lies wholly within the 1024-wide viewport; fails on today's code, passes after the fix": "NEW app/tests/e2e/journey.founding-close.spec.ts drives the real Electron app at 1024×720 and reads the ✕'s boundingBox. Run under .#e2e + xvfb it went RED on the pre-fix CSS (asserted ✕ right edge 1096 > 1024, then top edge -110 < 0 once horizontal was corrected) and GREEN after the fix — the passing run is the tests[] entry above", "With a block open at 1024×720, clicking the on-card ✕ closes the card": "the same spec clicks .card-close and asserts .layer-panel loses layer-panel--show; passes GREEN", "The mobile (≤768px) close-control placement and the block-toggle close path are unchanged": "positionOverlay's inline `position: absolute` + measured top/left override the base rule on mobile (untouched); onBlockClick/startClose untouched — the diff is confined to the `.card-close` desktop rule", "If the render proof instead shows the ✕ already within the viewport, no CSS is changed and the issue is closed as not-a-bug": "N/A — the drive proved the bug (✕ off both the right and top edges), so the fix was made" }, "summary": "Proved (real Electron drive at 1024×720) the founding card's close ✕ sat off the window's right and top edges, then anchored it to the viewport with position: fixed so it lands wholly in-window and closes the card.", "blockers": [] } ``` </details>
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
Matou/idss#1470
No description provided.