Skip to content

Inspectors: detach and attach with small icons instead of words (#722) - #726

Merged
ambroise-leclerc merged 2 commits into
developfrom
722-icones-detacher-attacher
Nov 28, 2026
Merged

ambroise-leclerc merged 2 commits into
developfrom
722-icones-detacher-attacher

Conversation

@ambroise-leclerc

Copy link
Copy Markdown
Collaborator

Closes #722.

Why

The inspectors (ADR-027) detach and attach a panel with two text buttons, Detach in the floating window's title bar and Attach in a detached panel's header, which take room in narrow bars beside the × close icon and the panel's controls.

What changes

  • js/developer/environment/menu.mjs: makeMoveButton(page, button, move) draws a 16 px inline SVG in currentColor (hidden from assistive technologies) and names the button by its action; inspectorMoves holds the two names: "Detach this panel to a window of its own" and "Show this panel in the floating window of the main page". Both inspector modules already import this file.
  • inspector-host.mjs: the detach button (webfront-inspector-detach) is a frame with an arrow leaving it to the top right, in the same 32 px button as × with the same focus outline. Its aria-label is always the action; when no detached container reaches the inspectors, it stays visible, greyed (aria-disabled), and its title still gives the reason.
  • inspector.mjs: the attach button (attach) of a detached panel is an arrow entering a frame, at least 32 px square, with the header's focus outline.
  • Class names unchanged. Nothing enters the core's embedded resources (MinimalCoreAssets unchanged).
  • docs/DEVELOPER_ENVIRONMENT.md names the buttons by their icon and tooltip; changelog entry.
  • bundles.json: the checksums of the three changed sources, from wf run build build-distribution --refresh-bootstrap (the bundles themselves are unchanged). distribution.json is already at 1.2.2, ahead of the 1.2.1 pin, so no version change is needed; DeveloperReleaseData.hpp keeps pinning the published 1.2.1.

Tests

  • Developer specs (wf test --manifest-dir js/developer, 431 specs): the icons, their accessible names and tooltips, and the greyed detach button that keeps its name while its tooltip gives the reason.
  • DeveloperBrowserIntegration (test/web/developer-specs.mjs): the detach icon's accessible name in the floating window (greyed with its reason under CEF, enabled with a native secondary window), and the attach icon of a detached panel (the Packages panel in its own page).
  • CEF-off build and CTest suite; -L web-integration with CEF under Xvfb.

The Detach button of the floating window's bar and the Attach button of a
detached panel's header become 16 px inline SVG icons in currentColor: a frame
with an arrow leaving it to the top right, and an arrow entering it. Their
aria-label and title say the whole action; a greyed Detach keeps its name and
its tooltip still gives the reason. The class names stay.
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 27 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d24d6d51-84a9-42b5-8888-cbdc55a7c535
Commits

Reviewing files that changed from the base of the PR and between a965057 and bb16c33.

Files selected for processing: 8

  • docs/CHANGELOG.md
  • docs/DEVELOPER_ENVIRONMENT.md
  • js/developer/environment/bundles.json
  • js/developer/environment/inspector-host.mjs
  • js/developer/environment/inspector.mjs
  • js/developer/environment/menu.mjs
  • test/developer/specs/inspector-specs.mjs
  • test/web/developer-specs.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…r-attacher

# Conflicts:
#	js/developer/environment/bundles.json
#	js/developer/environment/inspector.mjs
@ambroise-leclerc
ambroise-leclerc merged commit ca70935 into develop Nov 28, 2026
27 checks passed
@ambroise-leclerc
ambroise-leclerc deleted the 722-icones-detacher-attacher branch November 28, 2026 16:59
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.

Inspecteurs : remplacer les boutons Detach et Attach par une petite icône explicite

2 participants