From 5333cd83be841b1ea9e4af5ca406688214909b00 Mon Sep 17 00:00:00 2001 From: tkubica-edu Date: Thu, 7 Nov 2024 15:19:31 +0100 Subject: [PATCH] feat: add filterbar to side menu --- src/app/wlo-search/template/custom-definitions.ts | 11 ++++++++--- .../wlo-search/template/template.component.html | 15 +++++++++++++-- src/app/wlo-search/template/template.component.ts | 6 ++++-- 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/src/app/wlo-search/template/custom-definitions.ts b/src/app/wlo-search/template/custom-definitions.ts index 7488f3e..d1c4f75 100644 --- a/src/app/wlo-search/template/custom-definitions.ts +++ b/src/app/wlo-search/template/custom-definitions.ts @@ -93,9 +93,9 @@ export const parentPageConfigNodeId: string = '25e341e1-7058-4210-b0d3-838255884 export const parentWidgetConfigNodeId: string = '80bb0eab-d64f-466b-94c6-2eccc4045c6b'; -export const providedSelectDimensionKeys: string[] = [ - 'virtual:ai_text_widget_intendedenduserrole', - 'virtual:ai_text_widget_target_language', +export const profilingFilterbarDimensionKeys: string[] = [ + 'virtual:profiling_widget_intention', + 'virtual:profiling_widget_education_level', ]; export const reportProblemItemKey: string = 'latestReport'; @@ -132,6 +132,11 @@ export const swimlaneTypeOptions: SelectOption[] = [ }, ]; +export const verticalFilterbarDimensionKeys: string[] = [ + 'virtual:ai_text_widget_intendedenduserrole', + 'virtual:ai_text_widget_target_language', +]; + export const widgetConfigAspect: string = 'ccm:widget'; export const widgetConfigType: string = 'ccm:widget_config'; diff --git a/src/app/wlo-search/template/template.component.html b/src/app/wlo-search/template/template.component.html index 61ad9b8..7fdd6b3 100644 --- a/src/app/wlo-search/template/template.component.html +++ b/src/app/wlo-search/template/template.component.html @@ -76,7 +76,16 @@ - Inhalt von {{ menuItems.profiling }} folgt. +

Wer bist du?

+

Themenbaum von {{ topic() }}

@@ -111,9 +120,11 @@

Inhalte von {{ topic() }}

diff --git a/src/app/wlo-search/template/template.component.ts b/src/app/wlo-search/template/template.component.ts index fc68708..78170d2 100644 --- a/src/app/wlo-search/template/template.component.ts +++ b/src/app/wlo-search/template/template.component.ts @@ -58,7 +58,6 @@ import { pageConfigPropagateType, pageConfigRefType, pageConfigType, - providedSelectDimensionKeys, retrieveCustomUrl, pageVariantConfigType, parentPageConfigNodeId, @@ -67,6 +66,8 @@ import { pageVariantConfigPrefix, pageVariantConfigAspect, pageVariantIsTemplateType, + profilingFilterbarDimensionKeys, + verticalFilterbarDimensionKeys, widgetConfigAspect, workspaceSpacesStorePrefix, } from './custom-definitions'; @@ -1032,6 +1033,7 @@ export class TemplateComponent implements OnInit { protected readonly defaultMds: string = defaultMds; protected readonly defaultTopicTextNodeId: string = defaultTopicTextNodeId; protected readonly defaultTopicsColumnBrowserNodeId: string = defaultTopicsColumnBrowserNodeId; - protected readonly providedSelectDimensionKeys: string[] = providedSelectDimensionKeys; + protected readonly profilingFilterbarDimensionKeys: string[] = profilingFilterbarDimensionKeys; protected readonly retrieveCustomUrl = retrieveCustomUrl; + protected readonly verticalFilterbarDimensionKeys: string[] = verticalFilterbarDimensionKeys; }