Repository navigation
feat(web): add selection, the sidebar with search, and hover previews (#349) - #366
Open
shunsuke-shimomura wants to merge 2 commits into
Open
shunsuke-shimomura wants to merge 2 commits into
shunsuke-shimomura wants to merge 2 commits into
Conversation
…#349) The supplementary information around the two surfaces. - Selecting a card opens the node's local view beside the graph, which stays in place; Esc or a tap on the background clears it. A node opened from elsewhere is revealed by expanding one path from a root down to it. - A sidebar on both surfaces lists the review queue and every node, and finds nodes by id and by description text. An entry shows mode, namespace and status, and opens the node on the surface it is on. - A reference to a node — a child or a parent in a local view, a sidebar entry — previews its mode, id, namespace, status and description on hover or focus. Opening and placing the preview is Radix's. - A local view lists the node's parents below the contract content, set apart from it, and each surface links to the same node on the other. No card, entry or preview offers a decision. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014DUhbQ16uSDG5M4Lt9o3NM
|
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 59 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. |
shunsuke-shimomura
marked this pull request as ready for review
November 26, 2026 07:22
The sidebar, the graph and the local view beside it shared the width in fixed proportions, which left a long local view cramped. The dividers between them can now be dragged, or moved with the arrow keys, and the widths are remembered — separately with and without a local view open. Resizing and remembering are `react-resizable-panels`'. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014DUhbQ16uSDG5M4Lt9o3NM
This branch has not been deployed
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.
Description
Closes #349. Part of #340. Stacked on #365.
The supplementary information around the two surfaces.
/graph/<id>); the graph staysin place and the card is outlined. Esc, a tap on the empty background, or Close clears the selection. There
is no separate graph of a node's neighbours: the local view is the close-up.
be dragged, or moved with the arrow keys when focused, so a long local view can be given the room it needs.
The widths are remembered across reloads, separately with and without a local view open. Resizing and
remembering are
react-resizable-panels'.from a root down to it (
revealingingraph/visibility.ts); nothing already open is closed.components/Sidebar.tsx), on both surfaces: the review queue as before, every node in theserver's parents-first order with its mode, namespace and status, and a search that narrows the list to the
nodes whose id or description contains what was typed. An entry opens the node on the surface the sidebar is
on.
components/NodeReference.tsx). A reference to a node — a child or a parent in a local view, asidebar entry — previews its mode, id, namespace, status and description on hover or keyboard focus. The
preview is opened, closed and placed by Radix's hover card. It is never the only way to read anything: the
reference is a link to the node's own local view.
not part of the local view.
No card, sidebar entry or preview offers a decision.
Test results
npm run typecheck;npm test: 15 files, 108 tests;npm run build.npm run e2e: 25 passed. New: selection opens the panel and leaves the graph's cards as they were; Esc anda background tap clear it; a searched node is revealed along one path, without overlap; a hover preview
appears and holds no control; the two surfaces lead to each other; dragging a divider
widens the local view and the width survives a reload; the arrow keys move the sidebar's divider.
Impact
The sidebar replaces the queue column on the review surface and appears on the graph surface. Two runtime
dependencies are added:
@radix-ui/react-hover-cardandreact-resizable-panels.Supplementary information
The namespace focus, the namespace badges and the one-hop node focus that #349 lists for removal were already
removed in #365, together with cytoscape, which they were built on. Nothing of them is left in
web/.On the graph, a selected node's local view is read-only even on a recording server: decisions are taken on the
review surface, one click away.
🤖 Generated with Claude Code
https://claude.ai/code/session_014DUhbQ16uSDG5M4Lt9o3NM