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(signals): label min-priority picker with the range it covers (#91712)

Jake Ruth602ee6aed204
diff --git a/products/desktop/packages/ui/src/features/settings/sections/SignalSlackNotificationsSettings.tsx b/products/desktop/packages/ui/src/features/settings/sections/SignalSlackNotificationsSettings.tsx
index 785cb43f78cb..1025f67de0f9 100644
--- a/products/desktop/packages/ui/src/features/settings/sections/SignalSlackNotificationsSettings.tsx
+++ b/products/desktop/packages/ui/src/features/settings/sections/SignalSlackNotificationsSettings.tsx
@@ -7,16 +7,18 @@ import { SettingsOptionSelect } from "@posthog/ui/features/settings/SettingsOpti
const NOTIFY_ALL_VALUE = "__all__";
+// Labels name the range a threshold covers, because the priority digits descend as urgency rises,
+// so a directional word ("and above") reads either way.
const MIN_PRIORITY_OPTIONS: {
value: SignalReportPriority | typeof NOTIFY_ALL_VALUE;
label: string;
}[] = [
{ value: NOTIFY_ALL_VALUE, label: "All priorities" },
{ value: "P0", label: "P0 only" },
- { value: "P1", label: "P1 and above" },
- { value: "P2", label: "P2 and above" },
- { value: "P3", label: "P3 and above" },
- { value: "P4", label: "P4 and above" },
+ { value: "P1", label: "P0-P1" },
+ { value: "P2", label: "P0-P2" },
+ { value: "P3", label: "P0-P3" },
+ { value: "P4", label: "P0-P4" },
];
interface SignalSlackNotificationsSettingsProps {
@@ -91,7 +93,7 @@ export function SignalSlackNotificationsSettings({
</SettingsCardRow>
<SettingsCardRow
label="Minimum priority"
- description="Only ping me for reports at or above this priority"
+ description="Only ping me for reports in this priority range. P0 is the most urgent."
>
<SettingsOptionSelect
value={minPriority ?? NOTIFY_ALL_VALUE}
diff --git a/products/signals/backend/models.py b/products/signals/backend/models.py
index 850a4c45d374..835a8ad178b3 100644
--- a/products/signals/backend/models.py
+++ b/products/signals/backend/models.py
@@ -190,8 +190,9 @@ class SignalUserAutonomyConfig(UUIDModel):
related_name="+",
)
slack_notification_channel = models.CharField(max_length=255, null=True, blank=True)
- # When null, all priorities (including reports with no priority) notify.
- # When set, only reports with a priority at or above this value (P0 highest) notify.
+ # When set, only reports at or above this priority (P0 highest) notify.
+ # When null, every prioritized report notifies. A report with no priority then
+ # notifies only on the reviewer-added path (see slack_inbox_notifications).
slack_notification_min_priority = models.CharField(max_length=2, choices=AutonomyPriority, null=True, blank=True)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
diff --git a/products/signals/backend/serializers.py b/products/signals/backend/serializers.py
index b3451d542d51..ba019b779c08 100644
--- a/products/signals/backend/serializers.py
+++ b/products/signals/backend/serializers.py
@@ -330,7 +330,7 @@ class SignalUserAutonomyConfigSerializer(serializers.ModelSerializer):
"slack_notification_min_priority": {
"help_text": (
"Minimum report priority that triggers a Slack notification. P0 is highest. "
- "Null means notify on every priority (and reports without a priority judgment)."
+ "Null means notify on every priority. When set, reports without a priority judgment do not notify."
)
},
}
@@ -357,7 +357,9 @@ class SignalUserAutonomyConfigCreateSerializer(serializers.Serializer):
choices=AutonomyPriority.choices,
required=False,
allow_null=True,
- help_text="P0 is highest. Null = notify for every priority.",
+ help_text=(
+ "P0 is highest. Null = notify for every priority. When set, reports without a priority judgment do not notify."
+ ),
)
diff --git a/products/signals/frontend/generated/api.schemas.ts b/products/signals/frontend/generated/api.schemas.ts
index 94035c1dd4c0..e5f0251ebd72 100644
--- a/products/signals/frontend/generated/api.schemas.ts
+++ b/products/signals/frontend/generated/api.schemas.ts
@@ -4088,7 +4088,7 @@ export interface SignalUserAutonomyConfigApi {
* @nullable
*/
slack_notification_channel?: string | null
- /** Minimum report priority that triggers a Slack notification. P0 is highest. Null means notify on every priority (and reports without a priority judgment).
+ /** Minimum report priority that triggers a Slack notification. P0 is highest. Null means notify on every priority. When set, reports without a priority judgment do not notify.
*
* * `P0` - P0
* * `P1` - P1
diff --git a/products/signals/frontend/generated/api.zod.ts b/products/signals/frontend/generated/api.zod.ts
index c9365b8a1abe..4e0910aaa61b 100644
--- a/products/signals/frontend/generated/api.zod.ts
+++ b/products/signals/frontend/generated/api.zod.ts
@@ -1750,6 +1750,6 @@ export const UsersSignalAutonomyCreateBody = /* @__PURE__ */ zod.object({
])
.optional()
.describe(
- 'Minimum report priority that triggers a Slack notification. P0 is highest. Null means notify on every priority (and reports without a priority judgment).\n\n\* `P0` - P0\n\* `P1` - P1\n\* `P2` - P2\n\* `P3` - P3\n\* `P4` - P4'
+ 'Minimum report priority that triggers a Slack notification. P0 is highest. Null means notify on every priority. When set, reports without a priority judgment do not notify.\n\n\* `P0` - P0\n\* `P1` - P1\n\* `P2` - P2\n\* `P3` - P3\n\* `P4` - P4'
),
})
diff --git a/products/signals/frontend/inbox/types.ts b/products/signals/frontend/inbox/types.ts
index ea6f392d824a..f68fb55edf50 100644
--- a/products/signals/frontend/inbox/types.ts
+++ b/products/signals/frontend/inbox/types.ts
@@ -41,13 +41,15 @@ export interface EnrichedReviewer {
/** P0 (highest) – P4 (lowest). Mirrors desktop `SignalReportPriority`. */
export type SignalReportPriority = 'P0' | 'P1' | 'P2' | 'P3' | 'P4'
-/** Threshold options over SignalReportPriority, strictest first. Shared by the auto-start and Slack min-priority selects. */
+/** Threshold options over SignalReportPriority, strictest first. Shared by the auto-start and Slack min-priority selects.
+ * Labels name the range a threshold covers, because the priority digits descend as urgency rises,
+ * so a directional word ("and above") reads either way. */
export const PRIORITY_THRESHOLD_OPTIONS: { value: SignalReportPriority; label: string }[] = [
{ value: 'P0', label: 'P0 only' },
- { value: 'P1', label: 'P1 and above' },
- { value: 'P2', label: 'P2 and above' },
- { value: 'P3', label: 'P3 and above' },
- { value: 'P4', label: 'P4 and above' },
+ { value: 'P1', label: 'P0-P1' },
+ { value: 'P2', label: 'P0-P2' },
+ { value: 'P3', label: 'P0-P3' },
+ { value: 'P4', label: 'P0-P4' },
]
/** Actionability judgment outcome. Mirrors desktop `SignalReportActionability`. */
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 9a48ba44bde0..d7e922981ede 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -77202,7 +77202,7 @@ export namespace Schemas {
* @nullable
*/
slack_notification_channel?: string | null;
- /** Minimum report priority that triggers a Slack notification. P0 is highest. Null means notify on every priority (and reports without a priority judgment).
+ /** Minimum report priority that triggers a Slack notification. P0 is highest. Null means notify on every priority. When set, reports without a priority judgment do not notify.
*
* * `P0` - P0
* * `P1` - P1