Browse Source

remove the 'never' option for notifications & close on 'maybe later'

kb/add-usage-guide
Trent Larson 12 months ago
parent
commit
0607fad3e5
  1. 8
      project.task.yaml
  2. 37
      src/App.vue

8
project.task.yaml

@ -1,13 +1,12 @@
tasks: tasks:
- 40 notifications : - 08 notifications :
- push, where we trigger a ServiceWorker(?) in the app to reach out and check for new data assignee:matthew
- lock down regenerate_vapid endpoint (so only we admins can do it on demand) - lock down regenerate_vapid endpoint (so only we admins can do it on demand)
- remove sleep in py-push-server app.py - remove sleep in py-push-server app.py
- revisit "maybe" and "never" buttons on account screen
- see if we can detect OS-level notifications if turned off - see if we can detect OS-level notifications if turned off
- write troubleshooting docs for notifications - 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 - 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 - https://gitea.anomalistdesign.com/trent_larson/py-push-server/pulls/3/files
@ -57,6 +56,9 @@ tasks:
- switch some checks for activeDid to check for isRegistered - 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" - .2 in SeedBackupView, don't load the mnemonic and keep it in memory; only load it when they click "show"
- .5 fix cert generation on server (since it didn't happen automatically for Nov 30) - .5 fix cert generation on server (since it didn't happen automatically for Nov 30)
- 04 fix lack of initial notification in Firefox (on MacOS, maybe others)
- contacts v+ : - contacts v+ :
- 01 Import all the non-sensitive data (ie. contacts & settings). - 01 Import all the non-sensitive data (ie. contacts & settings).
- .2 show error to user when adding a duplicate contact - .2 show error to user when adding a duplicate contact

37
src/App.vue

@ -169,20 +169,12 @@
> >
Turn on Notifications Turn on Notifications
</button> </button>
<div class="grid grid-cols-2 gap-2"> <button
<button @click="close(notification.id)"
@click="maybeLater(notification.id)" class="block w-full text-center text-md font-bold uppercase bg-slate-600 text-white px-2 py-2 rounded-md"
class="block w-full text-center text-md font-bold uppercase bg-slate-600 text-white px-2 py-2 rounded-md" >
> Maybe Later
Maybe Later </button>
</button>
<button
@click="never(notification.id)"
class="block w-full text-center text-md font-bold uppercase bg-rose-600 text-white px-2 py-2 rounded-md"
>
Never
</button>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -452,8 +444,13 @@ export default class App extends Vue {
}); });
}) })
.catch((error) => { .catch((error) => {
console.error("An error occurred:", error); console.error(
alert("Some error occurred." + error); "An error occurred setting notification permissions:",
error,
);
alert(
"Some error occurred setting notification permissions. See logs.",
);
}); });
} }
@ -534,13 +531,5 @@ export default class App extends Vue {
console.log("Subscription sent to server successfully."); console.log("Subscription sent to server successfully.");
}); });
} }
never(ID: string) {
alert(ID);
}
maybeLater(ID: string) {
alert(ID);
}
} }
</script> </script>

Loading…
Cancel
Save