adds claude-generated commit messages and a recent commits panel to the git view - adds log tailing in the explorer, branch merging and a clean up button

This commit is contained in:
2026-11-04 10:07:52 +01:00
parent 600d4874d2
commit cc6651c08a
49 changed files with 1944 additions and 180 deletions
@@ -43,6 +43,7 @@ public struct ContextMenuHeader: View {
/// One 30pt menu item. Highlighted: `raised` fill, 2pt amber left rule, text-1 500 label, amber icon.
/// A tinted icon keeps its tint when highlighted; destructive items stay amber-deep in every state.
/// Disabled is 40% opacity and the arrow; it still takes hover, so a tooltip on it can show.
public struct ContextMenuRow: View {
var label: String
var systemImage: String?
@@ -51,9 +52,10 @@ public struct ContextMenuRow: View {
var isHighlighted: Bool
var isDestructive: Bool
var isEmphasized: Bool
var isDisabled: Bool
public init(_ label: String, systemImage: String? = nil, iconTint: Color? = nil, shortcut: String? = nil,
isHighlighted: Bool, isDestructive: Bool = false, isEmphasized: Bool = false) {
isHighlighted: Bool, isDestructive: Bool = false, isEmphasized: Bool = false, isDisabled: Bool = false) {
self.label = label
self.systemImage = systemImage
self.iconTint = iconTint
@@ -61,6 +63,7 @@ public struct ContextMenuRow: View {
self.isHighlighted = isHighlighted
self.isDestructive = isDestructive
self.isEmphasized = isEmphasized
self.isDisabled = isDisabled
}
/// Pass as `systemImage` for the pass-on spark, which has no SF Symbol.
@@ -93,8 +96,9 @@ public struct ContextMenuRow: View {
.overlay(alignment: .leading) {
Rectangle().fill(isHighlighted ? Palette.amber : .clear).frame(width: Metrics.accentRule)
}
.opacity(isDisabled ? 0.4 : 1)
.contentShape(Rectangle())
.pointerHand()
.pointerHand(!isDisabled)
}
private var labelRole: TypeRole {