From 4f0fbf6476d5c043d30314992ad834ba82e8cb69 Mon Sep 17 00:00:00 2001 From: Nam Rodriguez Date: Thu, 12 Nov 2026 09:52:51 -0500 Subject: [PATCH] Run page: say what CoderHelm finished, not that it handed the work over A finished run's card says CoderHelm finished the work, checked it and named what it deferred and why; merging is the team's call. A run with planned work left on its pull request reads "Finished, work deferred" instead of "Stopped, not finished", and a failed run reads "Coderhelm couldn't ship this run" with the reason it stopped. --- dashboard/e2e/audit-runs.spec.ts | 6 +++--- dashboard/e2e/run-draft-hold.spec.ts | 4 ++-- dashboard/src/app/runs/detail/page.tsx | 8 ++++---- dashboard/src/components/run-status.tsx | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dashboard/e2e/audit-runs.spec.ts b/dashboard/e2e/audit-runs.spec.ts index b41c9552..9f27a079 100644 --- a/dashboard/e2e/audit-runs.spec.ts +++ b/dashboard/e2e/audit-runs.spec.ts @@ -235,7 +235,7 @@ test("a finished run shows its pull request, steps, documents and tasks without const outcome = page.getByTestId("run-outcome"); await expect(outcome).toContainText("Pull request #101 is ready for review"); await expect(page.getByTestId("run-who")).toHaveText("Needs a person"); - await expect(page.getByTestId("run-next")).toContainText("Someone on your team reviews and merges it."); + await expect(page.getByTestId("run-next")).toContainText("Merging it is your team's call: review it and merge."); await expect(outcome.getByRole("link", { name: /Open pull request #101/ })).toHaveAttribute("href", "https://github.com/your-team/web/pull/101"); // The steps read as what Coderhelm did, in words, not the worker's ids, ending on where the run is. const steps = page.getByRole("list", { name: "Steps" }); @@ -521,7 +521,7 @@ test("a failed run shows what went wrong with one retry, and a refused retry say await page.goto("/runs/detail/?id=01RUNDONE000000000000000A"); // A plain headline and the next step; the raw error waits behind Technical details. const outcome = page.getByTestId("run-outcome"); - await expect(outcome).toContainText("Coderhelm stopped before it finished"); + await expect(outcome).toContainText("Coderhelm couldn't ship this run"); await expect(outcome).toContainText("test step"); await expect(outcome.getByText(/ci\.example\.com/)).toBeHidden(); await outcome.getByText("Technical details").click(); @@ -660,7 +660,7 @@ test("a finished run with an old error says it's done; the old error waits in Ac await page.goto("/runs/detail/?id=01RUNDONE000000000000000A"); await expect(page.getByTestId("run-outcome")).toContainText("Pull request #101 is ready for review"); await expect(page.getByText(/TypeError/)).toHaveCount(0); - await expect(page.getByText("Coderhelm stopped before it finished")).toHaveCount(0); + await expect(page.getByText("Coderhelm couldn't ship this run")).toHaveCount(0); await openTab(page, "Activity"); await expect(page.getByText("A problem earlier in this run")).toBeVisible(); }); diff --git a/dashboard/e2e/run-draft-hold.spec.ts b/dashboard/e2e/run-draft-hold.spec.ts index f809082c..28fac426 100644 --- a/dashboard/e2e/run-draft-hold.spec.ts +++ b/dashboard/e2e/run-draft-hold.spec.ts @@ -173,7 +173,7 @@ test("a run whose pull request's CI fails reads CI failing, with the check and t await shot(page, "run-ci-failing"); }); -test("a run stopped with planned work left reads Stopped, not finished", async ({ page }) => { +test("a run with planned work left reads Finished, work deferred", async ({ page }) => { await mockApi(page, run({ waiting_on: { action: "Review pull request #318", @@ -184,7 +184,7 @@ test("a run stopped with planned work left reads Stopped, not finished", async ( draft_hold: null, })); await page.goto("/runs/detail?id=01RUNHOLD"); - await expect(page.getByTestId("page-header").getByText("Stopped, not finished", { exact: true })).toBeVisible(); + await expect(page.getByTestId("page-header").getByText("Finished, work deferred", { exact: true })).toBeVisible(); }); test("a run with no hold still reads as before", async ({ page }) => { diff --git a/dashboard/src/app/runs/detail/page.tsx b/dashboard/src/app/runs/detail/page.tsx index 22560c44..8030046b 100644 --- a/dashboard/src/app/runs/detail/page.tsx +++ b/dashboard/src/app/runs/detail/page.tsx @@ -801,7 +801,7 @@ function RunDetailInner() { outcome = ( @@ -812,7 +812,7 @@ function RunDetailInner() { } > {currentStep ? `It hit a problem during the ${currentStep.toLowerCase()} step. ` : ""} - {canAct && canRetry ? "Retry to run it again, or get help if it keeps happening." : "Ask someone with member access to retry it, or get help."} + {canAct && canRetry ? "The reason above says what stopped it. Retry to run it again, or get help if it keeps happening." : "Ask someone with member access to retry it, or get help."} ); } else if (run.status === "closed") { @@ -917,9 +917,9 @@ function RunDetailInner() { ? { tone: "success", title: prLinks.length ? `${prWords} is ready for review` : "Done.", - body: prLinks.length ? "Coderhelm finished its work on it and handed it over." : "Coderhelm finished this work.", + body: prLinks.length ? "Coderhelm finished the work on it, checked it, and named anything it deferred and why." : "Coderhelm finished this work.", who: prLinks.length ? "you" : "none", - next: prLinks.length ? "Someone on your team reviews and merges it." : undefined, + next: prLinks.length ? "Merging it is your team's call: review it and merge." : undefined, actions: ( <> {openPrButtons("primary")} diff --git a/dashboard/src/components/run-status.tsx b/dashboard/src/components/run-status.tsx index b65e9936..b1516c1b 100644 --- a/dashboard/src/components/run-status.tsx +++ b/dashboard/src/components/run-status.tsx @@ -79,8 +79,8 @@ const DRAFT_HELD: RunLook = { label: "PR held", tone: "waiting", group: "waiting const DRAFT_NOT_MARKED: RunLook = { label: "PR held", tone: "attention", group: "waiting" }; /** The pull request is held because its CI fails: named so, never "Done". */ const CI_FAILING: RunLook = { label: "CI failing", tone: "attention", group: "waiting" }; -/** The run stopped before its planned work was done; its draft says what is left. */ -const STOPPED_UNFINISHED: RunLook = { label: "Stopped, not finished", tone: "attention", group: "waiting" }; +/** Planned work is left on the run's pull request; its draft names each item with why it was deferred. */ +const STOPPED_UNFINISHED: RunLook = { label: "Finished, work deferred", tone: "attention", group: "waiting" }; /** Waiting on a person for something that isn't a question (`waiting_on`): reviewing the pull request, say. */ const WAITING_ON_YOU: RunLook = { label: "Waiting on you", tone: "waiting", group: "waiting" };