Repository navigation
Inspectors: compact menu and panels, denser watches, text grids as square blocks - #725
Merged
Merged
Conversation
…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.
|
Warning Review limit reachedYou'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. View limit details
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. |
AM-L
approved these changes
Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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'sgridwatch, showed as about 230 px wide for over 800 px high: three times higher than wide, and rarely visible without scrolling.What changes
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.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.sequence [3] of string), the labels are in a narrow right-aligned column, so short values align.line-height: 1emandletter-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 inlocalStorage(bounded to 200 choices), like the period. A line whose length differs turns the block back into a tree.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/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.cppregisters Life's watches withwatchLife;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, withgetBoundingClientRectwidth/height within 8 % of 1 (352 × 352 px measured) and inside the default window; Tree and Block switch the layout.MinimalCoreAssetsunchanged),wf testonjs/developer(435 specs), CEF/Xvfb-L web-integration(109 tests).