Skip to content

Commit 860a82e

Browse files
committed
add repo snapshot to agentic search and other ui nits
1 parent 7fa0832 commit 860a82e

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

packages/web/src/app/[domain]/components/homepage/agenticSearch.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { DemoExamples } from "@/types";
1313
import { AskSourcebotDemoCards } from "./askSourcebotDemoCards";
1414
import { AgenticSearchTutorialDialog } from "./agenticSearchTutorialDialog";
1515
import { setAgenticSearchTutorialDismissedCookie } from "@/actions";
16+
import { RepositorySnapshot } from "./repositorySnapshot";
1617

1718
interface AgenticSearchProps {
1819
searchModeSelectorProps: SearchModeSelectorProps;
@@ -80,6 +81,16 @@ export const AgenticSearch = ({
8081
</div>
8182
</div>
8283

84+
<div className="mt-8">
85+
<RepositorySnapshot
86+
repos={repos}
87+
/>
88+
</div>
89+
90+
<div className="flex flex-col items-center w-fit gap-6">
91+
<Separator className="mt-5 w-[700px]" />
92+
</div>
93+
8394
{demoExamples && (
8495
<AskSourcebotDemoCards
8596
demoExamples={demoExamples}

packages/web/src/app/[domain]/components/homepage/askSourcebotDemoCards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export const AskSourcebotDemoCards = ({
8282
</p>
8383
)}
8484

85-
<div className="w-full mt-16 space-y-12 px-4 max-w-[1000px]">
85+
<div className="w-full mt-8 space-y-12 px-4 max-w-[1200px]">
8686
{/* Example Searches Row */}
8787
<div className="space-y-4">
8888
<div className="text-center mb-6">

packages/web/src/app/[domain]/components/homepage/repositorySnapshot.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,14 @@ export function RepositorySnapshot({
6868
return (
6969
<div className="flex flex-col items-center gap-3">
7070
<span className="text-sm">
71-
{`Search ${indexedRepos.length} `}
71+
{`${indexedRepos.length} `}
7272
<Link
7373
href={`${domain}/repos`}
7474
className="text-link hover:underline"
7575
>
7676
{indexedRepos.length > 1 ? 'repositories' : 'repository'}
7777
</Link>
78+
{` indexed`}
7879
</span>
7980
<RepositoryCarousel repos={indexedRepos} />
8081
</div>

packages/web/src/features/chat/components/chatThread/detailsCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Separator } from '@/components/ui/separator';
66
import { Skeleton } from '@/components/ui/skeleton';
77
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';
88
import { cn } from '@/lib/utils';
9-
import { Brain, ChevronDown, ChevronRight, Clock, Cpu, InfoIcon, Loader2, ScanSearchIcon, Zap } from 'lucide-react';
9+
import { Brain, ChevronDown, ChevronRight, Clock, Cpu, InfoIcon, Loader2, List, ScanSearchIcon, Zap } from 'lucide-react';
1010
import { MarkdownRenderer } from './markdownRenderer';
1111
import { FindSymbolDefinitionsToolComponent } from './tools/findSymbolDefinitionsToolComponent';
1212
import { FindSymbolReferencesToolComponent } from './tools/findSymbolReferencesToolComponent';
@@ -89,7 +89,7 @@ export const DetailsCard = ({
8989
)}
9090
{metadata?.modelName && (
9191
<div className="flex items-center text-xs">
92-
<Cpu className="w-3 h-3 mr-1 flex-shrink-0" />
92+
<Brain className="w-3 h-3 mr-1 flex-shrink-0" />
9393
{metadata?.modelName}
9494
</div>
9595
)}
@@ -106,7 +106,7 @@ export const DetailsCard = ({
106106
</div>
107107
)}
108108
<div className="flex items-center text-xs">
109-
<Brain className="w-3 h-3 mr-1 flex-shrink-0" />
109+
<List className="w-3 h-3 mr-1 flex-shrink-0" />
110110
{`${thinkingSteps.length} step${thinkingSteps.length === 1 ? '' : 's'}`}
111111
</div>
112112
</>

0 commit comments

Comments
 (0)