Browse Source

bump to v 0.1.5 and other misc tweaks

kb/add-usage-guide
Trent Larson 10 months ago
parent
commit
9c36bb509a
  1. 15
      CHANGELOG.md
  2. 8
      package-lock.json
  3. 4
      package.json
  4. 3
      project.task.yaml
  5. 2
      src/App.vue
  6. 1
      src/router/index.ts
  7. 9
      src/views/AccountViewView.vue
  8. 4
      sw_scripts/safari-notifications.js

15
CHANGELOG.md

@ -8,8 +8,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.1.5] - 2023.12.09
### Added
- Web push notifications (though not finalized)
- Credentials details page
- See more data without an ID
- Change units of a give
## [0.1.4] - 2023.11.20 - 7311d36726f3667ec4c68f241f91d404273ad4db
### Added
- Web push notifications
- Offer on a project
### Changed
- Automatically set as visible when importing a contact
## [0.1.3] - 2023.11.08 - 910f57ec7d2e50803ae3d04f4b927e0f5219fbde
### Added

8
package-lock.json

@ -1,12 +1,12 @@
{
"name": "crowd-funder-for-time-pwa",
"version": "0.1.4",
"name": "Time Safari",
"version": "0.1.5",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "crowd-funder-for-time-pwa",
"version": "0.1.4",
"name": "Time Safari",
"version": "0.1.5",
"dependencies": {
"@ethersproject/hdnode": "^5.7.0",
"@fortawesome/fontawesome-svg-core": "^6.4.2",

4
package.json

@ -1,6 +1,6 @@
{
"name": "crowd-funder-for-time-pwa",
"version": "0.1.4",
"name": "Time Safari",
"version": "0.1.5",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",

3
project.task.yaml

@ -6,10 +6,11 @@ tasks:
- extract private_key_hex in py-push-server webpush.py
- lock down regenerate_vapid endpoint (so only we admins can do it on demand)
- remove sleep in py-push-server app.py
- revisit "maybe" and "never" buttons on accont screen
- revisit "maybe" and "never" buttons on account screen
- see if we can detect OS-level notifications if turned off
- write troubleshooting docs for notifications
- 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
- .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

2
src/App.vue

@ -520,7 +520,7 @@ export default class App extends Vue {
private sendSubscriptionToServer(
subscription: PushSubscription,
): Promise<void> {
console.log(subscription);
console.log("About to send subscription", subscription);
return fetch("/web-push/subscribe", {
method: "POST",
headers: {

1
src/router/index.ts

@ -39,7 +39,6 @@ const routes: Array<RouteRecordRaw> = [
name: "account",
component: () =>
import(/* webpackChunkName: "account" */ "../views/AccountViewView.vue"),
beforeEnter: enterOrStart,
},
{
path: "/claim/:id?",

9
src/views/AccountViewView.vue

@ -927,6 +927,15 @@ export default class AccountViewView extends Vue {
webPushServer: this.webPushServerInput,
});
this.webPushServer = this.webPushServerInput;
this.$notify(
{
group: "alert",
type: "warning",
title: "Reload",
text: "Now reload the app to get a new VAPID to use with this push server.",
},
-1,
);
}
}
</script>

4
sw_scripts/safari-notifications.js

@ -395,12 +395,12 @@ async function setMostRecentNotified(id) {
data["lastNotifiedClaimId"] = id;
await updateRecord(store, data);
} else {
console.error("Record not found");
console.error("IndexedDB settings record not found.");
}
transaction.oncomplete = () => db.close();
} catch (error) {
console.error("Database error: " + error.message);
console.error("IndexedDB error:", error);
}
}

Loading…
Cancel
Save