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 17fc16a
🔍 Latest deploy log https://app.netlify.com/projects/reagraph/deploys/68811d0d7952130008372230
😎 Deploy Preview https://deploy-preview-347--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.

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 Badge component for displaying overlay information on graph nodes, such as counts or status indicators. The Badge component is designed to be positioned relative to nodes and supports customizable styling and animations.

  • Adds a new Badge component with configurable colors, sizes, and positioning
  • Creates comprehensive Storybook demos showcasing different Badge configurations
  • Updates demo data to include count values for testing Badge functionality

Reviewed Changes

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

File Description
src/symbols/nodes/Badge.tsx Main Badge component implementation with dynamic sizing and positioning
src/symbols/nodes/index.ts Exports the new Badge component
stories/demos/Badge.story.tsx Storybook demos showing Badge usage scenarios
stories/assets/demo.ts Adds count data to demo nodes for Badge testing
Comments suppressed due to low confidence (1)

src/symbols/nodes/Badge.tsx:42

  • The default value of 1.5 for badgeSize is misleading since the prop description says it's a 'size multiplier relative to the node size', but looking at line 78, it's actually used as a multiplier. Consider renaming to 'sizeMultiplier' or updating the default to a more intuitive value like 0.25.
  badgeSize = 1.5,

@amcdnl amcdnl marked this pull request as ready for review July 24, 2025 11:40
@amcdnl amcdnl merged commit a26aed9 into master Jul 24, 2025
5 checks passed
@amcdnl amcdnl deleted the badge branch July 24, 2025 11:40
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