Slice 11: branch-picker submenu in the right-click menu

Replace the Switch branch text prompt with a flyout submenu populated from GET /api/repo (the repo's branches; current one disabled); clicking a branch checks it out. Flips leftward near the viewport edge. New branch still prompts. Verified live: submenu lists branches and switches.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-09-20 17:44:55 -04:00
parent ad00654487
commit 68b6c3a3f8
3 changed files with 86 additions and 29 deletions
+1 -1
View File
@@ -55,7 +55,7 @@
<li><strong>Publish</strong> — push your commits.</li>
<li><strong>Check for updates</strong> — fetch without changing your files.</li>
<li><strong>Save my work…</strong> — commit everything (asks for a message).</li>
<li><strong>Switch branch</strong>move to another existing branch.</li>
<li><strong>Switch branch</strong>hover to pick from the repo's branches.</li>
<li><strong>New branch…</strong> — create a branch and switch to it.</li>
<li><strong>Set as active project</strong> / <strong>Ask Claude to switch here</strong>.</li>
<li><strong>Copy path</strong>.</li>