Skip to content

Commit

Permalink
feat: add maintenance task for resyncing last 1K
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasn committed Apr 12, 2024
1 parent 438275f commit 456607e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@
"maintenanceRecreateTagged": "Recreate tagged",
"maintenanceReprocessSync": "Reprocess sync messages",
"maintenanceResetHostId": "Reset Host ID",
"maintenanceReSync10K": "Re-sync recent messages",
"maintenanceReSync1K": "Re-sync recent 1K messages",
"maintenanceReSync10K": "Re-sync recent 10K messages",
"maintenanceStories": "Assign stories from parent entries",
"maintenanceSyncDefinitions": "Sync tags, measurables, dashboards, habits",
"maintenanceSyncSkip": "Skip sync message",
Expand Down
4 changes: 4 additions & 0 deletions lib/pages/settings/advanced/maintenance_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ class MaintenancePage extends StatelessWidget {
title: localizations.maintenanceRecreateFts5,
onTap: () => getIt<Maintenance>().recreateFts5(),
),
SettingsCard(
title: localizations.maintenanceReSync1K,
onTap: () => getIt<Maintenance>().reSyncLastMessages(1000),
),
SettingsCard(
title: localizations.maintenanceReSync10K,
onTap: () => getIt<Maintenance>().reSyncLastMessages(10000),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: lotti
description: Achieve your goals and keep your data private with Lotti.
publish_to: 'none'
version: 0.9.445+2441
version: 0.9.445+2442

msix_config:
display_name: LottiApp
Expand Down

0 comments on commit 456607e

Please sign in to comment.