: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(review_hog): trim code review copy and spacing (#116259)
Raúl Negrón-Otero3470983f020d
diff --git a/docs/internal/sandboxes-setup-guide.md b/docs/internal/sandboxes-setup-guide.mdindex 62e7ac0399db..b990585b1e14 100644--- a/docs/internal/sandboxes-setup-guide.md+++ b/docs/internal/sandboxes-setup-guide.md@@ -287,6 +287,11 @@ Automatic Flash uses your existing severity threshold and never resolves commentThe switch sets your `default_review_mode` preference to `flash` or `follow` through `PATCH /api/projects/<project_id>/review_hog/settings/`.Project admins choose which repositories the project reviews, and who gets automatic Flash there, through the `review_hog/project_settings`, `review_hog/installation_claims`, and `review_hog/repositories` endpoints.+The Code review settings page calls automatic reviews **Standard** and requested reviews **Deep**.+Project defaults appear beside personal preferences. Personal repository choices take priority over personal defaults and project rules.+**Commit fixes to my pull requests** allows Deep reviews to push fixes only with the author's own opt-in.+The control's help explains when fixes are paused. Review skill descriptions summarize each check; editing skill text changes it for the whole project.+To run Flash locally, use `run_review --review-mode flash` from the repository root:```bashdiff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex fb0f45a8735d..46d049c4e128 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -14943,49 +14943,49 @@ snapshots:scenes-app-workflows-createaitaskconnectors--unavailable-connector--light:hash: v1.k794b7964.c4fdab3ab5190ace67d354d7010b49cbd37e9ec72feaa3fab9760d1f1010c8b0.S5qBDGrQNUo7qygcV1_MG_nu9RWeaMnoOFrYdhnV97Escenes-code-review--default--dark:- hash: v1.k794b7964.eb8b4296ce3d2504dbd45f201ef4e7ae3777ee2dbb14e43938bddad9ecdd365d.k4dc64JPINoJGFgXpk56-CFj7LKTj7lW86TsKL5Tu3U+ hash: v1.k794b7964.5a9975a808e98b7353c1eaabf06a9c09a52975af66610be197e6427d322c8494.A_lAa9TF0QYJlpZqdm7QHPEa7Dj7Ayj7xMlHeq2BGycscenes-code-review--default--light:- hash: v1.k794b7964.d4b1ff7f1676554d128b92edd4b5b968077bd0aeb2c2e5a9d1def52599e24176.HiPu-lyNhWPTZfzqFQLGodCobRcLMccxrQcNIe9Gfw0+ hash: v1.k794b7964.af827a0c9a7815cf4367098506d7230438d34fa9e7e9b06d67184c9fde6fd91c.FU0IMjfC4HLZsNQYigPQ5HRYP-qT7OJipjVjLGO9hgwscenes-code-review--flag-disabled-for-staff--dark:hash: v1.k794b7964.af1b6736f5a6e6ffb329599ed7407d25dbee0939861cd554e0c94b84b2970a7c.HwLX1pgZqjpFAoG4ni16T0wtf1PJQkw0Evr2jBw2vG4scenes-code-review--flag-disabled-for-staff--light:hash: v1.k794b7964.a71251e301794f51a0a9140ab1442fada37b1cc0fb54095a5eb19499e0cb1b34.3GhhJCqNfLkY2WdBTTn0LHJifxiCqyEJ7viaHaoCoGAscenes-code-review--narrow--dark:- hash: v1.k794b7964.b2b9613d05b0eef2e5fcd32a31c4bc95c5048b635dfb05c8929d94c76b754979.UrI4IFf3t9xF2cQLahFBNyLvtmAe3iBpgvcGI0utJT0+ hash: v1.k794b7964.aa16780c3949c9f03dfd5b4efb7b38c7d5f86e4b930da1df19d22ffc935606ac.N49s0BY60hsupdNRcKDCPBNLhCJI2AjvaGV8_uOZv9Qscenes-code-review--narrow--light:- hash: v1.k794b7964.afeef57d84f381c04507c77246b5db937cc7d29187549e6e9b12d2e359fd8d42._EM_TEUS4trBZou9toi4uVqsXW90nXTElFSbERoU1oI+ hash: v1.k794b7964.b0b6df7bb3075410c3f16dca6f3b59fdf224a9a920c3a248c55cd995bdd8b057.eUufZJ9SurN1Xw53s2pCYPXXo8sVjLL8lWoo_N0w61kscenes-code-review--narrow-settings--dark:- hash: v1.k794b7964.ee3aaf102030bc766db111d265b0bc219296b19bcc8cc1919e0d25aba6eba1d5.Tf4ojj60u_4fdI-xMcnND_tfe1QJ5WPlKirR-2eAPrA+ hash: v1.k794b7964.f75807585937462aee625778d7523133b00275ff2c84ed902d5a09210c0fedaf.spQW_SJpd_UEf3IDFfurPSetEi9MdIMn-eiFCTepHigscenes-code-review--narrow-settings--light:- hash: v1.k794b7964.9c96345ea680fc707435ffd6b9638c076143827696e934365a7a58d148783d2d.lBwsKkas0U42cvy0XqCOGz2Qwr83Zxp9COxgjL7OPPk+ hash: v1.k794b7964.c6e04c34a65cf5349066aadef89ee3a1b230c173003e1cc59e03de6e5306b473.8mu6cyP-4KIH5sXhG6RoEqPY-5UjPh-zKx19ysIj-Nwscenes-code-review--review-drawer-deep--dark:- hash: v1.k794b7964.b6e8d258613e64e43d690058f64d0137f64e50776ff245fa9e679eb0c4617985.Z_imJ8KRX2pmZPy_KbumlnqY18-GIjBfQbGte1aKroA+ hash: v1.k794b7964.416b4c6b50ff059a3449c3f80742f5518bfd794aecfbb18ece1d6bc9d4dccbf3.IDH_1hHQmlcDP3N4j7VpgvMftz2fLSa2GJfPcg6YJ_cscenes-code-review--review-drawer-deep--light:- hash: v1.k794b7964.50506b0d0ea81e9e6ebc22f9940471c2e903862a5e6f8ff57cdc8b2ee48b6ed8.A4Bv44413QWuwyN-VwqPPtOLfJca3_klGmhv1uy7CC0+ hash: v1.k794b7964.29a0f6fb32ec39753800d78c8ad210a9122a73b6a39fa6112f3fef700738e755.IYdp0uboqH5fW4WFZB3m22YAZXxGiYP_rozCm8-5U2cscenes-code-review--review-drawer-standard--dark:- hash: v1.k794b7964.68380dfe548cca4101c4e33251293cd6fcaa74f54d38b9ec262876b47ee5a4fd.0sXpaZNPPgkLvVq2VRLmOkVj_tMPkK7b_kOG6zuxsFE+ hash: v1.k794b7964.ba3ba9f741a7f44e33fd6bf5632a52ece2009d34800536fa33fd65d0f21c1cc3.LzM7rF3pPf6ChpDKj8lNBt6FKeieS_y3HDeMkwigU7sscenes-code-review--review-drawer-standard--light:- hash: v1.k794b7964.648ce34c5a73ffcfd104439d1496d666bfc36d436c23f2b9ea9b46eae46cc669.aQtxuCv23MxvQfNtn7kI5NWuxJIah7znd_etlPziI30+ hash: v1.k794b7964.1c3334cdd3b0b15caede9ae467bd4bf0f9a5d663fd5272dc0deb19991055daa8.DsePQ466guUHmjl3ccBJqRuNT3j-tK_qEGYF4pQLRJMscenes-code-review--review-drawer-standard-not-posted--dark:- hash: v1.k794b7964.f23f04d89e56e9350f2eaac36a5b4db9694562f184c939cfa3874fb393f9c75f.KFxW9rOt6e1gvurZEmhaRY5AUyJ9ukxBhF0u4BD0ReM+ hash: v1.k794b7964.004192429d33a25d97360f9daf6c1251f1fe73e86861e48c17b68e47b67b620d.ZczPnJ_qn-JWpKVjedqTdK8U2jFupNd769YW2Uu7BBAscenes-code-review--review-drawer-standard-not-posted--light:- hash: v1.k794b7964.b7953b7643dd5a156fcc89380323525d6b435502fb268a0caa8dfd92c38c68bc.Wfan0GMCc6UKQVCfqfkIlUzMlPZSP-0s43dBThpSEvk+ hash: v1.k794b7964.1f2729d4f72a0b200706fecc71d0a880d1c0da159b71a6342bfb6ab218042d5d.RMo8djjV8-BU963H8KhzgPXukflny-UCghN5R_66QPAscenes-code-review--running-review--dark:- hash: v1.k794b7964.f4b556098140dce06b4dcbc9115fd1236f990d1a85f03a72c4659f8de157efc8._as2opVdhBSDEFLUuDccuDwakn8dfC2SFYhGIQH5WA4+ hash: v1.k794b7964.87f5476c9160c4ce232cd07fe62d94ba7ff15b137019050b195c5d29a936edd6.fJjSg26nVP5DUQUs5F-4NCKXAuEOuJhkXLvp7c0tNt4scenes-code-review--running-review--light:- hash: v1.k794b7964.63c1f2fdc259d9f836f7d5d10662a0cf3dcb126782fc5dd79b419650cddff949.Ifn0U5N6KEnj0rsGu6ZFGXiwsvyeUBu9dUcMOn8FlwM+ hash: v1.k794b7964.c2a355223797720fb333a696034be89185b0da48d9041e525d4710d806e60dd9.zgiSOOYkxBSkGu3Ph6HwXbZFtGg0i8W_lqwK8MH4aG4scenes-code-review--saved-inbox-opt-ins--dark:- hash: v1.k794b7964.b9bd9d69529ddcacf2f6b88ae7e20acf1ebe4ae6290c3ac097c65f93151d25fb.HB5yZQZluY0GZKl1ZrQ9duFGuTLPRq6JT2vG-2Zz_H0+ hash: v1.k794b7964.0892fe3f654cd46e4948b625122c9b43ed7c6f12301322669806eafc69d763a7.vmYeiaS47-UjyoG8C8bhQvDLcCFb8f6IMpzkltQL3K8scenes-code-review--saved-inbox-opt-ins--light:- hash: v1.k794b7964.e5a76cf71dbfed08b5ad621ad49147193552a732eb61f815b4c0416cff6d5ffc.K2Mj9inoFE8r5e2JZs77smpAcLwm3qxPx9SMH467dIE+ hash: v1.k794b7964.0d60aa38ae3d268c2389ea3057f6e1d14935741113636f8c06c3a97dac1f258a.mSHKrlFCQ2y2aM5VT7IOH0Dvltp_bXv5rZAJ7vOQnVIscenes-code-review--settings--dark:- hash: v1.k794b7964.7e8233144a14ca4347d1556cf7b4c1dc920b4f99e002d18bec41bb13f1917dd3.DgG3up9oFB37rPGmO9f8At-uACKMSHm0J7agSxs85pk+ hash: v1.k794b7964.0daef8e0c3df5c7ed621e700b1ef65230994d760f73a9c1a228f899aa676bbb2.3wFMt-hnApdJmLp_9PhFPF1kuoL0PJJB3FrQ-8NFfC4scenes-code-review--settings--light:- hash: v1.k794b7964.01b2b8ed7526728700eeda224fbc15b3d6a618fb393ec3c27e9c5cd1155bb79e.iwsali37_cHqySWqifEBgs6jqBlnWKTlCcf0pDfqIvk+ hash: v1.k794b7964.69581bb08edcc4e804e17dc025bade6100372b699a972fdc9b0c440d02745ac7.bW_rAc4vynXaRzDU7WvMs1Ve_jEQEK56Heh5XPo8ut4scenes-code-review--settings-for-member--dark:- hash: v1.k794b7964.868b6e3656e4d672cf7a0a00eddc988b625ff84ade9a6988bb99ad794f24797c.Dg_VdE2jJK50wzK2NrNOceje5f0Vfzo6DnwVmF_gfqk+ hash: v1.k794b7964.3364746629d70964591b449a92c443e23decc6c21468484adcc02c96a8de43b0.JrvQtGoLeuhHODHm4cH0x_CRN_ucNAqj9qUsCzA6_AMscenes-code-review--settings-for-member--light:- hash: v1.k794b7964.4295f8129a424542e71714e80f925f46d9a3b43b16968da7093de312db913649.C234AM39eak2aFy9clWtaRgsfmt9WssGeFJH7tCldlM+ hash: v1.k794b7964.79695265752e6deda9e6a38744748de25d11106ddb98e9bf3bb5e241714fb718.UmLIjl35FPDjaeSSVDq90ctHfYHVT4JzIhNt4kuUctkscenes-dashboards-customize-breakdown-colors--customize-breakdown-colors--dark:hash: v1.k794b7964.cf89a12669d5221b2441fbfb4439b8b1b38191943438a2c1a220444148329954.B4ew6uW3gZCbPU_3vTOggsOyHojRlyvuXxh5FZnlO-0scenes-dashboards-customize-breakdown-colors--customize-breakdown-colors--light:diff --git a/products/review_hog/frontend/AdoptSkillModal.tsx b/products/review_hog/frontend/AdoptSkillModal.tsxindex 9488435f6f34..97c9a3fbc888 100644--- a/products/review_hog/frontend/AdoptSkillModal.tsx+++ b/products/review_hog/frontend/AdoptSkillModal.tsx@@ -53,11 +53,7 @@ export function AdoptSkillModal(): JSX.Element {// and fires a success toast naming the wrong source.closable={!adoptingSkill}title={`Use an existing skill as your ${kindLabel}`}- description={- adoptSource- ? undefined- : 'Pick a skill from your team. A copy of it becomes a review skill; the original stays untouched.'- }+ description={adoptSource ? undefined : 'A copy becomes your review skill. The original stays unchanged.'}width={720}data-attr="review-hog-adopt-skill-modal"footer={@@ -89,7 +85,7 @@ export function AdoptSkillModal(): JSX.Element {<div className="flex flex-col gap-4"><p className="m-0 text-sm text-secondary">This copies <span className="font-semibold">{adoptSource.name}</span> into a new {kindLabel}{' '}- skill and switches it on for your PR reviews. Edits to the original won't change the copy.+ skill and switches it on. Later edits to the original do not change the copy.</p>{replacedSkillName && (<LemonBanner type="info">@@ -115,7 +111,7 @@ export function AdoptSkillModal(): JSX.Element {<SkillPickergroups={adoptSkillGroups}loading={adoptableSkillsLoading}- emptyMessage='Your team has no other skills to use yet. "Create your own" makes one with an agent.'+ emptyMessage='Your team has no other skills to use yet. "New skill" makes one with an agent.'selectLabel="Use this skill"onSelect={(skill) => chooseAdoptSource({ name: skill.name, description: skill.description })}// Resolve returns the whole body; the plain name endpoint caps it at 8000 chars,diff --git a/products/review_hog/frontend/CodeReviewScene.stories.tsx b/products/review_hog/frontend/CodeReviewScene.stories.tsxindex d19fd6436d2f..aa46f25ce9ee 100644--- a/products/review_hog/frontend/CodeReviewScene.stories.tsx+++ b/products/review_hog/frontend/CodeReviewScene.stories.tsx@@ -859,14 +859,14 @@ export const Settings: Story = {userLogic.actions.loadUser()await waitFor(() => expect(userLogic.values.user?.is_staff).toBe(false))const canvas = within(canvasElement)- await expect(await canvas.findByText('This project reviews example-org:')).toBeVisible()+ await expect(await canvas.findByText('example-org')).toBeVisible()await expect(await canvas.findByText('example-org/web')).toBeVisible()await expect(canvas.getByText('Reviewed in the Billing project')).toBeVisible()- await expect(canvas.getByText('You can edit: project admin')).toBeVisible()+ await expect(canvas.getByText('Admin')).toBeVisible()await expect(canvas.getByText('Review skills')).toBeVisible()- await expect(canvas.getByText('Kept counts: your last 10 Deep reviews')).toBeVisible()+ await expect(canvas.getByText('Last 10 Deep reviews')).toBeVisible()await expect(canvas.queryByText('Review a pull request')).not.toBeInTheDocument()- await expect(canvas.getByLabelText('Resolve comments on my pull requests')).toBeVisible()+ await expect(canvas.getByLabelText('Commit fixes to my pull requests')).toBeVisible()},}@@ -879,7 +879,7 @@ export const SettingsForMember: Story = {},play: async ({ canvasElement }) => {const canvas = within(canvasElement)- await expect(await canvas.findByText('Project admins edit')).toBeVisible()+ await expect(await canvas.findByText('Admin access required')).toBeVisible()await expect(await canvas.findByText('Your default, On everywhere, applies to your PRs in every repository, except 1 where you picked something else.'@@ -895,7 +895,7 @@ export const SavedInboxOptIns: Story = {parameters: { savedSettings: { review_inbox_prs: true, stamphog_review_inbox_prs: true }, tab: 'settings' },play: async ({ canvasElement }) => {const canvas = within(canvasElement)- const inboxLabel = 'Review PRs the agent opens for Inbox reports assigned to me'+ const inboxLabel = 'Review my Inbox PRs'// The Inbox section renders before the settings load and can re-render with new nodes,// so query again on every attempt until the saved values arrive.await waitFor(() => expect(canvas.getByLabelText(inboxLabel)).toBeChecked(), { timeout: 5000 })diff --git a/products/review_hog/frontend/CodeReviewScene.tsx b/products/review_hog/frontend/CodeReviewScene.tsxindex cc082acd0ac5..e8bc2287c604 100644--- a/products/review_hog/frontend/CodeReviewScene.tsx+++ b/products/review_hog/frontend/CodeReviewScene.tsx@@ -1,6 +1,6 @@import { useActions, useValues } from 'kea'-import { IconChevronDown, IconDirectedGraph, IconExternal, IconGithub, IconPullRequest } from '@posthog/icons'+import { IconChevronDown, IconExternal } from '@posthog/icons'import {LemonBanner,LemonButton,@@ -20,10 +20,12 @@ import { LemonCard } from 'lib/lemon-ui/LemonCard'import { LemonCollapse } from 'lib/lemon-ui/LemonCollapse'import { LemonDrawer } from 'lib/lemon-ui/LemonDrawer'import { LemonMarkdown } from 'lib/lemon-ui/LemonMarkdown'+import { LemonProgress } from 'lib/lemon-ui/LemonProgress'import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { SceneExport } from 'scenes/sceneTypes'import { SceneContent } from '~/layout/scenes/components/SceneContent'+import { SceneSection } from '~/layout/scenes/components/SceneSection'import { SceneTitleSection } from '~/layout/scenes/components/SceneTitleSection'import type {@@ -47,7 +49,6 @@ import { CodeReviewTab, ReviewDrawerTab, reviewHogSettingsLogic } from './reviewimport { ReviewModeTag } from './ReviewModeTag'import { ReviewsFilters } from './ReviewsFilters'import { ReviewsTable } from './ReviewsTable'-import { SectionHeader } from './SectionHeader'import { DeepArea } from './settings/DeepArea'import { InboxSection } from './settings/InboxSection'import { StandardArea } from './settings/StandardArea'@@ -75,8 +76,8 @@ const REVIEWS_SCOPE_OPTIONS: {]/**- * Scope of the reviews table. It also scopes the proof card and the effectiveness cards on- * the Settings tab. Skill toggles stay per-user regardless of scope.+ * Scope of the reviews table. It also scopes the proof card. Skill toggles stay per-user+ * regardless of scope.*/function ReviewsScopeFilter(): JSX.Element {const { reviewsScope } = useValues(reviewHogSettingsLogic)@@ -94,25 +95,25 @@ function ReviewsScopeFilter(): JSX.Element {function StatsWindowLabel({ reportCount }: { reportCount: number }): JSX.Element {const { reviewsScope } = useValues(reviewHogSettingsLogic)const scopeOption = REVIEWS_SCOPE_OPTIONS.find((option) => option.value === reviewsScope)+ const owner = reviewsScope === ReviewHogReviewsListScope.Everyone ? "The project's" : 'Your'return (- <Tooltip title={`${scopeOption?.tooltip}. Set by the Mine / Everyone filter on reviews.`}>+ <Tooltip title={scopeOption?.tooltip}><span className="text-xxs text-tertiary">- <span translate="no">{`Last ${reportCount} completed review${reportCount === 1 ? '' : 's'} · ${scopeOption?.label}`}</span>+ <span translate="no">{`${owner} last ${reportCount} completed review${reportCount === 1 ? '' : 's'}`}</span></span></Tooltip>)}/**- * Proof block: the validation funnel across the in-scope recent reviews, summed from the same- * stats the effectiveness cards use. Hidden while there are no reviewed findings in scope yet.+ * Proof block: the validation funnel across the in-scope recent reviews. Hidden while there are+ * no reviewed findings in scope yet.*/function ProofCard(): JSX.Element | null {- const { perspectiveStats, reviewsScope } = useValues(reviewHogSettingsLogic)- const everyone = reviewsScope === ReviewHogReviewsListScope.Everyone+ const { perspectiveStats } = useValues(reviewHogSettingsLogic)if (perspectiveStats === null) {- return <LemonSkeleton className="h-24 w-full" />+ return <LemonSkeleton className="h-16 w-full" />}const raised = perspectiveStats.perspectives.reduce((sum, p) => sum + p.raised, 0)const kept = perspectiveStats.perspectives.reduce((sum, p) => sum + p.kept, 0)@@ -122,61 +123,28 @@ function ProofCard(): JSX.Element | null {}return (- <LemonCard hoverEffect={false} className="flex flex-col gap-3 p-5">+ <LemonCard hoverEffect={false} className="flex flex-col gap-2 px-4 py-3"><div className="flex flex-wrap items-baseline gap-x-2 gap-y-1">- <span className="text-3xl font-bold tabular-nums text-warning">{kept}</span>- <span className="text-sm font-semibold">- {everyone ? "findings worth the team's time" : 'findings worth your time'}+ <span className="text-xl font-bold tabular-nums">{kept}</span>+ <span className="text-sm">+ of <span className="font-semibold">{raised}</span> findings kept</span><span className="text-xs text-secondary">- from <span className="font-semibold text-default">{raised}</span> raised ·{' '}- <span className="font-semibold text-default">{dismissed}</span> filtered as noise+ <span className="font-semibold text-default">{dismissed}</span> dismissed</span><span className="ml-auto"><StatsWindowLabel reportCount={perspectiveStats.report_count} /></span></div>- <div className="h-2.5 w-full overflow-hidden rounded-full bg-fill-highlight-100">- <div className="h-full rounded-full bg-warning" style={{ width: `${(kept / raised) * 100}%` }} />- </div>- <div className="flex items-center gap-4 text-xs text-tertiary">- <span className="flex items-center gap-1.5">- <span className="inline-block size-2 rounded-full bg-warning" /> Worth your time- </span>- <span className="flex items-center gap-1.5">- <span className="inline-block size-2 rounded-full bg-border-bold" /> Filtered as noise- </span>- </div>+ <LemonProgress+ percent={(kept / raised) * 100}+ strokeColor="var(--success)"+ bgColor="var(--color-bg-fill-highlight-100)"+ /></LemonCard>)}-/** Where the review pipeline is explained: the full walk-through lives in the Detailed view. */-function PipelineSection(): JSX.Element {- const { openPipelineDetail } = useActions(reviewHogSettingsLogic)- return (- <section className="flex flex-col gap-4">- <SectionHeader- icon={<IconDirectedGraph />}- title="How we review your PRs"- action={- <LemonButton- type="secondary"- size="small"- onClick={() => openPipelineDetail()}- data-attr="review-pipeline-detailed-view"- >- Detailed view- </LemonButton>- }- >- Every review runs through the same steps before it's published, then works through the comment threads- it leaves open.- </SectionHeader>- </section>- )-}-const PRIORITY_TAG: Record<ReviewIssuePriorityEnumApi, { type: 'danger' | 'warning' | 'muted'; label: string }> = {must_fix: { type: 'danger', label: 'Must fix' },should_fix: { type: 'warning', label: 'Should fix' },@@ -193,7 +161,7 @@ function prettifyCategory(category: string): string {const SINGLE_AGENT_MAIN_SOURCE = 'flash-single-agent'const SINGLE_AGENT_LENS_PREFIX = 'flash-lens-'-/** Scoreboard label for a finding's source skill — blind-spot skills all read as one sweep. */+/** Scoreboard label for a finding's source skill. Blind-spot skills all read as one sweep. */function perspectiveLabel(skillName: string): string {if (skillName.startsWith('review-hog-blind-spots-')) {return 'Blind spots'@@ -227,22 +195,18 @@ function singleAgentCounts(review: ReviewRecentReviewApi): { posted: number; raireturn { posted, raised: raised !== null && raised > posted ? raised : null }}-/** The drawer header for a single-agent turn: how it ran, and why the posted count can be lower than the raised count. */+/** The drawer header for a single-agent turn: how it ran, how many issues it posted, and how many it raised but left out. */function SingleAgentDrawerSummary({ review }: { review: ReviewDetailApi }): JSX.Element {const { setReviewDrawerTab } = useActions(reviewHogSettingsLogic)const { posted, raised } = singleAgentCounts(review)const lenses = singleAgentLensCount(review)- const dropped = raised !== null ? raised - posted : 0- const otherLabel = dropped === 1 ? 'The other one' : `The other ${dropped}`+ const lensText = lenses+ ? ` plus ${lenses} ${lenses === 1 ? 'lens that focuses' : 'lenses that each focus'} on one area`+ : ''+ const notPostedLabel = `${raised !== null ? raised - posted : 0} not posted`return (<div className="flex flex-col gap-1 text-sm text-secondary">- <div>- Standard review: one main pass over the whole pull request- {lenses- ? ` plus ${lenses} ${lenses === 1 ? 'lens that focuses' : 'lenses that each focus'} on one area`- : ''}- . No separate validation step.- </div>+ <div>{`Standard review: one main pass over the whole pull request${lensText}. No separate validation step.`}</div><div>{/* A turn whose GitHub publish failed kept its findings without posting them. */}<span>{review.turn_published ? 'Posted' : 'Kept'}</span>{' '}@@ -250,18 +214,16 @@ function SingleAgentDrawerSummary({ review }: { review: ReviewDetailApi }): JSX.{raised !== null ? (<>{' '}- of <span className="font-semibold text-default">{raised}</span> issues raised.{' '}+ of <span className="font-semibold text-default">{raised}</span> issues raised,{' '}{/* Turns that predate the dropped-finding record have nothing to switch to. */}{review.dropped_findings.length ? (- <Link onClick={() => setReviewDrawerTab('not_posted')}>{otherLabel}</Link>+ <Link onClick={() => setReviewDrawerTab('not_posted')}>{notPostedLabel}</Link>) : (- otherLabel- )}{' '}- repeated another finding or comment, {dropped === 1 ? 'was' : 'were'} on code this pull request- did not change, or went over the per-review limit.+ <span>{notPostedLabel}</span>+ )}</>) : (- ` issue${posted === 1 ? '' : 's'}.`+ ` issue${posted === 1 ? '' : 's'}`)}</div></div>@@ -269,18 +231,12 @@ function SingleAgentDrawerSummary({ review }: { review: ReviewDetailApi }): JSX.}function ReviewsSection(): JSX.Element {- const { reviewsScope } = useValues(reviewHogSettingsLogic)return (- <section className="flex flex-col gap-4">- <SectionHeader icon={<IconPullRequest />} title="Reviews" action={<ReviewsScopeFilter />}>- {reviewsScope === ReviewHogReviewsListScope.Everyone- ? 'PostHog Review runs on pull requests across this project, latest activity first. Open a review for its findings.'- : 'PostHog Review runs on pull requests you authored, plus reviews you started, latest activity first. Open a review for its findings.'}- </SectionHeader>+ <SceneSection title="Reviews" actions={<ReviewsScopeFilter />}><ProofCard /><ReviewsFilters /><ReviewsTable />- </section>+ </SceneSection>)}@@ -293,7 +249,7 @@ function ReviewsSection(): JSX.Element {function TriggerReviewSection(): JSX.Element {const { triggerPrUrl, triggeringReview, triggerUrlResolving, triggerUrlHasFullReview } =useValues(reviewHogSettingsLogic)- const { setTriggerPrUrl, submitTriggerReview } = useActions(reviewHogSettingsLogic)+ const { setTriggerPrUrl, submitTriggerReview, openPipelineDetail } = useActions(reviewHogSettingsLogic)const noUrlReason = !triggerPrUrl.trim() ? 'Paste a pull request URL first' : undefined// Mirrors the server-side busy-guard for PRs visible in the list; pasted URLs outside it still@@ -304,14 +260,23 @@ function TriggerReviewSection(): JSX.Element {? 'This pull request already has a Deep review. Standard does not run after one.': undefinedreturn (- <section className="flex flex-col gap-4">- <SectionHeader icon={<IconGithub />} title="Review a pull request">- Start a Deep review of any pull request the GitHub App can access. The review is posted back to the pull- request and shows up under Reviews below. Your perspectives and other review skills apply to Deep- reviews only.- </SectionHeader>+ <SceneSection+ className="max-w-200"+ title="Review a pull request"+ description="PostHog Review runs a Deep review and posts it to the pull request."+ actions={+ <LemonButton+ type="secondary"+ size="small"+ onClick={() => openPipelineDetail()}+ data-attr="review-pipeline-detailed-view"+ >+ How we review your PRs+ </LemonButton>+ }+ ><form- className="ml-9 flex flex-wrap items-center gap-2"+ className="flex flex-wrap items-center gap-2"onSubmit={(e) => {e.preventDefault()submitTriggerReview()@@ -320,6 +285,7 @@ function TriggerReviewSection(): JSX.Element {<LemonInputclassName="min-w-80 flex-1"placeholder="https://github.com/PostHog/posthog.com/pull/1234"+ aria-label="Pull request URL"value={triggerPrUrl}onChange={setTriggerPrUrl}/>@@ -340,7 +306,7 @@ function TriggerReviewSection(): JSX.Element {onClick={() =>submitTriggerReview(ReviewTriggerRequestRunModeEnumApi.ReviewOnly)}- tooltip="Review the pull request but leave its comment threads alone, whatever your setting says."+ tooltip="This review does not touch the comment threads, whatever your Resolve setting is.">Review without resolving comments</LemonButton>@@ -349,14 +315,14 @@ function TriggerReviewSection(): JSX.Element {onClick={() =>submitTriggerReview(ReviewTriggerRequestRunModeEnumApi.ResolveOnly)}- tooltip="Skip the review and only work through the pull request's existing unresolved comment threads."+ tooltip="This skips the review and replies to or fixes the unresolved comment threads.">Only resolve existing comments</LemonButton><LemonButtonfullWidthonClick={() => submitTriggerReview(ReviewTriggerRequestRunModeEnumApi.Flash)}- tooltip="A lower-cost review that never resolves comments and uses none of your review skills. Its status comment is marked as standard."+ tooltip="A Standard review costs less. It does not resolve comments or use your review skills."disabledReason={flashAfterFullReason}>Standard review@@ -369,7 +335,7 @@ function TriggerReviewSection(): JSX.Element {Review</LemonButton></form>- </section>+ </SceneSection>)}@@ -393,7 +359,7 @@ function FindingCard({const judged = isJudgedFinding(finding) ? finding : nullconst priority = PRIORITY_TAG[isJudgedFinding(finding) ? finding.effective_priority : finding.priority]const location = finding.lines.length- ? `${finding.file}:${finding.lines.map((r) => (r.end && r.end !== r.start ? `${r.start}–${r.end}` : `${r.start}`)).join(', ')}`+ ? `${finding.file}:${finding.lines.map((r) => (r.end && r.end !== r.start ? `${r.start}-${r.end}` : `${r.start}`)).join(', ')}`: finding.fileconst firstRange = finding.lines[0]// Deep link to the exact reviewed code: the head SHA pins the lines even after later pushes.@@ -436,7 +402,7 @@ function FindingCard({) : (<span className="font-mono text-xs text-tertiary">{location}</span>)}- {/* Collapsed by default, like the published PR comment — title + location scan, text on demand. */}+ {/* Collapsed by default, like the published PR comment, so the title and location stay scannable. */}<LemonCollapse<FindingSection>multiplesize="small"@@ -469,7 +435,7 @@ function FindingCard({? [{key: 'validator' as const,- header: dismissed ? 'Why it was dismissed' : "Why we think it's a valid issue",+ header: dismissed ? 'Why it was dismissed' : 'Why it was kept',content: (<LemonMarkdown className="text-sm text-secondary" disableImages>{judged.validator_note}@@ -494,7 +460,7 @@ function DrawerFindingsSkeleton(): JSX.Element {)}-/** The "Published" tab: the findings that crossed the urgency threshold, caveated while unpublished. */+/** The first drawer tab, "Posted" or "Kept": the findings that crossed the urgency threshold, caveated while unpublished. */function DrawerPublishedTab(): JSX.Element {const { reviewFindingsSplit, reviewDetail } = useValues(reviewHogSettingsLogic)@@ -503,24 +469,21 @@ function DrawerPublishedTab(): JSX.Element {}const isPublished = reviewDetail?.published ?? falseif (!reviewFindingsSplit.published.length && isSingleAgentReview(reviewDetail)) {- return <div className="text-sm text-secondary">This review found nothing to post to the pull request.</div>+ return <div className="text-sm text-secondary">This review found nothing to post.</div>}if (!reviewFindingsSplit.published.length) {return (<div className="text-sm text-secondary">{isPublished- ? "Nothing crossed the review's urgency threshold — no comments were posted to the pull request."- : "Nothing crossed the review's urgency threshold, and this review hasn't been published to the pull request."}+ ? 'No findings met the threshold, so the review posted nothing.'+ : 'No findings met the threshold, and the review is not posted.'}</div>)}return (<div className="flex flex-col gap-2">{!isPublished && (- <p className="m-0 text-xs text-secondary">- This review hasn't been published to the pull request yet — these findings crossed the review's- urgency threshold, but no comments have been posted.- </p>+ <p className="m-0 text-xs text-secondary">This review is not posted to the pull request yet.</p>)}<div className="flex flex-col divide-y divide-primary">{reviewFindingsSplit.published.map((finding, i) => (@@ -584,15 +547,10 @@ function DrawerNotPostedTab(): JSX.Element {(a.rank ?? 0) - (b.rank ?? 0))return (- <div className="flex flex-col gap-2">- <p className="m-0 text-xs text-secondary">- Raised during this review but not posted to the pull request, each with the reason.- </p>- <div className="flex flex-col divide-y divide-primary">- {dropped.map((finding, i) => (- <FindingCard key={i} finding={finding} reason={<DropReason finding={finding} />} />- ))}- </div>+ <div className="flex flex-col divide-y divide-primary">+ {dropped.map((finding, i) => (+ <FindingCard key={i} finding={finding} reason={<DropReason finding={finding} />} />+ ))}</div>)}@@ -605,17 +563,12 @@ function DrawerBelowThresholdTab(): JSX.Element {return <DrawerFindingsSkeleton />}if (!reviewFindingsSplit.belowThreshold.length) {- return (- <div className="text-sm text-secondary">- Nothing was held back — every validated finding crossed the review's urgency threshold.- </div>- )+ return <div className="text-sm text-secondary">No findings below the threshold.</div>}return (<div className="flex flex-col gap-2"><p className="m-0 text-xs text-secondary">- Validated as real, but under the urgency bar this review ran with — kept here instead of the pull- request.+ The review kept these findings but did not post them, because they are below its threshold.</p><div className="flex flex-col divide-y divide-primary">{reviewFindingsSplit.belowThreshold.map((finding, i) => (@@ -634,18 +587,13 @@ function DrawerDismissedTab(): JSX.Element {return <DrawerFindingsSkeleton />}if (!reviewDetail.dismissed_findings.length) {- return <div className="text-sm text-secondary">The validator dismissed nothing on this review.</div>+ return <div className="text-sm text-secondary">No dismissed findings.</div>}return (- <div className="flex flex-col gap-2">- <p className="m-0 text-xs text-secondary">- Raised during review, judged not worth your time — each with the validator's reasoning.- </p>- <div className="flex flex-col divide-y divide-primary">- {reviewDetail.dismissed_findings.map((finding, i) => (- <FindingCard key={i} finding={finding} dismissed />- ))}- </div>+ <div className="flex flex-col divide-y divide-primary">+ {reviewDetail.dismissed_findings.map((finding, i) => (+ <FindingCard key={i} finding={finding} dismissed />+ ))}</div>)}@@ -659,18 +607,12 @@ function DrawerChunksTab(): JSX.Element {}const selection = reviewDetail.perspective_selectionif (!selection) {- return (- <div className="text-sm text-secondary">- No chunk plan was recorded for this review — it ran before per-chunk planning existed, or the planner- fell back to running every perspective on every chunk.- </div>- )+ return <div className="text-sm text-secondary">No chunk plan was recorded for this review.</div>}return (<div className="flex flex-col gap-2"><p className="m-0 text-xs text-secondary">- How the pull request was split for review, and which perspectives each chunk actually needed — every- skipped lens saves a full review session.+ Each chunk lists the perspectives it ran. Skipped perspectives are struck through.</p><div className="flex flex-col divide-y divide-primary">{selection.chunks.map((chunk) => (@@ -779,11 +721,11 @@ function ReviewDetailDrawer(): JSX.Element {const tabs: (LemonTab<ReviewDrawerTab> | false)[] = [{key: 'published',- // "Published" is a claim about the PR — only make it when the review+ // "Posted" is a claim about the PR, so only make it when the review// actually posted; findings a store-only run kept above the bar read// "Kept". `review` falls back to the list row, so a published review// doesn't flash "Kept" while its detail loads.- label: `${review?.published ? (singleAgent ? 'Posted' : 'Published') : 'Kept'}${+ label: `${review?.published ? 'Posted' : 'Kept'}${reviewFindingsSplit ? ` (${reviewFindingsSplit.published.length})` : ''}`,content: <DrawerPublishedTab />,@@ -817,7 +759,7 @@ function ReviewDetailDrawer(): JSX.Element {{reviewDetail.report_markdown}</LemonMarkdown>) : (- <div className="text-sm text-secondary">No review body was rendered for this pull request.</div>+ <div className="text-sm text-secondary">No review body for this pull request.</div>)) : (<LemonSkeleton className="h-40 w-full" />@@ -835,7 +777,7 @@ function ReviewDetailDrawer(): JSX.Element {<span className="flex flex-wrap items-center gap-x-2 gap-y-1"><span>{review.repository}#{review.pr_number ?? review.head_branch}- {review.pr_author ? ` · by ${review.pr_author}` : ''}+ {review.pr_author ? ` by ${review.pr_author}` : ''}</span><ReviewModeTag mode={review.review_mode} />{review.status_comment_url && (@@ -861,10 +803,9 @@ function ReviewDetailDrawer(): JSX.Element {) : reviewDetail ? (<div className="text-sm text-secondary"><span className="font-semibold text-default">{reviewDetail.candidate_count}</span> findings- raised · <span className="font-semibold text-default">{reviewDetail.findings.length}</span> kept- after validation ·{' '}- <span className="font-semibold text-default">{reviewDetail.dismissed_count}</span> dismissed by- your quality bar+ raised, <span className="font-semibold text-default">{reviewDetail.findings.length}</span> kept+ after validation,{' '}+ <span className="font-semibold text-default">{reviewDetail.dismissed_count}</span> dismissed</div>) : (<LemonSkeleton className="h-5 w-80" />@@ -901,25 +842,14 @@ function ActivityTab(): JSX.Element {<><TriggerReviewSection /><ReviewsSection />- <PipelineSection />- </>- )-}--function SettingsTab(): JSX.Element {- return (- <>- <StandardArea />- <DeepArea />- <InboxSection /></>)}/*** The "Code review" scene: ReviewHog's activity and settings page, split into an Activity tab- * (trigger a review, recent reviews, the pipeline) and a Settings tab (the Standard area with who gets- * automatic reviews, the Deep area with its settings and review skills, then Inbox).+ * (trigger a review, recent reviews), a My preferences tab (the viewer's own choices), and a+ * Project settings tab (the rules and defaults that project admins set for everyone).* Every control is live from load, no save step. See `reviewHogSettingsLogic` for the data flow.* Access is gated on FEATURE_FLAGS.REVIEW_HOG, the same flag that shows the menu entry, so whoever* discovers the entry can open the page.@@ -936,7 +866,7 @@ export function CodeReviewScene(): JSX.Element {const titleSection = (<SceneTitleSectionname="Code review"- description="PostHog Review reads your pull requests and posts the findings worth fixing. Start a review, see recent ones, and choose what gets reviewed."+ description="Automated code reviews of your pull requests."resourceType={{ type: 'code_review' }}/>)@@ -973,9 +903,17 @@ export function CodeReviewScene(): JSX.Element {</LemonBanner>)}- {activeTab === 'activity' ? <ActivityTab /> : <SettingsTab />}+ {activeTab === 'activity' ? (+ <ActivityTab />+ ) : (+ <>+ <StandardArea />+ <DeepArea />+ <InboxSection />+ </>+ )}- {/* Overlays stay mounted on both tabs, so a `?review=` deep link opens on either. */}+ {/* Overlays stay mounted on every tab, so a `?review=` deep link opens on any of them. */}<AdoptSkillModal /><PipelineDetailModal /><ReviewDetailDrawer />diff --git a/products/review_hog/frontend/PipelineDetailModal.tsx b/products/review_hog/frontend/PipelineDetailModal.tsxindex 1b15f98a7f59..0846fa8c472a 100644--- a/products/review_hog/frontend/PipelineDetailModal.tsx+++ b/products/review_hog/frontend/PipelineDetailModal.tsx@@ -7,11 +7,10 @@ import { useWindowSize } from 'lib/hooks/useWindowSize'import { reviewHogSettingsLogic } from './reviewHogSettingsLogic'/**- * "Detailed view" of the review pipeline, opened from the "How we review your PRs" section.- * The diagram is a fixed 1280×780 canvas recreated from the design handoff (grown from 720 to fit- * the Resolve stage) with a hardcoded dark palette — it renders identically in light and dark theme- * (treat it as artwork; its contrast was tuned against this exact background) and scales down- * uniformly instead of reflowing.+ * The review pipeline diagram, opened from the "How we review your PRs" button.+ * The diagram is a fixed 1280×780 canvas recreated from the design handoff, with a hardcoded dark+ * palette. It renders identically in light and dark theme (treat it as artwork; its contrast was+ * tuned against this exact background) and scales down uniformly instead of reflowing.*/const CANVAS_W = 1280@@ -215,8 +214,7 @@ export function PipelineDetailModal(): JSX.Element {<div><div className="text-[15px] font-bold">How we review your PRs</div><div className="mt-0.5 text-xs text-[#b3b9c0]">- Every review runs through the same steps before it's published, then works through the- comment threads it leaves open.+ A Deep review runs these steps before it posts, then resolves the comment threads.</div></div><button@@ -276,7 +274,7 @@ export function PipelineDetailModal(): JSX.Element {<LaneConnector /><div className="mb-2.5 text-center text-[11px] font-semibold tracking-[0.14em] text-[#9aa1a9]">- <GoldBandNumber>07</GoldBandNumber> VALIDATE · BACK IN EACH CHUNK’S LANE, IN PARALLEL+ <GoldBandNumber>07</GoldBandNumber> VALIDATE · BACK IN EACH CHUNK'S LANE, IN PARALLEL</div><div className="grid grid-cols-3 gap-3">@@ -317,7 +315,7 @@ export function PipelineDetailModal(): JSX.Element {</div><div className="mt-2.5 text-center text-xs text-[#9aa1a9]">- Every reviewer and validator investigates your codebase, not just the diff.+ Reviewers and validators investigate your codebase as well as the diff.</div></div></div>diff --git a/products/review_hog/frontend/SectionHeader.tsx b/products/review_hog/frontend/SectionHeader.tsxdeleted file mode 100644index f3a44d274387..000000000000--- a/products/review_hog/frontend/SectionHeader.tsx+++ /dev/null@@ -1,28 +0,0 @@-export function SectionHeader({- icon,- title,- pill,- action,- children,-}: {- icon: JSX.Element- title: string- pill?: JSX.Element- action?: JSX.Element- children: string-}): JSX.Element {- return (- <div className="flex flex-col gap-1.5">- <div className="flex items-center gap-2">- <span className="flex size-7 shrink-0 items-center justify-center rounded-md border border-primary bg-surface-primary text-secondary *:size-4">- {icon}- </span>- <h3 className="m-0 text-base font-semibold">{title}</h3>- {pill}- {action && <div className="ml-auto">{action}</div>}- </div>- {/* Indented so the copy aligns under the title, not the icon tile */}- <p className="m-0 ml-9 max-w-160 text-xs text-secondary">{children}</p>- </div>- )-}diff --git a/products/review_hog/frontend/repositories/InstallationClaims.tsx b/products/review_hog/frontend/repositories/InstallationClaims.tsxindex 837aa5a9b170..540f497ec354 100644--- a/products/review_hog/frontend/repositories/InstallationClaims.tsx+++ b/products/review_hog/frontend/repositories/InstallationClaims.tsx@@ -11,12 +11,12 @@ import { reviewHogRepositoriesLogic } from './reviewHogRepositoriesLogic'function claimHint(installation: ReviewInstallationApi): string {if (installation.scope === 'all') {- return 'Every repository, including ones created later, except the ones another project selected. Only one project can take all repositories of a GitHub account.'+ return 'Includes future repositories. Repositories selected by another project stay there.'}if (installation.scope === 'selected') {- return 'Only the repositories included below. New repositories are not reviewed until you include them. Each repository belongs to one project.'+ return 'Add repositories below to review them.'}- return 'This project reviews no repository here yet. Pick all repositories, or only selected ones and include them below.'+ return 'Choose which repositories to review.'}function InstallationClaim({ installation }: { installation: ReviewInstallationApi }): JSX.Element {@@ -30,7 +30,7 @@ function InstallationClaim({ installation }: { installation: ReviewInstallationA<IconGithub className="size-6 shrink-0" /><div className="flex min-w-0 flex-1 basis-72 flex-col gap-0.5"><div className="flex flex-wrap items-center gap-2">- <span className="text-sm font-semibold">This project reviews {installation.account_name}:</span>+ <span className="text-sm font-semibold">{installation.account_name}</span><LemonSelect<ClaimScopeChoice>size="small"aria-label={`Repositories of ${installation.account_name} this project reviews`}@@ -75,9 +75,7 @@ export function InstallationClaims(): JSX.Element {if (installations.length === 0) {return (<div className="flex flex-wrap items-center justify-between gap-3 rounded border border-primary bg-surface-primary px-4 py-3">- <span className="text-sm text-secondary">- Connect GitHub to choose which repositories this project reviews.- </span>+ <span className="text-sm text-secondary">Connect GitHub to add repositories.</span><LemonButtontype="primary"size="small"diff --git a/products/review_hog/frontend/repositories/MyDefaultCell.tsx b/products/review_hog/frontend/repositories/MyDefaultCell.tsxindex a49e2b217f90..2c3e91c53d9e 100644--- a/products/review_hog/frontend/repositories/MyDefaultCell.tsx+++ b/products/review_hog/frontend/repositories/MyDefaultCell.tsx@@ -23,26 +23,22 @@ export function MyDefaultCell({ className }: { className?: string }): JSX.Elemen<div className={`flex min-w-0 flex-col gap-2 px-4 py-3 ${className ?? ''}`}><div className="flex flex-col gap-0.5"><span className="text-sm font-semibold">My default</span>- <span className="text-xs text-secondary">- Applies to every repository where you have not picked something else.- </span>+ <span className="text-xs text-secondary">For repositories where you have no saved choice.</span></div>- <div className="flex flex-wrap items-center gap-1">- <YouMark shown={value !== 'follow'} />- <span className="text-xs text-secondary">Automatic review on my PRs</span>+ <div className="flex flex-wrap items-center gap-2"><LemonSelect<DefaultReviewModeEnumApi>size="small"- aria-label="Automatic review on my PRs"+ aria-label="My default for automatic reviews"value={value}options={DEFAULT_REVIEW_MODE_OPTIONS}onChange={(mode) => mode !== value && setMyDefault(mode)}disabledReason={disabledReason}data-attr="review-hog-default-review-mode"/>+ <YouMark shown={value !== 'follow'} /></div><div className="flex flex-col gap-0.5">- <div className="flex flex-wrap items-center gap-1">- <YouMark shown={!reviewDrafts} />+ <div className="flex flex-wrap items-center gap-2"><span className="text-xs text-secondary">Review my draft pull requests</span><LemonSwitcharia-label="Review my draft pull requests"@@ -51,10 +47,9 @@ export function MyDefaultCell({ className }: { className?: string }): JSX.ElemendisabledReason={disabledReason}data-attr="review-hog-review-drafts"/>+ <YouMark shown={!reviewDrafts} /></div>- <span className="pl-10 text-xs text-secondary">- When off, a draft gets its first automatic review when you mark it ready for review.- </span>+ <span className="text-xs text-secondary">Turn off to wait until your PR is ready for review.</span></div>{notice && (<LemonBanner type="info" className="text-xs">diff --git a/products/review_hog/frontend/repositories/ProjectRuleCell.tsx b/products/review_hog/frontend/repositories/ProjectRuleCell.tsxindex f74459674417..9c14f0aa9203 100644--- a/products/review_hog/frontend/repositories/ProjectRuleCell.tsx+++ b/products/review_hog/frontend/repositories/ProjectRuleCell.tsx@@ -33,14 +33,11 @@ export function ProjectRuleCell({ className }: { className?: string }): JSX.Elemreturn (<div className={`flex min-w-0 flex-col gap-2 px-4 py-3 ${className ?? ''}`}><div className="flex flex-col gap-0.5">- <span className="text-sm font-semibold">Project settings</span>- <span className="text-xs text-secondary">- Every repository without an exception starts here. Starts at opt-in only, so connecting GitHub never- starts reviews everywhere.- </span>+ <span className="text-sm font-semibold">Who gets reviewed</span>+ <span className="text-xs text-secondary">Repository exceptions override this default.</span></div><RuleControls- label="Project settings"+ label="Who gets reviewed"flashFor={projectSettings?.flash_for ?? 'off'}people={projectSettings?.people ?? []}canEdit={canEdit}@@ -50,11 +47,8 @@ export function ProjectRuleCell({ className }: { className?: string }): JSX.ElemonRemovePerson={removeProjectPerson}dataAttr="review-hog-project-flash-for"/>- <span className="text-xs text-secondary">- People opt in under My pull requests, with their default or a choice for one repository.- </span><div className="flex flex-wrap items-center gap-2">- <span className="text-xs text-secondary">Bot PRs, all repositories:</span>+ <span className="text-xs text-secondary">Bot pull requests</span><LemonSelect<ReviewProjectSettingsBotPullRequestsEnumApi>size="small"aria-label="Bot pull requests"diff --git a/products/review_hog/frontend/repositories/RepositoriesPanes.tsx b/products/review_hog/frontend/repositories/RepositoriesPanes.tsxindex ec62f897b00d..fa5e65eb2014 100644--- a/products/review_hog/frontend/repositories/RepositoriesPanes.tsx+++ b/products/review_hog/frontend/repositories/RepositoriesPanes.tsx@@ -80,24 +80,17 @@ export function RepositoriesPanes(): JSX.Element {<span className="flex flex-wrap items-center gap-2 text-sm font-semibold">This project<LemonTag type="success" size="small">- {canEdit ? 'You can edit: project admin' : 'Project admins edit'}+ {canEdit ? 'Admin' : 'Admin access required'}</LemonTag></span><span className="text-xs text-secondary">- Where everyone starts. Each person can still choose for their own PRs. Changes go to the- activity log.+ Defaults for everyone. Your preferences take priority.</span></div><div className={`flex flex-col gap-0.5 px-4 py-3 ${PANE_RIGHT} ${PANE_ROW} @min-[48rem]:border-t-0`}>- <span className="flex flex-wrap items-center gap-2 text-sm font-semibold">- My pull requests- <LemonTag type="highlight" size="small">- Only you- </LemonTag>- </span>+ <span className="flex flex-wrap items-center gap-2 text-sm font-semibold">My pull requests</span><span className="text-xs text-secondary">- Decided in this order: your choice for a repository, your default, the repository's exception,- the project rule. A "you" mark shows where you set your own value.+ Your repository choices take priority over your default below.</span></div><ProjectRuleCell className={`${PANE_LEFT} ${PANE_ROW}`} />diff --git a/products/review_hog/frontend/repositories/RepositoryListPager.tsx b/products/review_hog/frontend/repositories/RepositoryListPager.tsxindex 00a35b32a5de..98c0ddaed576 100644--- a/products/review_hog/frontend/repositories/RepositoryListPager.tsx+++ b/products/review_hog/frontend/repositories/RepositoryListPager.tsx@@ -21,8 +21,7 @@ export function RepositoryListPager(): JSX.Element | null {<span translate="no">{first}-{last} of {overview.total}</span>{' '}- repositories. Nothing is saved for a repository unless it is selected, has an exception, or has a- personal choice.+ repositories</span><span className="flex gap-1"><LemonButtondiff --git a/products/review_hog/frontend/repositories/RepositoryMyCell.tsx b/products/review_hog/frontend/repositories/RepositoryMyCell.tsxindex 860664b9d3b5..5a5b7de6ec6c 100644--- a/products/review_hog/frontend/repositories/RepositoryMyCell.tsx+++ b/products/review_hog/frontend/repositories/RepositoryMyCell.tsx@@ -46,15 +46,18 @@ export function RepositoryMyCell({const note = myChoiceNote(entry)content = (<div className="flex min-w-0 flex-col items-start gap-1">- <LemonSelect<MyChoiceValue>- size="small"- aria-label={`My choice for ${name}`}- value={value}- options={myChoiceOptions(entry)}- onChange={(picked) => setMyChoice(entry, picked)}- disabledReason={busyReason}- data-attr="review-hog-my-choice"- />+ <div className="flex max-w-full min-w-0 items-center gap-2">+ <LemonSelect<MyChoiceValue>+ size="small"+ aria-label={`My choice for ${name}`}+ value={value}+ options={myChoiceOptions(entry)}+ onChange={(picked) => setMyChoice(entry, picked)}+ disabledReason={busyReason}+ data-attr="review-hog-my-choice"+ />+ <YouMark shown={hasChoice} />+ </div>{note && <span className="text-xs text-secondary">{note}</span>}</div>)@@ -65,15 +68,9 @@ export function RepositoryMyCell({<span className="text-xxs font-semibold uppercase tracking-wide text-secondary @min-[48rem]:hidden">My choice</span>- <div className="flex items-start gap-1">- {/* Lines the mark up with the select, not with the note under it. */}- <span className="pt-1.5">- <YouMark shown={hasChoice} />- </span>- {content}- </div>+ {content}{hasChoice && !entry.in_project && (- <div className="flex flex-wrap items-center gap-1 pl-10 text-xs text-secondary">+ <div className="flex flex-wrap items-center gap-1 text-xs text-secondary">Your saved choice applies if this repository joins this project.<LemonButtonsize="xsmall"diff --git a/products/review_hog/frontend/repositories/YouMark.tsx b/products/review_hog/frontend/repositories/YouMark.tsxindex 5c0d19abd8c5..3411ccd3cbf6 100644--- a/products/review_hog/frontend/repositories/YouMark.tsx+++ b/products/review_hog/frontend/repositories/YouMark.tsx@@ -1,17 +1,10 @@import { LemonTag } from '@posthog/lemon-ui'-/**- * Marks a value the viewer set themselves. The slot keeps its width when empty, so selects in a- * column stay aligned whether or not a row has the mark.- */-export function YouMark({ shown }: { shown: boolean }): JSX.Element {- return (- <span className="flex w-9 shrink-0 justify-center">- {shown && (- <LemonTag type="highlight" size="small" title="Your own choice">- you- </LemonTag>- )}- </span>- )+/** Marks a value the viewer set themselves. It sits after the control and takes no space when the value is inherited. */+export function YouMark({ shown }: { shown: boolean }): JSX.Element | null {+ return shown ? (+ <LemonTag type="highlight" size="small" title="Your own choice">+ you+ </LemonTag>+ ) : null}diff --git a/products/review_hog/frontend/settings/AreaHeader.tsx b/products/review_hog/frontend/settings/AreaHeader.tsxdeleted file mode 100644index 12290ad710ce..000000000000--- a/products/review_hog/frontend/settings/AreaHeader.tsx+++ /dev/null@@ -1,19 +0,0 @@-/** The large heading that opens one area of the Settings tab, with the area's intro under it. */-export function AreaHeader({- title,- subtitle,- children,-}: {- title: string- subtitle: string- children: React.ReactNode-}): JSX.Element {- return (- <header className="flex max-w-220 flex-col gap-1.5">- <h2 className="m-0 text-xl font-bold">- {title} <span className="font-normal text-secondary">· {subtitle}</span>- </h2>- {children}- </header>- )-}diff --git a/products/review_hog/frontend/settings/DeepArea.tsx b/products/review_hog/frontend/settings/DeepArea.tsxindex a264b5b606cb..571e5a3f32cd 100644--- a/products/review_hog/frontend/settings/DeepArea.tsx+++ b/products/review_hog/frontend/settings/DeepArea.tsx@@ -1,24 +1,16 @@-import { AreaHeader } from './AreaHeader'+import { SceneSection } from '~/layout/scenes/components/SceneSection'+import { FullReviewSettingsSection } from './FullReviewSettingsSection'import { ReviewSkillsPanel } from './ReviewSkillsPanel'export function DeepArea(): JSX.Element {return (- <section className="flex flex-col gap-3 border-t border-primary pt-6">- <AreaHeader title="Deep" subtitle="only when someone asks">- <p className="m-0 text-sm">- Deep is a longer review for changes that need extra care: the Review button, the posthog-review- label, or an Inbox report assigned to you. It adds the perspectives, quality bar and threshold you- pick here, and can fix review comments on your branch if you turn Resolve on. It takes longer and- costs several times more than Standard.- </p>- <p className="m-0 text-xs text-secondary">- Everything in this area applies only to Deep reviews. A review someone else starts on your PR uses- their settings, but only your own Resolve choice can push to your branch.- </p>- </AreaHeader>+ <SceneSection+ title="Deep reviews"+ description="Start with the Review button, the posthog-review label, or an Inbox report assigned to you. Uses the settings of whoever starts the review. Costs several times more than Standard."+ ><FullReviewSettingsSection /><ReviewSkillsPanel />- </section>+ </SceneSection>)}diff --git a/products/review_hog/frontend/settings/FullReviewSettingsSection.tsx b/products/review_hog/frontend/settings/FullReviewSettingsSection.tsxindex 2960ccb37b75..c5a4e9d72974 100644--- a/products/review_hog/frontend/settings/FullReviewSettingsSection.tsx+++ b/products/review_hog/frontend/settings/FullReviewSettingsSection.tsx@@ -67,29 +67,30 @@ export function FullReviewSettingsSection(): JSX.Element {return (<SettingsTable><SettingRow- title="Resolve comments on my pull requests"- description="Applies on your PRs. After a Deep review, ReviewHog pushes fix commits to your branch. Only your own opt-in counts, whoever starts the review. Never commits while the pull request is in the merge queue or has another pull request stacked on it. Without a PostHog account behind a PR, nothing is pushed."- project={<span className="text-xs text-secondary">Personal only. Default: off</span>}+ title="Commit fixes to my pull requests"+ description="Allow Deep reviews to push fixes to your branch. Only you can enable this."+ project={<span className="text-xs text-secondary">Personal only</span>}mine={<>- <YouMark shown={settings?.resolve_comments ?? false} /><LemonSwitch- aria-label="Resolve comments on my pull requests"+ aria-label="Commit fixes to my pull requests"+ tooltip="Requires a PostHog account linked to the PR author. Fixes are paused while your PR is in the merge queue or another PR is stacked on it. Applies even when someone else starts the review."checked={settings?.resolve_comments ?? false}onChange={(checked) => updateSettings({ resolve_comments: checked })}disabledReason={mineDisabledReason}data-attr="review-hog-resolve-comments"/>+ <YouMark shown={settings?.resolve_comments ?? false} /></>}/><SettingRow- title="Post findings at or above"- description="Applies to Deep reviews you start. Findings below this stay in the review report in PostHog."+ title="Findings to post on GitHub"+ description="Lower-priority findings stay in the PostHog report."project={<LemonSelect<UrgencyThresholdEnumApi>size="small"- aria-label="Project: Post findings at or above"+ aria-label="Project: Findings to post on GitHub"value={projectThreshold}options={THRESHOLD_OPTIONS}onChange={(value) => updateProjectSettings({ urgency_threshold: value })}@@ -99,12 +100,11 @@ export function FullReviewSettingsSection(): JSX.Element {}mine={<>- <YouMark shown={ownThreshold !== undefined} /><LemonSelect<UrgencyThresholdEnumApi | 'project'>size="small"className="min-w-0 shrink"truncateText={{ maxWidthClass: 'max-w-full' }}- aria-label="Mine: Post findings at or above"+ aria-label="Mine: Findings to post on GitHub"value={ownThreshold ?? 'project'}options={mineOptions(THRESHOLD_OPTIONS, projectThreshold, ownThreshold)}onChange={(value) =>@@ -115,12 +115,13 @@ export function FullReviewSettingsSection(): JSX.Element {disabledReason={mineDisabledReason}data-attr="review-hog-urgency-threshold"/>+ <YouMark shown={ownThreshold !== undefined} /></>}/><SettingRowtitle="Celebrate clean reviews"- description="Applies to Deep reviews you start. A clean Deep review gets a small celebration in the status comment."+ description="Add a celebration to the status comment when no issues are found."project={<LemonSelect<OnOff>size="small"@@ -134,7 +135,6 @@ export function FullReviewSettingsSection(): JSX.Element {}mine={<>- <YouMark shown={ownCelebrate !== undefined} /><LemonSelect<OnOff | 'project'>size="small"className="min-w-0 shrink"@@ -150,6 +150,7 @@ export function FullReviewSettingsSection(): JSX.Element {disabledReason={mineDisabledReason}data-attr="review-hog-celebrate-clean-reviews"/>+ <YouMark shown={ownCelebrate !== undefined} /></>}/>diff --git a/products/review_hog/frontend/settings/InboxSection.tsx b/products/review_hog/frontend/settings/InboxSection.tsxindex c6d28efe1c9e..6604adbcd197 100644--- a/products/review_hog/frontend/settings/InboxSection.tsx+++ b/products/review_hog/frontend/settings/InboxSection.tsx@@ -14,34 +14,30 @@ export function InboxSection(): JSX.Element {const disabledReason = settings === null ? 'Loading…' : settingsLoading ? 'Saving…' : undefinedreturn (- <SettingsTable- title="Inbox"- description="Pull requests the PostHog agent opens for Inbox reports. The PostHog app authors them, so the report's assigned reviewer counts as their owner."- >+ <SettingsTable title="Inbox" description="Pull requests the PostHog agent opens for your Inbox reports."><SettingRow- title="Review PRs the agent opens for Inbox reports assigned to me"- description="Deep review today. Moves to Standard once Standard is stable."+ title="Review my Inbox PRs"+ description="PostHog Review runs a Deep review on them."project={<span className="text-xs text-secondary">Default: off</span>}mine={<>- <YouMark shown={settings?.review_inbox_prs ?? false} /><LemonSwitch- aria-label="Review PRs the agent opens for Inbox reports assigned to me"+ aria-label="Review my Inbox PRs"checked={settings?.review_inbox_prs ?? false}onChange={(checked) => updateSettings({ review_inbox_prs: checked })}disabledReason={disabledReason}data-attr="review-hog-review-inbox-prs"/>+ <YouMark shown={settings?.review_inbox_prs ?? false} /></>}/><SettingRowtitle="Let Stamphog review my Inbox PRs"- description="Stamphog reviews the same pull requests and approves them when they pass."+ description="Stamphog approves them when they pass."project={<span className="text-xs text-secondary">Default: off</span>}mine={<>- <YouMark shown={settings?.stamphog_review_inbox_prs ?? false} /><LemonSwitcharia-label="Let Stamphog review my Inbox PRs"checked={settings?.stamphog_review_inbox_prs ?? false}@@ -50,11 +46,12 @@ export function InboxSection(): JSX.Element {// A switch that is already on stays usable while disconnected, so// turning it off never requires connecting Stamphog first.settings && !settings.stamphog_connected && !settings.stamphog_review_inbox_prs- ? 'Connect a repository to Stamphog first. Stamphog is not set up for this project yet.'+ ? 'Connect a repository to Stamphog first.': disabledReason}data-attr="review-hog-stamphog-review-inbox-prs"/>+ <YouMark shown={settings?.stamphog_review_inbox_prs ?? false} /></>}/>diff --git a/products/review_hog/frontend/settings/ReviewSkillsPanel.tsx b/products/review_hog/frontend/settings/ReviewSkillsPanel.tsxindex 898da26d2f0f..ec0594838682 100644--- a/products/review_hog/frontend/settings/ReviewSkillsPanel.tsx+++ b/products/review_hog/frontend/settings/ReviewSkillsPanel.tsx@@ -1,7 +1,7 @@import { useActions, useValues } from 'kea'import { IconPlus, IconSearch } from '@posthog/icons'-import { LemonButton, LemonMenu, LemonSkeleton, LemonSwitch, LemonTag, Link } from '@posthog/lemon-ui'+import { LemonButton, LemonMenu, LemonSkeleton, LemonSwitch, Link } from '@posthog/lemon-ui'import {REVIEW_SKILL_KIND_LABELS,@@ -57,26 +57,19 @@ export function ReviewSkillsPanel(): JSX.Element {<div className="flex max-w-160 min-w-0 flex-col gap-1"><div className="flex flex-wrap items-center gap-2"><h3 className="m-0 text-base font-semibold">Review skills</h3>- <LemonTag type="highlight" size="small">- Deep reviews only- </LemonTag></div><p className="m-0 text-xs text-secondary">- Skills tell a Deep review what to look for and what to publish. Standard uses its own fixed set- and reads none of these. Switch a skill on or off for the Deep reviews you start.+ Choose what your Deep reviews check. Editing skill text changes it for the whole project.</p></div>- <span className="text-xs text-secondary">Kept counts: your last 10 Deep reviews</span>+ <span className="text-xs text-secondary">Last 10 Deep reviews</span></header><div className="hidden grid-cols-[minmax(0,1fr)_minmax(0,16rem)] gap-3 border-t border-primary px-4 py-1.5 text-xxs font-semibold uppercase tracking-wide text-secondary @min-[48rem]:grid"><span>Skill</span>- <span>Mine</span>+ <span>My preference</span></div>- <SkillGroupHeader- title="Perspectives"- rule="the angles a Deep review reads the code from · several can run · at least one stays on"- />+ <SkillGroupHeader title="Perspectives" rule="Choose at least one" />{perspectives === null ? (<div className="px-4 py-2"><LemonSkeleton className="h-12 w-full" />@@ -123,7 +116,7 @@ export function ReviewSkillsPanel(): JSX.Element {/><SingleActiveSkillGrouptitle="Resolution criteria"- note="Used only when Resolve is on for you"+ note="Used when you allow fix commits"skills={resolutionSkills}onSelect={selectResolutionSkill}dataAttr="review-hog-resolution-mine"@@ -157,13 +150,13 @@ export function ReviewSkillsPanel(): JSX.Element {Use an existing skill</LemonButton></LemonMenu>- <span className="text-xs text-secondary">- How the pipeline uses skills:{' '}- <Link onClick={() => openPipelineDetail()} data-attr="review-hog-skills-pipeline-detail">- Activity › Detailed view- </Link>- .- </span>+ <Link+ className="text-xs"+ onClick={() => openPipelineDetail()}+ data-attr="review-hog-skills-pipeline-detail"+ >+ How a review uses skills+ </Link></footer></section>)diff --git a/products/review_hog/frontend/settings/SettingRow.tsx b/products/review_hog/frontend/settings/SettingRow.tsxindex 19bed768c144..97815d2fe2f9 100644--- a/products/review_hog/frontend/settings/SettingRow.tsx+++ b/products/review_hog/frontend/settings/SettingRow.tsx@@ -20,11 +20,11 @@ export function SettingRow({<span className="text-xs text-secondary">{description}</span></div><div className="flex min-w-0 flex-wrap items-center gap-2">- <span className="text-xs text-secondary @min-[48rem]:hidden">Project:</span>+ <span className="text-xs text-secondary @min-[48rem]:hidden">Project default:</span>{project}</div>- <div className="flex min-w-0 items-center gap-1">- <span className="text-xs text-secondary @min-[48rem]:hidden">Mine:</span>+ <div className="flex min-w-0 items-center gap-2">+ <span className="text-xs text-secondary @min-[48rem]:hidden">My preference:</span>{mine}</div></div>diff --git a/products/review_hog/frontend/settings/SettingsTable.tsx b/products/review_hog/frontend/settings/SettingsTable.tsxindex dbbaa21dca18..50b9607498a1 100644--- a/products/review_hog/frontend/settings/SettingsTable.tsx+++ b/products/review_hog/frontend/settings/SettingsTable.tsx@@ -18,8 +18,8 @@ export function SettingsTable({)}<div className="hidden grid-cols-[minmax(0,1fr)_minmax(0,14rem)_minmax(0,18rem)] gap-3 px-4 py-1.5 text-xxs font-semibold uppercase tracking-wide text-secondary @min-[48rem]:grid"><span>Setting</span>- <span>Project</span>- <span>Mine</span>+ <span>Project default</span>+ <span>My preference</span></div>{children}</section>diff --git a/products/review_hog/frontend/settings/SingleActiveSkillGroup.tsx b/products/review_hog/frontend/settings/SingleActiveSkillGroup.tsxindex e4e0d10b11f7..3584324f5bd8 100644--- a/products/review_hog/frontend/settings/SingleActiveSkillGroup.tsx+++ b/products/review_hog/frontend/settings/SingleActiveSkillGroup.tsx@@ -55,7 +55,7 @@ export function SingleActiveSkillGroup({return (<>- <SkillGroupHeader title={title} rule="one runs" note={note} />+ <SkillGroupHeader title={title} rule="Choose one" note={note} />{skills === null ? (<div className="px-4 py-2"><LemonSkeleton className="h-12 w-full" />@@ -76,11 +76,7 @@ export function SingleActiveSkillGroup({kept={keptFor ? keptFor(active.skill_name) : undefined}mine={// A select with one option leads nowhere, so say why there is no choice yet.- hasAlternative ? (- select- ) : (- <span className="text-xs text-secondary">Runs. The only one so far.</span>- )+ hasAlternative ? select : <span className="text-xs text-secondary">Always on</span>}/>)}diff --git a/products/review_hog/frontend/settings/SkillRow.tsx b/products/review_hog/frontend/settings/SkillRow.tsxindex e5c43e173dca..039aca8d8189 100644--- a/products/review_hog/frontend/settings/SkillRow.tsx+++ b/products/review_hog/frontend/settings/SkillRow.tsx@@ -13,7 +13,7 @@ export interface SkillKept {function KeptCount({ kept }: { kept: SkillKept | null }): JSX.Element {if (kept === null || kept.raised === 0) {- return <span className="text-xs text-secondary">No findings in your last 10</span>+ return <span className="text-xs text-secondary">No recent findings</span>}return (<span className="flex items-center gap-2 text-xs text-secondary">@@ -46,7 +46,9 @@ export function SkillRow({<div className="grid grid-cols-1 items-center gap-2 px-4 py-2 @min-[48rem]:grid-cols-[minmax(0,1fr)_minmax(0,16rem)] @min-[48rem]:gap-3"><div className="flex min-w-0 flex-col gap-0.5"><span className="text-sm font-semibold">{prettifySkillName(skillName)}</span>- <span className="text-xs text-secondary">{description}</span>+ <span className="line-clamp-1 text-xs text-secondary" title={description}>+ {description}+ </span><div className="flex flex-wrap items-center gap-x-3 gap-y-1">{kept !== undefined && <KeptCount kept={kept} />}<Link@@ -55,12 +57,12 @@ export function SkillRow({className="inline-flex items-center gap-0.5 text-xs"data-attr="review-hog-edit-skill-text">- Edit text for the project <IconExternal className="size-3" />+ Edit skill <IconExternal className="size-3" /></Link></div></div><div className="flex min-w-0 flex-wrap items-center gap-1">- <span className="text-xs text-secondary @min-[48rem]:hidden">Mine:</span>+ <span className="text-xs text-secondary @min-[48rem]:hidden">My preference:</span>{mine}</div></div>diff --git a/products/review_hog/frontend/settings/StandardArea.tsx b/products/review_hog/frontend/settings/StandardArea.tsxindex 64c7c5c5f7de..683af9be7881 100644--- a/products/review_hog/frontend/settings/StandardArea.tsx+++ b/products/review_hog/frontend/settings/StandardArea.tsx@@ -1,23 +1,16 @@+import { SceneSection } from '~/layout/scenes/components/SceneSection'+import { InstallationClaims } from 'products/review_hog/frontend/repositories/InstallationClaims'import { RepositoriesPanes } from 'products/review_hog/frontend/repositories/RepositoriesPanes'-import { AreaHeader } from './AreaHeader'--// The Standard wording is still under test, so it lives in one place to swap.-const STANDARD_DEFINITION =- 'Standard runs automatically on every push. The same set of reviewers reads the whole change and comments with issues for you to fix. It never pushes to your branch and has no settings of its own.'-export function StandardArea(): JSX.Element {return (- <section className="flex flex-col gap-3">- <AreaHeader title="Standard" subtitle="who gets automatic reviews">- <p className="m-0 text-sm">- {STANDARD_DEFINITION} The rules below decide who gets it. No automatic review runs on a pull request- after it had a Deep review.- </p>- </AreaHeader>+ <SceneSection+ title="Standard reviews"+ description="Automatic comments on each push. Never changes your branch. Stops after a Deep review."+ ><InstallationClaims /><RepositoriesPanes />- </section>+ </SceneSection>)}diff --git a/products/review_hog/frontend/skillNames.ts b/products/review_hog/frontend/skillNames.tsindex 43ade508df12..1438bd6a93da 100644--- a/products/review_hog/frontend/skillNames.ts+++ b/products/review_hog/frontend/skillNames.ts@@ -1,5 +1,18 @@-/** "review-hog-perspective-logic-correctness" → "Logic correctness" */+const BUILT_IN_SKILL_LABELS: Partial<Record<string, string>> = {+ 'review-hog-perspective-contracts-security': 'Security and API compatibility',+ 'review-hog-perspective-logic-correctness': 'Logic and correctness',+ 'review-hog-perspective-performance-reliability': 'Performance and reliability',+ 'review-hog-resolution-criteria': 'Safe fixes',+ 'review-hog-resolution-criteria-gaps': 'Bugs and missing functionality',+ 'review-hog-resolution-criteria-small': 'Small fixes',+ 'review-hog-validation-criteria': 'Issues worth fixing',+}+export function prettifySkillName(skillName: string): string {+ const builtInLabel = BUILT_IN_SKILL_LABELS[skillName]+ if (builtInLabel) {+ return builtInLabel+ }const cleaned = skillName.replace(/^review-hog-(perspective|blind-spots|validation|resolution)-/, '').replace(/[-_]/g, ' ')diff --git a/products/review_hog/skills/review-hog-blind-spots-general/SKILL.md b/products/review_hog/skills/review-hog-blind-spots-general/SKILL.mdindex 96ac65e59e2a..21ebe8416c8c 100644--- a/products/review_hog/skills/review-hog-blind-spots-general/SKILL.md+++ b/products/review_hog/skills/review-hog-blind-spots-general/SKILL.md@@ -1,9 +1,7 @@---name: review-hog-blind-spots-generaldescription: >- The general blind-spot check for PostHog Review, the final sweep that runs after every enabled review- perspective has reviewed a chunk. Hunts for real, high-value issues that ALL of the perspectives- missed, conditioned on what they actually found; returns an empty list over padding.+ Checks each chunk for issues the other reviewers missed. Uses their findings to avoid repeating them.metadata:owner_team: review_hogskill_type: blind_spotsdiff --git a/products/review_hog/skills/review-hog-perspective-contracts-security/SKILL.md b/products/review_hog/skills/review-hog-perspective-contracts-security/SKILL.mdindex ebd09e649d2b..09dc8408de83 100644--- a/products/review_hog/skills/review-hog-perspective-contracts-security/SKILL.md+++ b/products/review_hog/skills/review-hog-perspective-contracts-security/SKILL.md@@ -1,9 +1,7 @@---name: review-hog-perspective-contracts-securitydescription: >- The Contracts & Security review perspective for PostHog Review. Verifies that changed code is safe and- maintains compatibility: API contracts and breaking changes, injection / authz / data exposure,- input validation, and schema / interface alignment. Reports security and contract issues only.+ Checks security, input validation, and API compatibility. Reports security and contract issues only.metadata:owner_team: review_hogperspective: contracts_securitydiff --git a/products/review_hog/skills/review-hog-perspective-logic-correctness/SKILL.md b/products/review_hog/skills/review-hog-perspective-logic-correctness/SKILL.mdindex e629e762dd5e..b29faa33c2e9 100644--- a/products/review_hog/skills/review-hog-perspective-logic-correctness/SKILL.md+++ b/products/review_hog/skills/review-hog-perspective-logic-correctness/SKILL.md@@ -1,9 +1,7 @@---name: review-hog-perspective-logic-correctnessdescription: >- The Logic & Correctness review perspective for PostHog Review. Verifies that changed code does what it- is supposed to do: business logic, edge cases, data transformations, and query / data-access- correctness. Reports correctness issues only; security and performance are separate perspectives.+ Checks business logic, edge cases, data transformations, and queries. Reports correctness issues only.metadata:owner_team: review_hogperspective: logic_correctnessdiff --git a/products/review_hog/skills/review-hog-perspective-performance-reliability/SKILL.md b/products/review_hog/skills/review-hog-perspective-performance-reliability/SKILL.mdindex b81288f50c33..419636303f01 100644--- a/products/review_hog/skills/review-hog-perspective-performance-reliability/SKILL.md+++ b/products/review_hog/skills/review-hog-perspective-performance-reliability/SKILL.md@@ -1,9 +1,7 @@---name: review-hog-perspective-performance-reliabilitydescription: >- The Performance & Reliability review perspective for PostHog Review. Verifies that changed code will- perform and hold up in production: resource efficiency, error handling and recovery, scalability,- and operational readiness. Reports performance and reliability issues only.+ Checks resource use, error recovery, and scaling. Reports performance and reliability issues only.metadata:owner_team: review_hogperspective: performance_reliabilitydiff --git a/products/review_hog/skills/review-hog-resolution-criteria-gaps/SKILL.md b/products/review_hog/skills/review-hog-resolution-criteria-gaps/SKILL.mdindex 60b837474249..ec12c17e78bf 100644--- a/products/review_hog/skills/review-hog-resolution-criteria-gaps/SKILL.md+++ b/products/review_hog/skills/review-hog-resolution-criteria-gaps/SKILL.md@@ -1,10 +1,8 @@---name: review-hog-resolution-criteria-gapsdescription: >- Gaps fix profile for PostHog Review's resolution stage: the default resolution criteria, narrowed- to fix only real gaps. Fixes reachable should_fix and must_fix bugs and missing pieces the PR- needs; leaves typos, nits, wording, stale docs and style to the author as open threads. Select it- when the author wants the fixer to take only the important work.+ Fixes should-fix and must-fix bugs and missing functionality. Leaves wording, documentation,+ and style suggestions to the author.metadata:owner_team: review_hogskill_type: resolution_criteriadiff --git a/products/review_hog/skills/review-hog-resolution-criteria-small/SKILL.md b/products/review_hog/skills/review-hog-resolution-criteria-small/SKILL.mdindex 581b15b8d4b1..995a0a5ec208 100644--- a/products/review_hog/skills/review-hog-resolution-criteria-small/SKILL.md+++ b/products/review_hog/skills/review-hog-resolution-criteria-small/SKILL.md@@ -1,10 +1,8 @@---name: review-hog-resolution-criteria-smalldescription: >- Small fix profile for PostHog Review's resolution stage: the default resolution criteria, narrowed- to fix only small, contained issues. Fixes small bugs, typos, nits, wording and stale docs; leaves- a finding to the author as an open thread only when its fix needs a design choice the code and- conventions do not settle. Select it when the author's own agent takes the big work.+ Fixes small bugs, typos, wording, and outdated documentation. Leaves changes that need a design+ decision to the author.metadata:owner_team: review_hogskill_type: resolution_criteriadiff --git a/products/review_hog/skills/review-hog-resolution-criteria/SKILL.md b/products/review_hog/skills/review-hog-resolution-criteria/SKILL.mdindex 39f51f903206..06e3675bdcfd 100644--- a/products/review_hog/skills/review-hog-resolution-criteria/SKILL.md+++ b/products/review_hog/skills/review-hog-resolution-criteria/SKILL.md@@ -1,9 +1,8 @@---name: review-hog-resolution-criteriadescription: >- The resolution criteria for PostHog Review's resolution stage: the bar for deciding, per unresolved- review thread, whether the ask is worth implementing and safe to implement unattended. Implements- contained, provable fixes; declines noise with a reason; escalates real-but-risky asks to a human.+ Implements safe, verifiable fixes from review comments. Explains declined requests and asks a human+ to handle risky changes.metadata:owner_team: review_hogskill_type: resolution_criteriadiff --git a/products/review_hog/skills/review-hog-validation-criteria/SKILL.md b/products/review_hog/skills/review-hog-validation-criteria/SKILL.mdindex e660b6f9cb67..7e51fb078e72 100644--- a/products/review_hog/skills/review-hog-validation-criteria/SKILL.md+++ b/products/review_hog/skills/review-hog-validation-criteria/SKILL.md@@ -1,9 +1,8 @@---name: review-hog-validation-criteriadescription: >- The validation criteria for PostHog Review, the bar for deciding whether a flagged PR issue is worth- keeping. Keeps real, user-affecting correctness / security / data-loss / contract / performance- problems; drops overengineering, speculation, paranoia, never-gonna-happen edge cases, and style.+ Keeps findings that affect correctness, security, data, API compatibility, or performance.+ Drops speculative issues and style suggestions before publishing.metadata:owner_team: review_hogskill_type: validation_criteria