: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): drop the row open button from redesigned report cards (#91265)
Chris Volzerf2dbb031942a
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex bc348e0040eb..2ed2347c81ba 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -7025,9 +7025,9 @@ snapshots:scenes-app-inbox-scene--self-driving-onboarding--light:hash: v1.k794b7964.5268ad52b39cdc5bb1d699e6a1a839a552ce397134d6773714e1f5a2d95994b6.hgkYOJDE9ZNZ0mMtcj9cpcDCtmas-opelntO_tyQ9Igscenes-app-inbox-scene--self-driving-paused--dark:- hash: v1.k794b7964.1b72584882245d09b8622723dfc012a7d854b1419ee4d845829e6dfccda6603f.ox548Px_t_Hecz8z9AlksbbedukN5wWQUoxfrfzlTHM+ hash: v1.k794b7964.7ff34e488265ae8c882ea751c7c1131d6be923113809af0bb5c73073a08e4052.v_4oh-JC3KwUHpq-frRrju4-HbqxSoEhRcEsfpclMywscenes-app-inbox-scene--self-driving-paused--light:- hash: v1.k794b7964.90aa6c5f7f56f04eaf4458d064731878707f550379c5906ab670e9fd8384e7c6.oyRmXsS9axV-BigXbChZl9ELgOzT9_Rbb7f2lpGykTU+ hash: v1.k794b7964.17392068d051031cca6ae99a174c7336b8d6bae0061671780305281186e8524c.mgSpDwEw5VUYOqrCHB5j5ZojsMODYJyk270xDqQQz_oscenes-app-inbox-scene--self-driving-verdict-pending--dark:hash: v1.k794b7964.570e5dddd645996b94ff94b2c563b32ced3793db3ab5ccf360d16126af3b9a0b.WC_VEZ1N_iX-o4r11w15QWfD8Nzo1gFerTznKiaIX84scenes-app-inbox-scene--self-driving-verdict-pending--light:@@ -7165,13 +7165,13 @@ snapshots:scenes-app-inbox-tabs--pull-requests-legacy--light:hash: v1.k794b7964.2fb1e20ff50d808253cae40e732b64a77eef587baa1841d6588881aa1b14dc12.1MI5WWLUgeiqrwAT4cZW09aAIqNQ9i7X2_ZNyeJC9eQscenes-app-inbox-tabs--reports--dark:- hash: v1.k794b7964.b851875203cb1bd0a3400aff48d534a3a8a6b9c0c4de772e14fda3bebc184ee8._fkKYLXBLFwm4XY-JCW-qt_QvMOPxaNJBoTBjV0Xt9o+ hash: v1.k794b7964.cd360fcaed74c53422991231f6a791a12057405540f0150adb4ecc09b73ac6c5.p_hQlErs-3lrBf7b8DuAhzkk4fbTxQTgylgfkcL1c84scenes-app-inbox-tabs--reports--light:- hash: v1.k794b7964.f4135be38741ef164e947e253bd15bc7dc3a211871289de4d4b1ae3e7b62bb9d.FJQSWp36U6B8cU3GhqN_tBXvZfQ1vF5rjKQqyj6uIns+ hash: v1.k794b7964.3d2493fe0ab657fd31abf0f48fa3f9693eceeeccba9ff3ea3e5dea66ffcd5092.GbMr4_h6BGh7w9G77P06CRaWlmWIeXQytdbAtTCb2dsscenes-app-inbox-tabs--reports-all-sections-expanded--dark:- hash: v1.k794b7964.24802bb819a135b12ca117ad561077e4b6559f3c03f03421a26c7f6cc877a53e.fhsntFF-Rm62PKONeTHL0_1OE3l6r-Ch7duZKk7t558+ hash: v1.k794b7964.06a0b8c5ca7fb098ac7e5ce44c49135701698e84b3ae3edd72d227a1119a4303.HRyt3vtt4lD0xZx90h4668_W9LqG63GV9hEO8cV-q6Yscenes-app-inbox-tabs--reports-all-sections-expanded--light:- hash: v1.k794b7964.0f1ae00b821ead313a9fa4bd59bcca6e24cae8db75a5b03a839847fe19c1dad8.vChDCCceuIIo8zVIL_kLJ8DbKjRO40tg9eQDcsmOsdw+ hash: v1.k794b7964.c2ff7a23464315c7f5e19c17ded8f57caea0cf61c4e50544145f49edb23d793e.7eM7-fdqtg2u4CKHFAxC8h03mQ-tr2THF4Guz6Yb1u8scenes-app-inbox-tabs--reports-empty--dark:hash: v1.k794b7964.fadcb6a49ae519ed7432563af517599477371bc1e9823b09c7a1cc351925b249.FHSWD8X0Bg6UfdgpmdkK_3y1cIiWzBwfN5WCvTWLV2wscenes-app-inbox-tabs--reports-empty--light:diff --git a/products/signals/frontend/inbox/components/cards/ReportCard.test.tsx b/products/signals/frontend/inbox/components/cards/ReportCard.test.tsxindex 99ac663e6bed..4c89981465ab 100644--- a/products/signals/frontend/inbox/components/cards/ReportCard.test.tsx+++ b/products/signals/frontend/inbox/components/cards/ReportCard.test.tsx@@ -40,14 +40,12 @@ describe('ReportCard', () => {})afterEach(cleanup)- // The redesign gives a row one action and leaves the status / actionability chips to the section- // headers; the legacy list keeps Archive, the "Review" label, and the chips.- it.each([- [true, 'View report', false],- [false, 'Review', true],- ])(- 'with the redesign flag %p shows %p and archive=chips=%p on a report without a PR',- (redesign, label, legacyChrome) => {+ // The redesign makes the linked row the only way in and leaves the status / actionability chips+ // to the section headers; the legacy list keeps Archive, the Review button, and the chips.+ it.each([[true], [false]])(+ 'with the redesign flag %p shows Review and Archive and chips only on the legacy list',+ (redesign) => {+ const legacyChrome = !redesignfeatureFlagLogic.actions.setFeatureFlags([FEATURE_FLAGS.INBOX_REDESIGN], {[FEATURE_FLAGS.INBOX_REDESIGN]: redesign,})@@ -55,8 +53,9 @@ describe('ReportCard', () => {status: SignalReportStatus.CANDIDATE,actionability: 'immediately_actionable',})- const { getByText, queryByText } = render(<ReportCard report={report} />)- expect(getByText(label)).toBeInTheDocument()+ const { queryByText } = render(<ReportCard report={report} />)+ expect(queryByText('Review') !== null).toBe(legacyChrome)+ expect(queryByText('View report')).toBeNull()expect(queryByText('Archive') !== null).toBe(legacyChrome)expect(queryByText('Queued') !== null).toBe(legacyChrome)expect(queryByText('Actionable') !== null).toBe(legacyChrome)diff --git a/products/signals/frontend/inbox/components/cards/ReportCard.tsx b/products/signals/frontend/inbox/components/cards/ReportCard.tsxindex 4d3be121fc27..e19decdff33d 100644--- a/products/signals/frontend/inbox/components/cards/ReportCard.tsx+++ b/products/signals/frontend/inbox/components/cards/ReportCard.tsx@@ -98,15 +98,15 @@ export function InboxCardSourceMeta({* Unified inbox list card for reports and pull requests. The presence of a parseable* implementation PR (`hasPr`) drives the divergences: PR cards get a solid border, a* `#1234` state badge, the repo slug in the meta row, no status/actionability chips, and a- * "Review" action; plain reports get a dashed border, a summary placeholder, the- * status/actionability chips, and "View report".+ * "Review" action; plain reports get a dashed border, a summary placeholder, and the+ * status/actionability chips.*- * Under the redesign the inbox list gives a row one action, the one that moves the report forward;- * archiving lives in the report detail pane and the bulk selection bar, where what is being- * dismissed is in full view. Other surfaces that embed this card can still opt into a row-level- * Archive via `onArchive`. The redesign also drops the status and actionability chips: the section a- * row sits in (Needs a PR, Not actionable, ...) already says what they said. With the flag off every- * row keeps its chips, its Archive button, and the "Review" label.+ * Under the redesign the row itself is the way in: the whole card links to the report detail, so+ * there is no separate open button. Archiving lives in the report detail pane and the bulk selection+ * bar, where what is being dismissed is in full view. Other surfaces that embed this card can still+ * opt into a row-level Archive via `onArchive`. The redesign also drops the status and actionability+ * chips: the section a row sits in (Needs a PR, Not actionable, ...) already says what they said.+ * With the flag off every row keeps its chips, its Archive button, and "Review".*/export function ReportCard({report,@@ -160,6 +160,7 @@ export function ReportCard({})const isRefunded = !!report.refund+ const showsArchive = !!onArchive || !redesign// On the Resolved view, surface why it was dismissed (reason tag + note tooltip) when we have it.// Key off the report still being suppressed, not the tab: a report that was dismissed, restored,@@ -272,7 +273,7 @@ export function ReportCard({pane, where the consequences are in view. Resolved reports are terminal and a refundedarchived report can't be restored, so neither carries actions – skip the column (anddivider) for both. */}- {!isResolved && !(isArchived && isRefunded) && (+ {!isResolved && !(isArchived && isRefunded) && (isArchived || showsArchive || !redesign) && (<div className="flex items-center justify-end gap-2.5 shrink-0 @lg:self-stretch @lg:border-l @lg:border-primary @lg:pl-3">{isArchived ? (// A refunded report can't be restored (its PR can never be billed again).@@ -294,7 +295,7 @@ export function ReportCard({)) : (<>- {(onArchive || !redesign) && (+ {showsArchive && (<LemonButtontype="secondary"size="small"@@ -308,23 +309,25 @@ export function ReportCard({Archive</LemonButton>)}- <LemonButton- type="primary"- size="small"- tooltip="Open the full report to see its summary, evidence, and actions"- onClick={- preview- ? undefined- : (event) => {- event.preventDefault()- event.stopPropagation()- router.actions.push(detailUrl)- }- }- tabIndex={preview ? -1 : undefined}- >- {hasPr || !redesign ? 'Review' : 'View report'}- </LemonButton>+ {!redesign && (+ <LemonButton+ type="primary"+ size="small"+ tooltip="Open the full report to see its summary, evidence, and actions"+ onClick={+ preview+ ? undefined+ : (event) => {+ event.preventDefault()+ event.stopPropagation()+ router.actions.push(detailUrl)+ }+ }+ tabIndex={preview ? -1 : undefined}+ >+ Review+ </LemonButton>+ )}</>)}</div>