Skip to content

Improve workspace graph hierarchy, cards, and performance#149

Draft
arul28 wants to merge 2 commits intomainfrom
cursor/graph-tab-hierarchy-ui-e174
Draft

Improve workspace graph hierarchy, cards, and performance#149
arul28 wants to merge 2 commits intomainfrom
cursor/graph-tab-hierarchy-ui-e174

Conversation

@arul28
Copy link
Copy Markdown
Owner

@arul28 arul28 commented Apr 12, 2026

Summary

This updates the Workspace graph so the default layout reads as a lane hierarchy (primary on top, children row by row) across all view modes (Overview, Dependencies, Conflict risk, Activity), makes lane cards richer and closer to the rest of the ADE glass/surface styling, reduces visual noise from overlapping edge types in Overview, and applies a small React Flow performance pass.

Layout (all modes)

  • Shared auto-layout: computeAutoLayout uses one primary-centric row algorithm for all, stack, risk, and activity. Depth is still steps from the workspace primary along parentLaneId; lanes not under primary go to a separate orphan row.
  • Activity mode: same rows as other modes; siblings within a row sort by activity score (desc), then stackDepth, name, createdAt.

Edges (Overview)

  • Topology edges from primary are omitted when a stack parent exists (avoids duplicate arrows).
  • Risk / overlap edges are hidden by default with toolbar "Show overlap web" (still always on in Conflict risk mode).

Lane cards

Richer git/conflict context, hierarchy hints, and a short interaction legend.

Performance

  • onlyRenderVisibleElements and nodesConnectable={false} on the graph ReactFlow instance.

Tests

  • npx vitest run apps/desktop/src/renderer/components/graph/graphLayout.test.ts

Notes

Full desktop tsc may still report unrelated workspace issues; the graph sources lint clean for the touched files.

Open in Web Open in Cursor 

Overview mode now auto-lays out primary-on-top hierarchy rows, hides
redundant primary topology edges when stack links exist, and gates
risk edges behind an explicit toggle. Lane cards show richer git and
conflict context with clearer affordances; React Flow uses visible-only
rendering for performance.

Co-authored-by: Arul Sharma <arul28@users.noreply.github.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ade Ready Ready Preview, Comment Apr 12, 2026 11:09pm

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 12, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a2428cea-577a-4d48-95d9-9a2c6cfcc4ab

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/graph-tab-hierarchy-ui-e174

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

Comment @coderabbitai help to get the list of available commands and usage tips.

Stack, risk, activity, and overview now share the same auto-layout
(rows from workspace primary). Activity mode sorts siblings by
activity score within each depth. Update view mode helper copy.

Co-authored-by: Arul Sharma <arul28@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants