Skip to content

feat: add project scan history page and link from supported projects list - #106

Merged
jkondrat merged 1 commit into
mainfrom
feat/supported-projects-showcase
Jul 9, 2026
Merged

feat: add project scan history page and link from supported projects list#106
jkondrat merged 1 commit into
mainfrom
feat/supported-projects-showcase

Conversation

@igor-soldev

Copy link
Copy Markdown
Contributor

Summary

This PR reverts the experimental tile/showcase grid layout and returns to the original tabular view of the Supported Projects section. At the same time, it introduces a new long-awaited feature: a dedicated page showing the full scan history for a specific project.


Changes

New: Project Scans View (project_scans.html)

A new template has been created that lists all audits performed for a given repository. The table includes:

  • Scan date & time
  • Grade (A–F)
  • Total number of issues
  • Scan source (e.g. Automated CI Scan, CLI Scan)
  • A direct "View Report" link for each scan entry

Backend (app.py)

  • Added GET /project-scans – renders the new HTML view, accepting a ?url=<repository_url> query parameter.
  • Added GET /api/scans/project – API endpoint that searches through scan_results and returns a chronologically sorted list of all scans matching the given repository URL.

Updated: Supported Projects Table (supported_projects.html)

  • Clicking a project name now navigates to its scan history page (/project-scans?url=...) instead of directly to GitHub.
  • A discrete GitHub ↗ link is placed below the project name for direct access to the source repository.

UI Polish

  • Replaced the large action-btn button style on "View Report" links with the lighter last-scan-link class for better visual consistency with the rest of the table UI.
  • Unified the browser tab title format: {Project Name} Scans - InfraScan - Infrastructure Auditor Adoption Dashboard.

Reverted

  • Removed the experimental showcase grid layout, generated cover images, and the manually curated showcase_projects.json data file.

How to Test

  1. Activate the virtual environment: source venv/bin/activate
  2. Start the server: python3 app.py
  3. Place sample scan result JSON files in the scan_results/ directory.
  4. Navigate to the Supported Projects tab.
  5. Click any project name in the table.
  6. Verify you are redirected to /project-scans?url=... and that the table correctly displays the chronological scan history for that project.
  7. Click View Report on any row and confirm it opens the correct scan report.

@igor-soldev
igor-soldev requested a review from jkondrat July 9, 2026 10:01
@igor-soldev igor-soldev added the enhancement New feature or request label Jul 9, 2026
@jkondrat
jkondrat merged commit 06b4812 into main Jul 9, 2026
2 checks passed
@igor-soldev
igor-soldev deleted the feat/supported-projects-showcase branch July 10, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants