-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix/9072-sign-in-sign-in-updates (#2174)
* fix: Add missing translation properties * feature: Add new sign in updates behind togglz --------- Co-authored-by: Daniel Palafox <[email protected]>
- Loading branch information
1 parent
19b874a
commit e687fb0
Showing
28 changed files
with
1,230 additions
and
218 deletions.
There are no files selected for viewing
101 changes: 82 additions & 19 deletions
101
src/app/cdk/my-orcid-alerts/my-orcid-alerts.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,84 @@ | ||
<mat-toolbar> | ||
<mat-toolbar-row> | ||
<div role="alert"> | ||
<p class="mat-body-2"> | ||
<ng-container | ||
i18n="@@myOrcidAlerts.invalidVerifyUrl" | ||
*ngIf="invalidVerifyUrl" | ||
<ng-container *ngIf="!signInUpdatesV1Togglz"> | ||
<mat-toolbar> | ||
<mat-toolbar-row> | ||
<div role="alert"> | ||
<p class="mat-body-2"> | ||
<ng-container | ||
i18n="@@myOrcidAlerts.invalidVerifyUrl" | ||
*ngIf="invalidVerifyUrl" | ||
> | ||
Your email couldn't be verified, please check the link you used to | ||
verify it. | ||
</ng-container> | ||
<ng-container | ||
i18n="@@myOrcidAlerts.emailVerified" | ||
*ngIf="emailVerified" | ||
> | ||
Thank you for verifying your email | ||
</ng-container> | ||
</p> | ||
</div> | ||
</mat-toolbar-row> | ||
</mat-toolbar> | ||
</ng-container> | ||
<ng-container *ngIf="signInUpdatesV1Togglz"> | ||
<ng-container *ngIf="emailVerified || invalidVerifyUrl"> | ||
<div | ||
[ngClass]="{ | ||
'verification': emailVerified, | ||
'invalid': invalidVerifyUrl | ||
}"> | ||
<div> | ||
<mat-icon class="large-material-icon material-symbols-outlined" | ||
> | ||
<ng-container *ngIf="emailVerified">check_circle</ng-container> | ||
<ng-container *ngIf="invalidVerifyUrl">warning</ng-container> | ||
</mat-icon | ||
> | ||
Your email couldn't be verified, please check the link you used to | ||
verify it. | ||
</ng-container> | ||
<ng-container | ||
i18n="@@myOrcidAlerts.emailVerified" | ||
*ngIf="emailVerified" | ||
> | ||
Thank you for verifying your email | ||
</ng-container> | ||
</p> | ||
</div> | ||
<div class="content"> | ||
<div> | ||
<b i18n="@@ngOrcid.signin.almostDone"> | ||
Almost done! | ||
</b> | ||
</div> | ||
<div> | ||
<ng-container | ||
i18n="@@ngOrcid.signin.signInToComplete" | ||
*ngIf="emailVerified" | ||
> | ||
Sign in to complete your email verification | ||
</ng-container> | ||
<ng-container | ||
i18n="@@myOrcidAlerts.invalidVerifyUrl" | ||
*ngIf="invalidVerifyUrl" | ||
> | ||
Your email couldn't be verified, please check the link you used to | ||
verify it. | ||
</ng-container> | ||
</div> | ||
</div> | ||
</div> | ||
</mat-toolbar-row> | ||
</mat-toolbar> | ||
</ng-container> | ||
<ng-container | ||
*ngIf="printError && badCredentials" | ||
> | ||
<div class="invalid"> | ||
<div> | ||
<mat-icon class="large-material-icon material-symbols-outlined" | ||
>warning</mat-icon | ||
> | ||
</div> | ||
<div class="content"> | ||
<div> | ||
<b i18n="@@ngOrcid.signin.somethingNotQuiteRight"> | ||
Something's not quite right... | ||
</b> | ||
</div> | ||
<div i18n="@@ngOrcid.signin.checkYourSignIn"> | ||
Please check that your sign in details are correct and then try signing in again | ||
</div> | ||
</div> | ||
</div> | ||
</ng-container> | ||
</ng-container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/app/cdk/my-orcid-alerts/my-orcid-alerts.component.scss-theme.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,40 @@ | ||
@use '@angular/material' as mat; | ||
@import 'src/assets/scss/material.orcid-theme.scss'; | ||
|
||
@mixin my-orcid-alerts-theme($theme) { | ||
$primary: map-get($theme, primary); | ||
$accent: map-get($theme, accent); | ||
$warn: map-get($theme, warn); | ||
$foreground: map-get($theme, foreground); | ||
$background: map-get($theme, background); | ||
.mat-toolbar { | ||
background: map-get($foreground, 'state-notice-light'); | ||
color: $orcid-dark-primary-text; | ||
} | ||
|
||
.verification { | ||
background-color: mat.get-color-from-palette( | ||
$background, | ||
brand-primary-lightest | ||
); | ||
border-color: map-get($foreground, 'brand-primary'); | ||
|
||
mat-icon { | ||
color: mat.get-color-from-palette( | ||
$foreground, | ||
'brand-primary' | ||
) !important; | ||
} | ||
} | ||
|
||
.invalid { | ||
background-color: mat.get-color-from-palette($warn, 50); | ||
border-color: map-get($foreground, 'state-warning-dark'); | ||
|
||
mat-icon { | ||
color: map-get($foreground, 'state-warning-dark'); | ||
} | ||
} | ||
} | ||
|
||
@include my-orcid-alerts-theme($orcid-app-theme); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.