Skip to content

1.0.84

Choose a tag to compare

@morapelker morapelker released this 01 Apr 10:02
· 2227 commits to main since this release

What's Changed

Token count storage and merge-on-done workflow (#227)

  • Token counting: Adds a total_tokens column to kanban tickets (DB migration v18) that accumulates token usage across sessions. The tokenDelta field is plumbed through session events, the kanban store, the GraphQL layer (kanbanAddTicketTokens mutation + totalTokens field), and the IPC/preload bridge. Done-column ticket cards display the accumulated total; active cards continue showing per-turn deltas.
  • Merge-on-done workflow: When a feature-branch ticket is moved to the Done column (via drag-and-drop or the review modal button), a new MergeOnDoneDialog intercepts the move and walks through a multi-step flow:
    1. Commit — if the feature worktree has uncommitted changes, prompts the user to commit with a pre-filled message.
    2. Merge — merges the feature branch into the resolved base branch (with auto-pull and conflict detection/abort).
    3. Archive — offers to archive the feature worktree after a successful merge.
      Each step can be skipped to just move the ticket to Done directly.
  • Base branch tracking: Adds a base_branch column to worktrees (DB migration v17) so the system knows which branch a feature worktree diverged from. All worktree creation paths (createWorktree, duplicateWorktree, createWorktreeFromBranch) now persist this.
  • New git operations: mergeAbort, hasUncommittedChanges, and getBranchDiffShortStat are added to the git service and exposed via IPC handlers + preload API for the merge dialog's branch status checks.

Fix archive dialog button overflow (#226)

  • Fixes button overflow in the archive confirmation dialog footer by adding sm:flex-wrap to the AlertDialogFooter component
  • At the sm breakpoint and above, footer buttons now wrap to the next line instead of overflowing their container when content is too wide
  • Change is scoped to src/renderer/src/components/ui/alert-dialog.tsx

feat(kanban): add pinned projects board for multi-project ticket view (#225)

Adds a Pinned Projects Board — a unified kanban view that aggregates tickets from all pinned worktrees' projects, mirroring the existing connection-board pattern but driven by the user's pinned items.

What's included

  • Pinned store enhancements (usePinnedStore): Tracks pinnedProjectIds derived from pinned worktrees. Uses a focused findProjectIdForWorktree helper (replaces the previous full-scan approach) so pinning/unpinning correctly maintains the project ID set, including sibling-aware cleanup on unpin.

  • Kanban store extensions (useKanbanStore): Adds isPinnedBoardActive (persisted to localStorage), togglePinnedBoard, loadTicketsForPinnedProjects, getTicketsByColumnForPinned, and getPinnedProjectIdsArray — all following the same patterns as connection-level accessors.

  • KanbanBoard (isPinnedMode prop): Loads and displays tickets from all pinned projects with reactive reload when pinnedProjectIds changes. Shows an empty-state CTA when no projects are pinned and a "Pinned Projects (N)" header.

  • KanbanColumn (isPinnedMode prop): Introduces isMultiProjectMode helper to unify connection and pinned mode behaviors — cross-project ticket lookup, per-ticket project_id resolution, archive-all across pinned projects, and worktree picker scoped to the ticket's own project.

  • KanbanTicketCard (isPinnedMode prop): Shows project tags with deterministic colors (via getPinnedProjectIdsArray) and closes the pinned board when jumping to a session, matching existing connection-mode behavior.

  • TicketCreateModal (isPinnedMode prop): Shows a project selector dropdown derived from pinned project IDs, unifying the multi-project picker with the existing connection mode via isMultiProjectMode/availableProjects abstractions.

  • PinnedList sidebar: Adds a KanbanSquare icon button next to the "Pinned" section header. Clicking toggles the pinned board and clears active file/diff/context editor views. The icon highlights when the board is active and shows a tooltip.

  • MainPane: Renders <KanbanBoard isPinnedMode /> independent of project/connection selection, taking priority over the connection/project board cases.

  • Navigation integration: selectProject() and selectWorktree() now dismiss the pinned board so the selected content is shown instead.

  • Bug fix: Archive toggle now properly reloads tickets in pinned/connection board mode — the '' key set by handleToggleShowArchived was previously ignored by loadTicketsForPinnedProjects and loadTicketsForConnection, which only checked per-project keys. Both loaders now fall back to the '' key, and KanbanBoard subscribes to showArchivedAll so the useEffect re-runs when the toggle changes.

Files changed

File Change
stores/usePinnedStore.ts pinnedProjectIds state + findProjectIdForWorktree helper
stores/useKanbanStore.ts Pinned board state, loaders, and getters
stores/useProjectStore.ts Close pinned board on selectProject
stores/useWorktreeStore.ts Close pinned board on selectWorktree
components/kanban/KanbanBoard.tsx isPinnedMode rendering + reactive reload
components/kanban/KanbanColumn.tsx isMultiProjectMode unification
components/kanban/KanbanTicketCard.tsx Project tags + pinned board dismiss
components/kanban/TicketCreateModal.tsx Multi-project picker for pinned mode
components/layout/PinnedList.tsx Board toggle icon button
components/layout/MainPane.tsx Pinned board render case

Add right-click context menu to PR badge (#224)

  • Right-click context menu on the PR badge in the header, providing quick actions without opening the PR picker popover:
    • Open PR in Browser — opens the attached PR URL in Chrome via systemOps.openInChrome
    • Copy PR URL — copies the PR URL to clipboard with a success toast
    • Detach PR — detaches the PR from the worktree (reuses existing handler, styled as destructive)
  • Wraps the existing Popover/PopoverTrigger with ContextMenu/ContextMenuTrigger so left-click still opens the PR picker popover while right-click opens the new context menu
  • Imports ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, and ContextMenuSeparator from @/components/ui/context-menu
  • Imports ExternalLink and Copy icons from lucide-react
  • Adds two new memoized callbacks: handleOpenPRInBrowser and handleCopyPRUrl
  • Updates the PR badge button tooltip to hint at right-click availability

Fix bottom bar layout overflow on small screens (#223)

  • Fixes layout overflow in the session input bottom bar when the viewport is narrow. The hint text ("⌃T to change variant, Shift+Enter for new line") and surrounding elements would overflow and break the layout on small screens.
  • Adds CSS container query (@container / @min-[42rem]:inline) to conditionally hide the keyboard shortcut hint text when the container is too narrow, preventing horizontal overflow.
  • Prevents content overflow by adding min-w-0 overflow-hidden to the left-side flex container and whitespace-nowrap to the elapsed timer / hint text span, ensuring text doesn't wrap or push elements out of view.

feat(kanban): add board export/import functionality (#222)

  • Board Export: Adds the ability to export all Kanban tickets for a project to a .hive.json file via a native save dialog. The export includes ticket title, description, attachments, and column status.
  • Board Import (Hive JSON): Adds a full import flow — users can open a .hive.json file, preview tickets in a selection modal (with new/update indicators), and selectively import them into the current project.
  • Smart merge on import: Tickets that already exist in the same project are updated in place; tickets from a different project get new IDs; completely new tickets preserve their original IDs.

Fix progress bar clipping issue (#221)

  • Fixed progress bar overflowing its container in IndeterminateProgressBar.tsx
  • Moved the fixed width (w-36) from the inner progress bar track <div> up to the outer container <div>
  • Changed the inner track to use w-full so it fills the container naturally instead of having its own fixed width

This resolves a visual clipping issue where the progress bar animation could extend beyond its intended bounds because the fixed width was applied to the inner element rather than the outer container.