Let the human comment on each decision in the ready-for-merge card

This commit is contained in:
Ian Gulliver
2026-10-21 16:05:26 -07:00
parent 8202e9fc9f
commit ccb08ab6ec
7 changed files with 166 additions and 45 deletions
+8 -1
View File
@@ -61,7 +61,7 @@ struct AttentionReply<Leading: View, Trailing: View>: View {
}
}
private struct OtherEntry: View {
struct OtherEntry: View {
let key: String
let placeholder: String
let busy: Bool
@@ -82,6 +82,13 @@ private struct OtherEntry: View {
focus: $editing, border: editing ? Palette.accent : Palette.border, send: send)
.disabled(busy)
}
.onAppear {
if trimmed(store.drafts?.textAnswer(key) ?? "").isEmpty && !store.images.has(key) {
DispatchQueue.main.async {
editing = true
}
}
}
.onChange(of: editing) {
if !editing {
if trimmed(text).isEmpty && !store.images.has(key) && !busy {