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
Implement VSCode-style Monaco diff view with per-hunk staging (#42)
Monaco DiffEditor integration: Replaces the basic inline diff viewer with a full Monaco DiffEditor for tracked files, providing VSCode-quality side-by-side and inline diff rendering with syntax highlighting, advanced diff algorithm, and hunk navigation
Per-hunk staging/unstaging/reverting: Adds a HunkActionGutter overlay that positions stage (+), unstage (−), and revert (↩) buttons alongside each diff hunk, enabling granular git index manipulation without leaving the diff view
New git IPC channels: Adds git:getRefContent (read file at HEAD or index), git:stageHunk, git:unstageHunk, and git:revertHunk — all backed by git apply --cached --unidiff-zero via temp-file patch application in GitService
Fixed git status parsing: Rewrites getFileStatuses() to use status.files porcelain codes instead of simple-git's convenience arrays (status.modified, status.staged, etc.) which incorrectly reported fully-staged files as unstaged
Monaco local bundling: Configures @monaco-editor/react loader to use the locally installed monaco-editor package with web workers instead of CDN, and updates CSP to allow blob: for script/worker sources
Custom Hive dark theme: Creates a Monaco theme derived from Hive's CSS variables with diff-specific colorization (green/red gutter and line backgrounds for additions/deletions)
Diff utilities: Adds diff-utils.ts with hunk parsing from Monaco's ILineChange[], unified diff patch generation for zero-context git apply, and file extension → Monaco language ID mapping
Lazy loading: Monaco DiffView is React.lazy() loaded to avoid impacting initial bundle size; new/untracked files still use the lightweight InlineDiffViewer
Flicker-free refresh: After hunk actions, content refreshes immediately while suppressing duplicate watcher events for 500ms to prevent UI flicker
feat: add connection color system with sticky tabs in worktree mode (#41)
Connection color property: Adds a color column to the connections table (schema v4 migration) storing a JSON-serialized quad [inactiveBg, activeBg, inactiveText, activeText]. ~50 visually distinct color presets are randomly assigned on connection creation via generateConnectionColor().
Color indicator in sidebar: ConnectionItem now shows a colored dot (using the quad's activeBg) next to each connection, replacing the generic link icon for the idle state.
Sticky connection session tabs in worktree mode: When viewing a worktree that belongs to one or more connections, SessionTabs renders non-closable, color-styled "sticky" tabs for those connection sessions — enabling cross-connection session visibility without switching context. Clicking a sticky tab sets inlineConnectionSessionId in the session store, which MainPane renders as an inline SessionView.
parseColorQuad utility: New renderer utility in lib/utils.ts that safely parses the JSON color string with fallback to a neutral gray default and legacy single-color string support.
Session store additions: inlineConnectionSessionId state, setInlineConnectionSession / clearInlineConnectionSession actions, and loadConnectionSessionsBackground() to pre-load connection sessions without entering connection mode.
Full-stack type updates: Connection type updated in db/types.ts, preload/index.d.ts, and useConnectionStore.ts to include the color field. ConnectionCreate and ConnectionUpdate support optional color.
Test updates: All 6 affected test suites updated with color field in mock connection factories.
Fix: clear conflict fix flow when conflicts are resolved (#40)
Adds a useEffect in Header.tsx that automatically resets conflictFixFlow state to null once merge conflicts are resolved (hasConflicts becomes false)
Prevents stale conflict-fix UI (e.g. progress indicators, conflict-related buttons) from persisting after the user has already resolved all merge conflicts
Placed before the existing conflict-fix polling effect so the cleanup runs first
Fix QuestionPrompt custom answer display after selection (#39)
Improved custom answer UX in QuestionPrompt: After a user types and submits a custom answer (the "Other" option), the component now displays the custom answer text as a styled, editable button instead of continuing to show the generic "Other — type your own response" prompt.
Added custom answer detection logic: Computes a customAnswer value by finding any selected answer that doesn't match a predefined option label, enabling the component to distinguish between predefined selections and user-typed custom text.
Editable custom answer display: Clicking the displayed custom answer re-opens the text input pre-filled with the existing value, allowing users to revise their custom response. Styled with a blue border/background and a pencil icon for visual clarity.
Conditional rendering split: The original single "Custom text option" block is now split into two mutually exclusive renders — one for when a custom answer exists (shows the answer with edit affordance) and one for when no custom answer has been entered yet (shows the original "Other" prompt).