From fa72d38d18944d22f5d854543000c54415b4f36d Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sat, 13 Jan 2024 18:45:51 -0700 Subject: [PATCH] allow an agent to edit a project --- package.json | 2 +- project.task.yaml | 4 ++- src/libs/endorserServer.ts | 3 +- src/views/HelpView.vue | 7 ++++ src/views/ImportAccountView.vue | 2 +- src/views/NewEditProjectView.vue | 55 +++++++++++++++++++++++--------- src/views/ProjectViewView.vue | 4 ++- 7 files changed, 57 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index 36c3d2f..1118fd4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "TimeSafari_Test", - "version": "0.2.7", + "version": "0.2.8-beta", "private": true, "scripts": { "serve": "vue-cli-service serve", diff --git a/project.task.yaml b/project.task.yaml index d55d15b..852ac89 100644 --- a/project.task.yaml +++ b/project.task.yaml @@ -1,7 +1,9 @@ tasks: -- allow agent to edit a project +- choose an agent - make a contact chooser +- remove fullIri +- eliminate setTimeout calls (like we did in NewEditProjectView.vue) - make set-name request yellow - make the "give" on contact screen work like other give (allowing donation vs current blank) - create an identifier automatically, with a message that they can import a different one diff --git a/src/libs/endorserServer.ts b/src/libs/endorserServer.ts index 8654de1..bba26b0 100644 --- a/src/libs/endorserServer.ts +++ b/src/libs/endorserServer.ts @@ -116,7 +116,8 @@ export interface PlanVerifiableCredential { "@context": "https://schema.org"; "@type": "PlanAction"; name: string; - description: string; + agent?: { identifier: string }; + description?: string; identifier?: string; location?: { geo: { "@type": "GeoCoordinates"; latitude: number; longitude: number }; diff --git a/src/views/HelpView.vue b/src/views/HelpView.vue index ba78361..623fe78 100644 --- a/src/views/HelpView.vue +++ b/src/views/HelpView.vue @@ -232,6 +232,13 @@ >

+

+ How do I get higher limits? +

+

+ Let's talk. Contact us (below). +

+

How do I access even more functionality?

diff --git a/src/views/ImportAccountView.vue b/src/views/ImportAccountView.vue index 404245a..82c1ed9 100644 --- a/src/views/ImportAccountView.vue +++ b/src/views/ImportAccountView.vue @@ -25,7 +25,7 @@ class="block w-full rounded border border-slate-400 mb-4 px-3 py-2" v-model="mnemonic" /> - {{ mnemonic }} +

+ +
+

+ Beware! + If you save this, the original project owner will no longer be able to + edit it. + +

+
+