From 69576784742e6131faf103957b1cd11e2354ee22 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sun, 26 Nov 2023 18:42:28 -0700 Subject: [PATCH] include project ID in the URLs to the project-details page --- project.task.yaml | 2 +- src/components/GiftedDialog.vue | 2 +- src/views/DiscoverView.vue | 2 +- src/views/ProjectsView.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/project.task.yaml b/project.task.yaml index 7595acb..dd1b192 100644 --- a/project.task.yaml +++ b/project.task.yaml @@ -7,7 +7,6 @@ tasks: - 40 notifications : - push, where we trigger a ServiceWorker(?) in the app to reach out and check for new data assignee:matthew -- .5 add project ID to the URL of the project-view, to make a project publicly-accessible - .5 add link to further project / people when a project pays ahead - .5 allow to manage their notifications even without an identity @@ -36,6 +35,7 @@ tasks: - .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) - bug (that is hard to reproduce) - on the second 'give' recorded on prod it showed me as the agent +- make identicons for contacts into more-memorable faces (and maybe change project identicons, too) - contacts v+ : - 01 Import all the non-sensitive data (ie. contacts & settings). diff --git a/src/components/GiftedDialog.vue b/src/components/GiftedDialog.vue index c4cca05..079116f 100644 --- a/src/components/GiftedDialog.vue +++ b/src/components/GiftedDialog.vue @@ -81,7 +81,7 @@ export default class GiftedDialog extends Vue { activeDid = ""; apiServer = ""; - giver?: GiverInputInfo; + giver?: GiverInputInfo; // undefined means no identified giver agent description = ""; givenToUser = false; hours = "0"; diff --git a/src/views/DiscoverView.vue b/src/views/DiscoverView.vue index 891a62a..7af51f1 100644 --- a/src/views/DiscoverView.vue +++ b/src/views/DiscoverView.vue @@ -376,7 +376,7 @@ export default class DiscoverView extends Vue { onClickLoadProject(id: string) { localStorage.setItem("projectId", id); const route = { - name: "project", + path: "/project/" + encodeURIComponent(id), }; this.$router.push(route); } diff --git a/src/views/ProjectsView.vue b/src/views/ProjectsView.vue index 6d2810e..2c2c6e3 100644 --- a/src/views/ProjectsView.vue +++ b/src/views/ProjectsView.vue @@ -174,7 +174,7 @@ export default class ProjectsView extends Vue { onClickLoadProject(id: string) { localStorage.setItem("projectId", id); const route = { - name: "project", + path: "/project/" + encodeURIComponent(id), }; this.$router.push(route); }