Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: add node expand and prune feature to Graph front-end #1093

Open
wants to merge 53 commits into
base: main
Choose a base branch
from

Conversation

danielaskdd
Copy link
Collaborator

@danielaskdd danielaskdd commented Mar 15, 2025

Description

Add node expansion and pruning feature to Graph front-end.

Related Issues

#975

Changes Made

  • Refactoring graph view and sigma instance lifetime behaviors to avoid flickering during node operations
  • Add mode expansion and pruning features on property pop up dialogue box
  • Added data reload button to graph labels
  • Fix layout animation function
  • Fix zoom auto fit bug after nodes layout changed
  • Rearrange buttons on action tool bar

Checklist

  • Changes tested locally
  • Code reviewed
  • Documentation updated (if necessary)
  • Unit tests added (if applicable)

- Add smarter node boundary calculation
- Include padding around graph nodes
- Calculate optimal scale ratio
- Add error handling and null checks
- Animate transition to new zoom level
…le offset

• Adjust spread factor calculation
• Add debug logging
• Fix container padding in zoom calculation
• Extract node size update into helper fn
• Update node sizes for empty expansions
…l change

• Modify reset logic to clear sigma instance
• Remove manual node deletion
• Update GraphLabels to use reset()
• Simplify state cleanup process
• Ensure complete graph refresh
@danielaskdd danielaskdd added the ui web ui label Mar 15, 2025
@danielaskdd danielaskdd reopened this Mar 16, 2025
- Set overflow-hidden for main container
- Add overflow-auto to documents tab
- Add overflow-hidden to graph and retrieval tabs
- Set overflow-hidden for SigmaContainer
- Set overflow-hidden for retrieval testing container
- Added custom animation timer for smoother transitions
- Improved Force Directed layout parameters
- Added auto-stop feature for animations
- Removed PopoverPrimitive.Portal wrapper
- Added z-60 to TooltipContent
…mations

- Reduced animation duration to 300ms
- Decreased update interval to 200ms
- Extended auto-stop timeout to 3 seconds
- Increased margin in Noverlap layout
- Adjusted Force layout iterations
- Enhanced Noverlap settings for spacing
- Standardized maxIterations across layouts
@danielaskdd danielaskdd requested a review from LarFii March 17, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui web ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant