@@ -1,152 +1,21 @@
1+import { CrawlInterface } from "@/components/crawl-interface";
2+import { SearchInterface } from "@/components/search-interface";
13 import { ThemeToggle } from "@/components/theme-toggle";
2-import { Badge } from "@/components/ui/badge";
3-import { Button } from "@/components/ui/button";
4-import {
5- Card,
6- CardContent,
7- CardDescription,
8- CardFooter,
9- CardHeader,
10- CardTitle,
11-} from "@/components/ui/card";
12-import { Input } from "@/components/ui/input";
13-import { Separator } from "@/components/ui/separator";
14-
15-const crawlSteps = [
16- "Review the crawl scope and rate limits.",
17- "Connect a site or repository to index.",
18- "Start a private crawl session.",
19-];
20-
21-const searchChips = ["docs", "product", "issues", "release notes"];
22-
23-const searchResults = [
24- {
25- title: "Overview of indexing signals",
26- description: "How ranking signals are evaluated during retrieval.",
27- source: "Search docs",
28- },
29- {
30- title: "Crawler queue status",
31- description: "See how prioritization affects scheduled recrawls.",
32- source: "Operations",
33- },
34- {
35- title: "Glossary: recall vs precision",
36- description: "Understand how result quality is balanced.",
37- source: "Knowledge base",
38- },
39-];
404
415 export default function Page() {
426 return (
43- <main className="flex min-h-screen flex-col bg-background text-foreground">
44- <div className="grid flex-1 grid-cols-1 gap-4 md:grid-cols-2 md:gap-6">
45- <section className="flex items-center justify-center bg-[radial-gradient(circle_at_bottom,_var(--tw-gradient-stops))] from-sky-100/70 via-background to-background px-6 py-12">
46- <div className="flex w-full max-w-2xl flex-col gap-6">
47- <div className="flex items-center justify-between gap-4">
48- <div>
49- <p className="text-xs uppercase tracking-[0.2em] text-muted-foreground">
50- Search preview
51- </p>
52- <h2 className="text-2xl font-semibold">Find what matters.</h2>
53- </div>
54- <Badge>Beta</Badge>
55- </div>
56- <Card className="shadow-sm">
57- <CardHeader>
58- <CardTitle>Search</CardTitle>
59- <CardDescription>
60- Placeholder search UI for indexed content.
61- </CardDescription>
62- </CardHeader>
63- <CardContent className="flex flex-col gap-4">
64- <div className="flex flex-col gap-3 sm:flex-row">
65- <Input placeholder="Search docs, tickets, or notes" />
66- <Button className="sm:w-32">Search</Button>
67- </div>
68- <div className="flex flex-wrap gap-2">
69- {searchChips.map((chip) => (
70- <Badge key={chip} variant="secondary">
71- {chip}
72- </Badge>
73- ))}
74- </div>
75- <Separator />
76- <div className="flex flex-col gap-3">
77- {searchResults.map((result) => (
78- <div
79- key={result.title}
80- className="rounded-2xl border border-border/60 bg-background/60 px-4 py-3"
81- >
82- <div className="flex items-center justify-between">
83- <span className="font-medium">{result.title}</span>
84- <Badge variant="outline">{result.source}</Badge>
85- </div>
86- <p className="text-sm text-muted-foreground">
87- {result.description}
88- </p>
89- </div>
90- ))}
91- </div>
92- </CardContent>
93- <CardFooter className="justify-between text-xs text-muted-foreground">
94- <span>Showing 3 placeholder results</span>
95- <span>Last indexed: just now</span>
96- </CardFooter>
97- </Card>
98- </div>
99- </section>
100- <section className="flex items-center justify-center bg-[radial-gradient(circle_at_top,_var(--tw-gradient-stops))] from-amber-100/70 via-background to-background px-6 py-12">
101- <div className="flex w-full max-w-xl flex-col gap-6">
102- <div className="flex items-center gap-3">
103- <Badge variant="secondary">Crawl opt-in</Badge>
104- <span className="text-xs uppercase tracking-[0.2em] text-muted-foreground">
105- Private by default
106- </span>
107- </div>
108- <h1 className="text-balance text-3xl font-semibold leading-tight">
109- Bring your sources online with a secure crawl session.
110- </h1>
111- <p className="text-pretty text-sm text-muted-foreground">
112- Opt in once to allow the crawler to fetch the sources you choose.
113- You stay in control of what gets indexed and when it refreshes.
114- </p>
115- <Card className="shadow-sm">
116- <CardHeader>
117- <CardTitle>Start a crawl</CardTitle>
118- <CardDescription>
119- We will prepare a private crawl environment for your data.
120- </CardDescription>
121- </CardHeader>
122- <CardContent className="flex flex-col gap-4">
123- <div className="flex flex-col gap-3 text-sm">
124- {crawlSteps.map((step) => (
125- <div key={step} className="flex items-start gap-3">
126- <span className="mt-1 h-2.5 w-2.5 rounded-full bg-primary/70" />
127- <span className="text-muted-foreground">{step}</span>
128- </div>
129- ))}
130- </div>
131- <Separator />
132- <div className="rounded-2xl border border-dashed border-border/70 bg-muted/40 px-4 py-3 text-xs text-muted-foreground">
133- Placeholder: Crawl configuration and target selection will
134- live here.
135- </div>
136- </CardContent>
137- <CardFooter className="gap-3">
138- <Button className="w-full">Enable crawling</Button>
139- <Button variant="outline" className="w-full">
140- Review permissions
141- </Button>
142- </CardFooter>
143- </Card>
144- </div>
145- </section>
146- </div>
147- <footer className="flex items-center justify-end px-6 py-4">
7+ <main className="min-h-screen bg-background text-foreground relative flex flex-col">
8+ <div className="absolute top-4 right-6 z-10">
1489 <ThemeToggle />
149- </footer>
10+ </div>
11+ <div className="grid flex-1 grid-cols-1 md:grid-cols-2">
12+ <div className="border-r border-border/40">
13+ <SearchInterface />
14+ </div>
15+ <div className="h-full">
16+ <CrawlInterface />
17+ </div>
18+ </div>
15019 </main>
15120 );
15221 }