feat: edit a transcript in the Notitie editor, delete button per transcript

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-02 11:19:24 +02:00
co-authored by Claude Sonnet 5.5
parent 951e23ba22
commit b225718fb1
7 changed files with 101 additions and 10 deletions
+8
View File
@@ -57,6 +57,8 @@ final class AppModel: ObservableObject {
@Published private(set) var historyRevision = 0
@Published private(set) var dictionaryRevision = 0
@Published private(set) var searchFocusTick = 0
/// The transcript currently open in the Notitie editor, if any.
@Published var editingEntryID: UUID?
@Published var lastError: String?
@Published var section: Section = .transcripts
@Published var confirmingClearHistory = false
@@ -375,6 +377,12 @@ final class AppModel: ObservableObject {
// MARK: preview
/// Opens a transcript in the editor; edits go straight back into the history.
func edit(entry id: UUID) {
editingEntryID = id
section = .note
}
private func loadPreviewData() {
note.text = "Notities voor vrijdag: Supabase-migratie plannen en Claude Code uitproberen."
try? dictionary.load()