Skip to content

[WIP] Add scan manifests button to dashboard footer#64

Merged
sketch0395 merged 2 commits intomainfrom
copilot/add-scan-manifests-button
Mar 19, 2026
Merged

[WIP] Add scan manifests button to dashboard footer#64
sketch0395 merged 2 commits intomainfrom
copilot/add-scan-manifests-button

Conversation

Copy link
Contributor

Copilot AI commented Mar 19, 2026

  • Read scan manifest JSON data in generate-security-dashboard.sh
  • Add modal CSS styles to the dashboard HTML
  • Add "Scan Manifest" button in the dashboard footer
  • Add modal HTML overlay with scan manifest details (metadata, target, tools, file hashes)
  • Add JavaScript to open/close the modal
  • Add test cases in test-generate-security-dashboard.bats to verify the new button and modal
  • Verify the dashboard renders correctly with a screenshot
Original prompt

This section details on the original issue you should resolve

<issue_title>Scan manifests button</issue_title>
<issue_description>Is your feature request related to a problem? Please describe.
I want a button on the dashboard that opens the scan manifests so users have a clear way of finding them.

Describe the solution you'd like
A button added at the footer of the page that says “Scan Manifest”

On click it opens a modal of the scan manifests so

Provide a way for users to close the modal

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.
</issue_description>

<agent_instructions>Read the issue, I want a scan manifests modal that opens so users can see the scan manifest and know that the files are hashed. </agent_instructions>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: sketch0395 <33059841+sketch0395@users.noreply.github.com>
@sketch0395 sketch0395 marked this pull request as ready for review March 19, 2026 04:04
Copilot AI review requested due to automatic review settings March 19, 2026 04:04
@sketch0395 sketch0395 merged commit b92ed4e into main Mar 19, 2026
2 checks passed
Copilot AI requested a review from sketch0395 March 19, 2026 04:05
Copilot stopped work on behalf of sketch0395 due to an error March 19, 2026 04:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a “Scan Manifest” affordance to the generated security dashboard so users can view scan manifest metadata and file hashes directly from the UI.

Changes:

  • Loads scan-manifest.json during dashboard generation and embeds it into the HTML as a JS variable.
  • Adds footer button + modal (HTML/CSS/JS) to display manifest details and file hashes.
  • Extends Bats tests to assert the new manifest-related elements/functions are present in the generator script.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
scripts/shell/generate-security-dashboard.sh Loads/escapes scan manifest JSON, adds footer button + modal UI, and implements open/close/render JS.
tests/shell/test-generate-security-dashboard.bats Adds grep-based checks ensuring the manifest load/button/modal/JS hooks exist.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

echo "⚠️ Failed to parse scan manifest JSON"
else
# Escape for safe HTML embedding: replace </ with <\/ to prevent script tag injection
SCAN_MANIFEST_JSON=$(echo "$SCAN_MANIFEST_JSON" | sed 's|</|<\\/|g')
Comment on lines +4609 to +4612
<div class="manifest-modal" id="scanManifestModal">
<div class="manifest-modal-header">
<h2 class="manifest-modal-title">🔏 Scan Manifest</h2>
<button class="manifest-modal-close" onclick="closeScanManifestModal()" title="Close">✕</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scan manifests button

3 participants