feat(settings): Add option to reset all stats

This commit introduces a feature allowing users to delete all their statistics from the app.

Changes include:
- A new "Reset data" dialog to confirm the action.
- A "Delete data ?" button in the settings screen to trigger the dialog.
- Backend logic to clear all statistics from the database.
- Fixes a crash on the stats screen when there is no data to display.
- Added new strings and translations for the reset data feature.
This commit is contained in:
Adrien BOISSIER
2025-12-09 23:19:46 +01:00
parent 7a83b39b49
commit 24a0b71427
11 changed files with 215 additions and 14 deletions

View File

@@ -113,4 +113,6 @@
<string name="secure_aod_desc">Automatically lock your device after a timeout, while keeping the AOD visible</string>
<string name="timer_reset_message">Timer reset</string>
<string name="undo">Undo</string>
<string name="reset_data">Reset data</string>
<string name="reset_data_dialog_text">Are you sure you want to Reset all your data ?</string>
</resources>