⚠️ DASHBOARD REGENERATION WARNING
Problem
The generate-dashboard.py script overwrites CSS and JavaScript files when regenerating dashboard data.
What Happened (2025-11-24)
-
Enhanced CSS/JS files with:
- AZ1.AI design system
- Date/time fixes (noon UTC parsing)
- File system timestamp display
- Global word wrapping
- Hover behavior fixes
-
Ran
generate-dashboard.pyto update JSON data -
Script's
_copy_static_assets()method overwrote all CSS/JS files with basic templates -
Dashboard broke:
- Theme gone (no AZ1.AI colors)
- Links not working
- All enhancements lost
Solution
Restored CSS/JS files from previous commit (14cc3d8) before the regeneration.
Solution (FINAL FIX - 2025-11-24)
The script NOW ONLY generates data files. It NEVER touches HTML/CSS/JS:
# Only way to run the script - generates JSON data only
python3 scripts/generate-dashboard.py
Status: ✅ COMPLETELY FIXED - HTML/CSS/JS are now treated as source code!
- Script renamed: "Dashboard Data Generator" (not "Dashboard Generator")
- Removed all flags and options
- Removed
copy_static_assets()calls - Removed
generate_html()calls - HTML/CSS/JS are version-controlled source files, edited directly
What the Script Does Now
ONLY generates JSON data files:
dashboard/data/messages.json- Message indexdashboard/data/messages-page-*.json- Paginated messagesdashboard/data/topics.json- Topic taxonomydashboard/data/files.json- File referencesdashboard/data/checkpoints.json- Session datadashboard/data/commands.json- Command historydashboard/data/git-commits.json- Git commit history
NEVER touches these source files:
dashboard/index.html- Application entry pointdashboard/css/*.css- Stylingdashboard/js/*.js- Application logicdashboard/assets/*- Images, fonts, etc.
Current Status
Fixed: Commit 1e5553d restored all CSS/JS files ✅
All enhancements are back:
- ✅ AZ1.AI design system (theme)
- ✅ Date/time fixes (no more "7:00 PM" issues)
- ✅ File system timestamps
- ✅ Global word wrapping
- ✅ Hover behavior fixes
- ✅ All links working
Recommendation
✅ Script updated (2025-11-24):
- ✅ Default behavior now PRESERVES CSS/JS files (safe!)
- ✅ Use
python3 scripts/generate-dashboard.pyto regenerate data only - ⚠️ Only use
--include-staticif intentionally updating base templates
Last Updated: 2025-11-24
Incident: Dashboard CSS/JS overwrite during regeneration
Resolution: Files restored from commit 14cc3d8
Prevention: Use --skip-static flag (to be implemented)