Skip to content

Conversation

@amcdnl
Copy link
Member

@amcdnl amcdnl commented Jul 23, 2025

image

@netlify
Copy link

netlify bot commented Jul 23, 2025

Deploy Preview for reagraph ready!

Name Link
🔨 Latest commit cc5ea8d
🔍 Latest deploy log https://app.netlify.com/projects/reagraph/deploys/6881f13a220f3d00083a5661
😎 Deploy Preview https://deploy-preview-348--reagraph.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@amcdnl amcdnl requested a review from Copilot July 23, 2025 13:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new concentric layout system for graph visualization, providing two different implementations of concentric node positioning. The changes add support for both 2D and basic concentric layouts with customizable parameters like radius, spacing, and centrality-based positioning. Additionally, a new Badge component is introduced for displaying overlay information on nodes.

  • Implements concentric2d layout with degree centrality-based positioning and configurable parameters
  • Adds basic concentric layout with level-based node distribution
  • Introduces Badge component for node annotations with customizable styling

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
stories/demos/TwoLayouts.story.tsx Adds Concentric story demo using range-generated nodes
stories/demos/Layouts.story.tsx Adds Concentric2d story with layout configuration options
stories/demos/Badge.story.tsx New story file demonstrating Badge component usage
src/symbols/nodes/index.ts Exports new Badge component
src/symbols/nodes/Badge.tsx New Badge component implementation
src/layout/types.ts Adds concentric layout types to LayoutTypes union
src/layout/layoutProvider.ts Integrates concentric layouts into layout provider
src/layout/index.ts Exports concentric2d module
src/layout/concentric2d.ts Implements 2D concentric layout with degree centrality
src/layout/concentric2d.test.ts Unit tests for concentric2d layout
src/layout/concentric.ts Implements basic concentric layout
Comments suppressed due to low confidence (1)

src/symbols/nodes/Badge.tsx:43

  • [nitpick] The default value of 2 for badgeSize is misleading as the parameter documentation describes it as a 'Size multiplier' but a value of 2 seems unusually large for a multiplier.
  badgeSize = 2,

@reaviz reaviz deleted a comment from evgenoid Jul 24, 2025
@amcdnl amcdnl marked this pull request as ready for review July 24, 2025 11:42
@amcdnl amcdnl merged commit f04707c into master Jul 24, 2025
5 checks passed
@amcdnl amcdnl deleted the concentric branch July 24, 2025 11:44
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.

3 participants