Skip to content

feat(web): add selection, the sidebar with search, and hover previews (#349) - #366

Open
shunsuke-shimomura wants to merge 2 commits into
feat/348-card-graphfrom
feat/349-selection-sidebar-hover
Open

shunsuke-shimomura wants to merge 2 commits into
feat/348-card-graphfrom
feat/349-selection-sidebar-hover

Conversation

@shunsuke-shimomura

@shunsuke-shimomura shunsuke-shimomura commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Description

Closes #349. Part of #340. Stacked on #365.

The supplementary information around the two surfaces.

  • Selecting. Clicking a card opens that node's local view beside the graph (/graph/<id>); the graph stays
    in 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.
  • Widths. On the graph surface the sidebar, the graph and the local view are separated by dividers that can
    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'.
  • Revealing. A node opened from the sidebar or from a link in a local view is shown by expanding one path
    from a root down to it (revealing in graph/visibility.ts); nothing already open is closed.
  • Sidebar (components/Sidebar.tsx), on both surfaces: the review queue as before, every node in the
    server'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.
  • Hover (components/NodeReference.tsx). 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 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.
  • Parents. A local view lists the node's parents under the contract content, behind a rule and labelled as
    not part of the local view.
  • Between the surfaces. Show in graph on the review surface; Open in review on a selected queued node.
  • Namespace is shown with the id on cards, in sidebar entries, in previews and in the local view's header.

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 and
    a 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.
  • Looked at on the dogfood project.

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-card and react-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

…#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
@shunsuke-shimomura shunsuke-shimomura added the enhancement ✨ New feature or request label Nov 26, 2026
@coderabbitai

coderabbitai Bot commented Nov 26, 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 59 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

Commits

Reviewing files that changed from the base of the PR and between 2273817 and 3dd47f9.

Files ignored due to path filters: 1

  • web/package-lock.json is excluded by !**/package-lock.json, !**/package-lock.json
Files selected for processing: 17

  • web/README.md
  • web/e2e/graph.spec.ts
  • web/e2e/recording.spec.ts
  • web/package.json
  • web/src/App.tsx
  • web/src/components/LocalView.tsx
  • web/src/components/NodeReference.test.tsx
  • web/src/components/NodeReference.tsx
  • web/src/components/Sidebar.test.tsx
  • web/src/components/Sidebar.tsx
  • web/src/graph/Card.tsx
  • web/src/graph/CardGraph.tsx
  • web/src/graph/GraphSurface.tsx
  • web/src/paths.ts
  • web/src/review/ReviewSurface.test.tsx
  • web/src/review/ReviewSurface.tsx
  • web/src/styles/app.css
  • 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

@github-actions github-actions Bot added the sys::SE システムズエンジニアリング label Nov 26, 2026
@github-actions github-actions Bot added the documentation 📓 Improvements or additions to documentation label Nov 26, 2026
@shunsuke-shimomura
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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation 📓 Improvements or additions to documentation enhancement ✨ New feature or request sys::SE システムズエンジニアリング

Projects

None yet

Development

Successfully merging this pull request may close these issues.

web: selection, the sidebar with search, and hover previews

1 participant