From 1e6159869fc28ca6e6b5b3d186617d75705100b4 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Wed, 27 Dec 2023 18:51:49 -0700 Subject: [PATCH] update daily check title & documentation --- project.task.yaml | 3 ++- sw_scripts/additional-scripts.js | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/project.task.yaml b/project.task.yaml index b71a331..ea04dcb 100644 --- a/project.task.yaml +++ b/project.task.yaml @@ -9,6 +9,8 @@ tasks: - fix maskable icon +- give users next public key hash + - .3 bug - make or edit a project, choose "Include location", and see the map display shows on top of the bottom icons assignee-group:ui - .5 If notifications are not enabled, add message to front page with link/button to enable @@ -50,7 +52,6 @@ tasks: - .2 Show a warning if both giver and recipient are the same (but still allow?) - 01 Would it look better to shrink the buttons on many pages so they don't expand to the width of the screen? assignee-group:ui - .5 Display a more appealing confirmation on the map when erasing the marker -- .5 include the hash of the latest commit on help page next to version (maybe Trent's git-hash branch) - .5 remove references to localStorage for projectId (now that it's pulling from the path) - switch some checks for activeDid to check for isRegistered - .2 in SeedBackupView, don't load the mnemonic and keep it in memory; only load it when they click "show" diff --git a/sw_scripts/additional-scripts.js b/sw_scripts/additional-scripts.js index 6611cf9..60c0084 100644 --- a/sw_scripts/additional-scripts.js +++ b/sw_scripts/additional-scripts.js @@ -60,12 +60,13 @@ self.addEventListener("push", function (event) { } } - // This is a special value that tells the service worker that it's a daily update. - const DAILY_UPDATE_TITLE = "DAILY_UPDATE"; + // This is a special value that tells the service worker to trigger its daily check. + // See https://gitea.anomalistdesign.com/trent_larson/py-push-server/src/commit/c1ed026662e754348a5f91542680bd4f57e5b81e/app.py#L217 + const DAILY_UPDATE_TITLE = "DAILY_CHECK"; // This is a special value that tells the service worker to send a direct notification to the device, skipping filters. // This is shared with the notification-test code and should be a constant. Look for the same name in HelpNotificationsView.vue - // Use something other than "Daily Update" https://gitea.anomalistdesign.com/trent_larson/py-push-server/src/commit/3c0e196c11bc98060ec5934e99e7dbd591b5da4d/app.py#L213 + // Make sure it is something other than the DAILY_UPDATE_TITLE. const DIRECT_PUSH_TITLE = "DIRECT_NOTIFICATION"; let title;