Rename Pipeline to Workflow in frontend

- routes/pipelines.tsx → routes/runs.tsx, component Pipelines → Runs
- Update route config to point to runs.tsx
- Retro.pipeline_name → workflow_name in data and all display components
- Table header "Pipeline" → "Workflow" in retros list

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-03-02 00:09:15 -05:00
parent 46af8e6887
commit 331dad98ec
6 changed files with 14 additions and 14 deletions

View file

@ -45,7 +45,7 @@ export interface AggregateStats {
export interface Retro {
run_id: string;
pipeline_name: string;
workflow_name: string;
goal: string;
timestamp: string;
smoothness?: SmoothnessRating;
@ -91,7 +91,7 @@ export const openItemKindConfig: Record<OpenItemKind, { label: string; text: str
const mockRetros: Retro[] = [
{
run_id: "run-1",
pipeline_name: "implement",
workflow_name: "implement",
goal: "Add rate limiting to auth endpoints",
timestamp: "2026-02-28T14:32:00Z",
smoothness: "smooth",
@ -154,7 +154,7 @@ const mockRetros: Retro[] = [
},
{
run_id: "run-2",
pipeline_name: "implement",
workflow_name: "implement",
goal: "Migrate to React Router v7",
timestamp: "2026-02-28T10:15:00Z",
smoothness: "bumpy",
@ -224,7 +224,7 @@ const mockRetros: Retro[] = [
},
{
run_id: "run-6",
pipeline_name: "implement",
workflow_name: "implement",
goal: "Add dark mode toggle",
timestamp: "2026-02-27T16:45:00Z",
smoothness: "effortless",
@ -275,7 +275,7 @@ const mockRetros: Retro[] = [
},
{
run_id: "run-3",
pipeline_name: "fix_build",
workflow_name: "fix_build",
goal: "Fix config parsing for nested values",
timestamp: "2026-02-27T09:20:00Z",
smoothness: "struggled",
@ -347,7 +347,7 @@ const mockRetros: Retro[] = [
},
{
run_id: "run-8",
pipeline_name: "implement",
workflow_name: "implement",
goal: "Implement webhook retry logic",
timestamp: "2026-02-26T11:00:00Z",
smoothness: "smooth",

View file

@ -16,7 +16,7 @@ export default [
route("diagram", "routes/workflow-diagram.tsx"),
route("runs", "routes/workflow-runs.tsx"),
]),
route("runs", "routes/pipelines.tsx"),
route("runs", "routes/runs.tsx"),
route("runs/:id", "routes/run-detail.tsx", [
index("routes/run-overview.tsx"),
route("stages/:stageId", "routes/run-stages.tsx"),

View file

@ -60,7 +60,7 @@ export default function Retros() {
(r) =>
(smoothnessFilter === "all" || r.smoothness === smoothnessFilter) &&
(r.goal.toLowerCase().includes(lowerQuery) ||
r.pipeline_name.toLowerCase().includes(lowerQuery)),
r.workflow_name.toLowerCase().includes(lowerQuery)),
);
return (
@ -95,7 +95,7 @@ export default function Retros() {
<table className="w-full text-sm">
<thead>
<tr className="border-b border-line bg-panel/60 text-left text-xs text-fg-muted">
<th className="px-4 py-2.5 font-medium">Pipeline</th>
<th className="px-4 py-2.5 font-medium">Workflow</th>
<th className="px-4 py-2.5 font-medium">Goal</th>
<th className="px-4 py-2.5 font-medium">Smoothness</th>
<th className="px-4 py-2.5 font-medium text-right">Duration</th>
@ -107,7 +107,7 @@ export default function Retros() {
{filtered.map((retro) => (
<tr key={retro.run_id} className="border-b border-line last:border-b-0 transition-colors hover:bg-overlay cursor-pointer" onClick={() => navigate(`/runs/${retro.run_id}/retro`)}>
<td className="px-4 py-3 font-mono text-xs font-medium text-teal-500">
{retro.pipeline_name}
{retro.workflow_name}
</td>
<td className="px-4 py-3 text-fg-2">
{truncate(retro.goal, 60)}

View file

@ -41,7 +41,7 @@ export default function RunRetro({ params }: Route.ComponentProps) {
<div className="min-w-0 flex-1">
<p className="text-sm text-fg-3">{retro.goal}</p>
<p className="mt-1 font-mono text-xs text-fg-muted">
{retro.pipeline_name} &middot; {new Date(retro.timestamp).toLocaleString()}
{retro.workflow_name} &middot; {new Date(retro.timestamp).toLocaleString()}
</p>
</div>
</div>

View file

@ -20,7 +20,7 @@ import {
import { CSS } from "@dnd-kit/utilities";
import { columns as staticColumns, ciConfig, statusColors, deriveCiStatus } from "../data/runs";
import type { CiStatus, CheckRun, CheckStatus, RunItem, RunWithStatus } from "../data/runs";
import type { Route } from "./+types/pipelines";
import type { Route } from "./+types/runs";
export function meta({}: Route.MetaArgs) {
return [{ title: "Runs — Arc" }];
@ -465,7 +465,7 @@ function SortableRunRow({ run }: { run: RunWithStatus }) {
const allRepos = [...new Set(staticColumns.flatMap((col) => col.items.map((item) => item.repo)))].sort();
export default function Pipelines() {
export default function Runs() {
const [query, setQuery] = useState("");
const [repoFilter, setRepoFilter] = useState("all");
const [view, setView] = useState<ViewMode>("columns");

View file

@ -60,7 +60,7 @@ const sessionGroups = [
label: "Previous 7 days",
sessions: [
{ id: "s6", title: "Terraform module for Redis cluster", repo: "infrastructure", time: "3d ago" },
{ id: "s7", title: "Add pipeline event types", repo: "shared-types", time: "5d ago" },
{ id: "s7", title: "Add workflow run event types", repo: "shared-types", time: "5d ago" },
{ id: "s8", title: "Implement webhook retry logic", repo: "api-server", time: "6d ago" },
],
},