Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
874f7bc
feat: continue and skip rebase
craigharman Jun 19, 2026
f55ca09
fix: git tests for rebasing
craigharman Jun 19, 2026
7e07df3
feat: liquid glass interface
craigharman Jun 19, 2026
8f7c2c9
feat: add copy to clipboard button to error banner
craigharman Jun 19, 2026
3852ef3
Merge branch 'main' into develop
craigharman Jun 19, 2026
eac879e
feat:automatic software updates using Sparkle
craigharman Jun 19, 2026
9074f29
Gate the step on secrets.SPARKLE_PRIVATE_KEY
craigharman Jun 19, 2026
13f17fe
Ensure we are committing on the latest main branch
craigharman Jun 19, 2026
7487310
Disable update option if sparkle unavailable
craigharman Jun 19, 2026
354016d
Fail loudly on build failure
craigharman Jun 19, 2026
cd5dde1
Potential fix for pull request finding
craigharman Jun 19, 2026
d49ba06
fix: prevent appcast.xml commit from retriggering Release workflow
Copilot Jun 19, 2026
0c9ce1c
Strip any new lines from secret
craigharman Jun 19, 2026
3293625
Warn if sparkle not set
craigharman Jun 19, 2026
a6a5c24
Add guard when version already exists
craigharman Jun 19, 2026
ff59aa8
Fix versioning issues with sparkle
craigharman Jun 19, 2026
ee5d2b7
Potential fix for pull request finding
craigharman Jun 19, 2026
730c686
Potential fix for pull request finding
craigharman Jun 19, 2026
7b23eeb
Potential fix for pull request finding
craigharman Jun 19, 2026
7e96235
Skip appcast.xml when no changes
craigharman Jun 19, 2026
b904ab8
Update agents and claude files
craigharman Jun 19, 2026
4f1a868
fix: sign_update matched the wrong binary
craigharman Jun 19, 2026
895e093
Merge develop changes
craigharman Jun 19, 2026
a9338d0
Merge branch 'main' into develop
craigharman Jun 19, 2026
626e3f8
feat: allow push/pull indicators in sidebar to actually do the push/p…
craigharman Jun 19, 2026
7a1a0a6
fix: when pushing a remote branch include the remote name as well as …
craigharman Jun 19, 2026
70df5fd
Do not fallback to origin show error instead
craigharman Jun 19, 2026
ff5ed2c
fix: make the sparkle search less specific
craigharman Jun 19, 2026
0f530b7
Merge branch 'main' into develop
craigharman Jun 20, 2026
b3e181d
Fix release.yml
craigharman Jun 20, 2026
528f9e7
Merge branch 'main' into develop
craigharman Jun 20, 2026
ff6c4ac
fix: download Sparkle into project from CI
craigharman Jun 20, 2026
6e8b217
fix: access to sparkle key file
craigharman Jun 20, 2026
505d31a
Merge main into develop
craigharman Jun 20, 2026
93cafbd
Merge branch 'main' into develop
craigharman Jun 20, 2026
4028d96
fix: add debugging to deployment
craigharman Jun 20, 2026
fef2820
Merge branch 'main' into develop
craigharman Jun 20, 2026
25103c1
fix: add automerge to release
craigharman Jun 20, 2026
dfb183d
test:Add checks for pull/push numbers
craigharman Jun 21, 2026
6b7a74d
feat:automate deployment workflow
craigharman Jun 22, 2026
1707933
fix: merge conflicts not visible when files are staged
craigharman Jun 23, 2026
563c1d9
Complete merge
craigharman Jun 23, 2026
7a88a41
fix: use token for deployment
craigharman Jun 23, 2026
a0addf8
feat: add remote SSH git repository management
craigharman Jun 24, 2026
03f2837
fix: do not allow banner colour to bleed into sidebar
craigharman Jun 24, 2026
133bb9c
chore: updated clipping on main panel
craigharman Jun 24, 2026
0b5e9f3
ci:remove duplicate tests and use the release token to trigger the bu…
craigharman Jun 24, 2026
c3c82c2
Merge from main
craigharman Jun 24, 2026
57de7ef
Merge branch 'main' into develop
craigharman Jun 24, 2026
6359e71
feat: add scan folder feature to allow bulk import of repositories
craigharman Jun 27, 2026
1300bb7
feat: image diff viewer
craigharman Jun 30, 2026
cc46caf
chore: add before/after image comparison options
craigharman Jun 30, 2026
f0e800d
Merge branch 'main' into develop
craigharman Jun 30, 2026
c5b6d01
Merge branch 'main' into develop
craigharman Jun 30, 2026
c69f4c5
fix: check for updates now available in menu
craigharman Jun 30, 2026
dea8b6b
chore: turn of update check in dev builds
craigharman Jun 30, 2026
f38dedb
feat: add what's new popup to show user change log
craigharman Jun 30, 2026
9b644c0
fix: issue with reading changelog for what's new causing app to crash
craigharman Jun 30, 2026
4bcf233
Merge main into develop
craigharman Jun 30, 2026
c5a96c9
Merge branch 'main' into develop
craigharman Jun 30, 2026
826aff0
fix: a crash when runModal() returns, the field is now explicitly unh…
craigharman Jul 2, 2026
e7cb6f3
feat: add AI integration to write commit messages and do git actions …
craigharman Jul 2, 2026
26c16af
chore: make AI model selection dynamic
craigharman Jul 3, 2026
7f4adda
feat(ai-assistant): improve chat UX and keychain access handling
craigharman Jul 3, 2026
6cdf9d3
docs: mention optional AI assistant feature in README
craigharman Jul 3, 2026
1c34151
Merge branch 'main' into develop
craigharman Jul 3, 2026
ccb806c
chore: update auto-merge-release.yml for improved PR handling
craigharman Jul 3, 2026
c9f003e
chore: enhance release workflow with notarization steps
craigharman Jul 23, 2026
94839b5
ci: Duplicate latest release to Gitify.dmg so there is a constant dow…
craigharman Jul 23, 2026
1b038cb
doc: remove gatekeeper workaround that is no loonger required
craigharman Jul 23, 2026
211ac25
fix: anchor sidebar to the left no matter window size
craigharman Jul 24, 2026
a848954
feat: allow manual dark mode selection in settings
craigharman Jul 24, 2026
d1a9622
docs: add website link to readme
craigharman Jul 24, 2026
35783ba
refactor: improve cleanup of file-system watcher in RepositoryWatcher
craigharman Jul 29, 2026
26c3d12
feat: add commit after squash with message prompt
craigharman Jul 31, 2026
fa571f8
feat: add "open in" option to toolbar and group icons
craigharman Aug 26, 2026
dd80569
style: updated toolbar items into one toolbar with a divider
craigharman Aug 26, 2026
1d40a00
fix: improve contrast of add and delete lines in diff view
craigharman Aug 26, 2026
2afd674
fix: The diff pane will now be hidden when no files are selected on t…
craigharman Aug 26, 2026
3377f98
refactor: optimize diff view with lazy stack for improved performance
craigharman Aug 26, 2026
18d354e
fix: A pane resize issue introduced in commit 2afd674 . Adding and re…
craigharman Sep 30, 2026
70f6edc
Merge remote-tracking branch 'origin/main' into develop
craigharman Sep 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions Sources/Gitify/Views/CommitDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,17 @@ struct ChangesetDiffPane: View {
@State private var loading = false

var body: some View {
VSplitView {
PersistentSplitView(.vertical, autosaveKey: "changeset",
firstIdeal: 220, firstMin: 140, secondMin: 120) {
GeometryReader { _ in
if loading {
ProgressView().frame(maxWidth: .infinity, maxHeight: .infinity)
} else {
changeList
}
}
.frame(maxWidth: .infinity, minHeight: 140)

} second: {
CommitFileDiffPane(fileDiff: fileDiff, imageDiffData: imageDiffData)
.frame(maxWidth: .infinity, minHeight: 120)
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.task(id: ref) { await load() }
Expand Down Expand Up @@ -130,14 +129,11 @@ struct ChangesetDiffPane: View {
}

/// The diff side of the changeset split: the selected file's diff, or a placeholder.
/// Concrete (not an inline if/else) so selecting a changed file doesn't reset the dragged divider.
private struct CommitFileDiffPane: View {
let fileDiff: FileDiff?
var imageDiffData: ImageDiffData? = nil

var body: some View {
// GeometryReader so the pane keeps a constant (greedy) size whether the diff or the
// placeholder is shown — otherwise VSplitView shifts the divider on file selection.
GeometryReader { _ in
if let fileDiff {
DiffView(diff: fileDiff, imageDiffData: imageDiffData)
Expand Down
6 changes: 3 additions & 3 deletions Sources/Gitify/Views/DiffView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct DiffView: View {
// so backgrounds span the full pane and long lines scroll horizontally.
GeometryReader { geo in
ScrollView([.vertical, .horizontal]) {
VStack(alignment: .leading, spacing: 0) {
LazyVStack(alignment: .leading, spacing: 0) {
ForEach(diff.hunks) { hunk in
hunkHeader(hunk, width: geo.size.width)
ForEach(Array(hunk.lines.enumerated()), id: \.offset) { index, line in
Expand Down Expand Up @@ -165,8 +165,8 @@ private struct DiffLineRow: View {

private var background: Color {
switch line.kind {
case .addition: return .green.opacity(0.14)
case .deletion: return .red.opacity(0.14)
case .addition: return .green.opacity(0.22)
case .deletion: return .red.opacity(0.22)
case .context: return .clear
}
}
Expand Down
11 changes: 4 additions & 7 deletions Sources/Gitify/Views/HistoryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ struct HistoryView: View {
}

var body: some View {
HSplitView {
PersistentSplitView(.horizontal, autosaveKey: "history",
firstIdeal: 480, firstMin: 380, secondMin: 300) {
VStack(spacing: 0) {
SearchField(text: $search, prompt: "Filter commits")
if search.isEmpty {
Expand All @@ -29,24 +30,20 @@ struct HistoryView: View {
FilteredCommitList(commits: filtered, viewModel: viewModel, selection: $selection)
}
}
.frame(minWidth: 380, idealWidth: 480, maxHeight: .infinity)
.layoutPriority(1)
.frame(maxHeight: .infinity)
} second: {
CommitDetailPane(selection: selection, viewModel: viewModel)
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}

/// The inspector side of the history split: the selected commit's detail, or a placeholder.
/// Concrete (not an inline if/else) so selection changes don't reset the dragged divider.
private struct CommitDetailPane: View {
let selection: Commit.ID?
let viewModel: RepositoryViewModel

var body: some View {
// GeometryReader so the pane keeps a constant (greedy) size whether the detail or the
// placeholder is shown — otherwise HSplitView shifts the divider on commit selection.
GeometryReader { _ in
if let selected = viewModel.commits.first(where: { $0.id == selection }) {
CommitDetailView(commit: selected, viewModel: viewModel)
Expand Down
104 changes: 104 additions & 0 deletions Sources/Gitify/Views/PersistentSplitView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
import SwiftUI

/// A two-pane split whose divider position is saved to UserDefaults and restored.
///
/// Replaces `HSplitView`/`VSplitView`, which don't persist their divider and reset it to the
/// panes' ideal sizes whenever the split is recreated (switching sections) or a pane is added
/// or removed. The first pane has a fixed, stored size; the second takes the rest.
struct PersistentSplitView<First: View, Second: View>: View {
enum Axis { case horizontal, vertical }

let axis: Axis
let firstMin: CGFloat
let secondMin: CGFloat
/// When false the second pane and divider are hidden and the first pane fills the split.
/// The view tree stays the same so the first pane's state survives toggling.
let showsSecond: Bool
let first: First
let second: Second

@AppStorage private var storedSize: Double
/// The size while a drag is in progress (written to `storedSize` when it ends).
@State private var dragSize: CGFloat?
@State private var dragStart: CGFloat?

private static var dividerHitWidth: CGFloat { 6 }

init(_ axis: Axis,
autosaveKey: String,
firstIdeal: CGFloat,
firstMin: CGFloat,
secondMin: CGFloat,
showsSecond: Bool = true,
@ViewBuilder first: () -> First,
@ViewBuilder second: () -> Second) {
self.axis = axis
self.firstMin = firstMin
self.secondMin = secondMin
self.showsSecond = showsSecond
self.first = first()
self.second = second()
_storedSize = AppStorage(wrappedValue: Double(firstIdeal), "split.\(autosaveKey)")
}

var body: some View {
GeometryReader { geo in
let total = axis == .horizontal ? geo.size.width : geo.size.height
let size = clamp(dragSize ?? CGFloat(storedSize), total: total)
let layout = axis == .horizontal
? AnyLayout(HStackLayout(spacing: 0))
: AnyLayout(VStackLayout(spacing: 0))

layout {
// One unconditional `first` so its identity (and state) survives toggling `showsSecond`.
first
.frame(width: showsSecond && axis == .horizontal ? size : nil,
height: showsSecond && axis == .vertical ? size : nil)
.frame(maxWidth: showsSecond ? nil : .infinity,
maxHeight: showsSecond ? nil : .infinity)
if showsSecond {
divider(currentSize: size, total: total)
second.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}
}
}

private func divider(currentSize: CGFloat, total: CGFloat) -> some View {
Divider()
.overlay {
// Wider invisible hit area centred on the 1pt line.
Color.clear
.frame(width: axis == .horizontal ? Self.dividerHitWidth : nil,
height: axis == .vertical ? Self.dividerHitWidth : nil)
.contentShape(Rectangle())
.onHover { inside in
if inside {
(axis == .horizontal ? NSCursor.resizeLeftRight : NSCursor.resizeUpDown).push()
} else {
NSCursor.pop()
}
}
.gesture(
// Global space: the divider moves with the drag, so local translation would jitter.
DragGesture(minimumDistance: 0, coordinateSpace: .global)
.onChanged { value in
let start = dragStart ?? currentSize
dragStart = start
let delta = axis == .horizontal ? value.translation.width : value.translation.height
dragSize = clamp(start + delta, total: total)
}
.onEnded { _ in
if let dragSize { storedSize = Double(dragSize) }
dragSize = nil
dragStart = nil
}
)
}
}

private func clamp(_ value: CGFloat, total: CGFloat) -> CGFloat {
let upper = total - secondMin - 1
return max(firstMin, min(value, upper))
}
}
6 changes: 3 additions & 3 deletions Sources/Gitify/Views/RepositoryWorkspaceView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ struct RepositoryWorkspaceView: View {
}
.background(TitlebarBrand())
.toolbar {
ToolbarItemGroup {
ToolbarItemGroup(placement: .primaryAction) {
Button { Task { await viewModel.fetch() } } label: {
Label("Fetch", systemImage: "arrow.down.circle")
}
Expand Down Expand Up @@ -116,9 +116,9 @@ struct RepositoryWorkspaceView: View {
.help("Push current branch").disabled(viewModel.isBusy || viewModel.remotes.isEmpty)

branchMenu
}

ToolbarItemGroup {
Divider()

if !hideAIFeatures {
Button {
if AIDefaults.hasAPIKey {
Expand Down
6 changes: 3 additions & 3 deletions Sources/Gitify/Views/SplitDiffView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct SplitDiffView: View {
// separator keeps rows from stretching.
let column = max((geo.size.width - 1) / 2, 80)
ScrollView(.vertical) {
VStack(alignment: .leading, spacing: 0) {
LazyVStack(alignment: .leading, spacing: 0) {
ForEach(rows) { row in
HStack(spacing: 0) {
side(row.left, isOld: true, width: column)
Expand Down Expand Up @@ -87,8 +87,8 @@ struct SplitDiffView: View {

private func background(_ line: DiffLine?) -> Color {
switch line?.kind {
case .addition: .green.opacity(0.14)
case .deletion: .red.opacity(0.14)
case .addition: .green.opacity(0.22)
case .deletion: .red.opacity(0.22)
default: line == nil ? Color(nsColor: .quaternaryLabelColor).opacity(0.25) : .clear
}
}
Expand Down
9 changes: 3 additions & 6 deletions Sources/Gitify/Views/StashesView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ struct StashesView: View {
if viewModel.stashes.isEmpty {
emptyState
} else {
HSplitView {
PersistentSplitView(.horizontal, autosaveKey: "stashes",
firstIdeal: 320, firstMin: 280, secondMin: 360) {
stashList
.frame(minWidth: 280, idealWidth: 320)
} second: {
StashDetailPane(selection: selection, viewModel: viewModel)
.frame(minWidth: 360, maxWidth: .infinity)
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
Expand Down Expand Up @@ -91,14 +91,11 @@ struct StashesView: View {
}

/// The detail side of the stash split: the selected stash's changeset, or a placeholder.
/// Concrete (not an inline if/else) so selection changes don't reset the dragged divider.
private struct StashDetailPane: View {
let selection: Stash.ID?
let viewModel: RepositoryViewModel

var body: some View {
// GeometryReader so the pane keeps a constant (greedy) size whether the changeset or the
// placeholder is shown — otherwise HSplitView shifts the divider on stash selection.
GeometryReader { _ in
if let stash = viewModel.stashes.first(where: { $0.id == selection }) {
ChangesetDiffPane(ref: stash.id, viewModel: viewModel)
Expand Down
15 changes: 5 additions & 10 deletions Sources/Gitify/Views/WorkingTreeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ struct WorkingTreeView: View {
var body: some View {
if let status = viewModel.status {
if status.hasChanges {
HSplitView {
PersistentSplitView(.horizontal, autosaveKey: "workingTree",
firstIdeal: 360, firstMin: 300, secondMin: 300,
showsSecond: !selection.isEmpty) {
VStack(spacing: 0) {
SearchField(text: $search, prompt: "Filter files")
fileList(status)
Divider()
CommitBox(viewModel: viewModel)
}
.frame(minWidth: 300, idealWidth: 360, maxHeight: .infinity)
.layoutPriority(1)

.frame(maxHeight: .infinity)
} second: {
DiffPane(viewModel: viewModel)
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.onChange(of: viewModel.selectedPath) { _, path in
Expand Down Expand Up @@ -213,15 +213,10 @@ struct WorkingTreeView: View {
}

/// The diff side of the working-tree split: the selected file's diff, or a placeholder.
/// A concrete view so the conditional doesn't change the split child's identity (which would
/// reset the user's dragged divider on every selection).
private struct DiffPane: View {
let viewModel: RepositoryViewModel

var body: some View {
// Wrapped in a GeometryReader so the pane reports the same (greedy, flexible) size whether
// the diff or the placeholder is shown — otherwise HSplitView redistributes width on the
// first selection (DiffView is itself a GeometryReader; the bare placeholder is not).
GeometryReader { _ in
if let diff = viewModel.currentDiff {
DiffView(diff: diff,
Expand Down
Loading