GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): show Monitoring on board cards instead of Working (#356) · patroza/t3code@912340b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/web/src/components
    • Sidebar.logic.test.ts
    • Sidebar.logic.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/web/src/components/Sidebar.logic.test.ts‎

Copy file name to clipboardExpand all lines: apps/web/src/components/Sidebar.logic.test.ts
+20Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import {
2929
resolveSidebarStageBadgeLabel,
3030
resolveThreadRowClassName,
3131
resolveSidebarV2Status,
32+
resolveSidebarV2TopStatus,
3233
resolveThreadStatusPill,
3334
resolveWorkingStartedAt,
3435
searchSidebarThreadsByTitle,
@@ -2147,3 +2148,22 @@ describe("sortLogicalProjectsForSidebar", () => {
21472148
).toEqual(["logical-newer", "logical-older"]);
21482149
});
21492150
});
2151+
2152+
describe("resolveSidebarV2TopStatus", () => {
2153+
it("shows monitoring as its own calm status, not as Working", () => {
2154+
// Board cards read this. Folding monitoring into Working gave a watch loop
2155+
// the active-progress shimmer, which is what the v1 pill (pulse: false) and
2156+
// the v2 sidebar row both deliberately avoid.
2157+
const monitoring = resolveSidebarV2TopStatus({ status: "monitoring", isUnread: false });
2158+
expect(monitoring?.label).toBe("Monitoring");
2159+
expect(monitoring?.icon).toBeNull();
2160+
expect(monitoring?.className).not.toContain("animate-sidebar-working-text");
2161+
});
2162+
2163+
it("keeps working animated so the two remain distinguishable", () => {
2164+
const working = resolveSidebarV2TopStatus({ status: "working", isUnread: false });
2165+
expect(working?.label).toBe("Working");
2166+
expect(working?.icon).toBe("working");
2167+
expect(working?.className).toContain("animate-sidebar-working-text");
2168+
});
2169+
});
Collapse file

‎apps/web/src/components/Sidebar.logic.ts‎

Copy file name to clipboardExpand all lines: apps/web/src/components/Sidebar.logic.ts
+10-4Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ export function resolveSidebarV2Status(thread: SidebarV2StatusInput): SidebarV2S
883883
}
884884

885885
export interface SidebarV2TopStatus {
886-
label: "Working" | "Approval" | "Input" | "Failed" | "Done";
886+
label: "Working" | "Monitoring" | "Approval" | "Input" | "Failed" | "Done";
887887
icon: "working" | "done" | null;
888888
className: string;
889889
}
@@ -894,15 +894,21 @@ export function resolveSidebarV2TopStatus(input: {
894894
}): SidebarV2TopStatus | null {
895895
switch (input.status) {
896896
case "working":
897-
// Monitoring is live background work too. The v2 top-status label union has
898-
// no Monitoring member, so it reads as Working rather than inventing one.
899-
case "monitoring":
900897
return {
901898
label: "Working",
902899
icon: "working",
903900
className:
904901
"animate-sidebar-working-text text-sky-600 motion-reduce:animate-none dark:text-sky-400",
905902
};
903+
// Steady label, no icon, no duty-cycled shimmer: monitoring is calm
904+
// background presence, not active progress (monitoring-pill D6). Matches the
905+
// v2 sidebar row and the v1 pill, which uses pulse: false here.
906+
case "monitoring":
907+
return {
908+
label: "Monitoring",
909+
icon: null,
910+
className: "text-sky-600 dark:text-sky-400",
911+
};
906912
case "approval":
907913
return {
908914
label: "Approval",

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.