mirror of
https://github.com/asyouplz/SpeechNote.git
synced 2026-07-22 16:30:31 +00:00
Required fixes: - Replace innerHTML/outerHTML with DOM API methods for XSS prevention - Move inline styles to CSS classes for theme compatibility - Add instanceof type guards for TFile/TFolder handling - Remove console.log statements from production code - Convert fetch() to requestUrl() for cross-platform support Technical changes: - Security: All innerHTML/outerHTML replaced with createEl/createDiv/createSvg - StatisticsDashboard: DOM-based table/chart rendering - UI components: SVG icons built programmatically - Error/notification systems: Safe DOM construction - Styling: Inline styles migrated to CSS classes - Added utility classes: .sn-hidden, .sn-fade, .sn-info-box - Preserved dynamic styles for progress bars and charts - Enhanced theme compatibility - Type safety: Added file/folder type guards - New: src/utils/fs/typeGuards.ts with assertTFile helper - Replaced unsafe casts with instanceof checks - Improved test mocking with structural typing - Logging: Cleaned up console statements - Removed production console.log calls - Preserved console.debug for debug mode - Routed logs through Logger class - Networking: fetch() → requestUrl() migration - APIKeyManager: 2 API validation calls converted - BatchRequestManager: Updated for Obsidian compatibility Test improvements: - E2E: Implemented settings flow mocking (15/15 tests passing) - Fixed: Settings migration for legacy language codes (korean→ko) - Fixed: NotificationManager duplicate prevention (timer-based) - Fixed: WhisperService cancellation logging - Fixed: FileUploadManager compression fallback - Fixed: EditorService workspace.off guard Build verification: - Bundle size: 148KB (within 150KB target) - Console statements: Removed from production build - All 222 tests passing - Lint: ✅ (167 warnings, no errors) - TypeCheck: ✅ Ready for Obsidian review bot re-check. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| AudioProcessor.test.ts | ||
| bugfixes.test.ts | ||
| deepgram-integration.test.ts | ||
| deepgramAdapter.test.ts | ||
| EditorService.test.ts | ||
| FileUploadManager.test.ts | ||
| TextFormatter.test.ts | ||
| TranscriptionService.test.ts | ||
| WhisperService.test.ts | ||