Skip to content

Comments

feat: Refactor DOT graph sanitization and enhance testing#18

Merged
magic5644 merged 2 commits intomainfrom
feat/enhance/rendering/messaging
Apr 18, 2025
Merged

feat: Refactor DOT graph sanitization and enhance testing#18
magic5644 merged 2 commits intomainfrom
feat/enhance/rendering/messaging

Conversation

@magic5644
Copy link
Owner

  • Introduced a new module dotSanitizer.ts for sanitizing DOT graph content, including special character encoding and syntax fixes.
  • Replaced the previous inline sanitizeDotContent function with modular functions for better maintainability.
  • Updated extension.ts to utilize the new sanitization functions and improved error handling during graph rendering.
  • Enhanced graphPreview.ts to provide better error messages and status updates during graph rendering.
  • Added comprehensive tests for the new sanitization functions in dotContentSanitizer.test.ts, covering various edge cases and validation scenarios.
  • Updated package.json to include new dev dependencies and scripts for testing and compilation.
  • Removed unused dependencies and code related to sanitize-html.
  • Created a new .vscode/tasks.json for easier task management in the development environment.

- Introduced a new module `dotSanitizer.ts` for sanitizing DOT graph content, including special character encoding and syntax fixes.
- Replaced the previous inline `sanitizeDotContent` function with modular functions for better maintainability.
- Updated `extension.ts` to utilize the new sanitization functions and improved error handling during graph rendering.
- Enhanced `graphPreview.ts` to provide better error messages and status updates during graph rendering.
- Added comprehensive tests for the new sanitization functions in `dotContentSanitizer.test.ts`, covering various edge cases and validation scenarios.
- Updated `package.json` to include new dev dependencies and scripts for testing and compilation.
- Removed unused dependencies and code related to `sanitize-html`.
- Created a new `.vscode/tasks.json` for easier task management in the development environment.
@magic5644 magic5644 marked this pull request as ready for review April 18, 2025 10:47
@magic5644 magic5644 merged commit 2827e5f into main Apr 18, 2025
8 checks passed
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.

1 participant