From acaaf8776dbbc04b1409a7eac7ebdb81a4c266e9 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Fri, 12 Jan 2024 15:54:45 -0700 Subject: [PATCH] add ability to give to fulfill an offer; adjust visibility of claim actions --- README.md | 6 +- project.task.yaml | 13 ++- src/components/GiftedDialog.vue | 32 ++++++- src/libs/endorserServer.ts | 15 ++- src/views/ClaimView.vue | 162 +++++++++++++++++++++++--------- src/views/ContactsView.vue | 6 +- src/views/ProjectViewView.vue | 20 ++-- 7 files changed, 178 insertions(+), 76 deletions(-) diff --git a/README.md b/README.md index 9c4b92b..cb52d6a 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,6 @@ npm run lint ### Compiles and minifies for production -If you are deploying in a subdirectory, add it to `publicPath` in vue.config.js, eg: `publicPath: "/app/time-tracker/",` - * Update the project.task.yaml & CHANGELOG.md & the version in package.json, run `npm install`, and commit. * [Tag wth the new version.](https://gitea.anomalistdesign.com/trent_larson/crowd-funder-for-time-pwa/releases) @@ -44,7 +42,7 @@ If you are deploying in a subdirectory, add it to `publicPath` in vue.config.js, * `rsync -azvu -e "ssh -i ~/.ssh/..." dist ubuntutest@test.timesafari.app:time-safari` -* Revert src/constants/app.ts and package.json (if that was prod), edit package.json to increment version & add "-beta", `npm install`, and commit. Also record what version is on production. +* Revert src/constants/app.ts and package.json (if that was prod), edit package.json to increment version & add "-beta", `npm install`, and commit. Tag if you didn't before. Also record what version is on production. @@ -135,6 +133,8 @@ To add an icon, add to main.ts and reference with `fa` element and `icon` attrib * [Customize Vue configuration](https://cli.vuejs.org/config/). +* If you are deploying in a subdirectory, add it to `publicPath` in vue.config.js, eg: `publicPath: "/app/time-tracker/",` + ### Kudos diff --git a/project.task.yaml b/project.task.yaml index ba4ccb5..b1d9e45 100644 --- a/project.task.yaml +++ b/project.task.yaml @@ -1,13 +1,14 @@ tasks: -- update dependencies, especially Veramo - - record donations vs gives - - deploy & migrate - - in mobile - change give & fulfills to array of objects? + - deploy & migrate (prod) - update docs +- check that 'show more contacts' from the contact-give-list on the project screen includes project ID +- on ClaimView, the "ask someone" should refer to "visible" IDs, or to confirmations only if confirmations are visible +- "send them to this page" on ClaimView should be a link for installed app + - show VC details... somehow: - 01 show my VCs - most interesting, or via search - 04 allow user to download & prove chains of VCs, mine + ones I can see about me from others @@ -15,7 +16,9 @@ tasks: - on gives feed - link to project - show feed of offers, new projects, etc -- maybe limited to my search area -- revenue +- update Veramo library + +- revenue to support server operation - copy button for seed - .5 If notifications are not enabled, add message to front page with link/button to enable diff --git a/src/components/GiftedDialog.vue b/src/components/GiftedDialog.vue index ac95d50..8b70c05 100644 --- a/src/components/GiftedDialog.vue +++ b/src/components/GiftedDialog.vue @@ -67,10 +67,15 @@ diff --git a/src/views/ContactsView.vue b/src/views/ContactsView.vue index 66898aa..334f2f0 100644 --- a/src/views/ContactsView.vue +++ b/src/views/ContactsView.vue @@ -992,7 +992,7 @@ export default class ContactsView extends Vue { "?", ) ) { - this.createAndSubmitGive( + this.createAndSubmitContactGive( identity, fromDid, toDid, @@ -1004,7 +1004,7 @@ export default class ContactsView extends Vue { } // similar function is in endorserServer.ts - private async createAndSubmitGive( + private async createAndSubmitContactGive( identity: IIdentifier, fromDid: string, toDid: string, @@ -1073,7 +1073,7 @@ export default class ContactsView extends Vue { } } } catch (error) { - console.log("Error in createAndSubmitGive: ", error); + console.log("Error in createAndSubmitContactGive: ", error); let userMessage = "There was an error. See logs for more info."; const serverError = error as AxiosError; if (serverError) { diff --git a/src/views/ProjectViewView.vue b/src/views/ProjectViewView.vue index 6d46063..a6b7505 100644 --- a/src/views/ProjectViewView.vue +++ b/src/views/ProjectViewView.vue @@ -94,13 +94,14 @@
+
@@ -112,6 +113,12 @@

Or, record a contribution from:

+ +
  • @@ -267,15 +274,6 @@
- - - - - @@ -434,7 +432,7 @@ export default class ProjectViewView extends Vue { this.url = resp.data.claim?.url || ""; } else { // actually, axios throws an error on 404 so we probably never get here - console.log("Error getting project:", resp); + console.error("Error getting project:", resp); this.$notify( { group: "alert",