Skip to content

feat: first approach advisory-tab#792

Open
juliankepka wants to merge 13 commits into
mainfrom
feat/advisory
Open

feat: first approach advisory-tab#792
juliankepka wants to merge 13 commits into
mainfrom
feat/advisory

Conversation

@juliankepka

@juliankepka juliankepka commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

@juliankepka juliankepka marked this pull request as ready for review June 29, 2026 09:55
Copilot AI review requested due to automatic review settings July 2, 2026 09:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 an initial “Security Advisory” tab for assets, including UI for listing advisories, creating/editing draft advisories, and displaying advisory details. It also introduces a CVSS utility module (v3.1 + v4.0) used to parse/build vectors and compute scores/severities for advisories.

Changes:

  • Added a new asset menu entry and pages for advisory list + advisory detail routes.
  • Implemented an AdvisoryDialog (multi-step) for creating/editing advisories, including a CVSS vector builder.
  • Introduced src/utils/cvss.ts with CVSS 3.1 formula scoring and CVSS 4.0 lookup/interpolation scoring plus helpers.

Reviewed changes

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

Show a summary per file
File Description
src/utils/cvss.ts Adds CVSS metric definitions, vector parsing/building, and scoring utilities for v3.1/v4.0.
src/types/api/api.ts Introduces SecurityAdvisory and AdvisoryAffectedPackage API types.
src/hooks/useAssetMenu.ts Adds a “Security Advisory” navigation entry for asset pages.
src/components/ui/tooltip.tsx Exports TooltipPortal for use in the new advisory UI.
src/components/AdvisoryDialog.tsx Adds advisory create/edit dialog including CVSS vector builder and affected packages flow.
src/app/(loading-group)/.../advisory/page.tsx Implements advisory list page with severity display and creation entry point.
src/app/(loading-group)/.../advisory/[advisoryId]/page.tsx Implements advisory detail page with publish/withdraw/delete actions and CVSS metric display.
src/app/(loading-group)/.../advisory/[advisoryId]/loading.tsx Adds loading skeleton page for advisory detail route.

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

Comment thread src/components/AdvisoryDialog.tsx Outdated
Comment thread src/components/AdvisoryDialog.tsx
Comment thread src/components/AdvisoryDialog.tsx
Comment thread src/components/AdvisoryDialog.tsx
Comment thread src/utils/cvss.ts
Comment thread src/utils/cvss.ts
Comment thread src/utils/cvss.ts
Comment thread src/utils/cvss.ts
Comment thread src/utils/cvss.ts
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.

Publish own security advisories

2 participants