You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add pin/unpin for worktrees and connections (#64)
New pinning system for worktrees and connections, allowing users to pin frequently-used items for quick access in the left sidebar
Database schema v7: adds pinned column (INTEGER, default 0) to both worktrees and connections tables, with a safe migration via safeAddColumn
4 new IPC channels: db:worktree:setPinned, db:worktree:getPinned, db:connection:setPinned, db:connection:getPinned — exposed through preload as window.db.worktree.{setPinned,getPinned} and window.connectionOps.{setPinned,getPinned}
New usePinnedStore Zustand store manages pinned state with optimistic local updates, DB persistence, and lazy loading of parent project worktrees so pinned items resolve correctly
New PinnedList component renders above the existing RecentList in the left sidebar, showing pinned worktrees (with project name, branch, model icon, and live status indicators) and pinned connections (with color dot, display name, and status)
Pin/Unpin context menu actions added to both WorktreeItem and ConnectionItem (in both right-click context menus and dropdown menus), using Pin/PinOff lucide icons
Cleanup on delete/archive: when a worktree is deleted or archived, or a connection is deleted, the item is automatically removed from the pinned store via dynamic imports to avoid circular dependencies
Type updates across src/main/db/types.ts and src/preload/index.d.ts to include the pinned field on Worktree, WorktreeUpdate, Connection, and ConnectionUpdate interfaces