From e4eefc0474944444f07d1f487eeef33ddc6b0180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Rogoda?= Date: Thu, 30 Jan 2025 10:39:40 +0100 Subject: [PATCH] feat/develop-example-content-for-openmfp --- .../templates/contentconfigurations.yaml | 16 +++++++++++++++- .../tests/__snapshot__/snapshot_test.yaml.snap | 16 +++++++++++++++- charts/example-content/values.yaml | 2 ++ 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/charts/example-content/templates/contentconfigurations.yaml b/charts/example-content/templates/contentconfigurations.yaml index 200ffbde8..6fcf98ebf 100644 --- a/charts/example-content/templates/contentconfigurations.yaml +++ b/charts/example-content/templates/contentconfigurations.yaml @@ -9,7 +9,7 @@ spec: content: |- { "name": "overview", - "creationTimestamp": "2022-05-17T11:37:17Z", + "creationTimestamp": "2025-01-30T08:00:00Z", "luigiConfigFragment": { "data": { "nodes": [ @@ -51,6 +51,20 @@ spec: "row": "1", "column": "1 / -1" } + }, + { + "entityType": "main.overview::compound", + "url": "{{ .Values.exampleContentWc }}/main.js#showcase", + "context": { + "title": "Configuration showcase" + }, + "layoutConfig": { + "row": "2", + "column": "1 / -1" + }, + "webcomponent": { + "selfRegistered": true + } } ] } diff --git a/charts/example-content/tests/__snapshot__/snapshot_test.yaml.snap b/charts/example-content/tests/__snapshot__/snapshot_test.yaml.snap index d3a36823d..5eb52a07f 100644 --- a/charts/example-content/tests/__snapshot__/snapshot_test.yaml.snap +++ b/charts/example-content/tests/__snapshot__/snapshot_test.yaml.snap @@ -10,7 +10,7 @@ matches the snapshot: content: |- { "name": "overview", - "creationTimestamp": "2022-05-17T11:37:17Z", + "creationTimestamp": "2025-01-30T08:00:00Z", "luigiConfigFragment": { "data": { "nodes": [ @@ -52,6 +52,20 @@ matches the snapshot: "row": "1", "column": "1 / -1" } + }, + { + "entityType": "main.overview::compound", + "url": "https://example.com/main.js#showcase", + "context": { + "title": "Configuration showcase" + }, + "layoutConfig": { + "row": "2", + "column": "1 / -1" + }, + "webcomponent": { + "selfRegistered": true + } } ] } diff --git a/charts/example-content/values.yaml b/charts/example-content/values.yaml index e10456c85..934a42596 100644 --- a/charts/example-content/values.yaml +++ b/charts/example-content/values.yaml @@ -16,3 +16,5 @@ istio: contentConfigurations: # -- This content configuration enables a basic homepage in the portal home: true + +exampleContentWc: https://example.com