Improve workspace graph hierarchy, cards, and performance#149
Draft
Improve workspace graph hierarchy, cards, and performance#149
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
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>
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.
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)
computeAutoLayoutuses one primary-centric row algorithm forall,stack,risk, andactivity. Depth is still steps from the workspace primary alongparentLaneId; lanes not under primary go to a separate orphan row.stackDepth, name,createdAt.Edges (Overview)
Lane cards
Richer git/conflict context, hierarchy hints, and a short interaction legend.
Performance
onlyRenderVisibleElementsandnodesConnectable={false}on the graphReactFlowinstance.Tests
npx vitest run apps/desktop/src/renderer/components/graph/graphLayout.test.tsNotes
Full desktop
tscmay still report unrelated workspace issues; the graph sources lint clean for the touched files.