mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-06 23:31:35 +09:00
## Description Choose a variable to preview its data. Use the row's Insert action to add its path at the editor cursor or replace selected text; the dialog stays open. Closes #6341 ## Implementation - Reuse the design system split view and tree components. - Show variables in a searchable tree on the left; show the selected value as read-only, JSON-highlighted preview above a resizable expression editor on the right. - Keep the expression editor below Variables on the left; show the selected value and live Result in matching top 70% / bottom 30% panes across the default 50/50 dialog split. - Keep the insertion caret visible while the expression editor is blurred, and collapse same-level tree siblings when a node opens. - Await PromiseLike scope values and direct nested PromiseLike property results; chained operations on nested PromiseLike values remain unsupported by the synchronous expression runtime. - Expand object and array values on demand. Large collections show 100 children at a time with “Show more”; expansion stops at 50 levels and circular references stop at their cycle. - Show sparse array holes as undefined-valued nodes while preserving their indices. - Format property paths with dot notation only for valid JavaScript identifiers; other keys use bracket notation. - Keep unavailable variables, scalar values, and empty containers visible and insertable. - Parse direct static bindings to open and highlight their current tree path, including path changes within the same variable. - Deduplicate scope values with the same display alias to match expression resolution; omit the selected object root from its tree. - Search variable names, nested property names (including array indices), and values with fuzzy matching. Start cycle-safe indexing only when a nonempty search is entered, then traverse incrementally in scheduled chunks with a 50-level limit; later keystrokes filter cached terms. - Insert `${path}` in template-literal text, and a bare path inside `${...}` or ordinary JavaScript. Replace a complete static member path only when the collapsed caret is strictly inside it; keep ordinary selection replacement and insertion at path boundaries. - Keep feature branch pushes quiet until a PR exists; update the branch preview alias on every PR push. - No package, saved data shape, or database changes. ## Checklist - [x] Rename the “Selected variable value” heading and accessible name to “Selected value”; update coverage and docs if needed. - [x] Bound the JSON preview before serializing large values; cover sparse arrays, dense collections, depth, cycles, long strings and keys, unsupported values, and throwing getters. - [x] Match encoded variable aliases when revealing selected nested paths, including paginated descendants. - [x] Review docs impact of preview bounds and alias path selection; no documentation update was needed. - [x] Replaced the expression popover with a resizable binding dialog and data preview. - [x] Removed variable value previews and redundant panel headings; kept the expression editor label. - [x] Preserved direct editing and autocomplete; covered cursor/selection insertion, nested tree selection, and Unicode identifier paths. - [x] Kept Email Resource save/reopen coverage aligned with direct expression editing; tree-path insertion is covered by the binding dialog tests. - [x] Added tests for path formatting, nested data, pagination, deep nesting, circular references, unavailable values, scalar values, and empty containers. - [x] Added a Storybook fixture for nested system.search data; visually reviewed the selected variable, expanded nested values, highlighted bound path, editor proportions, title, row alignment, and maximize/restore with Antigravity Neon Medium. - [x] Reviewed the authoritative Builder docs and updated the Expression editor guide. The linked apps/builder/docs/test-cases.md file is not present in this checkout; browser interaction coverage was added instead. - [x] Fixed duplicate display aliases so the selected root is omitted; added regression coverage for alias shadowing and pre-bound nested paths. - [x] Remove both panel titles per product feedback and preserve search spacing. - [x] Reviewed documentation impact of binding panel titles; no documentation update was needed. - [x] Keep adjacent variable paths as separate expressions when inserting; add regression coverage for variable names with spaces. - [x] Preserve whole-variable insertion for nonempty objects and arrays while keeping the selected root hidden; add regression coverage. - [x] Reviewed documentation impact of adjacent variable insertion; no documentation update was needed. - [x] Show the full original string in a tooltip when a string value is shortened in the data tree; add coverage. - [x] Show primitive preview values without repeating the selected variable name; keep the root row insertable. - [x] Reviewed documentation impact of primitive root labels; no documentation update was needed. - [x] Move keyboard focus to a variable row when it is clicked; keep preview selection and editor text intact. - [x] Reviewed documentation impact of variable-row focus; no documentation update was needed. - [x] Refresh the PR head branch preview alias on each PR push while keeping feature pushes without a PR disabled. - [x] Keep approved fork preview aliases unique by PR number while preserving branch aliases for repository PRs and pushes. - [x] Reviewed documentation impact of fork alias isolation; no user documentation update was needed. - [x] Expand pagination automatically to reveal selected binding paths beyond the first 100 children. - [x] Render sparse array holes without crashing and preserve their indices. - [x] Reviewed documentation impact of preview-alias change; no user documentation update was needed. - [x] Reviewed the complete diff; no unrelated files or generated output included. - [x] Add hover/focus “Insert” actions to variable and value rows, with regression coverage. - [x] Tighten the gaps above and below variable search to 1px; overlay Insert actions on hover/focus without reserving row width; keep item clicks preview-only and add regression coverage. - [x] Reviewed docs impact of search spacing and row insertion changes; updated the Expression editor guide. - [x] Replace visible Insert labels with the approved Right arrow icon and “Insert” tooltip in both panels; preserve accessible names and insertion behavior. - [x] Reviewed docs impact of icon actions; the guide describes preview-only row clicks and hover/focus insertion. - [x] Add fuzzy search across variable names, nested property names and values, with empty-result coverage. - [x] Review Builder docs for the new row actions and search; update the Expression editor guide. - [x] Defer fuzzy-search indexing until search is used; incrementally scan values and skip sparse-array holes. - [x] Review docs impact of lazy search indexing; no documentation update was needed. - [x] Reveal pre-bound high-index paths in a bounded window, navigate in either direction, and recenter when the expression path changes; cover sparse arrays and path selection. - [x] Reviewed documentation impact of tree window and spacing changes; no documentation update was needed. - [x] Keep the shared tree in Variables for navigating nested paths; show the selected value as read-only formatted JSON or a direct primitive preview in the right pane, with no tree. - [x] Review Builder docs for the updated navigation behavior; the existing Expression editor guide already covers row preview and Insert actions. - [x] Add vertical padding around the variable search field to match existing Builder search controls. - [x] Show scalar strings in the same read-only JSON preview with quotes and escaping. - [x] Review Builder docs for the string preview display change; no documentation update was needed. - [x] Use the approved down-arrow icon for row insertion; support Cmd/Ctrl+Enter on the focused tree row and show the shortcut in the Insert tooltip. - [x] Review Builder docs for the icon and shortcut change; the guide remains clear and the tooltip shows the shortcut. - [x] Put Copy path and Insert actions on Variables tree rows with keyboard-accessible tooltips and nested path coverage. - [x] Review Builder docs for the read-only value preview behavior; the existing guide already covers previewing variable data. - [x] Link the expression-editor info tooltip to the Expression editor guide and verify the link. - [x] Move the documentation link to a top-right IconLink in the tooltip and preserve the explanatory text. - [x] Share expand/collapse-all state updates in the design-system Tree and use them in Navigator, Pages, and the binding picker. - [x] Scope Cmd/Ctrl+Arrow item-move shortcuts to a focused Navigator TreeNode or focused Canvas; expose reusable move-direction handling in the design-system Tree and cover unrelated Builder focus, Canvas, and Navigator behavior. - [x] Reviewed documentation impact of focused tree move shortcuts; no documentation update was needed. - [x] Render selected values as read-only JSON with JSON syntax highlighting, including quoted strings; keep the preview flush to the dialog top and expression-editor separator. - [x] Remove value-pane actions and put Copy path to the left of Insert on Variables tree rows. - [x] Remove the Variables panel title while preserving search spacing. - [x] Review Builder docs for these tree and preview behavior changes; record no additional documentation impact. - [x] Keep dialog-specific implementation, tree, story, and tests together in `builder/shared/binding-dialog/`; leave cross-feature controls and utilities in `builder/shared/`. - [x] Bound expand-all by rendered rows, including already-expanded descendants; cover large nested values, collapsed ancestors, pagination, and DAG sharing. - [x] Review documentation impact of tree expansion limits and file organization; no documentation update was needed. - [x] Add padding inside the Variables tree’s floating Copy/Insert background while keeping the row height fixed and avoiding overlap. - [x] Review documentation impact of tree action spacing; no documentation update was needed. - [x] Extract deterministic binding expression, target-resolution, validation, and search transformations into pure utilities; keep React state and chunk scheduling in the component and cover with unit tests. - [x] Review documentation impact of the pure utility refactor; no documentation update was needed. - [x] Resolve promise-backed Result evaluation review finding; rerun focused coverage and review docs impact. - [x] Replace the Expression editor guide screenshots with matching light and dark captures showing the current “Selected value” and “Expression result” headings. ## Verification - Latest head `ce9aa7b3addc4722f043c7827ef671843515e709`: the binding-dialog browser suite passed (34/34); Builder typecheck, Oxlint, Oxfmt, and `git diff --check` passed. Neon Medium reviewed the rendered `Bound` story at 1440×900 in light and dark schemes without saving screenshots; Neon High reviewed the full diff and found no issues. CI passed for the main workflow, lint, submodule checks, Ubuntu and Windows fixtures, staging preview, and approved visual regression. Beta package publishing was skipped. - Search spacing and bounded-window follow-up at `4852df2d9b`: focused browser suites passed (26/26), tree unit tests passed (13/13), Builder typecheck, Oxlint, Oxfmt, and `git diff --check` passed. Coverage includes sparse index 99999, navigation to preceding pages, inserting the selected nested path, recentering after path changes, 1px search gaps, and opaque floating-surface Insert buttons. - Neon Medium visual review of `builder-builder-binding-popover--bound` at 1280×800 in light and dark schemes confirmed 1px Search gaps, matching floating/selected backgrounds for overlay actions, visible nested `search`/`tag` rows and bound path, and no clipping. No screenshots were captured per request. There were zero console/page errors; 19 standard Storybook externalization warnings appeared. - CI for head `4852df2d9b`: all current required jobs passed, including main workflow, development preview, Windows/Ubuntu fixture checks, E2E shards, and the approved visual-regression run. The first unapproved visual run failed on the reviewed dialog changes (plus an 83-pixel settings-control diff); the rerun after applying `visual-change-approved` passed. The first Builder core run hit an unrelated publish-static timing assertion; its retry passed. Beta publishing was skipped. - Focused binding tree and dialog tests — 25 passed, including full-value tooltip hover and tree keyboard behavior. The tooltip browser test failed before the fix as expected. The sparse-array test reproduced its reported TypeError when hole materialization was temporarily removed. - Variable-row focus: the focused browser test file passed (10 tests). Antigravity also ran 4 focused browser files (15 tests), 3 unit files (43 tests), Builder typecheck, Oxlint, and Oxfmt successfully. The focus regression failed before the fix and passed afterward. - Builder typecheck, Oxlint, Oxfmt, and git diff --check passed. - Primitive root preview: focused tree and dialog tests passed (25 tests across 3 files), including string, number, boolean, null, and long-string tooltip coverage. The new browser assertion failed before the change and passed afterward. Builder typecheck, Oxlint, and Oxfmt passed. - Binding panel titles: the binding dialog browser test passed (11/11); Builder typecheck, Oxlint, Oxfmt, and `git diff --check` passed. No screenshot was captured, per Oleg’s request to skip visual screenshots. - Adjacent variable insertion: regression coverage reproduced the merged identifier before the fix and verified that `sanity_url + company$32$name` evaluates to `sanity_urlcompany name`. Unit and browser tests, Builder typecheck, Oxlint, Oxfmt, and `git diff --check` passed. - No screenshots were captured for this primitive preview change, per Oleg’s request to skip visual screenshots. - No new screenshots were captured for the tooltip follow-up, per Oleg's request to skip visual screenshots. - CI for `79d32dbd5fb5ef086a0ec1748c78b00af52e4005` passed. The initial main run hit one unrelated publish-test timeout; its failed Builder core job passed on retry. Visual regression passed after restoring `visual-change-approved`. Lint, submodule, fixture tests on Ubuntu and Windows, and staging deployment passed; beta package publishing was skipped. - CI for the tooltip follow-up (`e978af19b0394172c517f44289bbbde8d3af3236`) passed: main workflow, visual regression, lint, submodule check, staging deployment, and Ubuntu/Windows fixture checks. Beta package publishing was skipped. - The PR deployment updated `https://codexpick.development.webstudio.is` at the latest head. - Antigravity Neon Medium visual and interaction review: no layout or path-selection issues, 0 console errors and 0 page errors. The review saw only Storybook Vite externalization warnings. - Re-rendered the Storybook Bound story and visually confirmed one selected `system` in the variable list, no repeated root in the tree, and expanded `search`/`tag` values. Shared the screenshot in chat. - Current head `bc5c9cda20`: main workflow, lint, submodule checks, and PR staging deployment passed. The first visual regression run showed the previously reviewed dialog differences after the revision approval label was cleared; the approved rerun passed. Beta package publishing was skipped. - Current head `7512e2e7a05e0b22e9b042f99ce0fc0d3d0e94c3`: main workflow, lint, submodule check, fixture tests on Ubuntu and Windows, PR staging deployment, and the approved visual regression rerun passed. Beta package publishing was skipped. The first visual regression run failed on the requested preview changes; the approved rerun passed. - Current head `1c72fad391c3d8b31a54a42070c125c422a81146`: main workflow, lint, submodule check, Ubuntu and Windows fixture checks, and PR staging deployment passed. The first visual regression run showed the previously approved binding-dialog differences; the rerun with the existing approval label passed. Beta package publishing was skipped. - Insert actions and variable search at current head `fafbe8bc90`: focused Builder browser suite passed (16/16 in Chromium), Builder typecheck, Oxlint, Oxfmt, and `git diff --check` passed. Tests cover insertion of nonempty object/array roots, child paths, row-click preview behavior, hover/focus actions, label and value spacing at minimum pane widths, fuzzy matches across variable names, nested keys, array indices, primitive values and `undefined`, empty-result copy, clearing search, cycles, and preview retention. - Visual review with Antigravity Neon Medium of the rendered Bound Storybook story at 1280×900 found no clipping or overlap. Minimum left/right pane widths were checked; Insert actions appeared on hover and keyboard focus. No screenshots were captured, per Oleg’s request. - Binding tree follow-up, Neon Medium review: design-system tree unit/browser tests passed (22/22), binding data-tree unit tests passed (16/16), binding dialog browser tests passed (26/26), design-system and Builder typechecks passed, Oxlint and Oxfmt passed, and `git diff --check` passed. Neon reported no remaining findings. Coverage includes fair bounded expand-all, cycle protection, Option/Alt expand/collapse, Cmd/Ctrl+Enter insertion, Cmd/Ctrl+C path copying, focus-preserving Copy activation, and the JSON language facet. - Previous head `1a8cc3e1a3b5d5b4178d881c40b0686fec3b17dc`: main workflow, lint, submodule check, and PR staging deployment passed. [Visual regression](https://github.com/webstudio-is/webstudio/actions/runs/46713316245) failed on four binding-popover stories, an 83-pixel settings-controls diff, and a 263-pixel JSON variable-preview diff. No visual approval label or rerun was applied. - - Expression-editor tooltip IconLink follow-up: focused binding dialog browser suite passed (26/26), Builder typecheck and Oxlint passed, Oxfmt passed for both changed files, and `git diff --check` passed. The test verifies plain-text explanatory copy and the top-right external docs link. - Current head `c038768df300e37eaf7bb6babb65bdbf6ca93fec`: the expression-editor tooltip now uses a top-right IconLink to the docs. Focused binding dialog browser tests (26/26), Builder typecheck, lint, formatting, and `git diff --check` passed. Main workflow, lint, submodule check, and PR staging deployment passed. Visual regression failed on six differences, including the intentional binding-dialog changes and small settings/variable-preview diffs; this remains pending visual review. The portal-event guards and tests from `afb9a431bb` remain; this follow-up fixes the separate global Cmd/Ctrl+Arrow item-move shortcut bug. - Focused item-move shortcut fix at `5c68c3afeb`: design-system tree tests passed (28/28), Builder command-emitter and Navigator browser tests passed (8/8), binding dialog browser tests passed (26/26), design-system and Builder typechecks passed, lint and formatting passed, and `git diff --check` passed. Coverage verifies Cmd/Ctrl+Arrow direction mapping, Navigator focus scope, other-tree/unrelated focus, portal event guards, and focus restoration only after `onMove`. Neon Medium review found no remaining findings. Documentation review found no update needed. - Follow-up at `697469632f`: kept Navigator browser tests isolated from Vitest’s parallel iframe locator. - Canvas shortcut correction at `46c37e61f6`: Cmd/Ctrl+Arrow moves selected instances when the Canvas has focus; Builder-wide events skip these commands, and Navigator moves remain scoped to its focused tree. Restored Canvas move E2E coverage alongside Navigator coverage. - Local verification at `46c37e61f6`: Builder command tests passed (57/57), focused shortcut browser tests passed (8/8), Oxfmt and `git diff --check` passed. Main workflow passed on retry after an unrelated flaky publish test timeout; staging, lint, submodule checks, and all E2E shards passed, including the Canvas/Navigator shortcut shard. Visual regression remains failed on four binding-dialog stories and two small pre-existing differences (settings controls and JSON preview); no screenshots or visual approval were applied per Oleg’s request. - Binding-dialog folder organization and expand-all row cap at `e4ccb9e793`: focused suites passed (tree 25/25; tree + evaluator 27/27; dialog save + settings caller 29/29). Builder typecheck, Oxlint, formatting checks, and `git diff --check` passed. Neon Medium reviewed the folder move and row-budget fix and found no issues. - CI for `e4ccb9e793` caught one Oxfmt issue; it was fixed and pushed as `60c99715e7`. CI for head `60c99715e7`: main workflow, both lint runs, submodule checks, staging deployment and fixture checks, Builder/CLI/package test suites, and all five Builder E2E shards passed. The first main run hit the unrelated flaky `publish-static.test.tsx` assertion; its targeted retry passed. Visual regression remains failed on the four binding-dialog snapshots plus small Settings-control and JSON-preview diffs. No screenshots or visual approval were applied per Oleg’s request. - Variables tree action padding at `e824c52cde`: Neon Medium review found no issues; focused Chromium binding dialog tests passed (28/28); Oxfmt, Oxlint, and `git diff --check` passed. The 2px padding uses a theme token and `box-sizing: border-box` keeps the controls inside the 24px row. - Pure utility extraction at `f5d2f7c689`: utility tests passed (16/16), binding dialog Chromium tests passed (28/28), Builder typecheck, Oxlint, Oxfmt, and `git diff --check` passed. Neon Medium reviewed the full refactor and found no issues. - Four requested UI changes verified in Storybook with Antigravity Neon Medium at 1440 × 900. Bound, ExpressionSyntaxError, Error, Default, and ResetDisabled stories showed the 50/50 split, aligned 70/30 panes, nested `system.search.tag`, live success/error Result, and visible blurred caret. No screenshots were saved. - Focused verification after review fixes: SDK test (4/4); Builder unit tests (113/113); binding dialog and code-editor browser tests (44/44); SDK and Builder typechecks; lint, formatting, and `git diff --check` all passed. A further malformed-identifier regression test passed (utility suite 26/26) with Builder typecheck, lint, formatting, and `git diff --check` passing. - Antigravity Neon High reviewed the full change set, its fixes, and the final malformed-identifier guard; the final review found no issues. - Known runtime limit: direct nested PromiseLike property results are awaited, but chained member access, operators, and method calls on a nested PromiseLike are evaluated synchronously and may show a Result error. - Binding dialog E2E selector fix: both the data-variable binding flow and author-props binding flow now target the accessible `Expression editor` textbox. Focused runs passed (data-variable and managed-form tests: 3/3; author-props persistence test: 2/2 including setup). Neon High reviewed both helper changes with no findings. ## Review - [x] Conceptual and detailed code review with Antigravity Neon High; verified findings were fixed and re-reviewed. - [ ] Test on a preview environment. - Search and row insertion follow-up at `fafbe8bc90`: focused binding dialog browser suite passed (16/16), Builder typecheck, Oxlint, Oxfmt, and `git diff --check` passed. Search fuzzy-matches variable names, nested property names, array indices, and values. Variable/value rows expose Insert on hover and keyboard focus. Docs were updated. - Follow-up at `5dd607a3d1`: the resource-panel browser suite passed (42/42) after replacing a browser-adapter CodeMirror click locator with direct editor focus. The binding dialog suite passed (16/16); Builder typecheck, Oxlint, Oxfmt, and `git diff --check` passed. Its CI run passed. - Lazy search-index follow-up at `4aaeff644c`: focused browser tests passed (21/21), Builder typecheck, Oxlint, Oxfmt, and `git diff --check` passed. The added regression fails against the old eager implementation and passes with the fix. All CI checks for this head passed. - Current head `4aaeff644c3f152c93fe348d012c41ffb776f557`: all PR checks passed, including visual regression, Builder/package/CLI test jobs, Builder E2E shards, Ubuntu and Windows fixture checks, deployment-host, and the development preview. Beta publishing was skipped. No checks failed on the final head. - [x] Add parser-aware `${path}` insertion in template text and replace a complete static member path only when the caret is inside it; cover parser boundaries and insertion behavior. - [x] Review Builder docs for the new insertion behavior; no documentation update was needed. - Context-aware path insertion at `85bb97aa0f`: the four focused unit/browser test files passed (78/78). Tests cover template text, interpolation, escapes, nested/incomplete templates, path boundaries, static bracket paths, dynamic access, calls, operators, selections, and multiple cursors; three new edge-case blocks failed before their fixes and passed afterward. Builder typecheck, Oxlint, Oxfmt, and `git diff --check` passed. All CI checks for this head passed: main workflow, visual regression, lint, submodule, Ubuntu and Windows fixture checks, E2E shards, and development preview. Beta package publishing was skipped. One superseded visual-regression run was cancelled. - Search spacing and row-action update at `47a83edcc1`: focused browser suites passed (24/24), design-system and Builder typechecks passed, Oxlint and Oxfmt passed. - Icon action update at `a39af6bc9b`: the same focused suites passed (24/24), with typechecks, Oxlint and Oxfmt passing. The approved Right arrow icon has the accessible name and tooltip “Insert”. - Documentation follow-up at `0b4d5b634c`: updated the Expression editor guide to match preview-only row clicks and explicit hover/focus insertion. `git diff --check` passed; Oxfmt passed on a temporary copy because the repository ignores docs paths. CI for the latest head is running. - Shared binding tree navigation at `52a4d9adbd`: focused dialog/tree browser tests passed (27/27), Builder typecheck, Oxlint, Oxfmt, and `git diff --check` passed. The Expression editor guide already matched the approved preview/Insert behavior. Neon Medium ran in the existing Antigravity conversation but could not inspect a live viewport; no screenshots were captured per request, so visual review of this follow-up remains incomplete. - Copy path action: binding dialog browser suite passed (24/24), including nested object and array paths, tooltip text, clipboard contents, and Insert behavior. Builder typecheck, Oxlint, Oxfmt, and `git diff --check` passed. - CI regression follow-up at `9a6a0c8f2b`: corrected two Email Resource save/reopen browser tests to target the editable expression editor instead of the read-only JSON preview. Both tests reproduced and passed locally; focused resource-panel suite passed (42/42), binding dialog suite passed (24/24), Builder typecheck, Oxlint, Oxfmt, and `git diff --check` passed. CI rerun is in progress. - Earlier CI for head `9a6a0c8f2b84bc6f4e47de7945423a003b9f16f3`: main workflow, lint, submodule checks, and PR staging checks passed. Visual regression failed on four binding-popover stories and an 83-pixel settings-controls difference; visual screenshots were skipped at Oleg’s request. - Review follow-up at `057e32f88a`: focused Builder suites passed (25/25), Builder typecheck, Oxfmt, Oxlint, and `git diff --check` passed. Both regression tests failed against the previous implementation and passed with the fix. - Current head `057e32f88a`: CI checks are running. - [x] Harden bounded preview serialization for enormous BigInts, cross-realm Dates, overridden `toJSON`, sparse arrays, and throwing getters. - [x] Remove the unused `buttonsOverlay` option from the design-system list item; it had no remaining callers. - [x] Review documentation impact of these review fixes; no documentation update was needed. - Review fixes at `09c80c2a93`: focused Builder suites passed (28/28); Builder and design-system typechecks passed; design-system tests passed (298/298); formatting, lint, and `git diff --check` passed. Neon Medium independently reviewed the changes and found no remaining issues. - Current head `09c80c2a93`: CI checks are running. - Final CI for head `09c80c2a93`: main workflow, both lint runs, submodule checks, and PR staging workflow passed. Visual regression failed on the four binding-dialog stories plus small differences in Settings controls, the JSON variable preview, and the design-system color picker. These differences remain unapproved; no screenshots were captured per request. - [x] Make the design system the single source for tree move shortcut directions, keys, and hotkey tokens; derive Builder command shortcut metadata from it while preserving Canvas scope. - [x] Review documentation impact of shared tree shortcut definitions; no documentation update was needed. - Shared shortcut follow-up at `c6e700b068`: design-system tree tests passed (20/20); the isolated Builder shortcut metadata test passed (1/1), focused command tests passed (52/52), Navigator shortcut browser tests passed (4/4), and design-system and Builder typechecks passed. Neon Medium reviewed the change and its test cleanup with no remaining findings. - Final CI for head `c6e700b068`: main workflow, both lint runs, submodule checks, and PR staging (including Ubuntu and Windows fixture checks) passed. Visual regression failed on the four binding-dialog stories plus small differences in Settings controls and the JSON variable preview. The differences remain unapproved; no screenshots were captured per request. - [x] Guard variable-tree reads from throwing getters, preserve manual preview selection and collapsed branches across fresh scope references, and handle unavailable/rejected clipboard writes. - [x] Remove unused binding-tree flattening/value-summary code and extract `evaluateExpressionWithinScope` so non-dialog callers do not import the dialog module. - [x] Review documentation impact of these fixes; no documentation update was needed. - Neon Medium full-PR review identified three behavior issues, all fixed in `b15ae65e32`; a follow-up Neon review found no remaining defects. - Follow-up verification: 8 focused Builder test files passed (109/109); design-system and Builder typechecks passed; Oxlint, Oxfmt, and `git diff --check` passed. Coverage includes throwing getters, manual selection/collapse across scope updates, and unavailable or rejected clipboard writes. - Current head `b15ae65e32`: CI checks are starting. - Current head `e824c52cde`: main workflow, both lint runs, submodule checks, and staging deployment with Ubuntu/Windows fixture checks passed. Visual regression reports the same six diffs as the prior head; this padding change introduced no additional snapshot differences. No screenshots or visual approval were applied per Oleg’s request. - CI for head `f5d2f7c689`: main workflow, both lint runs, submodule checks, staging deployment and fixtures passed. The first run’s unrelated publish-static timing assertion passed on retry; the E2E shard’s artifact-download failure also passed on retry. Visual regression still reports the same six diffs from earlier heads; this refactor adds no UI changes. No screenshots or visual approval were applied per Oleg’s request. - [x] Reduce binding-dialog ad hoc CSS by reusing existing Flex, Grid, PanelContent, and Tree patterns while preserving the approved layout and interaction states. - [x] Review Builder documentation impact of the CSS reuse cleanup; no documentation update was needed. - CSS reuse cleanup: Builder typecheck passed; focused binding tree and dialog unit tests passed (41/41); binding dialog Chromium tests passed (28/28); Neon Medium review found no issues; `git diff --check` passed. No screenshots were captured. - CI for head `a0feb7e61d153a59b2dfa4c1cc64eadbde4bc998`: main workflow, PR lint, submodule checks, staging deployment, and Ubuntu/Windows fixture checks passed. Visual regression still reports the same six known differences: four binding dialog stories, the 83-pixel Settings control diff, and the 263-pixel JSON variable preview diff. No screenshots were captured or visual approval applied. - [x] Remove the pass-through expression evaluator wrapper; import the runtime evaluator directly at its callers and update the resource-panel spy to target the owning runtime module. - [x] Review documentation impact of removing the evaluator wrapper; no documentation update was needed. - Evaluator cleanup: runtime tests passed (157/157); focused settings and binding dialog tests passed (76/76); Builder typecheck, repository lint, formatting, and `git diff --check` passed. Neon Medium review found no issues. - CI for head `44f4e2d2baa9ca3452634f76ace7c562308e264f`: main workflow, PR lint, submodule checks, staging deployment, and Ubuntu/Windows fixture checks passed. Visual regression reports the same six known differences (four binding dialog stories, the 83-pixel Settings control diff, and the 263-pixel JSON variable preview diff); no new visual differences were introduced by this wrapper removal. - [x] Route production text-copy operations through one shared `copyTextToClipboard` implementation, preserving each caller’s feedback and permission checks. - [x] Review documentation impact of centralizing clipboard writes; no documentation update was needed. - Clipboard helper consolidation: helper and caller tests, design-system and Builder typechecks, lint, formatting, and `git diff --check` passed. Neon Medium reviewed the final diff with no findings. Only the shared helper writes to `navigator.clipboard`; direct E2E clipboard setup remains in tests. - CI for head `87f3bc815e5365b66bac865459e501a1bbb93b1a`: main workflow, PR lint, submodule checks, staging deployment, and Ubuntu/Windows fixture checks passed. Visual regression reports the same six known differences (four binding dialog stories, the 83-pixel Settings control diff, and the 263-pixel JSON variable preview diff). - [x] Keep dialog-title layout separate from the truncating Text component so long titles ellipsize without resets for Text's internal vertical styles; cover it in Chromium. - [x] Review documentation impact of the dialog-title layout correction; no documentation update was needed. - Dialog title fix: dialog Chromium tests passed (12/12); design-system typecheck, Oxlint, Oxfmt, and `git diff --check` passed. Neon Medium reviewed the implementation and regression test with no findings. No screenshots were captured. - CI for current head `1d57a99d631bc3c67e602deb0add35be1370c78a`: main workflow passed after retrying one transient `publish-static.test.tsx` timing assertion; PR lint, submodule check, staging workflow, and Ubuntu/Windows fixture checks passed. Visual regression reports the same six known differences (four binding dialog stories, the 83-pixel Settings control diff, and the 263-pixel JSON variable preview diff). - [x] Remove the unnecessary shared `updateTreeExpandedIds` API; restore Navigator and Pages expansion handling and keep picker-specific bounded expansion local. - [x] Review documentation impact of moving tree expansion handling back to its existing callers; no documentation update was needed. - Removed the shared expansion helper and restored the pre-existing Navigator and Pages behavior. Binding picker single-node toggles and collapse-all now use direct set operations; bounded paginated expansion remains picker-specific. Design-system tree tests passed (5/5), binding data-tree tests passed (25/25), Navigator and Pages tests passed (29/29), both package typechecks passed, Oxlint and Oxfmt passed, and `git diff --check` passed. Neon Medium review found no issues. No documentation update was needed. - CI for head `4e168aba863cb0682b9926eb205901680ecce9c1`: main workflow passed after the same transient `publish-static.test.tsx` timing assertion passed on retry; PR lint, submodule check, staging workflow, and Ubuntu/Windows fixture checks passed. Visual regression failed on the six known differences (four binding dialog stories, the 83-pixel Settings control diff, and the 263-pixel JSON variable preview diff) plus a 440-pixel color-picker diff. These are outside this cleanup’s changed files. - [x] Share CodeMirror language loading across Builder code, text-content, and binding preview; remove the preview’s redundant JSON language cache and cover load, language-change, and failure behavior. - [x] Resolve selected binding paths from parsed segments once; remove repeated expression parsing and JSON ID round-trips while preserving aliases, array indices, and pagination. - [x] Keep tree key/direction definitions in the design system and derive Builder command names and hotkey tokens from one mapping. - [x] Remove redundant search-index alias identity state, repeated root fallback construction, duplicate path-key formatting/parsing, and repeated child reads during expand-all; cover preserved behavior. - [x] Keep the shared JSON preview component and tests in `builder/shared/`, where both variable editors and the binding dialog use them. - [x] Review documentation impact of these code reuse and organization cleanups; no documentation update was needed. - [x] Keep shared JSON preview code in the shared folder when called by variable editors; remove the dead selected-path wrapper; place language-matching tests with the implementation; cover stale-load cancellation on language changes and safe late resolution after unmount. - [x] Review documentation impact of these review fixes; no documentation update was needed. - Code reuse cleanup: focused Builder unit tests passed (59/59); shared code editor browser tests passed (10/10); design-system tests passed (299/299); Builder and design-system typechecks, repository lint, Oxfmt, and `git diff --check` passed. Neon Medium reviewed the cleanup and follow-up corrections with no remaining findings. No generated or unrelated files were included. - CI for head `596c13f3ec33da9db2c6f31e0f94f12e06aa2f44`: main workflow, PR lint, submodule check, staging preview, and Ubuntu/Windows fixture checks passed. Visual regression still reports the seven previously recorded differences: four binding-dialog stories, Settings controls (83 pixels), JSON variable preview (263 pixels), and the color picker (440 pixels). This cleanup changes no styling, and these differences match the prior PR baseline notes. - [x] Keep the expression editor's insertion caret visible while it is unfocused; hide the marker while focused. - [x] Make tree expansion accordion-style among sibling nodes at the same level; cover independent branches and nested siblings. - [x] Move the expression editor under Variables on the left; start the horizontal split at 50%, with the editor using the bottom 30% of that side. - [x] Keep the selected value preview in the top 70% of the right side and add a read-only Result editor in the bottom 30%, showing the current expression result or evaluation error. - [x] Update Storybook and interaction coverage for the layout, accordion behavior, focus marker, and live result/error states. - [x] Review Builder docs for the new layout and result preview; update docs if needed. - [x] Await promise-backed scope variables used within compound expressions; surface async rejection and stale rejection safely. - [x] Match Result lint values and variable aliases to the expression editor; keep encoded IDs out of error text. - [x] Prevent Reset from surfacing an unhandled evaluation rejection or removing a binding with an unresolved value. - [x] Add the approved Result-panel explanation to the Expression editor guide. - [x] Fix and verify fake-caret focus behavior and blinking; cover the focus transition and confirm it blinks only while blurred. - [x] Add the “Selected variable value” title with spacing matching “Expression result”; rename “Result” to “Expression result”. - [x] Review Builder docs for the renamed result section and update them if needed. - [x] Update binding E2E helpers to target the named Expression editor now that Result adds another CodeMirror textbox; verify affected binding save flows. - [x] Validate PromiseLike method calls after resolution; report errors when the resolved value does not support a method. - [x] Preserve expression lint types for shadowed aliases and raw scope identifiers, before and after awaiting values; add regression tests. - [x] Guard thenable detection and error formatting against throwing getters and coercion; add coverage. - [x] Restore `$builderMode` in the Reset rejection browser test so state cannot leak. - [x] Keep an expanded tree branch open when Alt+Expand exceeds the row budget; add regression coverage. - [x] Expose Result read-only, invalid and live-update semantics to assistive technology. - [x] Handle PromiseLike values nested in objects when evaluating a Result expression; add coverage if supported by the runtime. - [x] Treat out-of-range `$<digits>$` sequences in expression identifiers as binding errors without crashing render; add focused coverage.