Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

Commit a172a6d

Browse files
authored
Remove Home Tab, workstream grouping, and auto runs
Deletes the Home Tab feature end to end: the home feature dirs in core/ui, the workflow config canvas (including the auto-run action toggle), workstream schemas and presentation, the /code/home and /website/home routes, the sidebar Home item, the posthog-code-home-tab flag constants, the code_home/code_workflow API client methods, and the homeQuickAction task-creation plumbing. Generated-By: PostHog Code Task-Id: 98bddaa7-c8c3-4e21-aa95-9712d59f2404
1 parent d2afabe commit a172a6d

64 files changed

Lines changed: 8 additions & 6104 deletions

Some content is hidden

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

‎apps/code/src/shared/constants.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export const EXPERIMENT_SUGGESTIONS_FLAG =
44
export const SELF_DRIVING_SETUP_TASK_FLAG =
55
"posthog-code-self-driving-setup-task";
66
export const SYNC_CLOUD_TASKS_FLAG = "posthog-code-sync-cloud-tasks";
7-
export const HOME_TAB_FLAG = "posthog-code-home-tab";
87
export const DISCOVERY_RUN_FLAG = "posthog-code-discovery-run";
98
export const BRANCH_PREFIX = "posthog-code/";
109
export const DATA_DIR = ".posthog-code";

‎docs/home-tab.md‎

Lines changed: 0 additions & 547 deletions
This file was deleted.

‎docs/workflow-architecture.md‎

Lines changed: 0 additions & 116 deletions
This file was deleted.

‎packages/api-client/src/posthog-client.ts‎

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,6 @@ interface CloudRunOptions {
591591
runSource?: CloudRunSource;
592592
signalReportId?: string;
593593
initialPermissionMode?: ExecutionMode;
594-
homeQuickAction?: string;
595594
/**
596595
* Local url-based MCP servers to make available inside the sandbox. The
597596
* backend merges these into the agent server's `--mcpServers` at spawn.
@@ -689,9 +688,6 @@ function buildCloudRunRequestBody(
689688
if (options?.signalReportId) {
690689
body.signal_report_id = options.signalReportId;
691690
}
692-
if (options?.homeQuickAction) {
693-
body.home_quick_action = options.homeQuickAction;
694-
}
695691
if (options?.importedMcpServers?.length) {
696692
body.imported_mcp_servers = options.importedMcpServers;
697693
}
@@ -1839,82 +1835,6 @@ export class PostHogAPIClient {
18391835
return data as Schemas.Team;
18401836
}
18411837

1842-
async getHomeSnapshot(): Promise<unknown> {
1843-
const teamId = await this.getTeamId();
1844-
const urlPath = `/api/projects/${teamId}/code_home/`;
1845-
const response = await this.api.fetcher.fetch({
1846-
method: "get",
1847-
url: new URL(`${this.api.baseUrl}${urlPath}`),
1848-
path: urlPath,
1849-
});
1850-
if (!response.ok) {
1851-
throw new Error(`Failed to fetch home snapshot: ${response.status}`);
1852-
}
1853-
return response.json();
1854-
}
1855-
1856-
async refreshHomeSnapshot(): Promise<void> {
1857-
const teamId = await this.getTeamId();
1858-
const urlPath = `/api/projects/${teamId}/code_home/refresh/`;
1859-
const response = await this.api.fetcher.fetch({
1860-
method: "post",
1861-
url: new URL(`${this.api.baseUrl}${urlPath}`),
1862-
path: urlPath,
1863-
});
1864-
if (!response.ok) {
1865-
throw new Error(`Failed to request home refresh: ${response.status}`);
1866-
}
1867-
}
1868-
1869-
async getCodeWorkflow(): Promise<unknown> {
1870-
const teamId = await this.getTeamId();
1871-
const urlPath = `/api/projects/${teamId}/code_workflow/`;
1872-
const response = await this.api.fetcher.fetch({
1873-
method: "get",
1874-
url: new URL(`${this.api.baseUrl}${urlPath}`),
1875-
path: urlPath,
1876-
});
1877-
if (!response.ok) {
1878-
throw new Error(`Workflow request failed: ${response.status}`);
1879-
}
1880-
return response.json();
1881-
}
1882-
1883-
// 409/422 carry a structured save-result body the caller validates.
1884-
async saveCodeWorkflow(body: {
1885-
config: unknown;
1886-
expectedVersion: number;
1887-
}): Promise<unknown> {
1888-
const teamId = await this.getTeamId();
1889-
const urlPath = `/api/projects/${teamId}/code_workflow/save/`;
1890-
const response = await this.api.fetcher.fetch({
1891-
method: "post",
1892-
url: new URL(`${this.api.baseUrl}${urlPath}`),
1893-
path: urlPath,
1894-
overrides: {
1895-
body: JSON.stringify(body),
1896-
},
1897-
});
1898-
if (!response.ok && response.status !== 409 && response.status !== 422) {
1899-
throw new Error(`Workflow request failed: ${response.status}`);
1900-
}
1901-
return response.json();
1902-
}
1903-
1904-
async resetCodeWorkflow(): Promise<unknown> {
1905-
const teamId = await this.getTeamId();
1906-
const urlPath = `/api/projects/${teamId}/code_workflow/reset/`;
1907-
const response = await this.api.fetcher.fetch({
1908-
method: "post",
1909-
url: new URL(`${this.api.baseUrl}${urlPath}`),
1910-
path: urlPath,
1911-
});
1912-
if (!response.ok) {
1913-
throw new Error(`Workflow request failed: ${response.status}`);
1914-
}
1915-
return response.json();
1916-
}
1917-
19181838
async listSignalSourceConfigs(
19191839
projectId: number,
19201840
): Promise<SignalSourceConfig[]> {

‎packages/core/src/home/prSnapshot.ts‎

Lines changed: 0 additions & 38 deletions
This file was deleted.

‎packages/core/src/home/schemas.test.ts‎

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)