: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
feat(signals): collapse ci checks and move them under activity (#116357)
Andrew Maguire194b10e263c5
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 819ab9c9e976..c1b85bf81bc6 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -11035,9 +11035,9 @@ snapshots:scenes-app-inbox-detail--pull-request-inline-review--light:hash: v1.k794b7964.6e46ac95ee344c52fdb7114912898ff27879a61a5a068dc80c9b02c2c54cc68e.unkgZ1A8k6R9A6i-hqf5_Xr0lwtSjCAEBGUoFmvfnCIscenes-app-inbox-detail--pull-request-legacy--dark:- hash: v1.k794b7964.2531372c14e290705e333babb5114024fcffb90abaedbe908ecd12bbe483ff38.dTv4Ml_hNrHxa4SoobGuWVYgwt1mTc6mkC5GK3HFH5s+ hash: v1.k794b7964.a7adb8071789cd8e5dea6f5eacc672fed11f1ff29266aecdeb1c06b42bc9155c.VhPvZU1Zh3AxubfUmQsCmhIfNTgBW4Oq9qaW6Mp08GIscenes-app-inbox-detail--pull-request-legacy--light:- hash: v1.k794b7964.37ef3eaac9431065eec901c7d693109801380cb9604fa1a253772ac977d86f83.IhrhuLLkdu3i5jP6lfwxXc4298dSEY2OHFVhFksdZ6Q+ hash: v1.k794b7964.641d303d811b3f82ac5720f06947def044ce2de08e6fad020e78bf5a41a7afd3.zEDG_Pij9EmmykHGcdbGTaRb3lfCWCM5SqUEi7NUDUEscenes-app-inbox-detail--pull-request-stack--dark:hash: v1.k794b7964.800c7ccd57a65ea0a62bece200ce4eb0f65f87cf4b593fc04f6a935fcfdf7c74.jAKYqCaW8lWokIDp080uSMwk3lJYUQ7d2l75FsU9xIEscenes-app-inbox-detail--pull-request-stack--light:@@ -11303,9 +11303,9 @@ snapshots:scenes-app-inbox-scene--legacy--light:hash: v1.k794b7964.62846c5376c7928b3684e4ac02626b0f35e7792ac4e346eeba39767d5143e3e1.y4I4APkYpB9QaNfDkGdfXdZPkYDKOK4dSMQiChEqlXYscenes-app-inbox-scene--legacy-report--dark:- hash: v1.k794b7964.73179e203433187821ff41208f41221b082f1ca19865fb7b26a751cffffdb633.cNaIyo_D196C9nTyUTVcxfSgwTM5ku-1KroxfCH34_s+ hash: v1.k794b7964.1494f60eb3c2104ba3e7c98d54824ad9f5b41719c2701fcaca39476ab64a7bdf.W8jps_qJf632vEQ6W8np3ahpVisr2Fqz0u1Zp3ev7EMscenes-app-inbox-scene--legacy-report--light:- hash: v1.k794b7964.a19b5137a523a99023eccba1ee201951326680d039d8cd80e679664b94f5b8b0.y3_eA1e6uaDI6ZStz14t_As8tFQQF1iAD2YM6Dmn1BU+ hash: v1.k794b7964.70278b94727ae76599a08dee797302d12fe8abe2d8a26f7ea97e491ad0deba47.yMl1GbGrrxVCo4iuyz8f0WoS7g157M9aCTK-_l0kf7Yscenes-app-inbox-scene--legacy-scouts--dark:hash: v1.k794b7964.aef8677fa43f11ff5f5b34c381208ef202da80771a5d2d17281d2a98d3361604.f8rgo5YeHpzk4rc50ylbjLdcTDBYNGJPqO--MNXk1Fwscenes-app-inbox-scene--legacy-scouts--light:diff --git a/products/signals/frontend/inbox/components/detail/PrChecksSection.tsx b/products/signals/frontend/inbox/components/detail/PrChecksSection.tsxindex 1ebfa7b797ee..e8deaab3bba8 100644--- a/products/signals/frontend/inbox/components/detail/PrChecksSection.tsx+++ b/products/signals/frontend/inbox/components/detail/PrChecksSection.tsx@@ -170,19 +170,17 @@ export function PrChecksSection({ report }: { report: SignalReport }): JSX.Eleme},{ failure: 0, cancelled: 0, pending: 0, stale: 0, success: 0, neutral: 0 })- const hasChecksNeedingAttention =- counts.failure > 0 || counts.cancelled > 0 || counts.pending > 0 || counts.stale > 0return (<DetailSection- // `DetailSection` reads `defaultCollapsed` only on mount. This section mounts while- // `prChecks` is still null (skeleton), when the "all green → collapse" default computes to- // false, so remount once the checks resolve to let the settled default take effect.- key={prChecks === null ? 'checks-loading' : 'checks-loaded'}icon={<IconCheckCircle />}title="CI checks"collapsible- defaultCollapsed={sorted.length > 0 && !hasChecksNeedingAttention}+ // `DetailSection` reads `defaultCollapsed` only on mount, so remount when an error appears+ // or clears. The header shows the per-status counts, so the list stays collapsed and does+ // not push the sections under it out of view. An error stays open so it is not hidden.+ key={prChecksError ? 'checks-error' : 'checks'}+ defaultCollapsed={!prChecksError}meta={sorted.length > 0 ? (open) => (open ? null : <CheckSummaryList counts={counts} compact />) : undefined}diff --git a/products/signals/frontend/inbox/components/detail/ReportDetail.tsx b/products/signals/frontend/inbox/components/detail/ReportDetail.tsxindex 22d09be9e908..7cdcc216e449 100644--- a/products/signals/frontend/inbox/components/detail/ReportDetail.tsx+++ b/products/signals/frontend/inbox/components/detail/ReportDetail.tsx@@ -194,9 +194,9 @@ interface InboxDetailFrameProps {/*** Shared chrome for the Report and Pull request detail bodies. A back link and the actions sit on- * one row over a bordered container: the evidence rail on the left (Evidence first, then the PR- * checks, reviewers, runs, and activity), and the report summary on the right under its own- * "Report summary" header. The status section collects the report and pull request state. The+ * one row over a bordered container: the evidence rail on the left (Evidence first, then reviewers,+ * runs, activity, and the PR checks and conversation), and the report summary on the right under its+ * own "Report summary" header. The status section collects the report and pull request state. The* summary's title stands alone; the priority, the size of the change, and the created/updated times* head the "Files changed" tab, where a reviewer weighs the change. The rail can be hidden (a* persisted preference) so the report column, and above all the diff, takes the full width.@@ -483,7 +483,7 @@ export function InboxDetailFrame({)}</DetailSection>)}- {/* Pull request checks (when present), then reviewers, runs, and activity. */}+ {/* The pull request picker (when present), then reviewers, runs, and activity. */}{children}<SuggestedReviewersSection report={report} /><ReportTasksSection report={report} />@@ -714,9 +714,16 @@ export function ReportDetail({ report }: { report: SignalReport }): JSX.Element</div>) : undefined}- // The PR conversation closes the evidence rail, under Activity; CI checks sit higher in- // the same rail. Both drop themselves when there's nothing to show.- asideFooter={hasPr ? <PrCommentsSection report={report} /> : undefined}+ // CI checks and the PR conversation close the evidence rail, under Activity, so they do not+ // push the reviewers down. Both drop themselves when there's nothing to show.+ asideFooter={+ hasPr ? (+ <>+ <PrChecksSection report={report} />+ <PrCommentsSection report={report} />+ </>+ ) : undefined+ }>{reportPullRequests(report).length > 1 && (<LemonSelect@@ -729,7 +736,6 @@ export function ReportDetail({ report }: { report: SignalReport }): JSX.Elementdata-attr="inbox-report-select-pull-request"/>)}- {hasPr && <PrChecksSection report={report} />}</InboxDetailFrame>)}diff --git a/products/signals/frontend/inbox/components/detail/ReportDetailLegacy.tsx b/products/signals/frontend/inbox/components/detail/ReportDetailLegacy.tsxindex a355279d116b..01fcd33c137c 100644--- a/products/signals/frontend/inbox/components/detail/ReportDetailLegacy.tsx+++ b/products/signals/frontend/inbox/components/detail/ReportDetailLegacy.tsx@@ -254,6 +254,8 @@ interface InboxDetailFrameProps {diffBranchTag?: ReactNode/** +/- line-count stat shown in the "Files changed" tab label, right of the branch. */diffStat?: ReactNode+ /** Content closing the sidebar, after Activity (e.g. the PR checks). */+ asideFooter?: ReactNode/** Extra sections (Tasks, Reviewers) – defaults applied by callers. */children?: ReactNode}@@ -274,6 +276,7 @@ function InboxDetailFrameLegacy({diffSection,diffBranchTag,diffStat,+ asideFooter,children,}: InboxDetailFrameProps): JSX.Element {const { searchParams } = useValues(router)@@ -383,7 +386,7 @@ function InboxDetailFrameLegacy({</div><div className="flex flex-col min-w-0 gap-5">- {/* Pull request (when present) first, then reviewers, evidence, runs, and activity. */}+ {/* The pull request picker (when present) first, then reviewers, evidence, runs, and activity. */}{children}<SuggestedReviewersSection report={report} />{hasEvidence && (@@ -418,6 +421,7 @@ function InboxDetailFrameLegacy({)}<ReportTasksSection report={report} /><ReportActivitySection report={report} />+ {asideFooter}</div></div></BindLogic>@@ -636,8 +640,9 @@ export function ReportDetailLegacy({ report, tab }: { report: SignalReport; tab:<PullRequestDiffStatSkeleton />) : undefined}- // The PR conversation sits under the Summary as primary content; CI checks stay in the- // sidebar. Both drop themselves when there's nothing to show.+ // The PR conversation sits under the Summary as primary content; CI checks close the+ // sidebar, under Activity. Both drop themselves when there's nothing to show.+ asideFooter={hasPr ? <PrChecksSection report={report} /> : undefined}summaryFooter={hasPr || report.tracker_issue_url || report.tracker_issue_error ? (<>@@ -658,7 +663,6 @@ export function ReportDetailLegacy({ report, tab }: { report: SignalReport; tab:data-attr="inbox-report-select-pull-request"/>)}- {hasPr && <PrChecksSection report={report} />}</InboxDetailFrameLegacy>)}