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): outline session list badge avatars (#102838)

Adam Leithddecebe9b082
diff --git a/products/desktop/packages/ui/src/features/canvas/components/ChannelItemRow.tsx b/products/desktop/packages/ui/src/features/canvas/components/ChannelItemRow.tsx
index f982b730cb7d..6ff9dedc08c3 100644
--- a/products/desktop/packages/ui/src/features/canvas/components/ChannelItemRow.tsx
+++ b/products/desktop/packages/ui/src/features/canvas/components/ChannelItemRow.tsx
@@ -36,6 +36,7 @@ import { useArchivingTasksStore } from "@posthog/ui/features/sidebar/archivingTa
import { InlineEditInput } from "@posthog/ui/features/sidebar/components/items/TaskItem";
import {
PinnedBadge,
+ ROW_BADGE_CLASS,
TaskBadgeStack,
TaskStatusDot,
TaskStatusTooltips,
@@ -111,15 +112,13 @@ const DELETING_DOT: TaskDot = {
function RowBadge({ label, children }: { label: string; children: ReactNode }) {
return (
<Tooltip disableHoverablePopup>
- {/* `cursor-default`: a badge names a fact about the row, it isn't a
- control — see the same note in TaskBadgeStack. */}
<TooltipTrigger
render={
<Avatar
size="xs"
aria-label={label}
role="img"
- className="cursor-default"
+ className={ROW_BADGE_CLASS}
>
<AvatarFallback className="bg-transparent">
{children}
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 bfe3288cb395..5eb7e21d8dc9 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
@@ -30,6 +30,15 @@ const FAINT_OPACITY = 0.4;
// off between them doesn't re-wait.
const TOOLTIP_DELAY_MS = 200;
+/**
+ * A row badge's avatar. `cursor-default` because a badge names a fact about the
+ * row and is not a control — quill gives an avatar rendered as a button the
+ * pointer cursor, which promises a click that does nothing. The outline keeps
+ * the badges apart where the stack overlaps them: without it two icons touching
+ * read as one broken glyph rather than two badges.
+ */
+export const ROW_BADGE_CLASS = "cursor-default outline-1 outline-(--border)";
+
/**
* A label-only tooltip. Two things keep it out of the way, because one isn't
* enough: `disableHoverablePopup` stops Base UI holding the popup open when the
@@ -172,7 +181,7 @@ export function PinnedBadge() {
size="xs"
aria-label="Pinned"
role="img"
- className="cursor-default"
+ className={ROW_BADGE_CLASS}
>
<AvatarFallback className="bg-transparent">
<PushPin size={9} className="text-primary" />
@@ -209,14 +218,11 @@ export function TaskBadgeStack({
{/* The tooltip names the badge on hover; `aria-label` is what names it
for everyone else — without it the stack is a row of blank avatars
to a screen reader. */}
- {/* `cursor-default`: these name a fact about the row, they aren't
- controls — quill gives an avatar rendered as a button the pointer
- cursor, which promises a click that does nothing. */}
<Avatar
size="xs"
aria-label={label}
role="img"
- className="cursor-default"
+ className={ROW_BADGE_CLASS}
>
<AvatarFallback className="bg-transparent text-muted-foreground">
{/* An explicit `color` (an SVG fill) rather than a text-* class,