From 31a77521684fd2947612f8ecf171d2c350ed2c09 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Tue, 16 Jan 2024 19:48:47 -0700 Subject: [PATCH] add link to project from gives on front page --- project.task.yaml | 12 ++++++------ src/libs/endorserServer.ts | 27 +++++++++++++------------ src/views/HomeView.vue | 37 ++++++++++++++++++++++++++++------- src/views/ProjectViewView.vue | 2 +- 4 files changed, 52 insertions(+), 26 deletions(-) diff --git a/project.task.yaml b/project.task.yaml index a89444a..3809ed7 100644 --- a/project.task.yaml +++ b/project.task.yaml @@ -1,18 +1,18 @@ tasks: +- check that 'show more contacts' from the contact-give-list on the project screen includes project ID + - supply the projectId to the OfferDialog just like we do with the offerId - the confirm button on each give on the ProjectViewView page doesn't have all the context of the ClaimView page, so it can show sometimes inappropriately; consider consolidation - choose an agent via a contact chooser (not just copy-paste a DID) - make the "give" on contact screen work like other give (allowing donation vs current blank) -- 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 -- give feedback when import is completed -- "send them to this page" on ClaimView should be a link for installed app +- notify user when import is completed +- "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 +- 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 - on gives feed - link to project - show feed of offers, new projects, etc -- maybe limited to my search area diff --git a/src/libs/endorserServer.ts b/src/libs/endorserServer.ts index 72db288..143ca25 100644 --- a/src/libs/endorserServer.ts +++ b/src/libs/endorserServer.ts @@ -66,6 +66,7 @@ export interface GiveServerRecord { amountConfirmed: number; description: string; fullClaim: GiveVerifiableCredential; + fulfillsPlanHandleId: string; handleId: string; issuedAt: string; jwtId: string; @@ -77,6 +78,7 @@ export interface OfferServerRecord { amount: number; amountGiven: number; fullClaim: OfferVerifiableCredential; + fulfillsPlanHandleId: string; handleId: string; offeredByDid: string; recipientDid: string; @@ -85,6 +87,19 @@ export interface OfferServerRecord { validThrough: string; } +export interface PlanServerRecord { + agentDid?: string; // optional, if the issuer wants someone else to manage as well + description: string; + endTime?: string; + fulfillsPlanHandleId: string; + issuerDid: string; + handleId: string; + locLat?: number; + locLon?: number; + startTime?: string; + url?: string; +} + // Note that previous VCs may have additional fields. // https://endorser.ch/doc/html/transactions.html#id4 export interface GiveVerifiableCredential { @@ -127,18 +142,6 @@ export interface PlanVerifiableCredential { }; } -export interface PlanServerRecord { - agentDid?: string; // optional, if the issuer wants someone else to manage as well - description: string; - endTime?: string; - issuerDid: string; - handleId: string; - locLat?: number; - locLon?: number; - startTime?: string; - url?: string; -} - export interface RegisterVerifiableCredential { "@context": string; "@type": string; diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 77c8a83..8e55ddd 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -179,12 +179,35 @@ You've seen all the following before -
- - {{ this.giveDescription(record) }} - - - +
+ + + {{ this.giveDescription(record) }} + + + + + + + + +
@@ -243,7 +266,7 @@ export default class HomeView extends Vue { allContacts: Array = []; allMyDids: Array = []; apiServer = ""; - feedData = []; + feedData: GiveServerRecord[] = []; feedPreviousOldestId?: string; feedLastViewedClaimId?: string; isCreatingIdentifier = false; diff --git a/src/views/ProjectViewView.vue b/src/views/ProjectViewView.vue index c6cd66c..d91cf46 100644 --- a/src/views/ProjectViewView.vue +++ b/src/views/ProjectViewView.vue @@ -314,7 +314,7 @@

- Contributions By This Idea + Contributions From This Idea