Repository navigation
refactor(ui): register menu controls with rendering owners - #177136
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
steipete
force-pushed
the
solid2/w-zero-menu-controls-final-20261019
branch
from
October 19, 2026 08:38
51383a6 to
25ee162
Compare
steipete
enabled auto-merge (squash)
October 19, 2026 08:46
Contributor
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 20, 2026
This was referenced Oct 21, 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.
What Problem This Solves
Menu currently discovers embedded controls by querying its rendered subtree, with local effects for positioning and prewarming. Register those controls with their rendering owners and use the shared anchored-overlay primitive. This removes all four Menu queries and both feature effects while preserving native keyboard navigation, nested dismissal, shortcuts, search, compound-row Tab order, and lazy prewarming.
Each menu tree has one control registry; refs register controls and release them with their rendering owner. Zag still owns ordinary row navigation. Prewarming keeps its existing double-animation-frame start, eight-item idle slices, timeout and cancellation. All production embedded-control callers are wired. The unused generic panel-header action field is removed; production already uses
headerActionView. No dependencies, host tags, CSS classes, routes or startup imports change.Evidence
Proof base:
c8bed42299ccab89860d7318cd497a32b476faab. Landed PR head:25ee1625631540df1c26d03dfef453ad9074e65a.The landed Hovercard change added the same
PersonName.refprop using a callback wrapper. The sole conflict keeps this PR's directref={props.ref}binding. Only the Menu commit was rebased; every one of its 27 authored file blobs is byte-identical to the reviewed51383a6c9b964a64f21f89c3a2bce739661e15f8. The 50 passing browser tests and isolated review are reused for those unchanged inputs. Frozen install, default tsrs, and paired strict builds were refreshed on the new base/head.pnpm tsgo:ui)pnpm deadcode:knip)25ee16256315; no findingsThe small bundle growth is explicit ref wiring for embedded controls. Lazy boundaries are retained. Captures verify the built commit metadata on each side. They exercise owner-search arrows/Escape, custom-icon native Tab traversal and one scoped patch, nested Escape restoration, reopening prewarmed menus, and pinning a compound agent row without losing focus after reorder. Full suites stay in CI; no local E2E battery or parity run.
Scope and remaining patterns
27 files: 529 additions / 304 deletions. Production: 20 files, 5,928 → 6,075 LOC (+147). Test/helpers: 7 files, 2,295 → 2,373 LOC (+78). Growth is the explicit control-ref wiring across existing callers; no duplicate navigation owner is introduced.
createEffectcreateRenderEffectuntrackaddEventListenerquerySelector(All)Survivors: the shared positioning effect at
ui/src/lib/reactive/overlay-anchor.ts:32; intentional initial identity atui/src/components/solid/menu.tsx:193; intentional keyed custom-renderer snapshot atui/src/components/solid/menu.tsx:443. No Menu feature effect remains. Existing native-focus flush boundaries remain unchanged.Screenshots
Retained inspected synthetic-only 1440×960 light captures compare base
b6e0872bdb72with reviewed head51383a6c9b96: owner search, custom icon, agent pin. Every pair has zero changed pixels. All authored rendering files remain byte-identical after the conflict repair; these are retained visual proof, not a new capture of the rebased head.Merged as
d08bb7657ff1f4286e7a90d5a462ae5b74597c60, verified onorigin/main. The PR-context check rejected the original prose-only problem statement andProofsection name; this body now uses the required headings. No product test failed.