feat(mobile): add Discuss button to inbox reports#2409
Merged
Conversation
Mirrors the desktop PR (#2241) on mobile. Tapping Discuss on an inbox report opens a sheet where the user can optionally type a first question, then routes them to the new-task composer with the agent-fetch-the-report prompt prefilled and the signal_report id attached. The prompt builder moves to @posthog/shared and is parameterised on the deep-link URL so each host can pass its own scheme (posthog-code:// on desktop, posthog:// on mobile) without forking the wording. Fires the same "Inbox report action" event desktop does with action_type: "discuss" and the report id, so the discuss surface shows up alongside the other inbox actions in analytics. Generated-By: PostHog Code Task-Id: bad407bc-3425-4688-87ca-3b2d61673b5c
Contributor
|
Reviews (1): Last reviewed commit: "feat(mobile): add Discuss button to inbo..." | Re-trigger Greptile |
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
signal_reportid attached.buildDiscussReportPromptinto@posthog/sharedand parameterises it on the deep-link URL so each host passes its own scheme (posthog-code://on desktop,posthog://on mobile) without forking the wording. The desktop wrapper keeps its previousisDevBuildsignature so all existing callers stay unchanged.Inbox report actionanalytics event desktop does withaction_type: "discuss",surface: "detail_pane",has_question, and the report id, so the discuss surface shows up alongside the other inbox actions.Test plan
signalReportparams prefilledorigin_product: "signal_report"andsignal_report_idon the API side once sentpnpm --filter code test buildDiscussReportPromptstill passes