Lichtkasten v0.1: Culling, IPTC (PM-kompatibel), Vorlagen, FTP/Immich, Lightroom-Bridge

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
This commit is contained in:
Lichtkasten DevandClaude Opus 5.5 committed 2026-11-03 22:40:28 +00:00
commit e13cbf416d
37 files changed
+4431

No files matched your search

@@ -0,0 +1,38 @@
import SwiftUI
struct UploadsView: View {
@EnvironmentObject var uploads: UploadQueue
@Environment(\.dismiss) private var dismiss
var body: some View {
VStack(alignment: .leading, spacing: 10) {
Text("Uploads").font(.headline)
Table(uploads.jobs) {
TableColumn("Datei") { j in Text(j.file.lastPathComponent) }
TableColumn("Als") { j in Text(j.remoteName).foregroundStyle(.secondary) }
TableColumn("Ziel") { j in Text(j.targetName) }
TableColumn("Status") { j in statusView(j.status) }
}
.frame(minHeight: 300)
HStack {
Button("Fehlgeschlagene wiederholen") { uploads.retryFailed() }.disabled(uploads.failedCount == 0)
Button("Erledigte entfernen") { uploads.clearFinished() }
Spacer()
Button("Schließen") { dismiss() }.keyboardShortcut(.defaultAction)
}
}
.padding(16)
.frame(width: 760, height: 460)
}
@ViewBuilder
private func statusView(_ s: UploadJob.Status) -> some View {
switch s {
case .waiting: Label("Wartet", systemImage: "clock").foregroundStyle(.secondary)
case .running: HStack { ProgressView().controlSize(.small); Text("Lädt …") }
case .done: Label("Fertig", systemImage: "checkmark.circle.fill").foregroundStyle(.green)
case .duplicate: Label("Schon vorhanden", systemImage: "equal.circle").foregroundStyle(.secondary)
case .failed(let m): Label(m, systemImage: "xmark.octagon.fill").foregroundStyle(.red).help(m)
}
}
}