feat: add report analysis and visualization feature

- Add recharts library for data visualization
- Implement ReportAnalyzer service to parse report data
- Add report analysis IPC handler with Admin permission check
- Add ReportAnalysisDialog component with charts
- Add unit and E2E tests for report analyzer
- Update Playwright config to exclude vitest-specific test files
- Expand vitest config to include source code tests

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Misaka_Company
2026-03-26 08:57:37 +08:00
parent 5cce470850
commit 255fd7e00b
15 changed files with 2059 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['tests/**/*.{test,spec}.{ts,tsx}'],
include: ['tests/**/*.{test,spec}.{ts,tsx}', 'src/**/__tests__/**/*.{test,spec}.{ts,tsx}'],
exclude: ['node_modules', 'dist', 'out', 'tests/e2e'],
setupFiles: ['tests/setup.ts'],
coverage: {