feat(app): deleting a studyset can be undone for a moment
Some checks failed
CI / check (push) Failing after 24s
CI / deploy (push) Has been skipped

Decided 2026-10-01. Deleting still asks first; once confirmed, the studyset
leaves the library at once and "Studyset deleted" offers Undo for three
seconds. Only when the time to undo is over (four seconds: the message's
three and a moment for a late tap) are its cards and then the studyset
blanked and deleted, since blanking can't be undone (ADR 0002, rule 2). A
deletion still waiting when the library closes (the app quits, the person
changes) is dropped, and the studyset stays.

The library's bloc keeps the waiting deletions; the event that ends the
time to undo is private, so no screen can skip it. AGENTS.md now describes
the library's shared widgets, the sheets (and why a sheet that asks before
discarding can't be swiped away), the order of studysets, and this Undo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-10-01 08:55:39 +02:00
commit 41f536bbe2
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64

View file

@ -214,6 +214,12 @@ abstract class AppLocalizations {
/// **'Studyset unarchived'**
String get libraryStudysetUnarchived;
/// No description provided for @libraryStudysetDeleted.
///
/// In en, this message translates to:
/// **'Studyset deleted'**
String get libraryStudysetDeleted;
/// No description provided for @libraryDeleteTitle.
///
/// In en, this message translates to:
@ -223,7 +229,7 @@ abstract class AppLocalizations {
/// No description provided for @libraryDeleteMessage.
///
/// In en, this message translates to:
/// **'It is deleted with its cards, on all your devices.'**
/// **'It is deleted with its cards, on all your devices. You can undo this for a few seconds.'**
String get libraryDeleteMessage;
/// No description provided for @libraryDeleteConfirm.