+
{subgroups
.flatMap((group) => group.results)
.map((result) => (
diff --git a/ui/storybook/stories/search.stories.tsx b/ui/storybook/stories/search.stories.tsx
index f3abd9642ab..0054fba2841 100644
--- a/ui/storybook/stories/search.stories.tsx
+++ b/ui/storybook/stories/search.stories.tsx
@@ -62,6 +62,7 @@ function buildIssueResult(overrides: IssueResultOverrides): CompanySearchResult
snippets: overrides.snippets ?? [],
issue: baseIssue,
updatedAt: baseIssue.updatedAt,
+ previewImageUrl: overrides.previewImageUrl ?? null,
};
}
@@ -112,6 +113,8 @@ const fixtureResults: CompanySearchResult[] = [
highlights: [{ start: 12, end: 16 }, { start: 26, end: 30 }],
},
],
+ previewImageUrl:
+ "data:image/svg+xml;utf8,",
}),
buildIssueResult({
id: "issue-3",
@@ -154,6 +157,7 @@ const fixtureAgents: CompanySearchResult[] = storybookAgents.slice(0, 1).map((ag
]
: [],
updatedAt: new Date().toISOString(),
+ previewImageUrl: null,
}));
const fixtureProjects: CompanySearchResult[] = storybookProjects.slice(0, 1).map((project) => ({
@@ -176,6 +180,7 @@ const fixtureProjects: CompanySearchResult[] = storybookProjects.slice(0, 1).map
]
: [],
updatedAt: new Date().toISOString(),
+ previewImageUrl: null,
}));
const fixtureResponse: CompanySearchResponse = {
@@ -261,8 +266,8 @@ function SearchPagePreview({
{state === "results" ? (
-
-
+
+
{response.results.length} results · sorted by relevance
@@ -273,9 +278,9 @@ function SearchPagePreview({
{fixtureResults.length}
}
- className="px-4 pt-2 pb-1 text-[11px] tracking-wider text-muted-foreground"
+ className="pt-2 pb-1 text-[11px] tracking-wider text-muted-foreground"
/>
-
+
{fixtureResults.map((result) => (
-
+
}
- className="px-4 pt-2 pb-1 text-[11px] tracking-wider text-muted-foreground"
+ className="pt-2 pb-1 text-[11px] tracking-wider text-muted-foreground"
/>
-
+
{fixtureAgents.map((result) => (
))}
-
+
}
- className="px-4 pt-2 pb-1 text-[11px] tracking-wider text-muted-foreground"
+ className="pt-2 pb-1 text-[11px] tracking-wider text-muted-foreground"
/>
-
+
{fixtureProjects.map((result) => (
))}
@@ -572,7 +577,7 @@ function SearchStories() {
Search result row
Issue, agent, project rows
-
+
{fixtureResults.map((result) => (