diff --git a/apps/fabro-web/app/routes/run-detail.test.ts b/apps/fabro-web/app/routes/run-detail.test.ts index 93ad4cf3a..2d0ccfa83 100644 --- a/apps/fabro-web/app/routes/run-detail.test.ts +++ b/apps/fabro-web/app/routes/run-detail.test.ts @@ -364,7 +364,7 @@ describe("RunDetail full-height child routes", () => { expect(outletWrappers).toHaveLength(1); }); - test("shows the Files Changed tab badge from run summary diff stats", async () => { + test("shows the Diff tab badge from run summary diff stats", async () => { const renderer = await renderRunDetail({ initialEntry: "/runs/run_1/files", diffSummary: { @@ -403,7 +403,7 @@ describe("RunDetail full-height child routes", () => { expect(focusCalls).toEqual(["focus"]); }); - test("hides the Files Changed tab badge when diff stats are absent", async () => { + test("hides the Diff tab badge when diff stats are absent", async () => { const renderer = await renderRunDetail({ initialEntry: "/runs/run_1/files", }); diff --git a/apps/fabro-web/app/routes/run-detail.tsx b/apps/fabro-web/app/routes/run-detail.tsx index 157cf7d40..b05e6540f 100644 --- a/apps/fabro-web/app/routes/run-detail.tsx +++ b/apps/fabro-web/app/routes/run-detail.tsx @@ -61,8 +61,8 @@ import { const allTabs = [ { name: "Overview", path: "", count: null, demoOnly: false }, { name: "Stages", path: "/stages", count: null, demoOnly: false }, + { name: "Diff", path: "/files", count: null, demoOnly: false }, { name: "Terminal", path: "/terminal", count: null, demoOnly: false, requiresSandbox: true }, - { name: "Files Changed", path: "/files", count: null, demoOnly: false }, { name: "Billing", path: "/billing", count: null, demoOnly: false }, ]; @@ -192,7 +192,7 @@ export default function RunDetail({ params }: { params: { id: string } }) { const hasSandbox = runHasSandbox(runStateQuery.data); const tabs = allTabs .map((tab) => - tab.name === "Files Changed" ? { ...tab, count: filesCount } : tab, + tab.name === "Diff" ? { ...tab, count: filesCount } : tab, ) .filter((t) => (!t.demoOnly || demoMode) && (!t.requiresSandbox || hasSandbox)); const lifecycleToastStateRef = useRef(INITIAL_LIFECYCLE_TOAST_STATE);