From c041c0fefdb84c0441b524438eb7b68c0ad95710 Mon Sep 17 00:00:00 2001 From: nsemets Date: Mon, 20 Oct 2025 19:37:31 +0300 Subject: [PATCH 1/2] fix(schemas): updated schemas text display --- .../custom-step/custom-step.component.html | 25 ++++++++++++------- .../components/drafts/drafts.component.ts | 4 +-- .../components/review/review.component.html | 4 +-- .../registries/store/registries.state.ts | 1 + src/app/shared/enums/block-type.enum.ts | 4 +++ 5 files changed, 24 insertions(+), 14 deletions(-) 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 e6ed1032c..a8cdbc290 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 @@ -10,6 +10,10 @@

{{ currentPage().title }}

} + @if (currentPage().description?.length) { +

{{ currentPage().description }}

+ } + @let questions = currentPage().questions || []; @@ -47,10 +51,10 @@

@if (q.paragraphText) { -

{{ q.paragraphText }}

+

{{ q.paragraphText }}

} - @if (q.helpText && q.fieldType !== FieldType.Radio && q.fieldType !== FieldType.Checkbox) { -

{{ q.helpText }}

+ @if (q.helpText) { +

{{ q.helpText }}

} @if (q.exampleText) { @@ -87,7 +91,7 @@

} } @case (FieldType.Radio) { -
+
@for (option of q.options; track option) {
[inputId]="option.value" [value]="option.value" > - + + @if (option.helpText) { } @@ -112,7 +117,7 @@

} } @case (FieldType.Checkbox) { -
+
@for (option of q.options; track option) {
[formControlName]="q.responseKey!" [value]="option.value" > - + + @if (option.helpText) { } @@ -190,13 +196,14 @@

{{ 'files.actions.uploadFile' | translate }}

[label]="'common.buttons.back' | translate" severity="info" class="mr-2" - (click)="goBack()" + (onClick)="goBack()" > +
diff --git a/src/app/features/registries/components/drafts/drafts.component.ts b/src/app/features/registries/components/drafts/drafts.component.ts index f012077bd..4c4c4c04f 100644 --- a/src/app/features/registries/components/drafts/drafts.component.ts +++ b/src/app/features/registries/components/drafts/drafts.component.ts @@ -122,9 +122,7 @@ export class DraftsComponent implements OnDestroy { this.route.snapshot.firstChild?.params['step'] ? +this.route.snapshot.firstChild?.params['step'] : 0 ); - currentStep = computed(() => { - return this.steps()[this.currentStepIndex()]; - }); + currentStep = computed(() => this.steps()[this.currentStepIndex()]); registrationId = this.route.snapshot.firstChild?.params['id'] || ''; diff --git a/src/app/features/registries/components/review/review.component.html b/src/app/features/registries/components/review/review.component.html index f984826f5..691afff6c 100644 --- a/src/app/features/registries/components/review/review.component.html +++ b/src/app/features/registries/components/review/review.component.html @@ -82,7 +82,7 @@

{{ 'shared.tags.title' | translate }}

{{ page.title }}

@if (page.description) { -

{{ page.description }}

+

{{ page.description }}

} @if (page.sections?.length) { @@ -90,7 +90,7 @@

{{ page.title }}

{{ section.title }}

@if (section.description) { -

{{ section.description }}

+

{{ section.description }}

} @if (section.questions?.length) { { ctx.patchState({ diff --git a/src/app/shared/enums/block-type.enum.ts b/src/app/shared/enums/block-type.enum.ts index 4240e5321..58b246d21 100644 --- a/src/app/shared/enums/block-type.enum.ts +++ b/src/app/shared/enums/block-type.enum.ts @@ -10,4 +10,8 @@ export enum BlockType { MultiSelectInput = 'multi-select-input', ShortTextInput = 'short-text-input', SectionHeading = 'section-heading', + + // [NS] Currently not used + ContributorsInput = 'contributors-input', + SelectOtherOption = 'select-other-option', } From 2c0c84973664c0a33832e0e5b618a6c298cd79cc Mon Sep 17 00:00:00 2001 From: nsemets Date: Tue, 21 Oct 2025 10:22:08 +0300 Subject: [PATCH 2/2] fix(block-type): removed block types --- src/app/shared/enums/block-type.enum.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/app/shared/enums/block-type.enum.ts b/src/app/shared/enums/block-type.enum.ts index 58b246d21..4240e5321 100644 --- a/src/app/shared/enums/block-type.enum.ts +++ b/src/app/shared/enums/block-type.enum.ts @@ -10,8 +10,4 @@ export enum BlockType { MultiSelectInput = 'multi-select-input', ShortTextInput = 'short-text-input', SectionHeading = 'section-heading', - - // [NS] Currently not used - ContributorsInput = 'contributors-input', - SelectOtherOption = 'select-other-option', }