feat(web): ask before sending analytics, drop team screens, hide v1-absent memory features (P1.3a)
- Analytics are opt-in (decision Q7, ADR-0006). PostHog does not start or capture anything until the user clicks Allow in a first-run dialog that says what is sent. Escape or closing stores nothing and asks again. The existing Privacy & Telemetry toggle in Settings withdraws consent at once. Builds without VITE_POSTHOG_KEY show no dialog and send nothing. - Remove the remaining upsell copy: the /team page with its per-seat price, Stripe and Teams wording in the erase-data dialog, Teams/Enterprise hints. - Remove team screens (decision Q3): Waggle Dance, team presence in chat, team storage and sharing in workspace creation, storage and files. - Hide memory features that are not in v1 (decision Q2) behind one map in lib/memory-features.ts: the knowledge graph, import history, wiki, agent memory hooks and Room launches. The map is the seam P1.5 fills from the memory store's capabilities. - Say Windows, macOS and Linux instead of "Linux soon". - Update the e2e specs for the removed and hidden screens. Also logs UF-029: the Settings "Import Data" button has no handler.
This commit is contained in:
@@ -76,7 +76,9 @@ test.describe('Launcher rendered states', () => {
|
||||
await expect(page.getByText(/sidecar may be offline/i)).not.toBeVisible();
|
||||
});
|
||||
|
||||
test('long hook stderr is summarized instead of flooding the rendered panel', async ({ page }) => {
|
||||
// Agent memory hooks are hidden in v1 by the memory feature map (ADR-0002,
|
||||
// apps/web/src/lib/memory-features.ts). Re-enable with the agentHooks feature.
|
||||
test.skip('long hook stderr is summarized instead of flooding the rendered panel', async ({ page }) => {
|
||||
await mockProcesses(page);
|
||||
await page.route('**/api/tools/detect', route => route.fulfill({
|
||||
status: 200,
|
||||
@@ -134,7 +136,9 @@ test.describe('Launcher rendered states', () => {
|
||||
await expect(page.getByText('Recovery')).toBeVisible();
|
||||
});
|
||||
|
||||
test('standard hook install output renders changed file, pointer, backup, and recovery labels', async ({ page }) => {
|
||||
// Agent memory hooks are hidden in v1 by the memory feature map (ADR-0002,
|
||||
// apps/web/src/lib/memory-features.ts). Re-enable with the agentHooks feature.
|
||||
test.skip('standard hook install output renders changed file, pointer, backup, and recovery labels', async ({ page }) => {
|
||||
await mockProcesses(page);
|
||||
await page.route('**/api/tools/detect', route => route.fulfill({
|
||||
status: 200,
|
||||
@@ -192,7 +196,9 @@ test.describe('Launcher rendered states', () => {
|
||||
await expect(page.getByText(/hive-mind\/codex-hooks: install/i)).not.toBeVisible();
|
||||
});
|
||||
|
||||
test('all hook-capable tools render install, verify, and uninstall state transitions', async ({ page }) => {
|
||||
// Agent memory hooks are hidden in v1 by the memory feature map (ADR-0002,
|
||||
// apps/web/src/lib/memory-features.ts). Re-enable with the agentHooks feature.
|
||||
test.skip('all hook-capable tools render install, verify, and uninstall state transitions', async ({ page }) => {
|
||||
const hookState = new Map(HOOK_RENDER_CASES.map(tool => [tool.id, false]));
|
||||
|
||||
await mockProcesses(page);
|
||||
@@ -312,8 +318,9 @@ test.describe('Launcher rendered states', () => {
|
||||
await expect(page.getByText('Foo CLI', { exact: true })).toBeVisible();
|
||||
await expect(page.getByText(/v2\.1\.0/i)).toBeVisible();
|
||||
await expect(page.getByText(/Sent to:/i)).not.toBeVisible();
|
||||
await expect(page.getByText(/Launch only/i)).toBeVisible();
|
||||
await expect(page.getByText(/Hook management is not supported for this tool yet/i)).toBeVisible();
|
||||
// Hooks are hidden in v1 (ADR-0002), so there is no "launch only" contrast.
|
||||
await expect(page.getByText(/Launch only/i)).not.toBeVisible();
|
||||
await expect(page.getByText(/Hook management is not supported for this tool yet/i)).not.toBeVisible();
|
||||
await expect(page.getByRole('button', { name: /^Launch$/ })).toBeVisible();
|
||||
await expect(page.getByRole('button', { name: /install hooks/i })).not.toBeVisible();
|
||||
await expect(page.getByRole('button', { name: /^Verify$/ })).not.toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user