-
-
-
-
-
-
+ {codebases && codebases.length === 0 && (
+
+ {reason === "no_repo" ? (
+ <>
+ No codebase yet.{" "}
+
+ Try: "Start building my app"
+
+ >
+ ) : (
+ <>
+ Repo is empty — push a first commit.{" "}
+
+ Try: "Scaffold a Next.js app"
+
+ >
+ )}
+
+ )}
+ {codebases?.map((cb) => {
+ return (
+
+
- {cb.label}
- {cb.hint && {cb.hint}
}
+ {anatomy && (
+ <>
+ {/* Code Files */}
+
+
+
+
+
+
-
+
{cb.label}
+ {cb.hint && {cb.hint}
}
+
-
- setSelection({
- type: "file",
- codebaseId: cb.id,
- path: p,
- })
- }
- />
-
-
- );
- })}
-
- >
- )}
-
+
+
+ setSelection({
+ type: "file",
+ codebaseId: cb.id,
+ path: p,
+ })
+ }
+ />
+
+
+ );
+ })}
+
+ >
+ )}
+
- {/* ── Right pane ── */}
-