From b87eedb237867ac78ee221577262078ecb555d3b Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Wed, 17 Sep 2025 10:01:47 +0000 Subject: [PATCH] Wire branches and issues UI into SwitchPage cgen-f666a647eaab43d280382fedafb23728 --- website/src/website/pages/switch/SwitchPage.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/src/website/pages/switch/SwitchPage.tsx b/website/src/website/pages/switch/SwitchPage.tsx index b54fbda9..aaa6641f 100644 --- a/website/src/website/pages/switch/SwitchPage.tsx +++ b/website/src/website/pages/switch/SwitchPage.tsx @@ -1,10 +1,11 @@ import * as React from "react"; import { ControlledMonacoEditor } from "../../components/monaco/MonacoEditor"; import "../../switch.scss"; -import { createRepository, listRepositories } from "../../switch/models"; +import { createRepository, listRepositories, listBranches, createBranch } from "../../switch/models"; import { pickDirectory, getDirectoryHandle, ensureReadPerm, walk } from "../../switch/fs"; -import type { RepoRecord } from "../../switch/db"; +import type { RepoRecord, BranchRecord, CommitRecord, IssueRecord } from "../../switch/db"; import { FileTree } from "./FileTree"; +import { getCurrentBranchId, setCurrentBranchId, commitOnBranch, listCommitsReachable, listIssues, createIssue } from "../../switch/logic"; interface OpenFile { path: string; content: string; language: string }