Skip to content

Commit

Permalink
Merge branch 'main' into fix/9134-qa-intro-text-too-small-in-oauth-sc…
Browse files Browse the repository at this point in the history
…reen
  • Loading branch information
leomendoza123 authored Mar 13, 2024
2 parents d714503 + 0e43d6f commit 09e5e00
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 10 deletions.
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
## v2.62.13 - 2024-03-13

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

- [#2194](https://github.com/ORCID/orcid-angular/pull/2194): Fix/9116 tech check errors on the home page

### Fix

- Return empty observable instead of null

## v2.62.12 - 2024-03-13

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

- [#2193](https://github.com/ORCID/orcid-angular/pull/2193): fix: Add condition to wait for sign in togglz

### Fix

- Add condition to wait for sign in togglz

## v2.62.11 - 2024-03-13

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

- [#2192](https://github.com/ORCID/orcid-angular/pull/2192): fix: Remove autofocus if new sign in togglz is enabled

### Fix

- Remove autofocus if new sign in togglz is enabled

## v2.62.10 - 2024-03-13

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.62.9...v2.62.10)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@

<ng-container *ngIf="signInUpdatesV1Togglz">
<mat-progress-bar
class="progress-bar"
id="loading-bar"
*ngIf="
loadingUserInfo || loadingTrustedIndividuals || loadingAuthorizeEndpoint
Expand Down
2 changes: 1 addition & 1 deletion src/app/authorize/pages/authorize/authorize.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
>
<app-form-authorize
[signInUpdatesV1Togglz]="signInUpdatesV1Togglz"
*ngIf="showAuthorizationComponent"
*ngIf="showAuthorizationComponent && !loading"
></app-form-authorize>
<app-oauth-error
*ngIf="!showAuthorizationComponent"
Expand Down
6 changes: 5 additions & 1 deletion src/app/authorize/pages/authorize/authorize.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export class AuthorizeComponent implements OnInit {
platform: PlatformInfo
showAuthorizationComponent: boolean
signInUpdatesV1Togglz = false
loading = true

constructor(
_user: UserService,
Expand All @@ -36,6 +37,9 @@ export class AuthorizeComponent implements OnInit {
this._togglz
.getStateOf('SIGN_IN_UPDATES_V1')
.pipe(take(1))
.subscribe((value) => (this.signInUpdatesV1Togglz = value))
.subscribe((value) => {
this.loading = false
this.signInUpdatesV1Togglz = value
})
}
}
4 changes: 4 additions & 0 deletions src/app/cdk/info-drop-down/info-drop-down.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
.description-client {
margin: 0 !important;
}
b {
word-break: break-all;
}

mat-icon {
margin-top: 2px; // Compensates mat icon bottom with space
margin-left: 4px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@ export class FormSignInComponent implements OnInit, AfterViewInit, OnDestroy {
}

ngAfterViewInit(): void {
this.firstInput.nativeElement.focus()
this.cd.detectChanges()
if (!this.signInUpdatesV1Togglz) {
this.firstInput.nativeElement.focus()
this.cd.detectChanges()
}
}

onSubmit() {
Expand Down
6 changes: 0 additions & 6 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@

<meta name="viewport" content="width=device-width, initial-scale=1" />

<link
rel="preload"
href="./assets/vectors/profile-not-verified.svg"
as="image"
/>

<link rel="icon" type="image/x-icon" href="./assets/icons/favicon.ico" />
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
Expand Down

0 comments on commit 09e5e00

Please sign in to comment.