feat(inbox): render expandable inbox report card under initial prompt#2556
Open
rafaeelaudibert wants to merge 1 commit into
Open
feat(inbox): render expandable inbox report card under initial prompt#2556rafaeelaudibert wants to merge 1 commit into
rafaeelaudibert wants to merge 1 commit into
Conversation
When a task is associated with a PostHog inbox report (task.signal_report), the conversation now renders an expandable report card directly under the initial prompt, so the report can be read inline instead of navigating away to the inbox view. - New InboxReportCard component fetches the report via the existing useInboxReportById hook (shared query cache, stays in sync). Collapsed shows title + status badge; expanded shows the researched summary, priority/actionability badges, and an "Open in inbox" action. - UserMessage gains an optional signalReportId prop that renders the card below the message body, mirroring the existing slackThreadUrl pattern. - ConversationView passes task.signal_report to the first user message only. Generated-By: PostHog Code Task-Id: c0568add-708f-41eb-a334-563d52b70afa
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
Contributor
|
Reviews (1): Last reviewed commit: "feat(inbox): render expandable inbox rep..." | 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
When a task is associated with a PostHog inbox report (
task.signal_report), the conversation now renders an expandable inbox-report card directly under the initial prompt. You can read the report inline — title, status, summary, priority/actionability — instead of jumping out to the inbox view to read more about it.What changed
New component —
InboxReportCard.tsxuseInboxReportByIdhook (same TanStack Query cache the inbox uses, so it stays in sync — no new data plumbing).SignalReportSummaryMarkdown), priority + actionability badges, and an "Open in inbox" link that resets filters, navigates to the inbox, and selects the report (mirrors the deep-link open path, reusing the warm cache for the detail pane).Wiring (mirrors the existing
slackThreadUrlpattern)UserMessage.tsx— added an optionalsignalReportIdprop; when present it renders<InboxReportCard>below the message body.ConversationView.tsx— passestask.signal_reporttoUserMessagefor the first user message only.Notes
[inbox item](posthog-code://…)deep link inside the agent's prompt text is kept — it's part of the prompt the agent reads; the card is an additive UI affordance.PendingChatView.Verification
pnpm --filter code typecheckpasses clean.biome checkpasses.🤖 Generated with Claude Code