Skip to content

Commit 95fa1b6

Browse files
committed
chore(webapp): drop the agent-examples review seeder
1 parent 75aba7f commit 95fa1b6

9 files changed

Lines changed: 7 additions & 4164 deletions

apps/webapp/app/components/dashboard-agent/demo/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* components with no transport, no LLM and no writes, so every v1 state can be
66
* reviewed as UI. The state gallery (`/storybook/agent-ui`) is the consumer.
77
*
8-
* The panel itself never renders any of this: its example conversations are real
9-
* stored chats, seeded by `pnpm --filter webapp run db:seed:agent-examples`.
8+
* The panel itself never renders any of this: its conversations are real stored
9+
* chats.
1010
*
1111
* This module must stay free of server imports — the isolation test in
1212
* `demo.test.ts` asserts that.

apps/webapp/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"db:seed": "tsx seed.ts",
2222
"db:seed:ai-spans": "tsx seed-ai-spans.mts",
2323
"db:seed:queue-metrics": "tsx seed-queue-metrics.mts",
24-
"db:seed:agent-examples": "tsx seed-agent-examples.mts",
2524
"scenarios:watch": "tsx seed-watch-scenarios.mts",
2625
"upload:sourcemaps": "bash ./upload-sourcemaps.sh",
2726
"test": "vitest --no-file-parallelism",

apps/webapp/scripts/agent-ui-screenshots.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
* imports so the two can never disagree about what exists;
99
* b) every conversation in the panel's history, opened in the real panel on a
1010
* real env page, so the review also sees the components in their actual
11-
* container. Point it at the seeded `agent-examples` project
12-
* (`pnpm --filter webapp run db:seed:agent-examples`) for the examples.
11+
* container. Point it at a project whose org already has chats.
1312
*
1413
* Both phases run in dark and light. The app pins `data-theme="dark"` on
1514
* `<html>` in `root.tsx` and has no theme switch yet, so light is produced by
@@ -282,9 +281,8 @@ async function shootChats(page: Page, theme: string) {
282281

283282
if (rows.length === 0) {
284283
throw new Error(
285-
"No conversations in the panel history. Seed the examples with " +
286-
"`pnpm --filter webapp run db:seed:agent-examples` and point " +
287-
"SCREENSHOT_ENV_PATH at that project."
284+
"No conversations in the panel history. Point SCREENSHOT_ENV_PATH at a " +
285+
"project whose org has chats, or talk to the agent there first."
288286
);
289287
}
290288
log(` ${rows.length} conversations`);

0 commit comments

Comments
 (0)