Skip to content

Commit 4eb44ca

Browse files
authored
chore(app): Rename PostHog Code to PostHog (#3557)
1 parent a4bb8b3 commit 4eb44ca

129 files changed

Lines changed: 355 additions & 335 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/skills/storybook-stories/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
name: storybook-stories
3-
description: Write Storybook stories for PostHog Code UI components. Covers the provider stack stories run inside, the key gotcha that tRPC/useHostTRPC queries never resolve in Storybook (so data-fetching components render empty), and the pure-presentational split that makes a component storyable. Use when adding or fixing a *.stories.tsx file under packages/ui.
3+
description: Write Storybook stories for PostHog UI components. Covers the provider stack stories run inside, the key gotcha that tRPC/useHostTRPC queries never resolve in Storybook (so data-fetching components render empty), and the pure-presentational split that makes a component storyable. Use when adding or fixing a *.stories.tsx file under packages/ui.
44
---
55

6-
# Storybook stories in PostHog Code
6+
# Storybook stories in PostHog
77

88
Stories live next to components as `*.stories.tsx` and are collected by
99
`apps/code/.storybook/main.ts` (its glob includes

.claude/skills/test-electron-app/SKILL.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
name: test-electron-app
3-
description: Drive the real running PostHog Code Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, snapshot the accessibility tree to verify changes, click/type/navigate, and screenshot the actual desktop app only when explicitly asked. Use when asked to test, verify, dogfood, screenshot or interact with the running app. For regression specs use the Playwright E2E suite.
3+
description: Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, snapshot the accessibility tree to verify changes, click/type/navigate, and screenshot the actual desktop app only when explicitly asked. Use when asked to test, verify, dogfood, screenshot or interact with the running app. For regression specs use the Playwright E2E suite.
44
allowed-tools: Bash(agent-browser:*), Bash(npx agent-browser:*), Bash(pnpm app:cdp*)
55
---
66

7-
# Test the real PostHog Code Electron app
7+
# Test the real PostHog Electron app
88

99
Drive the actual running app over the Chrome DevTools Protocol with
1010
[agent-browser](https://github.com/vercel-labs/agent-browser). The dev app
@@ -186,7 +186,7 @@ When the user asked for a screenshot, they want to look at it, so close the loop
186186
default debugging port; if `connect` attaches to the wrong target, list and
187187
pick the PostHog window: `agent-browser tab` then `agent-browser tab --url "*"`.
188188
- **Multiple targets:** the app has a main renderer window (page title contains
189-
"PostHog Code") plus possible webviews/devtools. `agent-browser tab` lists them;
189+
"PostHog") plus possible webviews/devtools. `agent-browser tab` lists them;
190190
switch with `agent-browser tab <index>`.
191191
- **Never pass `--color-scheme dark`:** that global flag makes agent-browser apply
192192
device emulation that forces a 1280x720 viewport and renders this Electron window
@@ -201,7 +201,7 @@ When the user asked for a screenshot, they want to look at it, so close the loop
201201

202202
## Running alongside prod
203203

204-
PostHog Code orchestrates the agent, so the usual loop is: **prod** (the installed app) runs the agent, and the **dev** build (`pnpm dev`) is the system under test. They coexist by design (`apps/code/src/main/bootstrap.ts`): dev runs as `posthog-code-dev` with its own app name, userData and single-instance lock, so it never collides with prod.
204+
PostHog orchestrates the agent, so the usual loop is: **prod** (the installed app) runs the agent, and the **dev** build (`pnpm dev`) is the system under test. They coexist by design (`apps/code/src/main/bootstrap.ts`): dev runs as `posthog-code-dev` with its own app name, userData and single-instance lock, so it never collides with prod.
205205

206206
- **agent-browser always targets dev.** Only the dev build exposes CDP on `:9222`; prod has no debug port, so `connect 9222` can't accidentally drive prod.
207207
- **Separate auth/state.** The dev instance has its own `posthog-code-dev` profile; it is not signed in just because prod is. Sign into the dev window once; its state persists.
@@ -220,6 +220,6 @@ PostHog Code orchestrates the agent, so the usual loop is: **prod** (the install
220220
check the `pnpm dev:code` output. Note `pnpm dev` cannot run headlessly at all — its
221221
`phrocs` TUI needs a TTY; use `pnpm dev:code`.
222222
- **Snapshot is empty / wrong window:** you're on the wrong target. Run
223-
`agent-browser tab` and switch to the "PostHog Code" page.
223+
`agent-browser tab` and switch to the "PostHog" page.
224224
- **Can't type into an input:** try `agent-browser keyboard type "text"` (types at
225225
current focus) or `agent-browser keyboard inserttext "text"` to bypass key events.

.github/workflows/code-build-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ jobs:
114114
MATRIX_ARCH: ${{ matrix.arch }}
115115
run: |
116116
if [[ "$MATRIX_ARCH" == "arm64" ]]; then
117-
APP_BUNDLE="apps/code/out/mac-arm64/PostHog Code.app"
117+
APP_BUNDLE="apps/code/out/mac-arm64/PostHog.app"
118118
else
119-
APP_BUNDLE="apps/code/out/mac/PostHog Code.app"
119+
APP_BUNDLE="apps/code/out/mac/PostHog.app"
120120
fi
121121
RESOURCES="$APP_BUNDLE/Contents/Resources"
122122
UNPACKED="$RESOURCES/app.asar.unpacked/node_modules"

.github/workflows/code-discord-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release PostHog Code to Discord
1+
name: Release PostHog to Discord
22

33
on:
44
release:

.github/workflows/code-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release PostHog Code
1+
name: Release PostHog
22

33
on:
44
push:
@@ -170,9 +170,9 @@ jobs:
170170
MATRIX_ARCH: ${{ matrix.arch }}
171171
run: |
172172
if [[ "$MATRIX_ARCH" == "arm64" ]]; then
173-
APP_BUNDLE="apps/code/out/mac-arm64/PostHog Code.app"
173+
APP_BUNDLE="apps/code/out/mac-arm64/PostHog.app"
174174
else
175-
APP_BUNDLE="apps/code/out/mac/PostHog Code.app"
175+
APP_BUNDLE="apps/code/out/mac/PostHog.app"
176176
fi
177177
RESOURCES="$APP_BUNDLE/Contents/Resources"
178178
UNPACKED="$RESOURCES/app.asar.unpacked/node_modules"

.github/workflows/code-tag.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tag PostHog Code Release
1+
name: Tag PostHog Release
22

33
on:
44
schedule:
@@ -58,7 +58,7 @@ jobs:
5858
echo "$1 Skipping auto-release; the next scheduled release will pick this up."
5959
echo "authorized=false" >> "$GITHUB_OUTPUT"
6060
GH_TOKEN="$COMMENT_TOKEN" gh pr comment "$PR_NUMBER" --repo "$REPOSITORY" \
61-
--body "$1 Auto-release is limited to Team PostHog Code members, so this will ship with the next scheduled release instead." || true
61+
--body "$1 Auto-release is limited to members of the team-posthog-code GitHub team, so this will ship with the next scheduled release instead." || true
6262
}
6363
6464
LABELER=$(gh api "repos/${REPOSITORY}/issues/${PR_NUMBER}/events" --paginate \

.github/workflows/pr-build-installer.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,15 @@ jobs:
149149
echo ""
150150
echo "**[⬇️ Open this run and download the \`code-macos-arm64\` artifact](${RUN_URL}#artifacts)** (Apple Silicon / M-series)."
151151
echo ""
152-
echo "Unzip it to get the \`.dmg\`, open it, and drag **PostHog Code** into **Applications**."
152+
echo "Unzip it to get the \`.dmg\`, open it, and drag **PostHog** into **Applications**."
153153
echo ""
154-
echo "This build is **signed but not notarized**, so macOS quarantines it on download and Gatekeeper reports *\"PostHog Code is damaged and can't be opened\"*. That is the missing notarization, not a corrupt file — clear the quarantine flag once and it launches:"
154+
echo "This build is **signed but not notarized**, so macOS quarantines it on download and Gatekeeper reports *\"PostHog is damaged and can't be opened\"*. That is the missing notarization, not a corrupt file — clear the quarantine flag once and it launches:"
155155
echo ""
156156
echo "\`\`\`sh"
157-
echo "xattr -dr com.apple.quarantine \"/Applications/PostHog Code.app\""
157+
echo "xattr -dr com.apple.quarantine \"/Applications/PostHog.app\""
158158
echo "\`\`\`"
159159
echo ""
160-
echo "Then open **PostHog Code** normally. (Fully notarized, double-click-to-run builds ship only from the tagged release pipeline.)"
160+
echo "Then open **PostHog** normally. (Fully notarized, double-click-to-run builds ship only from the tagged release pipeline.)"
161161
echo ""
162162
echo "<sub>Built from ${GITHUB_SHA} · rebuilds on each push while the \`build-installer\` label is present. Downloading requires being signed in to GitHub with repo access.</sub>"
163163
} > comment-body.md

.vscode/launch.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5-
"name": "Debug PostHog Code (Main Process)",
5+
"name": "Debug PostHog (Main Process)",
66
"type": "node",
77
"request": "attach",
88
"port": 5858,
@@ -15,7 +15,7 @@
1515
"remoteRoot": "${workspaceFolder}"
1616
},
1717
{
18-
"name": "Debug PostHog Code (Renderer Process)",
18+
"name": "Debug PostHog (Renderer Process)",
1919
"type": "chrome",
2020
"request": "attach",
2121
"port": 9222,
@@ -32,10 +32,10 @@
3232
],
3333
"compounds": [
3434
{
35-
"name": "Debug PostHog Code (Main + Renderer)",
35+
"name": "Debug PostHog (Main + Renderer)",
3636
"configurations": [
37-
"Debug PostHog Code (Main Process)",
38-
"Debug PostHog Code (Renderer Process)"
37+
"Debug PostHog (Main Process)",
38+
"Debug PostHog (Renderer Process)"
3939
],
4040
"preLaunchTask": "start-dev-with-debug",
4141
"stopAll": true

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# PostHog Code Development Guide
1+
# PostHog Development Guide
22

33
`AGENTS.md` is the source of truth for architecture and development rules. `CLAUDE.md` is a symlink to this file. Edit this file only.
44

55
## Architecture
66

7-
PostHog Code uses a layered architecture. Business logic and UI live in shared `packages/*`. Each `apps/*` host boots those packages and binds host-specific implementations. `@posthog/core` and `@posthog/ui` must run unchanged on desktop, web, and mobile.
7+
PostHog uses a layered architecture. Business logic and UI live in shared `packages/*`. Each `apps/*` host boots those packages and binds host-specific implementations. `@posthog/core` and `@posthog/ui` must run unchanged on desktop, web, and mobile.
88

99
Principle: logic is portable; hosts are thin.
1010

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Contributing to PostHog Code
1+
# Contributing to PostHog
22

3-
We love contributions big and small. PostHog Code is the IDE for understanding how users interact with your product -- and we want the community involved in shaping it.
3+
We love contributions big and small. The PostHog desktop app is the IDE for understanding how users interact with your product -- and we want the community involved in shaping it.
44

55
## Getting started
66

0 commit comments

Comments
 (0)