- {/* The subject takes what it needs up to a measure, and the commit
- it names follows it. Every heading hits that measure on a wide
- window, so the shas line up down the page. The ref closes the
- heading at the right edge. */}
+ {/* The subject takes the width, and the sha and ref it ran against
+ close the heading at the right. */}
@@ -51,7 +49,7 @@ export function CheckGroup({ repo, group, label }) {
)}
{ref && (
-
+
{shortRef(ref)}
)}
diff --git a/packages/git-ui/src/components/molecules/check-row.jsx b/packages/git-ui/src/components/molecules/check-row.jsx
index ec89fec..bbff15d 100644
--- a/packages/git-ui/src/components/molecules/check-row.jsx
+++ b/packages/git-ui/src/components/molecules/check-row.jsx
@@ -10,9 +10,10 @@ import { cn } from '#/lib/utils.js';
* This holds no anchor and no button of its own. The caller decides whether
* the line opens the run's page or expands in place.
*
- * A caller that already names when the runs happened turns off showTime. Every
- * run of one commit started within a minute of the others, so the column reads
- * the same phrase down the whole list.
+ * The workflow name takes the width, and the cost and time close the row at
+ * the right, so the rows read as columns down the page however wide the
+ * window. A caller that already names when the runs happened turns off
+ * showTime. Every run of one commit started within a minute of the others.
*/
export function CheckRow({ check, className, showTime = true }) {
const look = checkLook(check.status);
@@ -26,18 +27,16 @@ export function CheckRow({ check, className, showTime = true }) {
)}
>
- {/* What ran and what it cost stand together. Each holds its width
- whether or not the run fills it, so they read down the page as
- columns. When it ran closes the row at the right edge, the way a
- commit's status closes a row in the commit list. */}
-
+
{workflowOf(check)}
-
- {took}
-
+ {took && (
+
+ {took}
+
+ )}
{showTime && (
-
+
{timeAgo(check.startedAt)}
)}
diff --git a/packages/git-ui/src/pages/checks.jsx b/packages/git-ui/src/pages/checks.jsx
index f020d10..f285608 100644
--- a/packages/git-ui/src/pages/checks.jsx
+++ b/packages/git-ui/src/pages/checks.jsx
@@ -74,26 +74,34 @@ export function ChecksPage({ repo }) {
return (
-
-
+
+
+
+
-
- {groupBySha(runs).map((group) => (
-
- ))}
-
+ {/* The runs read in a column of their own width, so a wide window does
+ not strand the time and cost far from the workflow that spent them. */}
+