Description
Currently, the entire monitoring dashboard (HTML, CSS, JavaScript) is housed within a single 3,800+ line Python file (dashboard_page.py) that returns a raw string.
Proposal
We should modularize this architecture by extracting the frontend code into dedicated static files (e.g., index.html, styles.css, app.js) or utilizing a templating engine like Jinja2. This will significantly improve maintainability, IDE syntax highlighting, and separation of concerns.
Acceptance Criteria
- Create a
templates/ or static/ directory for frontend assets.
- Update the WSGI server to serve these static files.
- Ensure the UI still renders perfectly after the extraction.
Description
Currently, the entire monitoring dashboard (HTML, CSS, JavaScript) is housed within a single 3,800+ line Python file (
dashboard_page.py) that returns a raw string.Proposal
We should modularize this architecture by extracting the frontend code into dedicated static files (e.g.,
index.html,styles.css,app.js) or utilizing a templating engine like Jinja2. This will significantly improve maintainability, IDE syntax highlighting, and separation of concerns.Acceptance Criteria
templates/orstatic/directory for frontend assets.