-
-
Notifications
You must be signed in to change notification settings - Fork 277
Add Universal Visual Output Flag (-V/--visual) #503
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
base: main
Are you sure you want to change the base?
Conversation
|
@Sahilbhatane is attempting to deploy a commit to the shashankss1205's projects Team on Vercel. A member of the Team first needs to authorize it. |
18b1a94 to
d5eadd7
Compare
|
@Shashankss1205 done |
There was a problem hiding this 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 implements a universal --visual flag (-V/--viz) that renders analyze/find/query results as interactive graph visualizations using vis-network.js. The feature adds browser-based visualization capabilities to the CLI toolkit.
Key Changes
- New visualization module with HTML generation for interactive graphs
- Global and per-command
--visualflag support across analyze, find, and query commands - Comprehensive test suite with 51 tests covering visualization functionality
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| src/codegraphcontext/cli/visualizer.py | New module implementing HTML generation and visualization functions for all supported command types |
| tests/test_visualization.py | Comprehensive test suite covering utilities, HTML generation, visualization functions, CLI integration, and XSS protection |
| src/codegraphcontext/cli/main.py | Added global --visual flag and integrated visualization calls in all analyze/find/query commands with proper context propagation |
| src/codegraphcontext/cli/cli_helpers.py | Added cypher_helper_visual() function for visualizing raw Cypher query results with security checks |
| CLI_Commands.md | Updated documentation with visual flag usage, examples, and new "Visual Graph Exploration" scenario |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@Shashankss1205 PR is ready for merge |
Summary
Implements a universal
--visualflag that renders any analyze/find/query results as interactive graph visualizations in the browser.Changes
New Files:
Modified Files:
--visual/-V/--vizflag and updated all analyze/find/query commandscypher_helper_visual()functionFeatures
cgc -V analyze calls my_functioncgc analyze calls my_function --visual~/.codegraphcontext/visualizations/Security
Testing
Closes #487