Skip to content

Add warning banner for gate status false positives #60

Description

@frankbria

Problem

The getGateStatus() function in QualityGatesPanel currently shows ALL gates as "passed" when overall status is "passed", even if only some gates have actually run. This can create false positives that mask incomplete quality checks.

Current Behavior:

  • If only tests gate has run and passed, ALL 5 gates (tests, coverage, type-check, lint, review) show as "passed"
  • Users may incorrectly assume all quality checks have been completed

Root Cause

Backend doesn't support gates_evaluated field to track which gates actually ran (see TODO comment in QualityGatesPanel.tsx:67-74).

Proposed Solutions

Short-term (UI Enhancement)

Add a warning banner when:

  • Overall status is passed
  • No failures exist (empty failures array)
  • To alert users this is a summary view and not all gates may have been evaluated

Example Banner:

⚠️ Note: Showing summary status. Some individual gates may not have been evaluated yet.

Long-term (Backend Enhancement)

Implement gates_evaluated: string[] field in QualityGateStatus API response to track which gates actually ran.

Acceptance Criteria

Short-term:

  • Add warning banner component to QualityGatesPanel
  • Show banner only when overall status is "passed" but individual gate evaluation is uncertain
  • Banner should be dismissible or auto-hide after user acknowledgment

Long-term:

  • Backend returns gates_evaluated array in QualityGateStatus response
  • Frontend uses gates_evaluated to accurately determine gate status
  • Remove warning banner once backend enhancement is complete

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions