From d7269999f04e3e9f3ceb9554f5f67cd35f756aa1 Mon Sep 17 00:00:00 2001 From: NazarMykhalkevych Date: Wed, 30 Jul 2025 16:01:37 +0300 Subject: [PATCH 1/2] feat(registration): fixed bug-397, refactoring --- src/app/core/interceptors/auth.interceptor.ts | 2 +- .../custom-step/custom-step.component.html | 91 ++++++++++--------- .../custom-step/custom-step.component.ts | 9 +- .../justification-review.component.html | 57 ++++-------- .../justification-review.component.ts | 4 +- .../review-data/review-data.component.html | 44 +++++++++ .../review-data/review-data.component.scss | 0 .../review-data/review-data.component.spec.ts | 22 +++++ .../review-data/review-data.component.ts | 26 ++++++ .../components/review/review.component.html | 53 +++-------- .../components/review/review.component.ts | 2 + .../registries/enums/field-type.enum.ts | 1 + .../registries/mappers/page-schema.mapper.ts | 1 + .../my-registrations.component.ts | 2 + .../registries/services/licenses.service.ts | 20 ---- .../registry-statuses.component.html | 2 +- .../registry-statuses.component.ts | 9 ++ .../withdraw-dialog.component.html | 1 + .../withdraw-dialog.component.ts | 2 + .../mappers/registry-metadata.mapper.ts | 3 +- .../mappers/registry-overview.mapper.ts | 1 + .../models/registry-overview.models.ts | 3 +- 22 files changed, 202 insertions(+), 153 deletions(-) create mode 100644 src/app/features/registries/components/review-data/review-data.component.html create mode 100644 src/app/features/registries/components/review-data/review-data.component.scss create mode 100644 src/app/features/registries/components/review-data/review-data.component.spec.ts create mode 100644 src/app/features/registries/components/review-data/review-data.component.ts diff --git a/src/app/core/interceptors/auth.interceptor.ts b/src/app/core/interceptors/auth.interceptor.ts index 1ba2c58ba..64a304f52 100644 --- a/src/app/core/interceptors/auth.interceptor.ts +++ b/src/app/core/interceptors/auth.interceptor.ts @@ -6,7 +6,7 @@ export const authInterceptor: HttpInterceptorFn = ( req: HttpRequest, next: HttpHandlerFn ): Observable> => { - const authToken = 'UlO9O9GNKgVzJD7pUeY53jiQTKJ4U2znXVWNvh0KZQruoENuILx0IIYf9LoDz7Duq72EIm'; + const authToken = '2rjFZwmdDG4rtKj7hGkEMO6XyHBM2lN7XBbsA1e8OqcFhOWu6Z7fQZiheu9RXtzSeVrgOt'; // UlO9O9GNKgVzJD7pUeY53jiQTKJ4U2znXVWNvh0KZQruoENuILx0IIYf9LoDz7Duq72EIm kyrylo // 2rjFZwmdDG4rtKj7hGkEMO6XyHBM2lN7XBbsA1e8OqcFhOWu6Z7fQZiheu9RXtzSeVrgOt roman nastyuk const localStorageToken = localStorage.getItem('authToken'); diff --git a/src/app/features/registries/components/custom-step/custom-step.component.html b/src/app/features/registries/components/custom-step/custom-step.component.html index 2c3c77e4b..a34f93398 100644 --- a/src/app/features/registries/components/custom-step/custom-step.component.html +++ b/src/app/features/registries/components/custom-step/custom-step.component.html @@ -6,73 +6,71 @@

{{ currentPage().title }}

@if (currentPage().sections?.length) { @for (section of currentPage().sections; track section.id) { - questions = section.questions;

{{ section.title }}

@if (section.description) {

{{ section.description }}

} - +
} } @else { - + } - - @for (question of questions; track question.id) { + + @for (q of questions; track q.id) {
-