feat(ui): add report analysis feature for admin

Added a new ReportAnalysisDialog component, accessible from the ReportViewerDialog, strictly for Admin users. It parses execution reports, extracts markdown metrics like processed orders, skipped materials, errors, and execution time, and presents them in an interactive recharts line chart aggregated by day.

Co-authored-by: luwamgere15-crypto <255338376+luwamgere15-crypto@users.noreply.github.com>
This commit is contained in:
google-labs-jules[bot]
2026-03-25 10:47:32 +00:00
parent 5cce470850
commit 5178a2425a
7 changed files with 888 additions and 33 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -0,0 +1,18 @@
const { _electron: electron } = require('playwright')
;(async () => {
const electronApp = await electron.launch({
args: ['.', '--no-sandbox', '--disable-gpu']
})
// Get the first window that the app opens
const window = await electronApp.firstWindow()
// Try to bypass auth and navigate to cleaner page if possible, but we don't know the exact DOM
await window.waitForTimeout(5000)
await window.screenshot({ path: 'tests/playwright/screenshot.png' })
console.log('Took screenshot')
await electronApp.close()
})()