Skip to content

Inspectors: compact menu and panels, denser watches, text grids as square blocks - #725

Merged
ambroise-leclerc merged 6 commits into
developfrom
723-inspecteur-compact
Nov 28, 2026
Merged

ambroise-leclerc merged 6 commits into
developfrom
723-inspecteur-compact

Conversation

@ambroise-leclerc

Copy link
Copy Markdown
Collaborator

Closes #723.

Why

The WebFront tab's menu was sized for touch (44 px entries, 14 px text, 220 px wide) and covered much of the interface it inspects. The inspector panels had 8 px margins, 32 px buttons and 24–26 px tree rows that repeated the label and kind of every element. A std::vector<std::string> of 32 strings of 32 characters, such as Life's grid watch, showed as about 230 px wide for over 800 px high: three times higher than wide, and rarely visible without scrolling.

What changes

  • Menu (menu.mjs, menuStyles): 28 px entries, 13 px text, smaller gaps, padding and minimum width; targets stay at least 24 × 24 px (WCAG 2.2, 2.5.8). Under @media (pointer: coarse) the entries take 44 px again.
  • Panels (inspector.mjs, inspector-watches.mjs, inspector-registry.mjs, inspector-packages.mjs, inspector-bridge.mjs): smaller header, list, table and tree spacing; the location of a watch on the line of its name (cut at its start, whole in its title); tree rows of 18 px when they hold no control, 24 px when they do, 44 px under a coarse pointer; focus outlines kept and extended to the new controls. The floating window's bar (inspector-host.mjs) is left to Inspecteurs : remplacer les boutons Detach et Attach par une petite icône explicite #722.
  • Watches, homogeneous containers: elements that are all leaves of one kind no longer repeat their kind; the container shows it once (sequence [3] of string), the labels are in a narrow right-aligned column, so short values align.
  • Watches, blocks: a container of two or more strings of the same (non-zero) length shows as a block by default: one line per element, no label or kind, line-height: 1em and letter-spacing: calc(1em - 1ch) so that each character is a square cell. A 32 × 32 grid measures 352 × 352 px and fits the default window. Lines keep the changed-line highlighting, the full value of a cut line and edition in place. A Tree button returns to the element-by-element tree and Block comes back; the choice is kept per watch name and container in localStorage (bounded to 200 choices), like the period. A line whose length differs turns the block back into a tree.
  • Display only: no change to the tree protocol or to the 200-element pages and passes of ADR-027 §3; nothing enters MinimalCoreAssets.
  • bundles.json: checksums of the changed sources. The sources are already at 1.2.2, ahead of the published 1.2.1 pin (Advance developer environment sources to 1.2.2 #719), so no version change is needed.
  • Docs: docs/DEVELOPER_ENVIRONMENT.md (menu sizes, dense panels, block mode and how to leave it), docs/WATCHES.md ("How the panel shows a container"), changelog.

Tests

  • test/developer/specs/inspector-watches-specs.mjs: kind shown once with the label column; block chosen for equal-length strings, Tree/Block button with focus kept, choice kept per watch; changed-line highlighting in the block and fallback to the tree when a length differs; edition and full value in a block; a 32 × 32 block is square (styles applied in the browser); bounded storage of the choices.
  • test/developer/specs/workspace-specs.mjs: menu entries of 24 to 32 px (44 px under a coarse pointer).
  • DeveloperBrowserIntegration (DeveloperTest.cpp registers Life's watches with watchLife; developer-specs.mjs): the menu's entries are 24–32 px and hit by the pointer at their centre, a click opens a submenu and a press outside closes it, the keyboard path is unchanged; the Watches panel shows Life's grid as a block of 32 lines without label or kind, with getBoundingClientRect width/height within 8 % of 1 (352 × 352 px measured) and inside the default window; Tree and Block switch the layout.
  • Local: CEF-off build and full CTest (MinimalCoreAssets unchanged), wf test on js/developer (435 specs), CEF/Xvfb -L web-integration (109 tests).

…uare blocks (#723)

The WebFront tab's menu is compact for a mouse (28 px entries, 13 px text,
24 px targets at least) and takes 44 px again under a coarse pointer. The
inspector panels have smaller margins, rows and controls, keep 24 px click
areas (44 px under a coarse pointer) and a visible focus.

In the Watches panel, elements that are all leaves of one kind show their
kind once, on their container, with their labels in a narrow column. A
container of strings of the same length, such as Life's grid, shows as a
block: one line per element in square character cells, keeping the
highlighting of changed lines, the full value and the edition in place.
Its Tree button shows the elements one by one again; the choice is kept per
watch and container in this browser. Only the display changes: the pages
and passes of ADR-027 section 3 are the same.
@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 52 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: 24d8527c-0642-40b8-9310-8cdcab51d67b
Commits

Reviewing files that changed from the base of the PR and between bf4b25c and d76e03e.

Files selected for processing: 14

  • docs/CHANGELOG.md
  • docs/DEVELOPER_ENVIRONMENT.md
  • docs/WATCHES.md
  • js/developer/environment/bundles.json
  • js/developer/environment/inspector-bridge.mjs
  • js/developer/environment/inspector-packages.mjs
  • js/developer/environment/inspector-registry.mjs
  • js/developer/environment/inspector-watches.mjs
  • js/developer/environment/inspector.mjs
  • js/developer/environment/menu.mjs
  • test/developer/specs/inspector-watches-specs.mjs
  • test/developer/specs/workspace-specs.mjs
  • test/web/DeveloperTest.cpp
  • 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

@ambroise-leclerc
ambroise-leclerc merged commit a965057 into develop Nov 28, 2026
27 checks passed
@ambroise-leclerc
ambroise-leclerc deleted the 723-inspecteur-compact branch November 28, 2026 16:44
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 : menu de l'onglet et fenêtres plus compacts, Watches plus denses et grille de texte carrée

2 participants