Skip to content

feat(heureka): add Mark Risk Accepted action to active vulnerabilities#1597

Open
hodanoori wants to merge 5 commits intomainfrom
hoda-heureka-risk-acceptance
Open

feat(heureka): add Mark Risk Accepted action to active vulnerabilities#1597
hodanoori wants to merge 5 commits intomainfrom
hoda-heureka-risk-acceptance

Conversation

@hodanoori
Copy link
Copy Markdown
Contributor

@hodanoori hodanoori commented Apr 15, 2026

Summary

Adds a "Mark Risk Accepted" action to the active vulnerabilities tab in the service image details view. The new action mirrors the existing "Mark False Positive" flow and submits a risk_accepted remediation record. Expiration date is now mandatory in both actions.

Changes Made

  • Add RiskAcceptanceModal component with the same fields as FalsePositiveModal
    plus an optional Jira Ticket / Risk Acceptance Source Ticket field; the
    ticket reference is prepended to the description on submit
  • Add Mark Risk Accepted as a second item in the vulnerability row popup
    menu alongside Mark False Positive, using RemediationTypeValues.RiskAccepted
  • Make expiration date mandatory in both RiskAcceptanceModal and
    FalsePositiveModal, with inline validation and the confirm button disabled
    until the field is set
  • Add tests for RiskAcceptanceModal covering rendering, disabled-state
    validation, confirm payload (including source ticket formatting), and cancel
    behaviour
  • Extend IssuesDataRows tests with a dedicated risk acceptance describe block
    covering active-tab visibility and revert scenarios
  • Extend RemediatedIssuesDataRows tests with a risk acceptance revert
    describe block covering remediated-tab visibility and revert scenarios

Related Issues

Screenshots (if applicable)

Testing Instructions

  1. pnpm i
  2. pnpm TASK

Checklist

  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • I have made corresponding changes to the documentation (if applicable).
  • My changes generate no new warnings or errors.
  • I have created a changeset for my changes.

PR Manifesto

Review the PR Manifesto for best practises.

… mandatory

- Add RiskAcceptanceModal mirroring FalsePositiveModal with an extra
  "Jira Ticket / Risk Acceptance Source Ticket" field
- Add "Mark Risk Accepted" to the vulnerability popup menu alongside
  "Mark False Positive"
- Make expiration date required in both modals with validation and
  inline error feedback
@hodanoori hodanoori requested a review from a team as a code owner April 15, 2026 08:31
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 15, 2026

⚠️ No Changeset found

Latest commit: 5c7bdc4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@hodanoori hodanoori self-assigned this Apr 15, 2026
…shes

Remove manual encodeURIComponent() calls from navigate params in
ImageDetails and ImageVersionsList — TanStack Router encodes params
internally, so wrapping them again caused double-encoding (e.g.
hashicorp/vault → hashicorp%252Fvault in the URL).

Decode image and service params in the  route loader before
passing them to fetchImages and ImageDetails, following the same
pattern already used in the  route loader.
@hodanoori hodanoori added the greenhouse-pr-preview Builds a PR preview for greenhouse shell app and plugins. label Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

greenhouse-pr-preview Builds a PR preview for greenhouse shell app and plugins.

Projects

None yet

1 participant