refactor: update offline support notifications and confirmation messages for clarity

This commit is contained in:
Mo Tarbin
2026-05-26 00:02:10 -04:00
parent 25d3f76f9e
commit 12ce568d3c

View File

@@ -73,7 +73,7 @@ const AdvancedSettings = () => {
queryClient.invalidateQueries() queryClient.invalidateQueries()
showNotification({ showNotification({
type: 'success', type: 'success',
message: 'Offline support disabled and local offline data cleared', message: 'Offline mode turned off and local data was cleared',
}) })
} catch { } catch {
setOfflineFeatureEnabled(false) setOfflineFeatureEnabled(false)
@@ -83,7 +83,7 @@ const AdvancedSettings = () => {
showNotification({ showNotification({
type: 'warning', type: 'warning',
message: 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 { } finally {
setOfflineLoading(false) setOfflineLoading(false)
@@ -93,10 +93,10 @@ const AdvancedSettings = () => {
const showDisableOfflineConfirmation = () => { const showDisableOfflineConfirmation = () => {
setConfirmModalConfig({ setConfirmModalConfig({
isOpen: true, isOpen: true,
title: 'Disable Offline Support', title: 'Turn Off Offline Mode',
message: message:
'Disabling offline support will remove queued offline actions and local cached offline data on this device/browser. Do you want to continue?', 'Turning off offline mode will remove unsynced offline changes and saved offline data on this device/browser. Do you want to continue?',
confirmText: 'Disable & Clear', confirmText: 'Turn Off & Clear Data',
cancelText: 'Cancel', cancelText: 'Cancel',
color: 'danger', color: 'danger',
onClose: isConfirmed => { onClose: isConfirmed => {
@@ -117,7 +117,7 @@ const AdvancedSettings = () => {
queryClient.invalidateQueries() queryClient.invalidateQueries()
showNotification({ showNotification({
type: 'success', type: 'success',
message: 'Offline support enabled for this device/browser', message: 'Offline mode turned on for this device/browser',
}) })
return return
} }
@@ -158,8 +158,8 @@ const AdvancedSettings = () => {
</Chip> </Chip>
</Box> </Box>
<Typography level='body-md' mt={-1}> <Typography level='body-md' mt={-1}>
Enable offline queue and local cache for this device/browser. Keep using Donetick when you're offline on this device/browser. Your
Disabling removes pending offline actions and cached offline data. changes are saved locally and synced when you're back online.
</Typography> </Typography>
<FormControl sx={{ mt: 1 }}> <FormControl sx={{ mt: 1 }}>
<Checkbox <Checkbox
@@ -171,8 +171,8 @@ const AdvancedSettings = () => {
overlay overlay
/> />
<FormHelperText> <FormHelperText>
When disabled, queued changes and offline cache are cleared from Turning this off removes unsynced offline changes and saved offline
this device/browser. data from this device/browser.
</FormHelperText> </FormHelperText>
</FormControl> </FormControl>