Fixes aus dem Bundesliga-Einsatz
- Upload: kein Absturz mehr bei abreißender Verbindung (Restzeit-Berechnung lief über), SIGPIPE ignoriert; bei Netzwechsel werden laufende Übertragungen abgebrochen und auf dem neuen Netz automatisch neu gestartet (Versuch zählt nicht), ohne Netz warten sie; tote Verbindungen enden nach 45 s - LR-Export: Bilder, die sich auf der Platte ändern, werden neu eingelesen (vorher blieb der erste, unvollständige Stand stehen); nie leeres IPTC über das JPEG schreiben; Zuordnung auch mit altem Plugin - I-Fenster: Cursor in der Beschreibung steht oben (wie PM), nicht am Ende - ⌘A wählt alle Bilder, ⌘⌫ legt die Auswahl (RAW + JPEG + XMP) nach Rückfrage in den Papierkorb - Gesendet-Status getrennt: grünes FTP- und blaues Immich-Abzeichen, Filter je Ziel, Info in Lupe/I-Fenster - nach dem Ingest sind die neu importierten Bilder ausgewählt (direkt weiter nach Lightroom) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
This commit is contained in:
1 parent
fff701674a
commit
b2210757dd
10 files changed
+298
-33
No files matched your search
@@ -39,6 +39,7 @@ struct CodeTextView: NSViewRepresentable {
|
||||
tv.isContinuousSpellCheckingEnabled = true
|
||||
tv.textContainerInset = NSSize(width: 3, height: 4)
|
||||
tv.string = text
|
||||
CodeTextView.cursorToStart(tv)
|
||||
return sv
|
||||
}
|
||||
|
||||
@@ -46,6 +47,14 @@ struct CodeTextView: NSViewRepresentable {
|
||||
context.coordinator.parent = self
|
||||
guard let tv = sv.documentView as? NSTextView, tv.string != text, !context.coordinator.editing else { return }
|
||||
tv.string = text
|
||||
CodeTextView.cursorToStart(tv)
|
||||
}
|
||||
|
||||
/// Like PM: a newly loaded caption starts with the cursor at the very top – on the empty placeholder
|
||||
/// line for the people (setting `string` would leave it at the end).
|
||||
static func cursorToStart(_ tv: NSTextView) {
|
||||
tv.setSelectedRange(NSRange(location: 0, length: 0))
|
||||
tv.scrollRangeToVisible(NSRange(location: 0, length: 0))
|
||||
}
|
||||
|
||||
final class Coordinator: NSObject, NSTextViewDelegate {
|
||||
|
||||
@@ -184,15 +184,31 @@ struct ThumbnailCell: View, Equatable {
|
||||
// sent to agency / Immich
|
||||
.overlay(alignment: .bottomLeading) {
|
||||
if let sent {
|
||||
HStack(spacing: 3) {
|
||||
Image(systemName: "paperplane.fill").font(.system(size: 9, weight: .bold))
|
||||
if sent.count > 1 { Text("\(sent.count)×").font(LK.mono(10, .semibold)) }
|
||||
// FTP (agency) and Immich separately
|
||||
HStack(spacing: 4) {
|
||||
if let ftp = sent.ftp {
|
||||
HStack(spacing: 3) {
|
||||
Image(systemName: "paperplane.fill").font(.system(size: 9, weight: .bold))
|
||||
Text("FTP").font(.system(size: 9, weight: .bold))
|
||||
if ftp.count > 1 { Text("\(ftp.count)×").font(LK.mono(10, .semibold)) }
|
||||
}
|
||||
.foregroundStyle(LK.onAmber)
|
||||
.padding(.horizontal, 6).frame(height: 18)
|
||||
.background(Capsule().fill(LK.green))
|
||||
.help(ftp.tooltip)
|
||||
}
|
||||
if let immich = sent.immich {
|
||||
HStack(spacing: 3) {
|
||||
Image(systemName: "photo.stack.fill").font(.system(size: 9, weight: .bold))
|
||||
if immich.count > 1 { Text("\(immich.count)×").font(LK.mono(10, .semibold)) }
|
||||
}
|
||||
.foregroundStyle(.white)
|
||||
.padding(.horizontal, 6).frame(height: 18)
|
||||
.background(Capsule().fill(Color(red: 0.26, green: 0.52, blue: 0.96)))
|
||||
.help(immich.tooltip.replacingOccurrences(of: "Gesendet an", with: "Hochgeladen zu"))
|
||||
}
|
||||
}
|
||||
.foregroundStyle(LK.onAmber)
|
||||
.padding(.horizontal, 6).frame(height: 18)
|
||||
.background(Capsule().fill(LK.green))
|
||||
.padding(8)
|
||||
.help(sent.tooltip)
|
||||
}
|
||||
}
|
||||
// open player suggestion
|
||||
|
||||
@@ -195,12 +195,20 @@ struct SentStatusLine: View {
|
||||
let summary: SentSummary?
|
||||
|
||||
var body: some View {
|
||||
HStack(alignment: .top, spacing: 6) {
|
||||
Image(systemName: summary == nil ? "paperplane" : "paperplane.fill").font(.system(size: 11))
|
||||
Text(summary?.tooltip ?? "Noch nicht gesendet").lineLimit(2)
|
||||
VStack(alignment: .leading, spacing: 3) {
|
||||
line("paperplane", "FTP", summary?.ftp?.tooltip, LK.green)
|
||||
line("photo.stack", "Immich", summary?.immich?.tooltip.replacingOccurrences(of: "Gesendet an Immich", with: "Hochgeladen"),
|
||||
Color(red: 0.36, green: 0.6, blue: 1.0))
|
||||
}
|
||||
.font(.system(size: 11, weight: .medium))
|
||||
.foregroundStyle(summary == nil ? LK.muted : LK.green)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
}
|
||||
|
||||
private func line(_ icon: String, _ what: String, _ text: String?, _ color: Color) -> some View {
|
||||
HStack(alignment: .top, spacing: 6) {
|
||||
Image(systemName: text == nil ? icon : icon + ".fill").font(.system(size: 11))
|
||||
Text(text ?? "\(what): noch nicht gesendet").lineLimit(2)
|
||||
}
|
||||
.foregroundStyle(text == nil ? LK.muted : color)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user