feat(inbox): suppress dialog with dismissal feedback#2053
Draft
feat(inbox): suppress dialog with dismissal feedback#2053
Conversation
Add a Suppress button to the top of the report detail pane and replace the bulk-suppress confirmation in the toolbar with a dialog that asks why the user is suppressing. The dialog offers six radio reasons plus an optional free-form note. Selections are sent alongside the state transition and persisted server-side as a `dismissal`-type report artefact so the rationale survives status changes and can stack over time. Generated-By: PostHog Code Task-Id: d3d675ab-707a-4a35-939b-9a9ab0f5c5b5
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /api/projects/:team_id/signals/reports/:id/state/endpoint, with two new optional body fields (dismissal_reason,dismissal_note). The backend persists those as a newdismissal-typeSignalReportArtefactso the rationale survives status changes and stacks across multiple dismissals. The companion backend PR is inPostHog/posthog.Notable changes
SuppressDialogcomponent (apps/code/src/renderer/features/inbox/components/SuppressDialog.tsx) — uses RadixDialog+RadioGroup+TextArea.useInboxBulkActions.suppressSelected(dismissal?)now takes an optional{ reason, note }payload.posthogClient.updateSignalReportStateaccepts and forwardsdismissal_reason/dismissal_note.DismissalArtefactshared type + parser branch in the artefact normalizer.Test plan
Created with PostHog Code