Skip to content

Conversation

@refoo0
Copy link
Collaborator

@refoo0 refoo0 commented Dec 19, 2025

No description provided.

@timbastin timbastin marked this pull request as ready for review December 19, 2025 15:55
Copilot AI review requested due to automatic review settings December 19, 2025 15:55
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

This PR adds SBOM (Software Bill of Materials) download functionality to the project release overview page, allowing users to download SBOM reports in JSON format for selected artifacts.

  • Added a download button for SBOM reports with async handling
  • Implemented downloadSBOMReport function to fetch and download SBOM JSON files
  • Reorganized the UI to include the download button alongside the artifact selector

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

artifacts={releases?.data?.map((r) => r.name) || []}
/>
</div>
<div className="flex relative flex-col">
Copy link

Copilot AI Dec 19, 2025

Choose a reason for hiding this comment

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

The CSS class 'relative' appears unnecessary in this context as there are no absolutely positioned child elements. Consider removing it unless it serves a specific purpose.

Suggested change
<div className="flex relative flex-col">
<div className="flex flex-col">

Copilot uses AI. Check for mistakes.
Comment on lines +59 to +61
import { useActiveProject } from "@/hooks/useActiveProject";
import { useActiveAsset } from "@/hooks/useActiveAsset";
import { useActiveAssetVersion } from "@/hooks/useActiveAssetVersion";
Copy link

Copilot AI Dec 19, 2025

Choose a reason for hiding this comment

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

The imports 'useActiveProject', 'useActiveAsset', and 'useActiveAssetVersion' are added but never used in the component. These unused imports should be removed to keep the code clean and avoid confusion.

Suggested change
import { useActiveProject } from "@/hooks/useActiveProject";
import { useActiveAsset } from "@/hooks/useActiveAsset";
import { useActiveAssetVersion } from "@/hooks/useActiveAssetVersion";

Copilot uses AI. Check for mistakes.
}, [completeRiskHistory, mode]);

const selectedArtifact = useSearchParams()?.get("artifact") || undefined;
const pathname = usePathname();
Copy link

Copilot AI Dec 19, 2025

Choose a reason for hiding this comment

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

The variable 'pathname' is declared using usePathname() but is never used in the component. Consider removing it to avoid confusion.

Copilot uses AI. Check for mistakes.
timbastin and others added 2 commits December 19, 2025 16:58
…ug]/overview/page.tsx

Signed-off-by: Tim Bastin <38261809+timbastin@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Tim Bastin <38261809+timbastin@users.noreply.github.com>
@timbastin timbastin merged commit 61eba0f into main Dec 19, 2025
5 of 6 checks passed
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.

4 participants