: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(signals): show report owner beside external agent (#126234)
Georgiy Tarasov3de6f757c3c3
diff --git a/products/signals/frontend/inbox/components/detail/ReportStatusSection.test.tsx b/products/signals/frontend/inbox/components/detail/ReportStatusSection.test.tsxindex 391b9da773d8..1df73e0c2e95 100644--- a/products/signals/frontend/inbox/components/detail/ReportStatusSection.test.tsx+++ b/products/signals/frontend/inbox/components/detail/ReportStatusSection.test.tsx@@ -1,13 +1,46 @@import '@testing-library/jest-dom'-import { render, screen, within } from '@testing-library/react'+import { cleanup, render, screen, within } from '@testing-library/react'import { makeReport } from '../../__mocks__/inboxMocks'import { SignalReportStatus } from '../../types'import { ReportStatusSection } from './ReportStatusSection'describe('ReportStatusSection', () => {- it('shows each pull request with one fact per row', () => {+ afterEach(cleanup)++ const owner = { id: 1, uuid: 'owner-1', first_name: 'Jane', last_name: 'Doe', email: '[email protected]' }++ it.each([+ {+ name: 'an agent without a person',+ responsibleUser: null,+ user: null,+ agent: 'Build agent',+ label: 'Build agent',+ },+ {+ name: 'an agent with a responsible person',+ responsibleUser: owner,+ user: null,+ agent: 'Build agent',+ label: 'Jane Doe (via Build agent)',+ },+ {+ name: 'an agent with a legacy user',+ responsibleUser: null,+ user: owner,+ agent: 'Build agent',+ label: 'Jane Doe (via Build agent)',+ },+ {+ name: 'an unnamed agent with a responsible person',+ responsibleUser: owner,+ user: null,+ agent: ' ',+ label: 'Jane Doe (via External agent)',+ },+ ])('shows pull requests and ownership for $name', ({ responsibleUser, user, agent, label }) => {const report = makeReport({status: SignalReportStatus.READY,priority: 'P1',@@ -39,11 +72,11 @@ describe('ReportStatusSection', () => {assignee: {claim_id: 'claim-1',kind: 'agent',- user: null,+ user,task_id: null,- agent: 'Build agent',+ agent,claimed_at: '2026-06-11T10:00:00Z',- responsible_user: null,+ responsible_user: responsibleUser,},})@@ -54,7 +87,7 @@ describe('ReportStatusSection', () => {expect(screen.queryByText('Work')).not.toBeInTheDocument()expect(screen.queryByText('In review')).not.toBeInTheDocument()expect(screen.getByText('In progress by')).toBeInTheDocument()- expect(screen.getByText('Build agent')).toBeInTheDocument()+ expect(screen.getByText(label)).toBeInTheDocument()expect(screen.getByText('P1')).toBeInTheDocument()expect(screen.queryByText('Actionability')).not.toBeInTheDocument()expect(screen.getByText('example/app#42')).toBeInTheDocument()diff --git a/products/signals/frontend/inbox/components/detail/ReportStatusSection.tsx b/products/signals/frontend/inbox/components/detail/ReportStatusSection.tsxindex af253ee1d2ad..99bfa98d6764 100644--- a/products/signals/frontend/inbox/components/detail/ReportStatusSection.tsx+++ b/products/signals/frontend/inbox/components/detail/ReportStatusSection.tsx@@ -5,11 +5,13 @@ import { LemonSelect, LemonTag } from '@posthog/lemon-ui'import { TZLabel } from 'lib/components/TZLabel'import { Link } from 'lib/lemon-ui/Link'+import { fullNameOrEmail } from 'lib/utils/strings'import type { ReportPriorityApi } from 'products/signals/frontend/generated/api.schemas'import { PRIORITY_MEANING, PRIORITY_TAG_TYPE } from '../../filterOptions'import { SignalReport } from '../../types'+import { reportClaimant } from '../../utils/reportClaim'import { parsePrUrlParts, safeHttpUrl } from '../../utils/reportPresentation'import { ReportPullRequest, reportPullRequests } from '../../utils/reportPullRequests'import { STATUS_LABELS } from '../badges/SignalReportStatusBadge'@@ -45,7 +47,9 @@ function externalClaimLabel(report: SignalReport): string | null {if (assignee?.kind !== 'agent') {return null}- return assignee.agent?.trim() || 'External agent'+ const agent = assignee.agent?.trim() || 'External agent'+ const claimant = reportClaimant(report)+ return claimant ? `${fullNameOrEmail(claimant)} (via ${agent})` : agent}export function ReportStatusSection({