Skip to content

Refactor: Extract Frontend Assets from dashboard_page.py #8

Description

@hypnoastic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions