Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-10850

Quay 3.17 new UI Blank success notification when attempting to delete only immutable tags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • quay-v3.17.0
    • quay-ui
    • False
    • Hide

      None

      Show
      None
    • False

      Summary

      When a user selects only immutable tags in the new UI and attempts to delete them, the UI displays a blank green success notification (empty title) instead of an informative message explaining that no tags were deleted because all selected tags are immutable.

      Root Cause Analysis

      Flow:

      1. User selects only immutable tags in TagsToolbar
      2. TagsToolbar filters out immutable tags: selectedMutableTags = [] (lines 53-62)
      3. DeleteModal receives empty props.tags array (line 255-256)
      4. bulkDeleteTags([]) succeeds (no operations attempted, no errors thrown)
      5. Success handler executes useEffect (lines 32-65)
      6. Switch statement has NO case for props.tags.length === 0
      7. alert.title remains empty string ""
      8. User sees blank notification with green checkmark

      Affected Code Files:

      • web/src/routes/RepositoryDetails/Tags/DeleteModal.tsx (lines 32-65) - Success handler missing edge case
      • web/src/routes/RepositoryDetails/Tags/TagsToolbar.tsx (lines 53-62, 255-256) - Filters immutable tags
      • web/src/resources/TagResource.ts (lines 269-296) - Returns success for empty array

      Reproduction Steps

      1. Navigate to repository with immutable tags
      2. Select ONLY immutable tags (e.g., tags matching immutability policy pattern)
      3. Click "Actions" → "Delete Tags"
      4. Click "Delete" in confirmation modal
      5. Observe: Blank green notification appears (no title text)

      Expected Behavior

      User should see a warning notification:

      Title: No tags deleted
      Message: All selected tags are immutable and cannot be deleted: tag1, tag2, tag3
      

      Actual Behavior

      User sees a blank green success notification with no title text.

      Impact

      User Experience:

      • Confusing blank notification
      • No feedback about why deletion "succeeded" without deleting anything
      • Users may think there's a UI bug or data loss

      Severity: Medium

      • Affects usability for repositories with immutability policies
      • Does not cause data loss or security issues
      • Cosmetic/UX issue

      Related Features

      • Immutability policies (namespace and repository level)
      • Tag bulk operations
      • PatternFly alert notifications

              rhn-support-bpratt Brady Pratt
              lzha1981 luffy zhang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: