From 376006a8709562860ba0e0dae858c46d48ba5f88 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 20 Sep 2025 17:26:53 +0200 Subject: [PATCH] Task/rename show access token to user account registration dialog component (#5539) * Rename show access token to user account registration dialog component * Update changelog --- CHANGELOG.md | 1 + .../pages/register/register-page.component.ts | 25 +++++++++++-------- .../interfaces/interfaces.ts | 2 +- ...-account-registration-dialog.component.ts} | 12 ++++----- .../user-account-registration-dialog.html} | 0 .../user-account-registration-dialog.scss} | 0 6 files changed, 22 insertions(+), 18 deletions(-) rename apps/client/src/app/pages/register/{show-access-token-dialog => user-account-registration-dialog}/interfaces/interfaces.ts (53%) rename apps/client/src/app/pages/register/{show-access-token-dialog/show-access-token-dialog.component.ts => user-account-registration-dialog/user-account-registration-dialog.component.ts} (87%) rename apps/client/src/app/pages/register/{show-access-token-dialog/show-access-token-dialog.html => user-account-registration-dialog/user-account-registration-dialog.html} (100%) rename apps/client/src/app/pages/register/{show-access-token-dialog/show-access-token-dialog.scss => user-account-registration-dialog/user-account-registration-dialog.scss} (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b8b498fd..c03d2d754 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Renamed the show access token dialog component to user account registration dialog component - Refreshed the cryptocurrencies list ### Fixed diff --git a/apps/client/src/app/pages/register/register-page.component.ts b/apps/client/src/app/pages/register/register-page.component.ts index 0f644600b..eff4e308b 100644 --- a/apps/client/src/app/pages/register/register-page.component.ts +++ b/apps/client/src/app/pages/register/register-page.component.ts @@ -18,8 +18,8 @@ import { DeviceDetectorService } from 'ngx-device-detector'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; -import { ShowAccessTokenDialogParams } from './show-access-token-dialog/interfaces/interfaces'; -import { GfShowAccessTokenDialogComponent } from './show-access-token-dialog/show-access-token-dialog.component'; +import { UserAccountRegistrationDialogParams } from './user-account-registration-dialog/interfaces/interfaces'; +import { GfUserAccountRegistrationDialogComponent } from './user-account-registration-dialog/user-account-registration-dialog.component'; @Component({ host: { class: 'page' }, @@ -84,15 +84,18 @@ export class GfRegisterPageComponent implements OnDestroy, OnInit { } public openShowAccessTokenDialog() { - const dialogRef = this.dialog.open(GfShowAccessTokenDialogComponent, { - data: { - deviceType: this.deviceType, - needsToAcceptTermsOfService: this.hasPermissionForSubscription - } as ShowAccessTokenDialogParams, - disableClose: true, - height: this.deviceType === 'mobile' ? '98vh' : undefined, - width: this.deviceType === 'mobile' ? '100vw' : '30rem' - }); + const dialogRef = this.dialog.open( + GfUserAccountRegistrationDialogComponent, + { + data: { + deviceType: this.deviceType, + needsToAcceptTermsOfService: this.hasPermissionForSubscription + } as UserAccountRegistrationDialogParams, + disableClose: true, + height: this.deviceType === 'mobile' ? '98vh' : undefined, + width: this.deviceType === 'mobile' ? '100vw' : '30rem' + } + ); dialogRef .afterClosed() diff --git a/apps/client/src/app/pages/register/show-access-token-dialog/interfaces/interfaces.ts b/apps/client/src/app/pages/register/user-account-registration-dialog/interfaces/interfaces.ts similarity index 53% rename from apps/client/src/app/pages/register/show-access-token-dialog/interfaces/interfaces.ts rename to apps/client/src/app/pages/register/user-account-registration-dialog/interfaces/interfaces.ts index c32acac40..15922f12f 100644 --- a/apps/client/src/app/pages/register/show-access-token-dialog/interfaces/interfaces.ts +++ b/apps/client/src/app/pages/register/user-account-registration-dialog/interfaces/interfaces.ts @@ -1,4 +1,4 @@ -export interface ShowAccessTokenDialogParams { +export interface UserAccountRegistrationDialogParams { deviceType: string; needsToAcceptTermsOfService: boolean; } diff --git a/apps/client/src/app/pages/register/show-access-token-dialog/show-access-token-dialog.component.ts b/apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.component.ts similarity index 87% rename from apps/client/src/app/pages/register/show-access-token-dialog/show-access-token-dialog.component.ts rename to apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.component.ts index a73d1cf2a..dfa8145dc 100644 --- a/apps/client/src/app/pages/register/show-access-token-dialog/show-access-token-dialog.component.ts +++ b/apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.component.ts @@ -30,7 +30,7 @@ import { import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; -import { ShowAccessTokenDialogParams } from './interfaces/interfaces'; +import { UserAccountRegistrationDialogParams } from './interfaces/interfaces'; @Component({ changeDetection: ChangeDetectionStrategy.OnPush, @@ -50,11 +50,11 @@ import { ShowAccessTokenDialogParams } from './interfaces/interfaces'; TextFieldModule ], schemas: [CUSTOM_ELEMENTS_SCHEMA], - selector: 'gf-show-access-token-dialog', - styleUrls: ['./show-access-token-dialog.scss'], - templateUrl: 'show-access-token-dialog.html' + selector: 'gf-user-account-registration-dialog', + styleUrls: ['./user-account-registration-dialog.scss'], + templateUrl: 'user-account-registration-dialog.html' }) -export class GfShowAccessTokenDialogComponent { +export class GfUserAccountRegistrationDialogComponent { @ViewChild(MatStepper) stepper!: MatStepper; public accessToken: string; @@ -69,7 +69,7 @@ export class GfShowAccessTokenDialogComponent { public constructor( private changeDetectorRef: ChangeDetectorRef, - @Inject(MAT_DIALOG_DATA) public data: ShowAccessTokenDialogParams, + @Inject(MAT_DIALOG_DATA) public data: UserAccountRegistrationDialogParams, private dataService: DataService ) { addIcons({ arrowForwardOutline, checkmarkOutline, copyOutline }); diff --git a/apps/client/src/app/pages/register/show-access-token-dialog/show-access-token-dialog.html b/apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.html similarity index 100% rename from apps/client/src/app/pages/register/show-access-token-dialog/show-access-token-dialog.html rename to apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.html diff --git a/apps/client/src/app/pages/register/show-access-token-dialog/show-access-token-dialog.scss b/apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.scss similarity index 100% rename from apps/client/src/app/pages/register/show-access-token-dialog/show-access-token-dialog.scss rename to apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.scss