refactor(web): rename Files Changed tab to Diff and reorder before Terminal

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-05-09 16:41:41 -04:00
parent 0f30150264
commit 0de07bbfec
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -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",
});

View file

@ -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<LifecycleToastState>(INITIAL_LIFECYCLE_TOAST_STATE);