-
Notifications
You must be signed in to change notification settings - Fork 10
add AffectedComponentDetails component #614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: rafi <refaei.shikho@hotmail.com>
There was a problem hiding this 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 pull request extracts the vulnerability and affected component details UI into a reusable AffectedComponentDetails component, improving code organization and maintainability.
Changes:
- Added new TypeScript interfaces for PURL inspection API responses (PackageURL, PurlMatchContext, AffectedComponent, VulnInPackage, PURLInspectResponse)
- Created
AffectedComponentDetailscomponent that fetches and displays vulnerability details and affected component information via the PURL inspection API - Refactored the vulnerability details page to use the new component, removing duplicated UI code
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 9 comments.
| File | Description |
|---|---|
| src/types/api/api.ts | Added type definitions for PURL inspection API response structures |
| src/components/AffectedComponent.tsx | New component for displaying vulnerability and affected component details with API integration |
| src/app/(loading-group)/[organizationSlug]/projects/[projectSlug]/assets/[assetSlug]/refs/[assetVersionSlug]/dependency-risks/[vulnId]/page.tsx | Replaced inline UI code with new AffectedComponentDetails component |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
.../[projectSlug]/assets/[assetSlug]/refs/[assetVersionSlug]/dependency-risks/[vulnId]/page.tsx
Show resolved
Hide resolved
Signed-off-by: rafi <refaei.shikho@hotmail.com>
Signed-off-by: rafi <refaei.shikho@hotmail.com>
Signed-off-by: rafi <refaei.shikho@hotmail.com>
Signed-off-by: rafi <refaei.shikho@hotmail.com>
No description provided.