Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(desktop): restore the braille task spinner (#98087)

Charles Vienb32050e5a30e
diff --git a/products/desktop/packages/ui/src/features/sidebar/components/items/TaskStatusDot.test.tsx b/products/desktop/packages/ui/src/features/sidebar/components/items/TaskStatusDot.test.tsx
index b0d2304de42f..bd291e5a7267 100644
--- a/products/desktop/packages/ui/src/features/sidebar/components/items/TaskStatusDot.test.tsx
+++ b/products/desktop/packages/ui/src/features/sidebar/components/items/TaskStatusDot.test.tsx
@@ -19,7 +19,7 @@ const idle: TaskDot = {
};
describe("TaskStatusDot", () => {
- it("uses a standard spinner without changing the status column width", () => {
+ it("uses the braille spinner without changing the status column width", () => {
render(
<>
<TaskStatusDot dot={working} />
@@ -32,7 +32,7 @@ describe("TaskStatusDot", () => {
const mark = screen.getByRole("img", { name: "Loading" });
expect(mark.style.width).toBe(column);
- expect(mark.firstElementChild).toHaveClass("animate-spin");
- expect(mark.querySelector("svg")).toBeInTheDocument();
+ expect(mark.querySelector(".ph-dots-frame")).toHaveTextContent("⠋");
+ expect(mark.querySelector("svg")).not.toBeInTheDocument();
});
});
diff --git a/products/desktop/packages/ui/src/features/sidebar/components/items/TaskStatusDot.tsx b/products/desktop/packages/ui/src/features/sidebar/components/items/TaskStatusDot.tsx
index dfb961418ab5..e163eb128712 100644
--- a/products/desktop/packages/ui/src/features/sidebar/components/items/TaskStatusDot.tsx
+++ b/products/desktop/packages/ui/src/features/sidebar/components/items/TaskStatusDot.tsx
@@ -16,10 +16,11 @@ import {
TONE_ICON_VAR,
taskBadges,
} from "@posthog/ui/features/sidebar/components/items/taskStatusVocabulary";
-import { Spinner } from "@posthog/ui/primitives/Spinner";
+import { DotsCircleSpinner } from "@posthog/ui/primitives/DotsCircleSpinner";
import type { ReactElement, ReactNode } from "react";
const DOT_SIZE = 8;
+const SPINNER_SIZE = 12;
// Keep the status column stable when a dot changes to a larger spinner.
const SPINNER_BOX = DOT_SIZE;
// Enough to still find the dot if you look for it, not enough to count as one of
@@ -80,8 +81,8 @@ function dotMark(dot: TaskDot, decorative = false): ReactElement {
height: SPINNER_BOX,
}}
>
- <Spinner
- size="sm"
+ <DotsCircleSpinner
+ size={SPINNER_SIZE}
className="-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-1/2"
/>
</span>
diff --git a/products/desktop/packages/ui/src/features/sidebar/components/items/taskStatusVocabulary.ts b/products/desktop/packages/ui/src/features/sidebar/components/items/taskStatusVocabulary.ts
index c681f6c235bd..629a2eed30b6 100644
--- a/products/desktop/packages/ui/src/features/sidebar/components/items/taskStatusVocabulary.ts
+++ b/products/desktop/packages/ui/src/features/sidebar/components/items/taskStatusVocabulary.ts
@@ -82,7 +82,7 @@ export interface TaskDot {
style: "solid" | "hollow";
/** Flashing = happening now, or wanting you now. */
pulse: boolean;
- /** Draw a standard spinner instead of a status dot. */
+ /** Draw the braille activity spinner instead of a status dot. */
spinner?: boolean;
/**
* Draw the dot barely there. For states that are deliberately inert — the task