Repository navigation
1.0.84
What's Changed
Token count storage and merge-on-done workflow (#227)
- Token counting: Adds a
total_tokenscolumn to kanban tickets (DB migration v18) that accumulates token usage across sessions. ThetokenDeltafield is plumbed through session events, the kanban store, the GraphQL layer (kanbanAddTicketTokensmutation +totalTokensfield), 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
MergeOnDoneDialogintercepts the move and walks through a multi-step flow:- Commit — if the feature worktree has uncommitted changes, prompts the user to commit with a pre-filled message.
- Merge — merges the feature branch into the resolved base branch (with auto-pull and conflict detection/abort).
- 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_branchcolumn 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, andgetBranchDiffShortStatare 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-wrapto theAlertDialogFootercomponent - At the
smbreakpoint 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): TrackspinnedProjectIdsderived from pinned worktrees. Uses a focusedfindProjectIdForWorktreehelper (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): AddsisPinnedBoardActive(persisted to localStorage),togglePinnedBoard,loadTicketsForPinnedProjects,getTicketsByColumnForPinned, andgetPinnedProjectIdsArray— all following the same patterns as connection-level accessors. -
KanbanBoard (
isPinnedModeprop): Loads and displays tickets from all pinned projects with reactive reload whenpinnedProjectIdschanges. Shows an empty-state CTA when no projects are pinned and a "Pinned Projects (N)" header. -
KanbanColumn (
isPinnedModeprop): IntroducesisMultiProjectModehelper to unify connection and pinned mode behaviors — cross-project ticket lookup, per-ticketproject_idresolution, archive-all across pinned projects, and worktree picker scoped to the ticket's own project. -
KanbanTicketCard (
isPinnedModeprop): Shows project tags with deterministic colors (viagetPinnedProjectIdsArray) and closes the pinned board when jumping to a session, matching existing connection-mode behavior. -
TicketCreateModal (
isPinnedModeprop): Shows a project selector dropdown derived from pinned project IDs, unifying the multi-project picker with the existing connection mode viaisMultiProjectMode/availableProjectsabstractions. -
PinnedList sidebar: Adds a
KanbanSquareicon 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()andselectWorktree()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 byhandleToggleShowArchivedwas previously ignored byloadTicketsForPinnedProjectsandloadTicketsForConnection, which only checked per-project keys. Both loaders now fall back to the''key, andKanbanBoardsubscribes toshowArchivedAllso theuseEffectre-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)
- Open PR in Browser — opens the attached PR URL in Chrome via
- Wraps the existing
Popover/PopoverTriggerwithContextMenu/ContextMenuTriggerso left-click still opens the PR picker popover while right-click opens the new context menu - Imports
ContextMenu,ContextMenuTrigger,ContextMenuContent,ContextMenuItem, andContextMenuSeparatorfrom@/components/ui/context-menu - Imports
ExternalLinkandCopyicons fromlucide-react - Adds two new memoized callbacks:
handleOpenPRInBrowserandhandleCopyPRUrl - 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-hiddento the left-side flex container andwhitespace-nowrapto 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.jsonfile 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.jsonfile, 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-fullso 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.