From 279d2e5bd073cb38e09c0d8c26828781ff503ed3 Mon Sep 17 00:00:00 2001
From: Rafael Audibert <32079912+rafaeelaudibert@users.noreply.github.com>
Date: Fri, 19 Jun 2026 16:57:33 -0300
Subject: [PATCH 1/2] fix(inbox): don't render GitHub bot avatars in reviewers
list
Bot reviewers (GitHub login suffixed with `[bot]`) have noisy generic
avatars. Render an empty space sized like the avatar for them instead, and
use the PostHog logo specifically for `posthog[bot]`.
Generated-By: PostHog Code
Task-Id: 4bd1be27-3e0b-4d10-83fd-a9d64a126439
---
.../features/inbox/assets/posthog-icon.svg | 18 ++++++++++
.../utils/SuggestedReviewerAvatar.tsx | 33 +++++++++++++++++++
2 files changed, 51 insertions(+)
create mode 100644 packages/ui/src/features/inbox/assets/posthog-icon.svg
diff --git a/packages/ui/src/features/inbox/assets/posthog-icon.svg b/packages/ui/src/features/inbox/assets/posthog-icon.svg
new file mode 100644
index 0000000000..dccc059ab8
--- /dev/null
+++ b/packages/ui/src/features/inbox/assets/posthog-icon.svg
@@ -0,0 +1,18 @@
+
diff --git a/packages/ui/src/features/inbox/components/utils/SuggestedReviewerAvatar.tsx b/packages/ui/src/features/inbox/components/utils/SuggestedReviewerAvatar.tsx
index 33d99390f3..7855b457ed 100644
--- a/packages/ui/src/features/inbox/components/utils/SuggestedReviewerAvatar.tsx
+++ b/packages/ui/src/features/inbox/components/utils/SuggestedReviewerAvatar.tsx
@@ -1,4 +1,5 @@
import { cn } from "@posthog/quill";
+import posthogIcon from "../../assets/posthog-icon.svg";
const SIZE = {
sm: { className: "h-[18px] w-[18px]", pixels: 28 },
@@ -11,6 +12,13 @@ interface SuggestedReviewerAvatarProps {
className?: string;
}
+/** GitHub bots are suffixed with `[bot]`, e.g. `dependabot[bot]`. */
+function isBotLogin(githubLogin: string): boolean {
+ return githubLogin.endsWith("[bot]");
+}
+
+const POSTHOG_BOT_LOGIN = "posthog[bot]";
+
/** GitHub profile avatar for suggested reviewers – matches SuggestedReviewersEditor. */
export function SuggestedReviewerAvatar({
githubLogin,
@@ -19,6 +27,31 @@ export function SuggestedReviewerAvatar({
}: SuggestedReviewerAvatarProps) {
const config = SIZE[size];
+ if (isBotLogin(githubLogin)) {
+ // GitHub bot avatars are noisy generic icons; render the PostHog logo for our
+ // own bot and an empty space sized like the avatar for every other bot.
+ if (githubLogin === POSTHOG_BOT_LOGIN) {
+ return (
+
+ );
+ }
+
+ return (
+
+ );
+ }
+
return (
Date: Fri, 19 Jun 2026 17:30:35 -0300
Subject: [PATCH 2/2] fix(inbox): satisfy biome formatting and tighten
posthog[bot] logo
- Collapse the cn() call to a single line so `biome ci` passes (CI quality job).
- Crop the PostHog logo asset to its colorful chevron mark (viewBox now
~1.19:1 instead of 1.85:1) so it fills the square avatar slot instead of
rendering half-height. Drops the dark monochrome hedgehog, which would be
invisible in dark mode and is unreadable at avatar size anyway.
Generated-By: PostHog Code
Task-Id: 4bd1be27-3e0b-4d10-83fd-a9d64a126439
---
packages/ui/src/features/inbox/assets/posthog-icon.svg | 10 +---------
.../inbox/components/utils/SuggestedReviewerAvatar.tsx | 6 +-----
2 files changed, 2 insertions(+), 14 deletions(-)
diff --git a/packages/ui/src/features/inbox/assets/posthog-icon.svg b/packages/ui/src/features/inbox/assets/posthog-icon.svg
index dccc059ab8..f4aca6dd84 100644
--- a/packages/ui/src/features/inbox/assets/posthog-icon.svg
+++ b/packages/ui/src/features/inbox/assets/posthog-icon.svg
@@ -1,6 +1,4 @@
-
diff --git a/packages/ui/src/features/inbox/components/utils/SuggestedReviewerAvatar.tsx b/packages/ui/src/features/inbox/components/utils/SuggestedReviewerAvatar.tsx
index 7855b457ed..b98064ce54 100644
--- a/packages/ui/src/features/inbox/components/utils/SuggestedReviewerAvatar.tsx
+++ b/packages/ui/src/features/inbox/components/utils/SuggestedReviewerAvatar.tsx
@@ -35,11 +35,7 @@ export function SuggestedReviewerAvatar({
);
}