diff --git a/packages/web/src/app/[domain]/components/repositorySnapshot.tsx b/packages/web/src/app/[domain]/components/repositorySnapshot.tsx
index 0269fe3c..f84e5b46 100644
--- a/packages/web/src/app/[domain]/components/repositorySnapshot.tsx
+++ b/packages/web/src/app/[domain]/components/repositorySnapshot.tsx
@@ -13,63 +13,9 @@ import {
CarouselContent,
CarouselItem,
} from "@/components/ui/carousel";
-import { Plus } from "lucide-react";
import { RepoIndexingStatus } from "@sourcebot/db";
import { SymbolIcon } from "@radix-ui/react-icons";
-export function EmptyRepoState({ domain }: { domain: string }) {
- return (
-
-
No repositories found
-
-
-
-
- Create a{" "}
-
- connection
- {" "}
- to start indexing repositories
-
-
-
-
- )
- }
-
-export default function RepoSkeleton() {
- return (
-
- {/* Skeleton for "Search X repositories" text */}
-
- {/* "Search X" */}
- {/* "repositories" */}
-
-
- {/* Skeleton for repository carousel */}
-
-
- {[1, 2, 3].map((_, index) => (
-
-
- {/* Icon */}
- {/* Repository name */}
-
-
- ))}
-
-
-
- )
- }
-
-
export function RepositorySnapshot() {
const domain = useDomain();
@@ -88,7 +34,7 @@ export function RepositorySnapshot() {
}
const indexedRepos = repos.filter((repo) => repo.repoIndexingStatus === RepoIndexingStatus.INDEXED);
- if (repos.length === 0 || indexedRepos.length === 0) {
+ if (repos.length === 0) {
return (
)
@@ -119,4 +65,56 @@ export function RepositorySnapshot() {
)
-}
\ No newline at end of file
+}
+
+function EmptyRepoState({ domain }: { domain: string }) {
+ return (
+
+
No repositories found
+
+
+
+
+ Create a{" "}
+
+ connection
+ {" "}
+ to start indexing repositories
+
+
+
+
+ )
+}
+
+function RepoSkeleton() {
+ return (
+
+ {/* Skeleton for "Search X repositories" text */}
+
+ {/* "Search X" */}
+ {/* "repositories" */}
+
+
+ {/* Skeleton for repository carousel */}
+
+
+ {[1, 2, 3].map((_, index) => (
+
+
+ {/* Icon */}
+ {/* Repository name */}
+
+
+ ))}
+
+
+
+ )
+}
diff --git a/packages/web/src/app/[domain]/page.tsx b/packages/web/src/app/[domain]/page.tsx
index 13ab35bd..2f9c8aae 100644
--- a/packages/web/src/app/[domain]/page.tsx
+++ b/packages/web/src/app/[domain]/page.tsx
@@ -1,11 +1,6 @@
-import { listRepositories } from "@/lib/server/searchService";
-import { isServiceError } from "@/lib/utils";
-import { Suspense } from "react";
import { NavigationMenu } from "./components/navigationMenu";
-import { RepositoryCarousel } from "./components/repositoryCarousel";
import { SearchBar } from "./components/searchBar";
import { Separator } from "@/components/ui/separator";
-import { SymbolIcon } from "@radix-ui/react-icons";
import { UpgradeToast } from "./components/upgradeToast";
import Link from "next/link";
import { getOrgFromDomain } from "@/data/org";
@@ -37,9 +32,7 @@ export default async function Home({ params: { domain } }: { params: { domain: s
className="mt-4 w-full max-w-[800px]"
/>
- ...
}>
-
-
+