This commit is contained in:
Ian Gulliver
2026-10-20 23:28:57 -07:00
parent 59bf17189d
commit 30471cc27a
8 changed files with 16 additions and 18 deletions
+1 -1
View File
@@ -689,7 +689,7 @@ private struct LineCommentBox: View {
}
.overlay(RoundedRectangle(cornerRadius: 6).stroke(focused ? Palette.accent : Palette.border))
.imageInput(key)
Button("remove") {
Button("Remove") {
_ = store.images.take(key)
drafts.dropLineComment(taskId, anchor)
}
+3 -3
View File
@@ -1414,7 +1414,7 @@ private struct FindingResponseView: View {
.fixedSize(horizontal: false, vertical: true)
Spacer(minLength: 0)
if let review = row.review, findings(review).indices.contains(index) {
Button("show") {
Button("Show") {
model.showFinding(review.id, index)
}
.buttonStyle(SmallLinkButtonStyle())
@@ -1741,14 +1741,14 @@ private struct SnapshotRow: View {
Rectangle().fill(Palette.border).frame(height: 1)
Text("snapshot #\(snap.n)")
if !inherited {
Button("changes") {
Button("Changes") {
store.pinSnapshot(snap.n)
store.focusTab(.changes)
}
.buttonStyle(SmallLinkButtonStyle())
.help("Show snapshot \(snap.n) in the Changes tab")
}
Button("fork") {
Button("Fork") {
guard let taskId else {
return
}
+1 -1
View File
@@ -129,7 +129,7 @@ private struct NoteRow: View {
.textSelection(.enabled)
.frame(maxWidth: .infinity, alignment: .leading)
.fixedSize(horizontal: false, vertical: true)
Button("delete") {
Button("Delete") {
Task {
if !(await overlays.showConfirm(["Delete this note? Your lead stops applying it.", note.text], action: "Delete", danger: true, anchor: frame)) {
return
+2 -2
View File
@@ -246,13 +246,13 @@ struct FindingActions: View {
.foregroundStyle(Palette.muted)
} else if response != .fixing {
HStack(spacing: 6) {
Button("fix") {
Button("Fix") {
fix()
}
.buttonStyle(SmallLinkButtonStyle())
.help(response == .ignoring ? "Overrule the agent: send this finding to it to fix" : "Send this finding to the task's agent to fix")
if response == nil {
Button("ignore") {
Button("Ignore") {
ignore()
}
.buttonStyle(SmallLinkButtonStyle())
+3 -3
View File
@@ -147,14 +147,14 @@ struct WorkflowEditor: View {
ScrollView {
VStack(alignment: .leading, spacing: 0) {
HStack(spacing: 10) {
Button("‹ workflows") {
Button("‹ Workflows") {
Task {
await leave()
}
}
.buttonStyle(SmallLinkButtonStyle())
Spacer()
Button("save") {
Button("Save") {
Task {
await save()
}
@@ -188,7 +188,7 @@ struct WorkflowEditor: View {
}
}
.padding(.top, 12)
Button("add stage") {
Button("Add stage") {
root.insert(newStage(root, store.defaultModel), at: root.children.count)
}
.buttonStyle(SmallLinkButtonStyle())
+4 -4
View File
@@ -28,7 +28,7 @@ struct WorkflowsView: View {
.foregroundStyle(Palette.muted)
.fixedSize(horizontal: false, vertical: true)
.frame(maxWidth: .infinity, alignment: .leading)
Button("new") {
Button("New") {
editing = .new
}
.buttonStyle(SmallLinkButtonStyle())
@@ -125,17 +125,17 @@ private struct WorkflowRow: View {
.textSelection(.enabled)
.frame(maxWidth: .infinity, alignment: .leading)
.fixedSize(horizontal: false, vertical: true)
Button("edit") {
Button("Edit") {
edit()
}
.buttonStyle(SmallLinkButtonStyle())
.help("See and change this workflow's steps and prompts")
Button("run") {
Button("Run") {
run()
}
.buttonStyle(SmallLinkButtonStyle())
.help("Open the Lead tab with a request to run this workflow in its composer")
Button("delete") {
Button("Delete") {
Task {
await delete()
}