Skip to content

ECSoC_2026: Extract dashboard rendering logic from inline script #196

Description

@Babin123456

Problem

The dashboard contains a large inline script that mixes chart setup, localStorage parsing, table rendering, and clear-history behavior.

Current Behavior

Dashboard behavior is embedded directly in dashboard.html, making it harder to review, maintain, and safely update.

Why This Improvement Is Needed

Inline rendering uses large HTML templates for local history data and increases the chance of unsafe or brittle UI changes.

Proposed Solution

Move dashboard behavior into dashboard.js, render recent scans with DOM APIs, and move table styles into CSS classes.

Expected Outcome

The dashboard becomes easier to maintain and safer when rendering browser-local scan history.

Additional Notes

No dashboard feature is removed.

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