Skip to content

: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.

chore(ci): remove desktop storybook CI (#76188)

Charles Vien2b17c785d066
diff --git a/.github/workflows/desktop-ci.yml b/.github/workflows/desktop-ci.yml
index e93080503db9..a7c354597592 100644
--- a/.github/workflows/desktop-ci.yml
+++ b/.github/workflows/desktop-ci.yml
@@ -1,11 +1,11 @@
name: Desktop CI
-# One dispatch per PR event instead of five. GitHub's run-queue cap
+# One dispatch per PR event instead of four. GitHub's run-queue cap
# (500 runs/10s/repo) counts workflow runs, and a run that calls reusable
# workflows counts once, so the whole desktop suite costs one slot per push.
#
# The suites themselves stay unfiltered here on purpose: each child gates its
-# own work on an internal `changes` job, so a non-desktop PR pays five short
+# own work on an internal `changes` job, so a non-desktop PR pays four short
# detector jobs and skips everything else. A trigger-level `paths:` filter
# would stop the `Desktop * Pass` checks from ever reporting, leaving any PR
# that requires them stuck waiting for status.
@@ -54,11 +54,3 @@ jobs:
POSTHOG_CODE_E2E_GATEWAY_PERSONAL_API_KEY: ${{ secrets.POSTHOG_CODE_E2E_GATEWAY_PERSONAL_API_KEY }}
POSTHOG_CODE_E2E_GATEWAY_URL: ${{ secrets.POSTHOG_CODE_E2E_GATEWAY_URL }}
TRUNK_API_TOKEN: ${{ secrets.TRUNK_API_TOKEN }}
-
- storybook:
- uses: ./.github/workflows/desktop-storybook.yml
- secrets:
- GH_APP_POSTHOG_PATHS_FILTER_APP_ID: ${{ secrets.GH_APP_POSTHOG_PATHS_FILTER_APP_ID }}
- GH_APP_POSTHOG_PATHS_FILTER_PRIVATE_KEY: ${{ secrets.GH_APP_POSTHOG_PATHS_FILTER_PRIVATE_KEY }}
- TRUNK_API_TOKEN: ${{ secrets.TRUNK_API_TOKEN }}
- VR_API_TOKEN: ${{ secrets.VR_API_TOKEN }}
diff --git a/.github/workflows/desktop-storybook.yml b/.github/workflows/desktop-storybook.yml
deleted file mode 100644
index 8d8999397571..000000000000
--- a/.github/workflows/desktop-storybook.yml
+++ /dev/null
@@ -1,295 +0,0 @@
-name: Desktop Storybook
-
-# Captures a screenshot of every story (dark + light) and submits them to the
-# PostHog Visual Review product, which diffs against the signed baseline
-# manifest committed at products/desktop/apps/code/snapshots.yml. Visual changes are
-# reviewed and approved at https://us.posthog.com/project/2/visual_review; on
-# approval the VR backend commits the updated manifest back to the PR branch.
-# PNGs are never committed to this repo.
-#
-# Until the one-time setup is done (VR repo registration + VR_API_TOKEN secret
-# + committed snapshots.yml), the vr step silently no-ops: the job still runs
-# the capture, which catches stories that crash or never settle.
-
-on:
- # Dispatched by desktop-ci.yml, the single PR/merge_group run for the whole
- # desktop suite; merge_group gating and PR concurrency live there.
- workflow_call:
- secrets:
- GH_APP_POSTHOG_PATHS_FILTER_APP_ID:
- required: false
- GH_APP_POSTHOG_PATHS_FILTER_PRIVATE_KEY:
- required: false
- TRUNK_API_TOKEN:
- required: false
- VR_API_TOKEN:
- required: false
- push:
- branches: [master]
- paths:
- - 'products/desktop/**'
- - '.github/workflows/desktop-storybook.yml'
-
-concurrency:
- group: desktop-storybook-${{ github.head_ref || github.ref }}
- cancel-in-progress: ${{ github.event_name == 'pull_request' }}
-
-jobs:
- changes:
- if: github.event_name == 'pull_request'
- runs-on: ubuntu-latest
- timeout-minutes: 5
- permissions:
- pull-requests: read
- outputs:
- code: ${{ steps.filter.outputs.code }}
- baseline_only_push: ${{ steps.baseline_push.outputs.result }}
- steps:
- # Own rate-limit bucket; the shared GITHUB_TOKEN goes hot at merge peaks.
- - uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
- id: app-token
- # forks can't read org secrets, so fall back to github.token
- if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
- with:
- client-id: ${{ secrets.GH_APP_POSTHOG_PATHS_FILTER_APP_ID }}
- private-key: ${{ secrets.GH_APP_POSTHOG_PATHS_FILTER_PRIVATE_KEY }}
-
- - name: Detect relevant changes
- id: filter
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
- with:
- token: ${{ steps.app-token.outputs.token || github.token }}
- predicate-quantifier: every
- filters: |
- # Anything that can change a rendered story. The baseline manifest
- # is excluded, but note paths-filter diffs the whole PR against
- # its base, so once a PR has code changes this filter stays true
- # for every later push — the baseline_push step below is what
- # skips the VR backend's own approval commits.
- code:
- - "{products/desktop/apps/code/**,products/desktop/packages/**,products/desktop/pnpm-lock.yaml,.github/workflows/desktop-storybook.yml}"
- - "!products/desktop/apps/code/snapshots.yml"
- - "!products/desktop/**/*.md"
-
- # Visual Review commits the approved baseline back to the PR branch as
- # a bot; re-running the suite for that push is pure waste (only the
- # manifest changed). Compare the push delta (before...after), not the
- # PR diff, so it only matches the bot's own baseline commit.
- - name: Detect Visual Review baseline-only push
- id: baseline_push
- if: github.event_name == 'pull_request' && github.event.action == 'synchronize'
- env:
- GH_TOKEN: ${{ github.token }}
- REPO: ${{ github.repository }}
- ACTOR: ${{ github.actor }}
- BEFORE: ${{ github.event.before }}
- AFTER: ${{ github.event.after }}
- run: |
- set -euo pipefail
- result=false
- case "$ACTOR" in
- *'[bot]' | posthog-bot) is_bot=true ;;
- *) is_bot=false ;;
- esac
- zero=0000000000000000000000000000000000000000
- if [ "$is_bot" = true ] && [ -n "$BEFORE" ] && [ "$BEFORE" != "$zero" ] && [ -n "$AFTER" ]; then
- # compare uses merge-base(before, after), which for an appended
- # commit is exactly the push delta; a force-push/rebase widens it
- # and won't match.
- files=$(gh api "repos/${REPO}/compare/${BEFORE}...${AFTER}" --jq '.files[].filename' || true)
- if [ -n "$files" ] && ! grep -qv '^products/desktop/apps/code/snapshots\.yml$' <<<"$files"; then
- result=true
- fi
- fi
- echo "result=$result" >>"$GITHUB_OUTPUT"
- echo "Visual Review baseline-only push: $result"
-
- visual-regression:
- needs: changes
- # Fail closed: if change detection failed (or this is a master push, where
- # `changes` is skipped), run instead of skipping — unless the push was
- # just the VR bot committing an approved baseline. The desktop-skip-vr
- # label force-skips it while the import baseline is bound to PostHog/code.
- if: >-
- ${{ !cancelled() && github.event_name != 'merge_group' &&
- (needs.changes.result != 'success' || needs.changes.outputs.code == 'true') &&
- needs.changes.outputs.baseline_only_push != 'true' &&
- !contains(github.event.pull_request.labels.*.name, 'desktop-skip-vr') }}
- runs-on: ubuntu-latest
- timeout-minutes: 30
- permissions:
- contents: read
- defaults:
- run:
- working-directory: products/desktop
- steps:
- - name: Checkout
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- with:
- persist-credentials: false
-
- - name: Setup pnpm
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
- with:
- package_json_file: products/desktop/package.json
-
- - name: Setup Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- with:
- node-version: 22
-
- - name: Get pnpm store path
- id: pnpm-store
- run: echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
-
- # Explicit restore/save instead of setup-node's `cache: pnpm`: that
- # auto-saves on every run (PRs included, ungatable), which the workflow
- # lint forbids. Saves are gated to master pushes.
- - name: Restore pnpm store
- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
- with:
- path: ${{ steps.pnpm-store.outputs.path }}
- key: desktop-pnpm-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}
- restore-keys: desktop-pnpm-${{ runner.os }}-
-
- - name: Restore Playwright browsers cache
- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
- id: playwright-cache
- with:
- path: ~/.cache/ms-playwright
- key: playwright-chromium-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}
- restore-keys: |
- playwright-chromium-${{ runner.os }}-
-
- # Only dependency builds are cached, the storybook build itself always runs.
- - name: Restore turbo cache
- uses: ./.github/actions/desktop-restore-turbo-cache
-
- - name: Install dependencies
- run: pnpm install --frozen-lockfile
- env:
- # Storybook never launches the packaged app, so the Electron-ABI rebuild is unused.
- SKIP_ELECTRON_REBUILD: '1'
-
- - name: Install Playwright Chromium
- if: steps.playwright-cache.outputs.cache-hit != 'true'
- working-directory: products/desktop/apps/code
- run: pnpm exec playwright install --with-deps chromium
-
- - name: Install Playwright system dependencies
- # The cache restores browser binaries but not the OS packages they need.
- if: steps.playwright-cache.outputs.cache-hit == 'true'
- working-directory: products/desktop/apps/code
- run: pnpm exec playwright install-deps chromium
-
- - name: Build workspace packages
- run: pnpm run build:deps
-
- - name: Build Storybook
- working-directory: products/desktop/apps/code
- run: pnpm build-storybook
-
- - name: Serve Storybook
- working-directory: products/desktop/apps/code
- run: |
- pnpm exec http-server storybook-static --port 6006 --silent &
- pnpm exec wait-on http://127.0.0.1:6006/iframe.html --timeout 30000
-
- - name: Capture story screenshots
- working-directory: products/desktop/apps/code
- run: |
- rm -rf .storybook/__snapshots__
- pnpm test:visual:ci:update
-
- # The vr CLI lives in this repository; check out master's copy the same
- # way the pre-import workflow pulled it cross-repo, so the CLI version
- # tracks master rather than the PR branch.
- - name: Checkout Visual Review CLI
- if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push'
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- with:
- repository: PostHog/posthog
- path: vr-cli
- persist-credentials: false
- sparse-checkout: |
- products/visual_review/cli
- products/visual_review/frontend/generated/api.schemas.ts
- sparse-checkout-cone-mode: false
-
- - name: Install Visual Review CLI
- if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push'
- working-directory: vr-cli/products/visual_review/cli
- run: npm ci && npm run build && npm link
-
- - name: Submit snapshots to Visual Review
- # Fork PRs can't read the token; their captures still ran above, so a
- # broken story fails the job either way.
- if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push'
- # On master pushes the run is tracking-only ("observe"), but vr submit
- # still exits 1 when it detects changes; keep master green regardless.
- continue-on-error: ${{ github.event_name == 'push' }}
- env:
- VR_TOKEN: ${{ secrets.VR_API_TOKEN }}
- VR_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }}
- VR_COMMIT: ${{ github.event.pull_request.head.sha || github.sha }}
- VR_PR: ${{ github.event.pull_request.number }}
- VR_PURPOSE: ${{ github.event_name == 'push' && 'observe' || 'review' }}
- # Lets the VR web UI re-trigger this job via the Actions API.
- JOB_CHECK_RUN_ID: ${{ job.check_run_id }}
- run: |
- if [ -z "$VR_TOKEN" ]; then
- echo "::notice::VR_API_TOKEN secret not set - skipping Visual Review submission"
- exit 0
- fi
- vr submit \
- --type storybook \
- --dir apps/code/.storybook/__snapshots__/ \
- --baseline apps/code/snapshots.yml \
- --branch "$VR_BRANCH" \
- --commit "$VR_COMMIT" \
- ${VR_PR:+--pr "$VR_PR"} \
- --purpose "$VR_PURPOSE" \
- --token "$VR_TOKEN"
-
- - name: Upload failure screenshots
- if: failure()
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v6.0.0
- with:
- name: storybook-visual-failures
- path: |
- products/desktop/apps/code/.storybook/__snapshots__/__diff_output__/
- products/desktop/apps/code/.storybook/__snapshots__/__failures__/
- if-no-files-found: ignore
- retention-days: 7
-
- - name: Upload test results to Trunk
- # Run even when tests fail so flaky/failed results are still reported,
- # but never let an upload problem fail the job.
- if: ${{ !cancelled() }}
- continue-on-error: true
- uses: trunk-io/analytics-uploader@385f1ccdf345b4532dc4b6c665dd432b702b8e28 # v2.1.2
- with:
- junit-paths: 'products/desktop/apps/code/junit.xml'
- org-slug: posthog-inc
- token: ${{ secrets.TRUNK_API_TOKEN }}
-
- # Collation job for the required status check; must be registered as the
- # required check instead of the individual jobs.
- desktop-storybook-pass:
- needs: [changes, visual-regression]
- name: Desktop Storybook Pass
- runs-on: ubuntu-latest
- timeout-minutes: 5
- if: always()
- steps:
- - name: Check results
- run: |
- if [[ "${{ needs.changes.result }}" != "success" && "${{ needs.changes.result }}" != "skipped" ]]; then
- echo "Change detection did not succeed (result: ${{ needs.changes.result }})."
- exit 1
- fi
- if [[ "${{ needs.visual-regression.result }}" != "success" && "${{ needs.visual-regression.result }}" != "skipped" ]]; then
- echo "Desktop storybook (visual-regression) did not succeed (result: ${{ needs.visual-regression.result }})."
- exit 1
- fi
- echo "Desktop storybook passed or was skipped."
diff --git a/.github/workflows/desktop-warm-caches.yml b/.github/workflows/desktop-warm-caches.yml
index fec9cd94f7cf..2623af73c530 100644
--- a/.github/workflows/desktop-warm-caches.yml
+++ b/.github/workflows/desktop-warm-caches.yml
@@ -61,14 +61,6 @@ jobs:
path: products/desktop/.turbo/cache
key: desktop-turbo-${{ github.sha }}
- # Same key as desktop-storybook.yml's visual-regression job.
- - name: Cache Playwright browsers
- id: playwright-cache
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
- with:
- path: ~/.cache/ms-playwright
- key: playwright-chromium-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}
-
- name: Install dependencies
run: pnpm install --frozen-lockfile
env:
@@ -79,11 +71,6 @@ jobs:
pnpm run build:deps
pnpm run typecheck
- - name: Install Playwright Chromium
- if: steps.playwright-cache.outputs.cache-hit != 'true'
- working-directory: products/desktop/apps/code
- run: pnpm exec playwright install chromium
-
macos:
runs-on: macos-latest
timeout-minutes: 30
diff --git a/products/desktop/MIGRATION.md b/products/desktop/MIGRATION.md
index da74f3e9256c..d60ca614cb56 100644
--- a/products/desktop/MIGRATION.md
+++ b/products/desktop/MIGRATION.md
@@ -109,14 +109,14 @@ separate project.
| Source (.github/workflows/) | Port | Notes beyond the standard transforms |
| --- | --- | --- |
-| _(none — monorepo-native)_ | desktop-ci.yml | single `pull_request:`/`merge_group:` dispatch that calls the five gating workflows; see transform rule 7 |
+| _(none — monorepo-native)_ | desktop-ci.yml | single `pull_request:`/`merge_group:` dispatch that calls the four gating workflows; see transform rule 7 |
| build.yml | desktop-build.yml | gating: `workflow_call` child of desktop-ci.yml + `Desktop Build Pass` |
| warm-caches.yml | desktop-warm-caches.yml | seeds every cache the restore-only desktop PR workflows use; pnpm-store caching is explicit (`desktop-pnpm-*` keys) instead of setup-node auto-cache so PR restores share the namespace |
| agent-release-verify.yml | desktop-agent-release-verify.yml | restore-only pnpm store |
| typecheck.yml | desktop-typecheck.yml | gating: `workflow_call` child of desktop-ci.yml + `Desktop Typecheck Pass` |
| code-quality.yml | desktop-quality.yml | gating: `workflow_call` child of desktop-ci.yml + `Desktop Quality Pass` |
| test.yml | desktop-test.yml | gating: `workflow_call` child of desktop-ci.yml + `Desktop Tests Pass`; live-gateway e2e kept with `POSTHOG_CODE_E2E_*` org secrets |
-| code-storybook.yml | desktop-storybook.yml | gating: `workflow_call` child of desktop-ci.yml + `Desktop Storybook Pass`; VR CLI checkout still pulls `PostHog/posthog` master (same repo now, but master's CLI, not the PR branch's, is the intended version) |
+| code-storybook.yml | _(not ported)_ | removed post-merge: the code-signed VR baseline flagged every story as new from this repo (see the Visual Review baseline note). Do not re-port on resync unless VR is re-registered against posthog/posthog first |
| code-build-test.yml | desktop-build-test.yml | `workflow_dispatch` only; the source's `refactor/electron-vite` push trigger is a code-repo branch and is dropped |
| code-release.yml | desktop-release.yml | tags `desktop-v*`; legacy publishing to PostHog/code releases kept (see below) |
| code-tag.yml | desktop-tag.yml | computes and pushes `desktop-v*` tags; quiet-period check and patch count scoped `-- products/desktop/` (monorepo master always has fresh commits; unscoped counts would be meaningless) |
@@ -161,12 +161,12 @@ ports from source using these rules.
every monorepo file, so each filter gains a positive `products/desktop/**` scope and its excludes
are reanchored under `products/desktop/` (`predicate-quantifier: every` retained). Non-gating
workflows get top-level `paths: ["products/desktop/**", <own workflow file>]` filters instead.
-7. **Merge queue**: gating workflows (build, typecheck, quality, test, storybook) become
+7. **Merge queue**: gating workflows (build, typecheck, quality, test) become
`workflow_call` reusable workflows with no triggers of their own beyond the `push:` master
arm, and end in an always-running `Desktop <X> Pass` collation job. They are dispatched by
`desktop-ci.yml` (monorepo-native, no source counterpart), which owns the `pull_request:`
and `merge_group:` triggers, the PR concurrency group, and the secrets each child declares.
- That keeps the whole suite to one workflow run per PR event instead of five, against
+ That keeps the whole suite to one workflow run per PR event instead of four, against
GitHub's 500-runs/10s dispatch cap.
Two consequences worth knowing before registering required checks:
- The check context is `<caller job id> / Desktop <X> Pass` (for example
@@ -251,8 +251,8 @@ the PR's side; that file is the one to follow on merge day.
Connect (mobile). Until they exist, the corresponding workflows red on this PR — that is
the dry run telling us which are missing.
- **Required checks**: register `Desktop Build Pass`, `Desktop Typecheck Pass`,
- `Desktop Quality Pass`, `Desktop Tests Pass` (and optionally `Desktop Storybook Pass`)
- as required status checks once this merges.
+ `Desktop Quality Pass` and `Desktop Tests Pass` as required status checks once this
+ merges.
- **Base tag**: create `desktop-v<X>.<Y>.0`, or the tag workflow has no base to count from.
Use the next unused minor above the code repo's latest release, not the minor it is
currently on: the patch counter restarts from the new tag, so reusing that minor emits a
@@ -298,8 +298,8 @@ the PR's side; that file is the one to follow on merge day.
PostHog/code VR registration, so submitting from this repo flags every story as new and
the job reds. In-app approval can't fix it (the VR bot can't commit a posthog-signed
baseline onto the PR branch, and each resync re-imports the file from code and
- overwrites it). It resolves at real cutover when the folder is on master and VR points
- at the posthog repo. Until then the `desktop-skip-vr` PR label force-skips the
- `visual-regression` job (its `if:` checks the label); the `Desktop Storybook Pass`
- aggregate treats a skipped job as success. This label gate is an intentional drift:
- reapply it to `desktop-storybook.yml` on every resync and keep the label on the PR.
+ overwrites it). After the merge the storybook CI was removed outright rather than kept
+ behind the `desktop-skip-vr` label gate: `desktop-storybook.yml`, its `storybook` job in
+ `desktop-ci.yml` and the Playwright cache warming in `desktop-warm-caches.yml` are gone.
+ Do not re-port `code-storybook.yml` on a resync; `POST-MIGRATION.md` step 6 covers how
+ to bring it back once VR is re-registered against posthog/posthog.
diff --git a/products/desktop/POST-MIGRATION.md b/products/desktop/POST-MIGRATION.md
index dc82e92571a3..6b08ff8ca677 100644
--- a/products/desktop/POST-MIGRATION.md
+++ b/products/desktop/POST-MIGRATION.md
@@ -105,9 +105,9 @@ the same minor and race to publish to the same release feed.
## 4. Expect the first master-push CI wave
-Seven desktop workflows trigger on push to `master`: `desktop-warm-caches`,
-`desktop-build`, `desktop-typecheck`, `desktop-quality`, `desktop-test`,
-`desktop-storybook` and `desktop-agent-tag`.
+Six desktop workflows trigger on push to `master`: `desktop-warm-caches`,
+`desktop-build`, `desktop-typecheck`, `desktop-quality`, `desktop-test`
+and `desktop-agent-tag`.
`desktop-warm-caches` seeds every cache the restore-only PR workflows depend on. Until it
finishes, desktop PRs run without a warm pnpm store and are slow. That is expected, not a
@@ -121,15 +121,16 @@ These run and pass today, but nothing enforces them:
- `Desktop Typecheck Pass`
- `Desktop Quality Pass`
- `Desktop Tests Pass`
-- `Desktop Storybook Pass` (optional, see step 6)
-## 6. Retire the `desktop-skip-vr` label
+## 6. Storybook CI (removed post-merge)
-The committed `apps/code/snapshots.yml` is signed for the PostHog/code Visual Review
-registration, so submitting from this repo flags every story as new. The label force-skips
-the `visual-regression` job until the folder is on `master` and VR points at posthog. Once
-that holds, drop the label and the `if:` gate in `desktop-storybook.yml`, and let the VR
-bot commit a posthog-signed baseline.
+`desktop-storybook.yml` was removed after the merge. The committed `apps/code/snapshots.yml`
+is signed for the PostHog/code Visual Review registration, so every submission from this repo
+flagged all stories as new and the job could not go green without a full VR re-registration.
+The `desktop-skip-vr` label is obsolete and can be deleted. To bring visual regression back,
+re-register VR against posthog/posthog first, then restore the workflow (and its `storybook`
+job in `desktop-ci.yml` and the Playwright cache warming in `desktop-warm-caches.yml`) from
+git history and let the VR bot commit a posthog-signed baseline.
## 7. Re-register the npm trusted publisher
diff --git a/products/desktop/docs/testing.md b/products/desktop/docs/testing.md
index b178a3714a19..314be76f8bf7 100644
--- a/products/desktop/docs/testing.md
+++ b/products/desktop/docs/testing.md
@@ -193,24 +193,9 @@ This drives whatever profile is signed into `~/.posthog-code`; do not mutate pro
Every story is screenshot in Chromium in both themes (`<story-id>--dark.png` and `--light.png`) using `@storybook/test-runner`, following posthog/posthog's setup. The harness lives in `apps/code/.storybook/test-runner.ts`.
-PNGs are never committed. The `Storybook visual regression` workflow captures every story and submits the images to the [PostHog Visual Review product](https://us.posthog.com/project/2/visual_review) via the `vr` CLI (built from posthog/posthog). VR diffs against the signed hash manifest committed at `apps/code/snapshots.yml`, posts the result on the PR, and — once a human approves the changes in the VR UI — commits the updated manifest back to the PR branch. The next run then matches and goes green.
+PNGs are never committed. CI for this suite was removed after the monorepo import: the committed `apps/code/snapshots.yml` baseline is signed for the PostHog/code Visual Review registration, so every submission from posthog/posthog flagged all stories as new. `products/desktop/POST-MIGRATION.md` step 6 covers restoring it once VR is re-registered against posthog/posthog. The local capture workflow below still works.
-One-time setup (not yet done — the vr step no-ops until it is):
-
-1. Register `PostHog/code` as a repo in Visual Review settings (project 2 on us.posthog.com); this mints the repo UUID.
-2. Create a PostHog personal API key with the `visual_review` scope and store it as the `VR_API_TOKEN` Actions secret on this repo.
-3. Commit the seeded baseline at `apps/code/snapshots.yml`:
-
- ```yaml
- version: 1
- config:
- api: https://us.posthog.com
- team: "2"
- repo: <uuid-from-step-1>
- snapshots: {}
- ```
-
-Run locally to debug a story before pushing (local PNGs are gitignored):
+Run locally to debug a story (local PNGs are gitignored):
```bash
pnpm --filter code build-storybook