Implement data clean-up dialog (#4072)

* [wip] Add user data cleanup service

* Add clean-up report viewer

* Fix review comments

* Add function comments

* Implement item actions

* Fix UI styles

* Add placeholder for empty results, update category description view

* Add displayEmptyPlaceholder method to show message when results list is empty

* Adjust menu buttons row

* Delete char-scoped data bank attachments on character deletion

* Data Bank: Handle character attachments on rename

* Remove line breaks in description strings

* Drop the category when the last item is deleted

* Skip invalid hashes instead of bailing
This commit is contained in:
Cohee
2025-06-01 13:56:34 +03:00
committed by GitHub
parent 7f47f84c9f
commit 3ec9b1a099
15 changed files with 1475 additions and 62 deletions

View File

@@ -0,0 +1,25 @@
<div class="dataMaidDialog">
<div class="dataMaidDialogHeader">
<div class="dataMaidHeaderInfo info-block warning margin0">
<small data-i18n="Once deleted, the files will be gone forever!">
Once deleted, the files will be gone forever!
</small>
<br>
<small data-i18n="Make sure to back up your data in advance.">
Make sure to back up your data in advance.
</small>
</div>
<button class="menu_button menu_button_icon dataMaidStartButton">
<i class="fa fa-cog"></i>
<span data-i18n="Scan">Scan</span>
</button>
</div>
<hr>
<div class="dataMaidPlaceholder" data-i18n="No results yet. Tap 'Scan' to start scanning.">
No results yet. Tap 'Scan' to start scanning.
</div>
<div class="displayNone dataMaidSpinner">
<i class="fa-solid fa-spinner fa-spin fa-3x"></i>
</div>
<div class="dataMaidResultsList"></div>
</div>