diff --git a/src/components/ActivityListItem.vue b/src/components/ActivityListItem.vue index 767ce0c..41ddaf4 100644 --- a/src/components/ActivityListItem.vue +++ b/src/components/ActivityListItem.vue @@ -12,15 +12,21 @@
- + +
+ +
+
+ +

{{ - record.giver.known ? record.giver.displayName : "Anonymous Giver" + record.issuer.known ? record.issuer.displayName : "" }}

@@ -54,48 +60,40 @@ class="w-28 sm:w-40 text-center bg-white border border-slate-200 rounded p-2 sm:p-3" >

- - +
+
- - {{ record.giver.displayName }} +
+ + {{ record.providerPlanName || record.giver.displayName }} +
@@ -123,48 +121,40 @@ class="w-28 sm:w-40 text-center bg-white border border-slate-200 rounded p-2 sm:p-3" >
- - +
+
- - {{ record.receiver.displayName }} +
+ + {{ record.recipientProjectName || record.receiver.displayName }} +
@@ -175,7 +165,6 @@ {{ description }}

-

{{ subDescription }}

diff --git a/src/main.ts b/src/main.ts index 1b21524..d4a88c7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -87,7 +87,6 @@ import { faUser, faUsers, faXmark, - faBuilding, } from "@fortawesome/free-solid-svg-icons"; library.add( @@ -168,7 +167,6 @@ library.add( faUser, faUsers, faXmark, - faBuilding, ); import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; diff --git a/src/types/index.ts b/src/types/index.ts index 4eb29df..c6757cd 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,11 +1,18 @@ -export interface GiveRecordWithContactInfo { +import { GiveSummaryRecord, GiveVerifiableCredential } from "interfaces"; + +export interface GiveRecordWithContactInfo extends GiveSummaryRecord { jwtId: string; - fullClaim: unknown; // Replace with proper type + fullClaim: GiveVerifiableCredential; giver: { known: boolean; displayName: string; profileImageUrl?: string; }; + issuer: { + known: boolean; + displayName: string; + profileImageUrl?: string; + }; receiver: { known: boolean; displayName: string; @@ -13,8 +20,6 @@ export interface GiveRecordWithContactInfo { }; providerPlanName?: string; recipientProjectName?: string; - description?: string; - subDescription?: string; + description: string; image?: string; - timestamp: string; } diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 6f89968..20870e0 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -341,25 +341,10 @@ import { } from "../libs/util"; import { GiveSummaryRecord } from "../interfaces"; import * as serverUtil from "../libs/endorserServer"; -// import { fa0 } from "@fortawesome/free-solid-svg-icons"; - -interface GiveRecordWithContactInfo extends GiveSummaryRecord { - jwtId: string; - giver: { - displayName: string; - known: boolean; - profileImageUrl?: string; - }; - image?: string; - providerPlanName?: string; - recipientProjectName?: string; - receiver: { - displayName: string; - known: boolean; - profileImageUrl?: string; - }; -} import { logger } from "../utils/logger"; +import { GiveRecordWithContactInfo } from "types"; + + /** * HomeView - Main view component for the application's home page * @@ -821,6 +806,12 @@ export default class HomeView extends Vue { this.allMyDids, ), image: claim.image, + issuer: didInfoForContact( + record.issuerDid, + this.activeDid, + contactForDid(record.issuerDid, this.allContacts), + this.allMyDids, + ), providerPlanHandleId: provider?.identifier as string, providerPlanName: providedByPlan?.name as string, recipientProjectName: fulfillsPlan?.name as string,