Skip to content

Commit 662e92f

Browse files
committed
fix(webapp): pin the dismissed prompt in the gallery and drop the dead expand field
1 parent 1b6dfb1 commit 662e92f

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

apps/webapp/app/routes/storybook.agent-ui/manifest.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ export type GallerySection = {
6666
sectionId: string;
6767
title: string;
6868
group: GalleryGroup;
69-
/** A state that only exists after a click. */
70-
expandText?: string;
7169
};
7270

7371
export const GALLERY_GROUPS: { group: GalleryGroup; page: GalleryPageId; label: string }[] = [
@@ -226,13 +224,11 @@ export const MANIFEST: GallerySection[] = [
226224
sectionId: "investigation-card-concluded-code-grounded",
227225
title: "Concluded, code-grounded — source citation and Show code",
228226
group: "investigation",
229-
expandText: "How I worked this out",
230227
},
231228
{
232229
sectionId: "investigation-card-concluded-not-code-grounded",
233230
title: "Concluded, not code-grounded — no source citation, no Show code",
234231
group: "investigation",
235-
expandText: "How I worked this out",
236232
},
237233
{
238234
sectionId: "investigation-card-inconclusive",

apps/webapp/app/routes/storybook.agent-ui/route.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { DashboardAgentMessages } from "~/components/dashboard-agent/DashboardAg
1010
import { DashboardAgentSuggestedPrompts } from "~/components/dashboard-agent/DashboardAgentSuggestedPrompts";
1111
import { AgentPanelColumn } from "~/components/dashboard-agent/panel-layout";
1212
import { liveProgress } from "~/components/dashboard-agent/progress-line";
13-
import { resolveSuggestedPrompts } from "~/components/dashboard-agent/suggested-prompts";
1413
import type { WakeWatch } from "~/components/dashboard-agent/WakeBanner";
1514
import { WatchChips, type WatchChip } from "~/components/dashboard-agent/WatchChips";
1615
import { cn } from "~/utils/cn";
@@ -175,9 +174,9 @@ const promotedPrompt: SuggestedPrompt = {
175174
source: "promoted",
176175
};
177176

178-
const dismissedPromptIds = resolveSuggestedPrompts(demoPageContexts.failedRun)
179-
.slice(0, 1)
180-
.map((prompt) => prompt.id);
177+
// Pinned, not resolved: the fixture's signal has a fixed timestamp, so a live resolve would
178+
// dismiss a different chip once that timestamp aged out of the freshness window.
179+
const dismissedPromptIds = demoFixtures.demoDismissedPromptIds;
181180

182181
function toWatchChip(watch: (typeof demoWatches.row)[number]): WatchChip {
183182
return {

0 commit comments

Comments
 (0)