Skip to content

Commit

Permalink
Merge branch 'main' into 8712-qa-developer-tools-mobile-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 authored Jul 6, 2023
2 parents 8b6ae7a + d20c745 commit e8b00b5
Show file tree
Hide file tree
Showing 11 changed files with 90 additions and 4 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
## v2.34.0 - 2023-07-05

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

- [#2000](https://github.com/ORCID/orcid-angular/pull/2000): Rollback fix: Temporarily remove onetrust link from footer
- [#2002](https://github.com/ORCID/orcid-angular/pull/2002): fix: Add missing assistive text to professional activities and sort type
- [#2001](https://github.com/ORCID/orcid-angular/pull/2001): fix: Update professional activities link section

### Fix

- Add missing assistive text to professional activities and sort type
- Update professional activities link section
- Temporarily remove onetrust link from footer

## v2.33.3 - 2023-07-03

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

- [#1999](https://github.com/ORCID/orcid-angular/pull/1999): Fix/developer tools second batch

## v2.33.2 - 2023-07-02

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.33.1...v2.33.2)
Expand Down
1 change: 1 addition & 0 deletions src/app/cdk/panel/panels/panels.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ <h3 class="activity-header orc-font-body-large">
mat-menu-item
(click)="sortChange(option)"
*ngFor="let option of sortTypes"
[attr.aria-label]="option | appPanelsSortByAriaLabel"
>
{{ option | sortLabel }}
<mat-icon
Expand Down
14 changes: 14 additions & 0 deletions src/app/layout/footer/footer.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@
>
Accessibility Statement
</a>
</div>
</div>
<div class="row links space-around">
<div
class="col mat-button-font url-lists"
[ngClass]="{ 'space-around': !platform.columns12 }"
>
<a
class="col s4 l-auto m8"
i18n="@@footer.contactSupport"
Expand All @@ -100,6 +107,13 @@
>
Brand Guidelines
</a>
<a
id="ot-sdk-btn"
class="col s4 l-auto m8 ot-sdk-show-settings"
i18n="@@footer.cookieSettings"
>
Cookie Settings
</a>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@
<a
class="underline"
target="_blank"
href="https://support.orcid.org/hc/en-us/articles/360008897654-Add-an-invited-position-or-distinction-to-your-ORCID-record"
i18n="@@shared.invitedPositionsLearnMore"
href="https://support.orcid.org/hc/en-us/articles/360008897694-Add-a-membership-or-service-to-your-ORCID-record"
i18n="@@shared.learnMoreProfessionalActivities"
>
Learn more about adding professional activities to your ORCID record
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export class AppPanelsAddAriaLabelPipe implements PipeTransform {
transform(panelType: any, args?: any): string {
if (panelType == 'employment') {
return $localize`:@@shared.employmentAddAriaLabel:Add employment`
} else if (panelType == 'professional-activities') {
return $localize`:@@shared.addProfessionalActivity:Add a professional activity `
} else if (panelType == 'education' || panelType == 'qualification') {
return $localize`:@@shared.educationQualificationAddAriaLabel:Add education or qualification`
} else if (panelType == 'distinction' || panelType == 'invited-position') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ export class AppPanelsSortAriaLabelPipe implements PipeTransform {
$localize`:@@shared.employmentSortAriaLabel:Sort your employment` +
disabledStr
)
} else if (panelType === 'professional-activities') {
return (
$localize`:@@shared.sortProfessionalActivities:Sort your professional activities` +
disabledStr
)
} else if (panelType === 'education' || panelType === 'qualification') {
return (
$localize`:@@shared.educationQualificationSortAriaLabel:Sort your education and qualifications` +
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { AppPanelsSortByAriaLabelPipe } from './app-panels-sort-by-aria-label.pipe';

describe('AppPanelsSortByAriaLabelPipe', () => {
it('create an instance', () => {
const pipe = new AppPanelsSortByAriaLabelPipe();
expect(pipe).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { Pipe, PipeTransform } from '@angular/core';
import { SortOrderType } from '../../../types/sort'

@Pipe({
name: 'appPanelsSortByAriaLabel'
})
export class AppPanelsSortByAriaLabelPipe implements PipeTransform {

transform(sortBy: SortOrderType): string {
switch (sortBy) {
case 'title':
return $localize`:@@shared.sortTitle:Sort by title`
case 'start':
return $localize`:@@shared.sortStart:Sort by start date`
case 'end':
return $localize`:@@shared.sortEnd:Sort by end date`
case 'date':
return $localize`:@@shared.sortDate:Sort by type`
case 'type':
return $localize`:@@shared.sortType:Sort by type`
case 'order':
return $localize`:@@shared.sortOrder:Sort by order`
}
}
}
5 changes: 4 additions & 1 deletion src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ import { AppPanelActivityActionAriaLabelPipe } from './pipes/app-panel-activity-
import { SortByPipe } from './pipes/sort-by/sort-by.pipe'
import { AffiliationLabelPipe } from './pipes/affiliation-label.pipe'
import { AffiliationTypePipe } from './pipes/affiliation-type/affiliation-type.pipe'
import { ScopePathTypePipe } from './pipes/scope-path-type/scope-path-type.pipe'
import { ScopePathTypePipe } from './pipes/scope-path-type/scope-path-type.pipe';
import { AppPanelsSortByAriaLabelPipe } from './pipes/app-panels-sort-by-aria-label/app-panels-sort-by-aria-label.pipe'
@NgModule({
imports: [
CommonModule,
Expand Down Expand Up @@ -97,6 +98,7 @@ import { ScopePathTypePipe } from './pipes/scope-path-type/scope-path-type.pipe'
AffiliationLabelPipe,
AffiliationTypePipe,
ScopePathTypePipe,
AppPanelsSortByAriaLabelPipe,
],
exports: [
CommonModule,
Expand Down Expand Up @@ -143,6 +145,7 @@ import { ScopePathTypePipe } from './pipes/scope-path-type/scope-path-type.pipe'
SortByPipe,
AffiliationTypePipe,
ScopePathTypePipe,
AppPanelsSortByAriaLabelPipe,
],
providers: [], // Should not provide anything
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ developerTools.providesAnAccess=Provides an access token that can be used to rea
developerTools.moreInformation=More information on OpenID Connect Endpoint
developerTools.responseType=Response type
developerTools.clientId=Client ID
developerTools.exampleCode=Example code
developerTools.exampleCode=example code
developerTools.ariaLabelWebsiteDelete=Delete redirect URI
developerTools.labelAuthorizeRequest=Authorize request
developerTools.labelTokenRequest=Token request
Expand Down
8 changes: 8 additions & 0 deletions src/locale/properties/shared/shared.en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -598,3 +598,11 @@ share.selfService=Self Service - ORCID
share.orcidTitle=- ORCID
share.myOrcidTitle=- My ORCID
share.developerTools=Developer tools - ORCID
shared.addProfessionalActivity=Add a professional activity
shared.sortProfessionalActivities=Sort your professional activities
shared.sortTitle=Sort by title
shared.sortStart=Sort by start date
shared.sortEnd=Sort by end date
shared.sortType=Sort by type
shared.sortDate=Sort by type
shared.sortOrder=Sort by order

0 comments on commit e8b00b5

Please sign in to comment.