Uploaded image for project: 'Red Hat Advanced Cluster Security'
  1. Red Hat Advanced Cluster Security
  2. ROX-31796

[Base Images Mgmt] Create BaseImagesForm for adding base image patterns

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Critical Critical
    • 4.10.0
    • None
    • None
    • None
    • 3
    • True
    • Hide

      Waiting on Core Workflows to add the POST v2/baseimages endpoints.

      Show
      Waiting on Core Workflows to add the POST v2/baseimages endpoints.
    • False
    • Not Selected
    • Rox Sprint 4.10D

      Create the BaseImagesForm component for adding new base image patterns to the system.

      Implementation Details:

      • Create BaseImagesForm.tsx component in Containers/Vulnerabilities/WorkloadCves/BaseImages/
      • Text input for image path/regex pattern
      • "Add to base image list" button
      • Form validation and submission handling
      • Success/error alerts with proper error type mapping (INVALID_IMAGE_NAME, NO_VALID_INTEGRATION, SCAN_FAILED, DUPLICATE_PATTERN)
      • Button spinner during mutation
      • Disable inputs while submitting
      • Props: {{ { addBaseImage: (name: string) => void; baseImagesRequest: UseRestQueryReturn[BaseImage[]]; }

        }}

      Acceptance Criteria:

      • Form accepts valid image patterns
      • Shows appropriate error messages for each error type
      • Modal stays open after errors for retry
      • Form re-enables after error
      • Does NOT make its own API calls (receives callbacks from parent)

              schaudhr Saif Chaudhry
              schaudhr Saif Chaudhry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: