Fix code issues: remove duplicate import, upgrade deprecated viz.js, fix security vulnerabilities #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR addresses several code quality and security issues found in the AI voice assistant application:
Issues Fixed
1. Duplicate CSS Import Removed
Fixed duplicate import of
prismjs/themes/prism-tomorrow.cssinApp.tsxthat was causing unnecessary bundling overhead.Before:
After:
2. Upgraded Deprecated Visualization Library
Replaced the deprecated
viz.js@2.1.2with the actively maintained@viz-js/viz@3.16.0.Before:
After:
3. Fixed Security Vulnerabilities
Updated Vite from v5.4.19 to v7.1.3 to address moderate severity vulnerabilities in esbuild that could allow malicious websites to send requests to the development server.
npm audit)4. Improved Project Structure
Added comprehensive
.gitignoreto prevent committing build artifacts, dependencies, and cache files:Performance Improvements
Verification
✅ No breaking changes - All functionality preserved
✅ Build successful - No TypeScript or compilation errors
✅ Security clean - Zero npm audit vulnerabilities
✅ Visualization working - DOT graph rendering verified with new library
The application continues to work exactly as before, but now with modern, secure dependencies and cleaner code structure.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.