Closed gkorland closed 5 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
code-graph | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jan 11, 2024 10:34pm |
The codebase has undergone a significant shift in its graph visualization framework, transitioning from ECharts to Cytoscape for rendering graphs. This change has streamlined the data structure for graph elements, consolidating nodes and edges into a single array and standardizing the naming of properties to 'label' for clarity. Enhanced interaction features include improved zoom handling and data fetching on node interaction.
File Path | Change Summary |
---|---|
.../code-graph.tsx |
Switched from ECharts to Cytoscape for graph visualization; modified function signatures and logic for zoom events and node interactions. |
.../model.ts |
Renamed category to label in interfaces; merged nodes and edges into elements array; refactored methods in the Graph class for element manipulation. |
.../.env.local.template |
Added OPEN_API_KEY environment variable with placeholder value. |
.../page.tsx |
Imported Node from './components/model'; imported toast from '@/components/ui/use-toast'; added onFetchGraph and onFetchNode functions for graph data manipulation. |
🐇✨ To Cytoscape we hop, with a graphing twist, 'Label' not 'category', in a single array's mist. Zoom in, zoom out, with a double-click quest, Our code's evolution, truly one of the best. 🌟 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Refactor
Chores
OPEN_API_KEY
environment variable with the value[API_KEY]
.Documentation
app/page.tsx
file.