diff --git a/NucleicRemote/NucleicRemote/Views/Transcript/TranscriptProjection.swift b/NucleicRemote/NucleicRemote/Views/Transcript/TranscriptProjection.swift index bef2636..f3c5c46 100644 --- a/NucleicRemote/NucleicRemote/Views/Transcript/TranscriptProjection.swift +++ b/NucleicRemote/NucleicRemote/Views/Transcript/TranscriptProjection.swift @@ -34,7 +34,10 @@ struct TranscriptItem: Identifiable, Equatable { case approval(toolName: String) case runFinished(outcome: RunFinished.Outcome) case error(message: String) - case note(text: String, icon: String?, lockEvent: Bool) + /// A passthrough note. `lock` carries the structured lock detail when this is a file-lock + /// lifecycle moment, so the projection can fold it onto the edit card it brackets; `nil` + /// for every non-lock note (and lock notes with no paths). + case note(text: String, icon: String?, lockEvent: Bool, lock: NoteLock? = nil) case raw(type: String, body: String) }