summaryrefslogtreecommitdiff
path: root/Hutch/Views/Builds/BuildListView.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-13 09:57:23 -0500
committerChristian Cleberg <[email protected]>2026-04-13 09:57:23 -0500
commit0e461a382257979037e8927e5f6b468635b0a7fe (patch)
tree0aa3a19f6f8f966b0e90f4874ed54359a7898107 /Hutch/Views/Builds/BuildListView.swift
parentee9f2904aa319231b7047fca3cb069f0c07019cd (diff)
downloadhutch-0e461a382257979037e8927e5f6b468635b0a7fe.tar.gz
hutch-0e461a382257979037e8927e5f6b468635b0a7fe.tar.bz2
hutch-0e461a382257979037e8927e5f6b468635b0a7fe.zip
feat: add power user actions
Implements: https://todo.sr.ht/~ccleberg/hutch/52 Implements: https://todo.sr.ht/~ccleberg/hutch/53 Implements: https://todo.sr.ht/~ccleberg/hutch/54
Diffstat (limited to 'Hutch/Views/Builds/BuildListView.swift')
-rw-r--r--Hutch/Views/Builds/BuildListView.swift23
1 files changed, 23 insertions, 0 deletions
diff --git a/Hutch/Views/Builds/BuildListView.swift b/Hutch/Views/Builds/BuildListView.swift
index d99d53a..aa98066 100644
--- a/Hutch/Views/Builds/BuildListView.swift
+++ b/Hutch/Views/Builds/BuildListView.swift
@@ -136,6 +136,29 @@ struct BuildListView: View {
NavigationLink(value: job) {
BuildRowView(job: job)
}
+ .contextMenu {
+ Button {
+ appState.copyToPasteboard(String(job.id), label: "job ID")
+ } label: {
+ Label("Copy Job ID", systemImage: "doc.on.doc")
+ }
+
+ if let note = job.note, !note.isEmpty {
+ Button {
+ appState.copyToPasteboard(note, label: "build note")
+ } label: {
+ Label("Copy Note", systemImage: "text.alignleft")
+ }
+ }
+
+ if !job.tags.isEmpty {
+ Button {
+ appState.copyToPasteboard(job.tags.joined(separator: ", "), label: "build tags")
+ } label: {
+ Label("Copy Tags", systemImage: "tag")
+ }
+ }
+ }
.swipeActions(edge: .leading, allowsFullSwipe: true) {
if swipeActionsEnabled, job.status.isCancellable {
Button {