Reliability

Implementation location

Scorecard and rule UI components live in src/features/reliability/. See Feature UI source modules.

Overview

Track project reliability and enforce quality rules at the project level. Reliability is implemented as a project-scoped quality gate system. Each project can enable or disable rules, and Ticket Mate surfaces a reliability scorecard with current score and active rule badges.

Core Components

1. Reliability Section

ReliabilitySection:

  • Loads config from GET /api/projects/:projectId/reliability
  • Shows a scorecard view for current health
  • Opens a dialog to edit quality gate configuration
  • Saves updates with PUT /api/projects/:projectId/reliability

2. Quality Scorecard

QualityScorecard renders:

  • Overall currentScore visualization via circular progress
  • Color thresholds:
    • >= 90: success
    • >= 70: warning
    • < 70: error
  • Active rule chips for enabled checks
  • Disabled-state card when quality gates are turned off

3. Quality Rule Editor

QualityRuleEditor supports:

  • Enabling/disabling the full quality gate system
  • noPrWithoutTicket rule
  • noTicketWithoutAc rule
  • minTestCoverage threshold (0-100, where 0 disables that check)

Configuration Model

QualityGateConfig contains:

  • enabled
  • noPrWithoutTicket
  • noTicketWithoutAc
  • minTestCoverage
  • currentScore

These values are fetched and persisted per project.

Operational Notes

  • Rules are applied per project, not globally.
  • The editor blocks rule fields when the gate is disabled.
  • Save operations keep the dialog open until API persistence succeeds.

Related Documentation


Last Updated: April 21, 2026