diff --git a/.changeset/unread_pins_toggle.md b/.changeset/unread_pins_toggle.md
new file mode 100644
index 00000000..0fec1416
--- /dev/null
+++ b/.changeset/unread_pins_toggle.md
@@ -0,0 +1,5 @@
+---
+sable: patch
+---
+
+Added an additional toggle, Show Unread Ping Counts, to override the Show Unread Counts allowing for only pings to have counts.
diff --git a/src/app/components/unread-badge/UnreadBadge.tsx b/src/app/components/unread-badge/UnreadBadge.tsx
index 9029cc9b..49b8d664 100644
--- a/src/app/components/unread-badge/UnreadBadge.tsx
+++ b/src/app/components/unread-badge/UnreadBadge.tsx
@@ -20,8 +20,11 @@ export function UnreadBadgeCenter({ children }: { children: ReactNode }) {
}
export function UnreadBadge({ highlight, count }: UnreadBadgeProps) {
- const [showCounts] = useSetting(settingsAtom, 'showUnreadCounts');
- const showNumber = showCounts && count > 0;
+ const [showUnreadCounts] = useSetting(settingsAtom, 'showUnreadCounts');
+ const [showPingCounts] = useSetting(settingsAtom, 'showPingCounts');
+
+ const showNumber = count > 0 && (showUnreadCounts || (highlight && showPingCounts));
+
return (
}
/>
-
-
- }
- />
-
);
}
diff --git a/src/app/features/settings/cosmetics/Themes.tsx b/src/app/features/settings/cosmetics/Themes.tsx
index 1440ae60..56d73c24 100644
--- a/src/app/features/settings/cosmetics/Themes.tsx
+++ b/src/app/features/settings/cosmetics/Themes.tsx
@@ -328,6 +328,7 @@ function PageZoomInput() {
export function Appearance() {
const [twitterEmoji, setTwitterEmoji] = useSetting(settingsAtom, 'twitterEmoji');
const [showUnreadCounts, setShowUnreadCounts] = useSetting(settingsAtom, 'showUnreadCounts');
+ const [showPingCounts, setShowPingCounts] = useSetting(settingsAtom, 'showPingCounts');
return (
@@ -356,6 +357,13 @@ export function Appearance() {
}
/>
+
+ }
+ />
+
);
diff --git a/src/app/state/settings.ts b/src/app/state/settings.ts
index 835984b3..fab45528 100644
--- a/src/app/state/settings.ts
+++ b/src/app/state/settings.ts
@@ -72,6 +72,7 @@ export interface Settings {
hideMembershipInReadOnly: boolean;
useRightBubbles: boolean;
showUnreadCounts: boolean;
+ showPingCounts: boolean;
}
const defaultSettings: Settings = {
@@ -128,6 +129,7 @@ const defaultSettings: Settings = {
hideMembershipInReadOnly: true,
useRightBubbles: false,
showUnreadCounts: true,
+ showPingCounts: true,
};
export const getSettings = () => {