How diegolobao/valvereport-p58 works
ValveReport is a browser application for analyzing on/off valve actuations from an uploaded CSV and exporting a report. Users select a valve tag, date range, and status, then search; the app parses event records, evaluates opening/closing cycles against tag limits, and presents results for PDF export. The main workflow is implemented largely in App.tsx, with charting and PDF helpers split into separate modules. The README names public/limites.csv, while the sampled app code fetches limites.json; that data-path discrepancy is unresolved.
Main entry points: App.tsx Report interface · main.tsx React entry point · limites.csv Tag limits · SummaryBar.tsx Summary chart
Components 10
Report workflow
- Report interface
src/ui/App.tsx - Tag limits
public/limites.csv - CSV event analysis
src/ui/App.tsx - Cycle results
src/ui/App.tsx - React entry point
src/main.tsx
Charts
- Summary chart
src/ui/components/SummaryBar.tsx - Timing charts
src/ui/components/OpenCloseBars.tsx
PDF export
- Chart image conversion
src/utils/svgToPng.ts - PDF generation
src/utils/exportPdf.ts
Other components
- Report user
Connections 10
- Report user → Report interface: selects and searches
README.md - React entry point → Report interface: renders
src/main.tsx - Report interface → Tag limits: loads tag list
src/ui/App.tsx - Report user → Report interface: uploads CSV
README.md - Report interface → CSV event analysis: parses events
src/ui/App.tsx - Report interface → Cycle results: builds and filters cycles
src/ui/App.tsx - Report interface → Summary chart: renders
src/ui/App.tsx - Report interface → Timing charts: renders
src/ui/App.tsx - Report interface → Chart image conversion: converts chart
src/ui/App.tsx - Report interface → PDF generation: exports report
src/ui/App.tsx