feat(sessions): move the session picker into the desktop right tool panel

Replace the tool rail's Activity tool with a Sessions tool that renders the
full session picker (Activity, This project and Projects tabs, linked-server
selector, add repository), shared with the mobile sheet via RouteSessionPicker.

- A docked panel stays open and follows navigation (picker navigation mode
  'panel'); the floating overlay closes on select (mode 'replace').
- The session page's sessions shortcut and /sessions open the panel; the
  collapsed sidebar opens it when a tool rail is mounted and falls back to
  the modal dialog otherwise.
- useToolPanelToggle is the single panel toggle for the rail, shortcuts and
  sidebar.
- Remove ActivityList, the fixed activity panel width and the window label.
This commit is contained in:
Chris Scott committed 2026-10-25 17:16:36 -04:00
1 parent 82c46bbdb2
commit d26ab578f0
25 files changed
+639 -695

No files matched your search

+8
View File
@@ -3,9 +3,17 @@ import { create } from 'zustand'
interface UIStateStore {
isEditingMessage: boolean
setIsEditingMessage: (isEditing: boolean) => void
/**
* True while a page renders the desktop tool rail, so callers outside the rail know whether
* `?panel=` has a host.
*/
isToolRailMounted: boolean
setToolRailMounted: (mounted: boolean) => void
}
export const useUIState = create<UIStateStore>((set) => ({
isEditingMessage: false,
setIsEditingMessage: (isEditing: boolean) => set({ isEditingMessage: isEditing }),
isToolRailMounted: false,
setToolRailMounted: (mounted: boolean) => set({ isToolRailMounted: mounted }),
}))