import { useState } from "react"; import { useConsole } from "../context"; import { Card, Bar } from "../components/ui"; import { shortId } from "../api/client"; import MembersPanel from "./MembersPanel"; // Left sidebar: the one project selector for the whole console. // Lists every project (name + short id + my role), click selects it; // below the list is the create-project form (same fields as the old // workbench ProjectsSection: name, GitHub repo select, repo_url) and // the selected project's members. The workbench no longer carries any // project-module UI; it only consumes ctx.projectId. export default function ProjectNav() { const ctx = useConsole(); const [name, setName] = useState(""); const [repoSelect, setRepoSelect] = useState(""); const [repo, setRepo] = useState(""); return (