Skip to content

refactor: вынести TrashOperationsModel из AppModel - #90

Merged
fso13 merged 1 commit into
mainfrom
refactor/trash-operations
Oct 23, 2026
Merged

fso13 merged 1 commit into
mainfrom
refactor/trash-operations

Conversation

@fso13

@fso13 fso13 commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Что сделано

  • Вынесен TrashOperationsModel: подтверждения, асинхронное перемещение в Корзину, undo, коллекция и topLevelSelection.
  • TrashModel остаётся чистым состоянием (confirmation/busy/undo stack); операции — в новом типе.
  • UI и тесты переведены на model.trashOperations.* и model.trash.* bindings.
  • TrashOperationsModelTests: доступность, подтверждения, no-op undo.
  • AppModel: 964 → 758 строк; тесты: 158.

Refs #66
Refs #87

- Move trash/collection confirmation, async deletion, undo and top-level selection
- Keep TrashModel as pure confirmation/busy/undo state; operations live in a new model
- Migrate UI and tests to model.trashOperations and model.trash bindings
- Add TrashOperationsModelTests for availability, confirmations and undo no-op
- AppModel is now 758 lines; 158 tests green

Refs #66
Refs #87
@fso13
fso13 merged commit df74d0b into main Oct 23, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants