diff --git a/client/src/pages/ConnectPage.tsx b/client/src/pages/ConnectPage.tsx
index de2a04d..403fe63 100644
--- a/client/src/pages/ConnectPage.tsx
+++ b/client/src/pages/ConnectPage.tsx
@@ -2,25 +2,57 @@ import { GlassButton } from "../components/ui/GlassButton";
import { Button } from "@/components/ui/button";
import { Label } from "@/components/ui/label";
import {
- Select, SelectTrigger, SelectValue, SelectContent, SelectItem
+ Select,
+ SelectTrigger,
+ SelectValue,
+ SelectContent,
+ SelectItem,
} from "@/components/ui/select";
import { useRepoStore } from "@/store/useRepoStore";
export default function ConnectPage() {
- const { repos, branches, repo, branch, setRepo, setBranch, loadRepos, loadBranches } = useRepoStore();
+ const {
+ repos,
+ branches,
+ repo,
+ branch,
+ setRepo,
+ setBranch,
+ loadRepos,
+ loadBranches,
+ } = useRepoStore();
+
+ const handleGithubConnect = () => {
+ // Vite proxy sends this to backend http://localhost:3001/auth/github
+ window.location.href = "http://localhost:3000/auth/github/start";
+ };
return (
-
-
Connect your repository
-
- Re-sync Repos
-
+
+
+ Connect your repository
+
+
+
+ {/* 🔐 OAuth button */}
+
+ Connect GitHub
+
+
+ {/* 🔁 Re-sync repos */}
+
+ Re-sync Repos
+
+
@@ -28,14 +60,19 @@ export default function ConnectPage() {
@@ -49,11 +86,15 @@ export default function ConnectPage() {
disabled={!repo}
>
-
+
{branches?.map((b) => (
- {b}
+
+ {b}
+
))}
@@ -73,3 +114,80 @@ export default function ConnectPage() {
);
}
+
+
+// import { GlassButton } from "../components/ui/GlassButton";
+// import { Button } from "@/components/ui/button";
+// import { Label } from "@/components/ui/label";
+// import {
+// Select, SelectTrigger, SelectValue, SelectContent, SelectItem
+// } from "@/components/ui/select";
+// import { useRepoStore } from "@/store/useRepoStore";
+
+// export default function ConnectPage() {
+// const { repos, branches, repo, branch, setRepo, setBranch, loadRepos, loadBranches } = useRepoStore();
+
+// return (
+//
+//
+//
+//
Connect your repository
+//
+// Re-sync Repos
+//
+//
+
+//
+//
+//
+//
+//
+
+//
+//
+//
+//
+//
+
+//
+// location.assign("/configure")}
+// >
+// Continue → Configure
+//
+//
+//
+//
+// );
+// }