From 0c21d627321ab1d234bb434e309df32c9a435c6c Mon Sep 17 00:00:00 2001 From: Ying Yang <68610185+y-ng@users.noreply.github.com> Date: Thu, 13 Jul 2023 13:28:11 -0400 Subject: [PATCH] DOCK-2392: Indicate when recent activities are from unknown users (#1808) * add unknown user text * update circleci artifacts in package.json * update webservice script * try changing cypress cache location * rearrange html --- src/app/gravatar/gravatar.service.ts | 4 +- .../recent-events.component.html | 224 +++++++----------- 2 files changed, 91 insertions(+), 137 deletions(-) diff --git a/src/app/gravatar/gravatar.service.ts b/src/app/gravatar/gravatar.service.ts index eeca7ac171..b4588604d3 100644 --- a/src/app/gravatar/gravatar.service.ts +++ b/src/app/gravatar/gravatar.service.ts @@ -13,8 +13,8 @@ export class GravatarService { } public gravatarUrlForMysteryPerson() { - // https://en.gravatar.com/site/implement/images/ -- it's "mp", not "mm" there, but we've had it like this - return `${this.gravatarBaseUrl}?d=mm&s=500`; + // use "mp" (mystery-person) from https://en.gravatar.com/site/implement/images/ + return `${this.gravatarBaseUrl}?d=mp&s=500`; } public gravatarUrlForImageUrl(imageUrl: string | null) { diff --git a/src/app/home-page/recent-events/recent-events.component.html b/src/app/home-page/recent-events/recent-events.component.html index 5d595b6052..7108874add 100644 --- a/src/app/home-page/recent-events/recent-events.component.html +++ b/src/app/home-page/recent-events/recent-events.component.html @@ -9,7 +9,7 @@
User avatar @@ -19,141 +19,95 @@ User avatar
- -
- {{ - event.initiatorUser?.username - }} + - published the {{ event | recentEvents: 'entryType' }} - {{ event | recentEvents: 'displayName' }} -
-
- - {{ - event.initiatorUser?.username - }} - unpublished the {{ event | recentEvents: 'entryType' }} {{ event | recentEvents: 'displayName' }} -
-
- {{ - event.initiatorUser?.username - }} - created the {{ event.version?.referenceType | lowercase }} {{ event.version?.name }} in - {{ event | recentEvents: 'entryType' }} - {{ event | recentEvents: 'displayName' }} -
- - -
- The organization - {{ event.organization?.displayName }} - was approved. -
-
- The organization - {{ event.organization?.displayName }} - was rejected. -
-
- The organization - {{ event.organization?.displayName }} - was re-requested for review. -
- - - - - -
- - {{ - event.initiatorUser?.username - }} - removed the collection {{ event.collection?.displayName }} in organization - {{ event.organization?.displayName }} -
-
- {{ - event.initiatorUser?.username - }} - added the {{ event | recentEvents: 'entryType' }} - {{ event | recentEvents: 'displayName' }} - to the collection - {{ event.collection?.displayName }} - in organization - {{ event.organization?.displayName }} -
- -
- {{ - event.initiatorUser?.username - }} - removed the {{ event | recentEvents: 'entryType' }} - {{ event | recentEvents: 'displayName' }} - from the collection - {{ event.collection?.displayName }} + + + {{ event.initiatorUser?.username }} + + + + Unknown user + + + + + published the {{ event | recentEvents: 'entryType' }} + {{ event | recentEvents: 'displayName' }} + + + + unpublished the {{ event | recentEvents: 'entryType' }} {{ event | recentEvents: 'displayName' }} + + + created the {{ event.version?.referenceType | lowercase }} {{ event.version?.name }} in + {{ event | recentEvents: 'entryType' }} + {{ event | recentEvents: 'displayName' }} + + + + created the organization + {{ event.organization?.displayName }} + + + The organization + {{ event.organization?.displayName }} + was approved. + + + The organization + {{ event.organization?.displayName }} + was rejected. + + + The organization + {{ event.organization?.displayName }} + was re-requested for review. + + + added {{ event.user?.username }} to the organization + {{ event.organization?.displayName }} + + + joined the organization + {{ event.organization?.displayName }} + + + updated the organization + {{ event.organization?.displayName }} + + + + created the collection + {{ event.collection?.displayName }} + in organization + {{ event.organization?.displayName }} + + + + removed the collection {{ event.collection?.displayName }} in organization + {{ event.organization?.displayName }} + + + added the {{ event | recentEvents: 'entryType' }} + {{ event | recentEvents: 'displayName' }} + to the collection + {{ event.collection?.displayName }} + in organization + {{ event.organization?.displayName }} + + + edited the collection + {{ event.collection?.displayName }} + + + removed the {{ event | recentEvents: 'entryType' }} + {{ event | recentEvents: 'displayName' }} + from the collection + {{ event.collection?.displayName }} +
{{ event.dbCreateDate | date: 'medium' }}