Skip to content

Dialog: tabs from the start, launcher hidden behind it (#743) - #745

Merged
neuromechanist merged 5 commits into
developfrom
feature/issue-743-dialog-notebook-entry
Nov 12, 2026
Merged

neuromechanist merged 5 commits into
developfrom
feature/issue-743-dialog-notebook-entry

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Closes #743

What changed

Tested

  • bun frontend/test-widget-host-api.js: 384 passed, 0 failed (the "no tabs until the notebook has been opened" case is replaced by tabs-from-the-start, tabs-follow-the-dataset, and launcher hidden/restored cases for capsule and bubble through Move to corner, Escape, Close and open-in-dialog).
  • bun frontend/test-widget-notebook-entry.js: 203 passed, 0 failed (new case: a chat whose reply ran no code still has the tabs, the Notebook tab makes the frame and stays modal; no dataset keeps tabs hidden).
  • All 32 frontend/test-widget-*.js suites exit 0.
  • bun frontend/browser-harness/center-stage-check.mjs in real Chrome 157 (full run): exit 0, 0 failures. New checkDialogEntry at 1280x900 and 390x844 on a fresh conversation: tabs present before any code has run, Chat selected, Notebook tab fills the dialog under the header and the dialog stays modal with no modechange, notebook page loaded once, every part of the launcher hidden and nothing of it hit-testable at the circle's old place, drawn and on top again after Move to corner, Escape and Close, no transition under reduced motion. Confirmed the new checks fail (12 failures) when the class is not added.
  • uv run --all-extras pytest tests/test_frontend/test_embed_snippet_hygiene.py tests/test_frontend/test_privacy_page.py -m "not network and not llm": 18 passed.

Not run locally: the rest of CI (Python suites, Docker). Checks on this PR are pending.

… the launcher behind it (#743)

Tabs show whenever a notebook is available (no notebookTabSeen); the
launcher is hidden while the center dialog is open and restored on
dock, close and Escape. Bun suites updated and extended; tested with
bun frontend/test-widget-host-api.js and test-widget-notebook-entry.js.
@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Preview Deployment

Name Link
Preview URL https://feature-issue-743-dialog-not-demo.osc.earth
Branch feature/issue-743-dialog-notebook-entry
Commit f20a3a4

This preview will be updated automatically when you push new commits.

@neuromechanist

Copy link
Copy Markdown
Member Author

Review outcomes, two rounds

Round 1, at d53952b

No critical or important findings.

Coverage

  • All 32 frontend/test-widget-*.js suites pass.
  • The Chrome harness passes: 440 checks.
  • An extra header sweep checked every 10 px from 320 to 1400, plus the breakpoints, in three states, and found no overflow, overlap or wrapped label.
  • Launcher probes in Chrome, for both the bubble and the capsule, showed it hidden while the dialog is open and restored on Move to corner, Escape, Close and close(), with focus back on the host button.
  • Mutation checks confirmed the new Bun tests fail when the behavior is removed.

Findings, all fixed in a5a7c23

  1. Suggestion: the focus rescue in syncCenterTabs read document.activeElement after hiding the tab row. Chrome had already blurred it by then, so dropping the dataset while a tab had focus left focus on body behind an inert page.
    • Fix: it now captures hadFocus before hiding the row.
    • New Chrome check at 1280x900 and 390x844; it fails with the fix reverted.
  2. Nit: the harness header comment was stale. It is updated, and the sweep now starts at 320 px.
  3. Nit: two half-rewrapped comments. Both are rewrapped.
  4. Nit: engageCenter added osa-center-engaged before the inert and scroll-lock steps. It now adds it last, so a failure partway leaves the launcher drawn.

Round 2, at a5a7c23

All four findings are resolved, and the fixes add nothing new.

Checks

  • test-widget-host-api.js: 384 passed.
  • test-widget-notebook-entry.js: 203 passed.
  • All 32 suites pass.
  • Chrome harness: 448 checks, 0 failures.

There are no remaining findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant