Danger warning on approval cards (red card, reasons, no Always); file shelf in the top-left slot with 'На полку' after a drop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maksarsanjeev
2026-10-06 22:51:35 +03:00
parent 3857776111
commit 37c01f991a
9 changed files with 296 additions and 6 deletions
+10
View File
@@ -243,6 +243,16 @@ final class AppState: ObservableObject {
// Dropped file (set during upload flow)
@Published var droppedFile: DroppedFile? = nil
/// Original URLs of the last drop (all of them), for "На полку".
var lastDroppedURLs: [URL] = []
/// Puts the last dropped files on the shelf and goes back home.
func shelveLastDrop() {
FileShelf.shared.add(lastDroppedURLs)
SoundEngine.shared.play("pop")
NotificationCenter.default.post(name: .triggerEmote, object: BotEmote.proud)
view = .overview
}
// Short note message (shown in NoteView)
@Published var noteMessage: String? = nil