Skip to content

Commit 9b7dc64

Browse files
JeevantheDevclaude
andcommitted
feat: filter repo onboarding dropdown to only show shipbrain_sandbox
Restrict repository selection during onboarding to only display JeevantheDev/shipbrain_sandbox for demo purposes. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a407465 commit 9b7dc64

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

components/repo-onboarding/RepoOnboarding.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ type SetupEvent = { label: string; status: "running" | "done" | "error"; detail?
3333

3434
const activeRepoEvent = "shipbrain:active-repo";
3535

36+
// Only show this repo in the onboarding dropdown (for demo purposes)
37+
const ALLOWED_REPOS = ["JeevantheDev/shipbrain_sandbox"];
38+
3639
export function RepoOnboarding() {
3740
const [repos, setRepos] = useState<Repo[]>([]);
3841
const [query, setQuery] = useState("");
@@ -73,7 +76,10 @@ export function RepoOnboarding() {
7376
[repos, selectedRepos]
7477
);
7578
const activeRepo = repos.find((repo) => repo.full_name === selectedRepo) ?? null;
76-
const filteredRepos = repos.filter((repo) => repo.full_name.toLowerCase().includes(query.toLowerCase())).slice(0, 8);
79+
const filteredRepos = repos
80+
.filter((repo) => ALLOWED_REPOS.includes(repo.full_name))
81+
.filter((repo) => repo.full_name.toLowerCase().includes(query.toLowerCase()))
82+
.slice(0, 8);
7783
const needsCustomBranches = scan?.branches.scenario === "custom_required";
7884
const customBranchesReady = !needsCustomBranches || Boolean(customProdBranch.trim());
7985
const canSubmit = Boolean(activeRepo && scan && customBranchesReady && !setupBusy);

0 commit comments

Comments
 (0)