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:
@@ -1,4 +1,4 @@
|
||||
import { expect, test, type APIRequestContext, type Page } from '@playwright/test';
|
||||
import { expect, test, type Page } from '@playwright/test';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { createRequire } from 'node:module';
|
||||
|
||||
@@ -27,10 +27,7 @@ const ROUTES = [
|
||||
'/memory?tab=trust',
|
||||
'/memory?tab=memories',
|
||||
'/memory?tab=timeline',
|
||||
'/memory?tab=graph',
|
||||
'/memory?tab=harvest',
|
||||
'/memory?tab=weaver',
|
||||
'/memory?tab=wiki',
|
||||
'/workspaces',
|
||||
'/workspaces/default-workspace/chat',
|
||||
'/workspaces/default-workspace/tasks',
|
||||
@@ -38,7 +35,6 @@ const ROUTES = [
|
||||
'/automations',
|
||||
'/skills',
|
||||
'/room',
|
||||
'/waggle-dance',
|
||||
'/launcher',
|
||||
'/connectors',
|
||||
'/mcps',
|
||||
@@ -46,7 +42,6 @@ const ROUTES = [
|
||||
'/files',
|
||||
'/approvals',
|
||||
'/artifacts',
|
||||
'/team',
|
||||
'/benchmarks',
|
||||
'/platform',
|
||||
] as const;
|
||||
@@ -107,40 +102,25 @@ function formatViolations(violations: AxeViolation[]) {
|
||||
}));
|
||||
}
|
||||
|
||||
async function seedWaggleDanceSignal(request: APIRequestContext) {
|
||||
const response = await request.post('/api/waggle/signals', {
|
||||
data: {
|
||||
type: 'discovery',
|
||||
workspaceId: 'default-workspace',
|
||||
content: 'Accessible signal timestamp',
|
||||
metadata: { senderId: 'runtime-a11y' },
|
||||
},
|
||||
});
|
||||
expect(response.status()).toBe(201);
|
||||
}
|
||||
|
||||
test.describe('Runtime accessibility smoke', () => {
|
||||
test('milestone toast and signal badges have no mobile accessibility violations', async ({ page, request }) => {
|
||||
test('milestone toast has no mobile accessibility violations', async ({ page }) => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
await seedWaggleDanceSignal(request);
|
||||
await page.addInitScript(() => {
|
||||
window.localStorage.setItem('waggle:session-count', '49');
|
||||
window.localStorage.setItem('waggle:dock-nudge-dismissed', '[10]');
|
||||
});
|
||||
|
||||
await gotoApp(page, '/waggle-dance');
|
||||
await gotoApp(page, '/agents');
|
||||
await expect(page.getByText('50 sessions in — nicely done', { exact: true })).toBeVisible();
|
||||
await expect(page.getByRole('button', { name: 'Close notification' })).toHaveCSS('opacity', '1');
|
||||
await expect(page.getByTestId('waggle-unacknowledged-count')).toBeVisible();
|
||||
|
||||
expect(formatViolations(await runAxe(page))).toEqual([]);
|
||||
});
|
||||
|
||||
for (const viewport of VIEWPORTS) {
|
||||
test(`axe has no violations across core routes (${viewport.name})`, async ({ page, request }) => {
|
||||
test(`axe has no violations across core routes (${viewport.name})`, async ({ page }) => {
|
||||
test.setTimeout(150_000);
|
||||
await page.setViewportSize({ width: viewport.width, height: viewport.height });
|
||||
await seedWaggleDanceSignal(request);
|
||||
|
||||
const findings: Array<{ route: string; violations: ReturnType<typeof formatViolations> }> = [];
|
||||
for (const route of ROUTES) {
|
||||
|
||||
Reference in New Issue
Block a user