Skip to content

Commit

Permalink
Merge branch 'main' into add-email-domains
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Aug 9, 2024
2 parents 48eceff + c13c538 commit 3e4ff3d
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## v2.103.0 - 2024-08-05

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.102.22...v2.103.0)

## v2.102.22 - 2024-08-05

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.102.21...v2.102.22)

## v2.102.21 - 2024-07-30

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.102.20...v2.102.21)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<ng-container i18n="@@inbox.sectionOf">section of your record:</ng-container>
</div>

<div *ngIf="isProfessionalActivity(notification)">
<strong>{{ getProfessionalActivitiesUpdatedLabel(notification) }}</strong>
</div>
<div *ngFor="let i of itemGroupedByType">
<strong>{{ getAmendedTypeLabel(i.type) }}</strong>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,29 @@ export class NotificationYourRecordAmendedComponent implements OnInit {
return 'Other update'
}

isProfessionalActivity(notification: InboxNotificationAmended) {
switch (notification?.amendedSection) {
case 'DISTINCTION':
return true
case 'INVITED_POSITION':
return true
case 'MEMBERSHIP':
return true
case 'SERVICE':
return true
default:
return false
}
}

getNotificationSectionUpdatedLabel(notification: InboxNotificationAmended) {
switch (notification?.amendedSection) {
case 'AFFILIATION':
return $localize`:@@inbox.affiliations:Affiliations`
case 'BIO':
return $localize`:@@inbox.bio:Bio`
case 'DISTINCTION':
return $localize`:@@inbox.distinction:Distinction`
return $localize`:@@inbox.professionalActivities:Professional activities`
case 'EDUCATION':
return $localize`:@@inbox.education:Education`
case 'EMPLOYMENT':
Expand All @@ -70,9 +85,9 @@ export class NotificationYourRecordAmendedComponent implements OnInit {
case 'FUNDING':
return $localize`:@@inbox.funding:Funding`
case 'INVITED_POSITION':
return $localize`:@@inbox.invitedPosition:Invited Position`
return $localize`:@@inbox.professionalActivities:Professional activities`
case 'MEMBERSHIP':
return $localize`:@@inbox.membership:Membership`
return $localize`:@@inbox.professionalActivities:Professional activities`
case 'PEER_REVIEW':
return $localize`:@@inbox.peerReview:Peer Review`
case 'PREFERENCES':
Expand All @@ -82,11 +97,28 @@ export class NotificationYourRecordAmendedComponent implements OnInit {
case 'RESEARCH_RESOURCE':
return $localize`:@@inbox.researchResource:Research Resource`
case 'SERVICE':
return $localize`:@@inbox.service:Service`
return $localize`:@@inbox.professionalActivities:Professional activities`
case 'WORK':
return $localize`:@@inbox.work:Work`
default:
return $localize`:@@inbox.unknown:unknown`
}
}

getProfessionalActivitiesUpdatedLabel(
notification: InboxNotificationAmended
) {
switch (notification?.amendedSection) {
case 'DISTINCTION':
return $localize`:@@inbox.distinction:Distinction`.toUpperCase()
case 'INVITED_POSITION':
return $localize`:@@inbox.invitedPosition:Invited Position`.toUpperCase()
case 'MEMBERSHIP':
return $localize`:@@inbox.membership:Membership`.toUpperCase()
case 'SERVICE':
return $localize`:@@inbox.service:Service`.toUpperCase()
default:
return ''
}
}
}
1 change: 1 addition & 0 deletions src/locale/properties/inbox/inbox.en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ inbox.youCanManage=You can manage the frequency of your ORCID notifications in y
inbox.youDontHaveUnarchived=You don't have any unarchived notifications right now.
inbox.youDontHave=You don’t have any notifications yet.
inbox.archiveWithout=Archive without granting permissions
inbox.professionalActivities=Professional activities
1 change: 1 addition & 0 deletions src/locale/properties/inbox/inbox.lr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ inbox.membership=LR
inbox.service=LR
inbox.connectingYour=LR
inbox.archiveWithout=LR
inbox.professionalActivities=LR
1 change: 1 addition & 0 deletions src/locale/properties/inbox/inbox.rl.properties
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ inbox.membership=RL
inbox.service=RL
inbox.connectingYour=RL
inbox.archiveWithout=RL
inbox.professionalActivities=RL
1 change: 1 addition & 0 deletions src/locale/properties/inbox/inbox.xx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ inbox.membership=X
inbox.service=X
inbox.connectingYour=X
inbox.archiveWithout=X
inbox.professionalActivities=X

0 comments on commit 3e4ff3d

Please sign in to comment.