| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Adds a v2 “Home” toggle (UI + command) that switches between Home and the most-recent active v2 tab, persists recent-tab state, and aligns pressed styling for muted icon buttons.
Changes:
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file| File | Description |
|---|---|
| packages/ui/src/v2/components/icon-button-v2.css | Sets pressed ghost-muted icon color to the active icon color token. |
| packages/app/src/pages/session.tsx | Syncs session + computes root session target for tab routing when v2 designs are enabled. |
| packages/app/src/pages/layout.tsx | Removes mod+b keybind from legacy sidebar toggle when new design is enabled. |
| packages/app/src/pages/directory-layout.tsx | Removes directory-level session sync side-effect. |
| packages/app/src/desktop-menu.ts | Removes macOS native menu accelerator for sidebar toggle. |
| packages/app/src/context/tabs.tsx | Persists active tab and adds home-toggle + route→tab mapping logic. |
| packages/app/src/context/layout.tsx | Makes LayoutRoute server key required (injected from active server). |
| packages/app/src/context/command.tsx | Adds formatKeybindParts + exposes keybindParts() for UI keycap rendering. |
| packages/app/src/components/titlebar.tsx | Implements v2 Home toggle button + command registration and updates tab navigation to use useTabs(). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
| const current = (route: LayoutRoute) => { | ||
| if (route.type === "home" || route.type === "dir-new-sesssion") return | ||
| if (route.type === "draft") { | ||
| return tabs.find((tab) => tab.type === "draft" && tab.draftID === route.draftID) | ||
| } |
| const canToggleHome = (route: LayoutRoute) => { | ||
| if (!ready()) return false | ||
| if (route.type === "home") return true | ||
| return current(route) !== undefined | ||
| } |
| id: "view", | ||
| label: "View", | ||
| items: [ | ||
| { type: "item", label: "Toggle Sidebar", command: "sidebar.toggle", accelerator: { macos: "Cmd+B" } }, | ||
| { type: "item", label: "Toggle Sidebar", command: "sidebar.toggle" }, | ||
| { type: "item", label: "Toggle Terminal", command: "terminal.toggle", accelerator: { macos: "Ctrl+`" } }, |
| Back | FazBrowse Home | New Git URL |
TLDR; Adds the designed v2 Home toggle with persistent recent-tab navigation and consistent active icon styling.
Changelog
Design issues: anomalyco/opencontrol#134 and anomalyco/opencontrol#137
Supersedes #31953.
Verification