From 672abac9a9caf5d7970cb6a26e7cbda05b3f5cc0 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sun, 10 Dec 2023 18:43:24 -0700 Subject: [PATCH] show web-push subscription info on demand, and refine docs --- CHANGELOG.md | 5 ++++- README.md | 6 +++--- project.task.yaml | 5 ++++- src/App.vue | 5 ++++- src/views/AccountViewView.vue | 27 +++++++++++++++++++-------- 5 files changed, 34 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3985aa2..77d85fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [0.1.5] - 2023.12.09 +## [0.1.6] + + +## [0.1.5] - 2023.12.09 - 9c36bb509a9bae9bb3306d3bd9eeb144b67aa8ad ### Added - Web push notifications (though not finalized) - Credentials details page diff --git a/README.md b/README.md index 9e3fbb7..1542f3b 100644 --- a/README.md +++ b/README.md @@ -110,9 +110,9 @@ To add an icon, add to main.ts and reference with `fa` element and `icon` attrib ### Clear/Reset data & restart -* Clear cache for site. (In Chrome, go to `chrome://settings/cookies` and "all site data and permissions"; in Firefox, go to `about:preferences` and search for cache.) -* Unregister service worker (in Chrome, go to `chrome://serviceworker-internals/`; in Firefox, go to `about:serviceworkers` or `about:debugging`). -* Clear notification permission (in Chrome, go to `chrome://settings/content/notifications`; in Firefox, go to `about:preferences` and search). +* Clear cache for site. (In Chrome, go to `chrome://settings/cookies` and "all site data and permissions"; in Firefox, go to `about:preferences` and search for "cache" then "Manage Data".) +* Unregister service worker (in Chrome, go to `chrome://serviceworker-internals/`; in Firefox, go to `about:serviceworkers`). +* Clear notification permission (in Chrome, go to `chrome://settings/content/notifications`; in Firefox, go to `about:preferences` and search for "notifications"). * Clear Cache Storage (in Chrome, in dev tools under Application; in Firefox, in dev tools under Storage). diff --git a/project.task.yaml b/project.task.yaml index 383e0db..f3f42ad 100644 --- a/project.task.yaml +++ b/project.task.yaml @@ -3,12 +3,15 @@ tasks: - 08 notifications : - lock down regenerate_vapid endpoint (so only we admins can do it on demand) - - remove sleep in py-push-server app.py + - make the app behave correctly when App Notifications are turned off + - remove "mute notifications" + - remove sleep in py-push-server app.py? - see if we can detect OS-level notifications if turned off - write troubleshooting docs for notifications - make the "App Notifications" toggle on when they first turn notifications on - in py-push-server, when sending a push to a subscriber and we get on a 410 "error #106", delete the subscription record - https://gitea.anomalistdesign.com/trent_larson/py-push-server/pulls/3/files + - remove "notification push server" advanced setting since it only makes sense on the current domain - .3 fix the Project-location-selection map display to not show on top of bottom icons (and any other UI tweaks on the map flow) assignee-group:ui diff --git a/src/App.vue b/src/App.vue index 698cc43..aaff492 100644 --- a/src/App.vue +++ b/src/App.vue @@ -402,7 +402,10 @@ export default class App extends Vue { private requestNotificationPermission(): Promise { return Notification.requestPermission().then((permission) => { if (permission !== "granted") { - alert("We need notification permission to provide certain features."); + alert( + "Allow this app permission to make notifications for personal reminders." + + " You can adjust them at any time in your settings.", + ); throw new Error("We weren't granted permission."); } return permission; diff --git a/src/views/AccountViewView.vue b/src/views/AccountViewView.vue index 0cd3c58..b465d87 100644 --- a/src/views/AccountViewView.vue +++ b/src/views/AccountViewView.vue @@ -157,7 +157,6 @@ Backup Identifier Seed @@ -319,6 +318,15 @@ +
+ +
+

Claim Server