diff --git a/apps/web/src/app/generate/page.tsx b/apps/web/src/app/generate/page.tsx new file mode 100644 index 0000000..43cd975 --- /dev/null +++ b/apps/web/src/app/generate/page.tsx @@ -0,0 +1,83 @@ +import { Suspense } from "react"; +import { ProgressTracker } from "@/components/progress-tracker"; +import { Github, Loader2 } from "lucide-react"; + +function GeneratePageContent({ + searchParams, +}: { + searchParams: { repo?: string; id?: string }; +}) { + const repoUrl = searchParams.repo || ""; + const generationId = searchParams.id || ""; + + const repoName = repoUrl + ? repoUrl.replace("https://github.com/", "").replace(/\/$/, "") + : ""; + + return ( +
+
+
+ +
+ +

+ Analyzing Repository +

+ +

+ {repoName || repoUrl || "Unknown repository"} +

+
+ + {generationId ? ( + + ) : ( +
+

+ Missing generation ID. Please try again. +

+
+ )} +
+ ); +} + +function GeneratePageSkeleton() { + return ( +
+
+
+ +
+ +
+
+
+ +
+ {[1, 2, 3, 4, 5].map((i) => ( +
+
+
+
+ ))} +
+
+ ); +} + +export default function GeneratePage({ + searchParams, +}: { + searchParams: { repo?: string; id?: string }; +}) { + return ( + }> + + + ); +}