Skip to content

feat: combine page details and diagnostics with copyable text - #4291

Merged
leaf-agent merged 2 commits into
mainfrom
feat/issue-4289
Oct 26, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
feat/issue-4289

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

About this page now brings page details and diagnostics into one dialog. Its read-only text displays use a shared template that includes a copy control by default, including the rendering environment and structured reports. The menu keeps its quick-copy shortcuts; a refused shortcut opens the same dialog with selectable text.

Copying over plain HTTP also works inside the dialog: the shared clipboard fallback puts its temporary selection field inside the active native layer, rather than in the inert document behind it. Embedded samples still follow their clipboard permissions. Touch copy controls use the shared 44px target floor.

The visible changes are the combined About dialog, copy controls beside each read-only block, and the selectable-text fallback after a menu copy fails. Desktop light/dark, constrained phone, keyboard traversal, Escape, and touch target edges were reviewed in the browser.

Verification
  • Focused browser checks cover combined details and diagnostics, clipboard contents, source loading/retry, captured-location navigation, revision changes, refused copies, and sample permissions. The combined-dialog check fails before the change; the HTTP modal check reproduces an empty clipboard before the fallback correction.
  • pnpm run check and the source pre-commit checks pass, including the runtime suite.
  • A served startup comparison reaches the first server-state presentation with 48 requests in both versions. The new text template is loaded on opening About; it adds no startup request.
  • Before/after catalogue states: page-about, page-about-dark, and page-about-phone.

Closes #4289 — automated triage

About this page now holds page identity and diagnostics together. Read-only diagnostic text includes its copy control by default. Plain-HTTP copying keeps its selection field inside the active native layer, where a modal can admit focus.

Closes #4289
@leaf-agent
leaf-agent merged commit ce843aa into main Oct 26, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the feat/issue-4289 branch October 26, 2026 20:54
leaf-agent added a commit that referenced this pull request Oct 27, 2026
The plain HTTP About test removed its hostname-to-loopback forwarding
before navigating away, while the old document could still send
interaction requests. Retain the route until the browser context closes,
matching the existing code-copy tests. This preserves #4291's
insecure-context clipboard fallback and its clipboard-content assertion
without changing product behavior.

A controlled reproduction on current main installs the browser clock
before removing the route, presses Tab, and advances 1000 ms before
navigation. Browser-health teardown then reports failed hostname
requests, including `/api/interaction` (502 through this sandbox's
proxy; the reported CI run refused the direct connection). The same
sequence passes with forwarding retained. The temporary clock probe is
not retained; the ordinary About case and both click/Enter code-copy
cases pass (3 tests).

Closes #4386 — automated triage

Co-authored-by: leaf-agent <[email protected]>
max-sixty added a commit that referenced this pull request Oct 31, 2026
… state fails (#4807)

Fifteen `leaf-dev stills` catalogue states failed to capture on every
run, base and head alike, so no stills comparison covered them, and
nothing said so: the command printed a `failed` line per state and
exited 0. They surfaced while comparing a cascade change across the full
catalogue (#4805).

### The command now fails when a state does

`leaf-dev stills` writes its whole report as before, `faces.txt`
included, then exits 1 if any state failed. Its module header states the
rule, and `test_stills.py`'s failed-driver and failed-analysis tests
expect it.

### Thirteen drivers followed a UI that has since moved

- **plan-option-picked, plan-option-card-picked:** an admitted pick is
announced as "Chose “…”" since #4325, without the "— sent" the driver
waited for.
- **share-link, share-link-dark:** since #4291 a refused copy of the
page's link opens About this page, where the link is read-only text,
rather than a field under the menu's About group. The driver waits for
the dialog's source reading, as page-about does, and the state frames
the dialog's Page details.
- **diff-filter, diff-filter-phone-dark:** #4323 dropped the file filter
from a one-file diff, which `#pr-key-hunk` is; the states filter the
walkthrough's 46-file `#pr-exact-patch`.
- **worktree-summaries (three variants):** since #4724 `lf-worktree`
slots its authored evidence into a shadow disclosure, and the evidence's
own `<details>` also matched the driver's selector. It presses the
widget's `.lf-worktree-summary`.
- **plan-capture (four variants):** area capture opens with no rectangle
until a drag draws one (#3814); `capture_menu` waits for the Capture
area region, as the suite's `open_capture_area` does.

### The contents map has a page again

#4724 moved the feature gallery's contents out of its sidebar into the
reading flow, where it is a folded "On this page" disclosure, so no
example drew the margin map: contents-over-reading failed, and
contents-spine and four more states captured the disclosure instead.
`tests/fixtures/pages/sidebar-contents.html` is a runbook laid out as
the site's docs pages are (`.layout-sidebar` with the contents in `aside
> .layout-track` beside a `.layout-column`), and all eight contents
states read it. As a fixture page it also joins the corpus, which had no
page drawing the map. The gallery's sentence about the map's rings goes,
since its folded disclosure draws none.

### Checks

- The 13 repaired states, the eight contents states and topic-contents
captured on two consecutive runs; each new capture was read by eye (the
filter at "0 of 46", the capture area mid-drag, the closed worktree row,
the picked option, the focused link, the map at rest and revealed over
the column).
- `dev/tests/model/test_stills.py` passes, and fails with the new exit
removed. The fixture passes `leaf page check --render` with no findings.

The gallery's topic-contents sample still says its Full view draws the
map, which it doesn't since #4724; that is left for its own change.

> _This was written by Claude Code on behalf of max-sixty_
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.

diagnostics UI

1 participant