From 12ce568d3ce6b64648bce5f0725106ec0bc0ea71 Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Tue, 26 May 2026 00:02:10 -0400 Subject: [PATCH] refactor: update offline support notifications and confirmation messages for clarity --- src/views/Settings/AdvancedSettings.jsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/Settings/AdvancedSettings.jsx b/src/views/Settings/AdvancedSettings.jsx index b3f723d..d97ad46 100644 --- a/src/views/Settings/AdvancedSettings.jsx +++ b/src/views/Settings/AdvancedSettings.jsx @@ -73,7 +73,7 @@ const AdvancedSettings = () => { queryClient.invalidateQueries() showNotification({ type: 'success', - message: 'Offline support disabled and local offline data cleared', + message: 'Offline mode turned off and local data was cleared', }) } catch { setOfflineFeatureEnabled(false) @@ -83,7 +83,7 @@ const AdvancedSettings = () => { showNotification({ type: 'warning', message: - 'Offline support disabled, but some local cache items may not have been cleared', + 'Offline mode was turned off, but some local data may still be stored', }) } finally { setOfflineLoading(false) @@ -93,10 +93,10 @@ const AdvancedSettings = () => { const showDisableOfflineConfirmation = () => { setConfirmModalConfig({ isOpen: true, - title: 'Disable Offline Support', + title: 'Turn Off Offline Mode', message: - 'Disabling offline support will remove queued offline actions and local cached offline data on this device/browser. Do you want to continue?', - confirmText: 'Disable & Clear', + 'Turning off offline mode will remove unsynced offline changes and saved offline data on this device/browser. Do you want to continue?', + confirmText: 'Turn Off & Clear Data', cancelText: 'Cancel', color: 'danger', onClose: isConfirmed => { @@ -117,7 +117,7 @@ const AdvancedSettings = () => { queryClient.invalidateQueries() showNotification({ type: 'success', - message: 'Offline support enabled for this device/browser', + message: 'Offline mode turned on for this device/browser', }) return } @@ -158,8 +158,8 @@ const AdvancedSettings = () => { - Enable offline queue and local cache for this device/browser. - Disabling removes pending offline actions and cached offline data. + Keep using Donetick when you're offline on this device/browser. Your + changes are saved locally and synced when you're back online. { overlay /> - When disabled, queued changes and offline cache are cleared from - this device/browser. + Turning this off removes unsynced offline changes and saved offline + data from this device/browser.