A DataGrid-based pipeline run history table that lists CI/CD pipeline executions with columns for Run ID, trigger, status, duration, actor, and timestamp. Filterable by status and environment. Complements the existing PipelineStatusCard which shows detail for a single run.
Introduction
Overview
SRE and DevOps dashboards need a tabular view of pipeline run history for monitoring, debugging, and auditing. The existing PipelineStatusCard shows a single run’s stages and logs. This widget provides the list-level view, showing many runs at a glance with filtering and sorting.
Goals
Display pipeline runs in a sortable DataGrid.
Show Run ID, trigger type, status, duration, actor, and timestamp columns.
Filter by status (queued, running, success, failed, cancelled) and environment.
Link to detail view via onSelectRun callback.
Ship Storybook stories with representative pipeline data.
Non-Goals
Pipeline execution or triggering.
Stage-level detail (handled by PipelineStatusCard).
Log streaming or real-time updates.
Pipeline configuration or YAML editing.
Scope
In Scope
Item
Description
PipelineRunHistoryTable component
DataGrid with pipeline run columns
Status column
Badge with semantic color per PipelineRunStatus
Trigger column
Shows trigger type (push, PR, schedule, manual) with icon
Filters
Toolbar filters for status and environment
Row click
Calls onSelectRun(runId) for drill-down navigation
No standard table for viewing pipeline run history across environments
DevOps teams
Switching between CI/CD provider UIs and internal dashboards
Release managers
Difficulty auditing who triggered which pipelines and when
Definitions
Term
Definition
Pipeline run
A single execution of a CI/CD pipeline
Trigger
The event that initiated the run (push, pull request, schedule, manual)
Environment
The deployment target (dev, staging, production)
Actor
The user or system that triggered the run
Current State
pipeline-status-card.tsx shows a single pipeline run with expandable stages, status badges, and a log panel. It uses PipelineRunStatus and PipelineStageStatus types. No table-level view of multiple runs exists. Teams build custom tables for pipeline dashboards.
Proposed Solution
Create a PipelineRunHistoryTable widget at src/components/widgets/sre-devops/pipeline-run-history-table.tsx that:
Accepts an array of PipelineRun objects.
Renders a DataGrid with Run ID, Trigger, Status, Duration, Actor, Environment, and Timestamp columns.
Status column reuses the PipelineRunStatus type and badge styling from PipelineStatusCard.
Trigger column shows an icon (GitBranch for push, GitPullRequest for PR, Clock for schedule, Play for manual).
Toolbar includes status and environment filter dropdowns.
Row click calls onSelectRun(runId) for navigation to detail view.
Requirements
The table must reuse PipelineRunStatus types from pipeline-status-card.tsx for consistency. It must use TanStack Table for DataGrid rendering.
Functional Requirements
ID
Requirement
Priority
FR-01
Render columns: Run ID, Trigger, Status, Duration, Actor, Environment, Timestamp
Must
FR-02
Status column uses Badge with semantic color matching PipelineStatusCard
Must
FR-03
Trigger column shows icon and label for push, PR, schedule, manual
Must
FR-04
Duration column formats milliseconds as human-readable (e.g., “2m 34s”)
Must
FR-05
Timestamp column shows relative time (e.g., “5 min ago”) with full date on hover