huskies: merge 964

This commit is contained in:
dave
2026-05-13 14:51:39 +00:00
parent c811672e18
commit dcb43c465a
24 changed files with 234 additions and 188 deletions
@@ -15,7 +15,7 @@ import { WorkItemDetailPanel } from "./WorkItemDetailPanel";
* This conversion happens at render time, not at the WebSocket boundary,
* so the original StatusEvent structure is preserved in state. */
function formatStatusEventMessage(event: StatusEvent): string {
const name = event.story_name ?? event.story_id;
const name = event.story_name || event.story_id;
switch (event.type) {
case "stage_transition":
return `${name}${event.from_stage}${event.to_stage}`;
+1 -1
View File
@@ -113,7 +113,7 @@ describe("StagePanel", () => {
const items: PipelineStageItem[] = [
{
story_id: "1_story_bad",
name: null,
name: "",
error: "Missing front matter",
merge_failure: null,
agent: null,
+3 -3
View File
@@ -526,7 +526,7 @@ export function StagePanel({
${costs.get(item.story_id)?.toFixed(2)}
</span>
)}
{item.name ?? item.story_id}
{item.name || item.story_id}
</div>
{item.error && (
<div
@@ -616,10 +616,10 @@ export function StagePanel({
<button
type="button"
data-testid={`delete-btn-${item.story_id}`}
title={`Delete ${item.name ?? item.story_id}`}
title={`Delete ${item.name || item.story_id}`}
onClick={(e) => {
e.stopPropagation();
const label = item.name ?? item.story_id;
const label = item.name || item.story_id;
if (
window.confirm(
`Delete "${label}"? This cannot be undone.`,