Skip to content

Commit 9270f29

Browse files
more nits with search mode tooltip
1 parent cda8a7f commit 9270f29

File tree

1 file changed

+7
-3
lines changed
  • packages/web/src/app/[domain]/components/homepage

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import { useState } from "react";
1111

1212
export type SearchMode = "precise" | "agentic";
1313

14+
const PRECISE_SEARCH_DOCS_URL = "https://docs.sourcebot.dev/docs/features/search/syntax-reference";
15+
// @tood: point this to the actual docs page
16+
const AGENTIC_SEARCH_DOCS_URL = "https://docs.sourcebot.dev/docs/features/agentic-search/overview";
17+
1418
export interface ToolbarProps {
1519
searchMode: SearchMode;
1620
isAgenticSearchEnabled: boolean;
@@ -76,7 +80,7 @@ export const Toolbar = ({
7680
<Separator orientation="horizontal" className="w-full my-0.5" />
7781
<p>Search for exact matches using regular expressions and filters.</p>
7882
<Link
79-
href="https://docs.sourcebot.dev/docs/features/search/syntax-reference"
83+
href={PRECISE_SEARCH_DOCS_URL}
8084
className="text-link hover:underline"
8185
>
8286
Docs
@@ -122,12 +126,12 @@ export const Toolbar = ({
122126
<p className="font-semibold">Agentic Search</p>
123127
</div>
124128
{!isAgenticSearchEnabled && (
125-
<p className="text-destructive">Language model not configured.</p>
129+
<p className="text-destructive">Language model not configured. See <Link href={AGENTIC_SEARCH_DOCS_URL} className="text-link hover:underline">setup instructions.</Link></p>
126130
)}
127131
<Separator orientation="horizontal" className="w-full my-0.5" />
128132
<p>Use natural language to search, summarize and understand your codebase using a reasoning agent.</p>
129133
<Link
130-
href="https://docs.sourcebot.dev/docs/features/search/agentic-search"
134+
href={AGENTIC_SEARCH_DOCS_URL}
131135
className="text-link hover:underline"
132136
>
133137
Docs

0 commit comments

Comments
 (0)