Skip to content

feat: auto-update reports.json and show all report types - #31

Open
NOVA-Openclaw wants to merge 1 commit into
mainfrom
feature/issue-29-reports-json-auto-update
Open

feat: auto-update reports.json and show all report types#31
NOVA-Openclaw wants to merge 1 commit into
mainfrom
feature/issue-29-reports-json-auto-update

Conversation

@NOVA-Openclaw

Copy link
Copy Markdown
Owner

Summary

Fixes #29 — Reports section cards now link to the most recent report with correct timestamps.

Changes

Backend (update-dashboard.sh)

  • Added update_reports section that runs every 5 minutes with the other dashboard updates
  • Scans ~/www/static/reports/ for the latest file of each report type by parsing dates from filenames
  • Supports 5 report types: Daily Digest, Communications Digest, IT/DevOps, SWE, and Mind reports
  • Handles legacy NOVA_IT_Report prefix for older devops reports
  • Prefers latest-* symlinks for URLs when they exist
  • Validates generated JSON before writing

Frontend (index.html)

  • Added 3 new report cards: IT/DevOps Report, Software Engineering Report, Mind Report
  • Refactored loadReports() from hardcoded if/else blocks to a data-driven loop
  • All cards correctly show availability status (opacity) and date from reports.json

Testing

  • Ran update-dashboard.sh end-to-end — reports.json correctly shows:
    • Comms Digest: 2026-04-17 ✅
    • DevOps Report: 2026-04-16 ✅
    • SWE Report: 2026-04-16 ✅
    • Mind Report: 2026-04-16 ✅
    • Daily Digest: not available (none exist yet) ✅

- Add update_reports section to update-dashboard.sh that scans
  ~/www/static/reports/ for the latest file of each report type
  and generates reports.json with correct dates and URLs
- Support 5 report types: Daily Digest, Comms Digest, DevOps,
  SWE, and Mind reports
- Handle legacy NOVA_IT_Report prefix for older devops reports
- Prefer latest-* symlinks for URLs when they exist
- Add DevOps, SWE, and Mind report cards to frontend
- Refactor loadReports() JS to use data-driven approach instead
  of hardcoding individual report types

Closes #29
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.

Reports section: cards should link to most recent report with correct timestamp

1 participant