Skip to content

1.0.68

Choose a tag to compare

@morapelker morapelker released this 19 Mar 16:10
· 2471 commits to main since this release

What's Changed

Add persistent GitHub PR attachment to worktrees (#146)

  • Persistent PR attachment model: Worktrees can now have a GitHub PR persistently attached via new github_pr_number and github_pr_url database columns (schema v10 migration). PRs survive app restarts and are stored in SQLite rather than ephemeral in-memory state.
  • PR picker popover: Replaces the old inline PR state badge with a Popover-based PR picker. Clicking the PR badge opens a dropdown listing all open PRs (sorted with branch-matching PR first), allowing users to switch or detach the attached PR.
  • Live PR state queries: New git:getPRState IPC channel uses gh pr view to fetch real-time PR state (open/merged/closed) and title, displayed in the PR badge and picker header.
  • Full-stack IPC plumbing: New db:worktree:attachPR and db:worktree:detachPR IPC handlers with corresponding preload bridge methods (window.db.worktree.attachPR/detachPR) and type declarations.
  • Git store refactor: Replaced the old prInfo map (with state: 'none' | 'creating' | 'created' | 'merged') with two separate maps — prCreation (transient creation-in-progress tracking) and attachedPR (persistent PR attachment synced to DB). Added attachPR(), detachPR(), and loadAttachedPR() store actions.
  • PR detection hook update: usePRDetection now calls attachPR() on the store (which persists to DB) when a PR URL is detected in session output, instead of the old setPrState().
  • Header UI overhaul: The PR button area now has three distinct states — "Create PR" button (no PR attached), spinner (PR being created), and PR badge with popover (PR attached). Merge and Archive buttons now derive visibility from live PR state rather than in-memory state.
  • New Popover component: Added src/renderer/src/components/ui/popover.tsx (Radix-based shadcn popover primitive).
  • Code formatting: Prettier reformatting across ~30 files (import grouping, JSX formatting, SVG attribute splitting, line-length compliance).

feat: add Windows platform compatibility (#142)

  • Windows platform support: Cross-platform path handling, platform-aware keyboard shortcuts (Ctrl vs Cmd), conditional Darwin-only features (Ghostty, pty), and Windows-compatible file/shell operations
  • Windows CI/CD: GitHub Actions workflow to build and publish Windows .exe artifacts as GitHub Releases
  • CI fix: Install setuptools for node-gyp compatibility on Windows