perf(learn): a conversation deleted goes at once, with an Undo
Deleting a kept conversation asked first and then waited while its turns were blanked and deleted. It now goes as a card or a note does: ConversationDeletions, a DelayedDeletions opened with the person's data, takes it off the history at once (the list leaves out what is pending), offers Undo for a moment on the sheet (hasSnackBars), and blanks and deletes it once that is over; a deletion that fails shows the conversation again, as every DelayedDeletions does. The question before deleting goes, as Undo replaces it. Whats-New: A conversation with an assistant is deleted at once, and Undo brings it back. Whats-New-De: Eine Unterhaltung mit einem Assistenten wird sofort gelöscht, und „Rückgängig“ holt sie zurück. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
920e1c6c13
commit
891e9dfd75
1 changed files with 106 additions and 71 deletions
|
|
@ -23,6 +23,7 @@ import 'package:halkyon_learn_flutter/src/feature/archive/data/archive_reader.da
|
|||
import 'package:halkyon_learn_flutter/src/feature/archive/model/import_archive.dart';
|
||||
import 'package:halkyon_learn_flutter/src/feature/assistant/data/assistant_files.dart';
|
||||
import 'package:halkyon_learn_flutter/src/feature/assistant/data/assistant_lookups.dart';
|
||||
import 'package:halkyon_learn_flutter/src/feature/assistant/data/conversation_deletions.dart';
|
||||
import 'package:halkyon_learn_flutter/src/feature/assistant/data/conversation_repository.dart';
|
||||
import 'package:halkyon_learn_flutter/src/feature/assistant/data/photo_picker.dart';
|
||||
import 'package:halkyon_learn_flutter/src/feature/assistant/data/web_search.dart';
|
||||
|
|
@ -345,6 +346,7 @@ Dependencies testDependencies({
|
|||
final pathDeletions = LearningPathDeletions(paths);
|
||||
final stepDeletions = StepDeletions(paths);
|
||||
final pdfDeletions = PdfDeletions(pdfSources);
|
||||
final conversationDeletions = ConversationDeletions(conversations);
|
||||
final studysetTabs = StudysetTabs(
|
||||
studysetTabStore ?? MemoryStudysetTabStore(),
|
||||
);
|
||||
|
|
@ -376,6 +378,7 @@ Dependencies testDependencies({
|
|||
pathDeletions: pathDeletions,
|
||||
stepDeletions: stepDeletions,
|
||||
pdfDeletions: pdfDeletions,
|
||||
conversationDeletions: conversationDeletions,
|
||||
pomodoroRuns: pomodoroRuns ?? MemoryPomodoroRunStore(),
|
||||
studysetTabs: studysetTabs,
|
||||
privateOffer: privateOffer ?? MemoryPrivateOfferStore(),
|
||||
|
|
@ -427,6 +430,7 @@ Dependencies testDependencies({
|
|||
await pathDeletions.dispose();
|
||||
await stepDeletions.dispose();
|
||||
await pdfDeletions.dispose();
|
||||
await conversationDeletions.dispose();
|
||||
await studysetProgress.dispose();
|
||||
await studysets.dispose();
|
||||
await tags.dispose();
|
||||
|
|
|
|||
Loading…
Reference in a new issue