From 1b7cb95b8d213411fd23e282574aa7ec5db9b40b Mon Sep 17 00:00:00 2001 From: Arturo Reuschenbach Date: Fri, 13 Sep 2024 13:56:30 +0200 Subject: [PATCH] fix(supernova): fixes active filters loading order to avoid overriding filters on login (#354) * fix(supernova): fixes active filters loading order * fix(supernova): exports useGlobalsIsURLRead on the right file * fix(supernova): fixes typo and double check empty var * fix(supernova): fix typo in naming in methods * chore(core): migrate greenhouse dashboard (#337) * chore(greenhouse): adds greenhouse dashboard and apps * chore(greenhouse): adds greenhouse to allowed scopes * chore(greenhouse): adjust build scripts * chore(greenhouse): fixes lint issues in cluster-admin * chore(greenhouse): add ts-luxon pkg to cluster-admin * chore(greenhouse): merge main branch * chore(greenhouse): extend esbuild config to build apps * chore(greenhouse): add missing entries in package.json and changeset * chore(ci): add nginx.conf to license ignore path * chore(ci): update package-lock.json * fix(build): fixes tests * chore(example): remove console logs * fix(greenhouse): add dependent apps to turbo for build * chore(greenhouse): make packages private in apps * chore(supernova): add missinge dependecies in useCommunication * chore(supernova): create a new patch changeset --------- Co-authored-by: Andreas Pfau --- .changeset/thirty-boxes-end.md | 5 +++++ apps/supernova/public/index.html | 10 ++++------ apps/supernova/src/hooks/useAppStore.js | 1 + apps/supernova/src/hooks/useCommunication.js | 14 ++++++++++---- apps/supernova/src/hooks/useUrlState.js | 9 ++++----- apps/supernova/src/lib/createGlobalsSlice.js | 10 ++++++++++ 6 files changed, 34 insertions(+), 15 deletions(-) create mode 100644 .changeset/thirty-boxes-end.md diff --git a/.changeset/thirty-boxes-end.md b/.changeset/thirty-boxes-end.md new file mode 100644 index 000000000..f78f91123 --- /dev/null +++ b/.changeset/thirty-boxes-end.md @@ -0,0 +1,5 @@ +--- +"@cloudoperators/juno-app-supernova": patch +--- + +Fixed the useCommunication hook to properly enable and handle filters derived from the URL. This ensures that the communication layer respects the filter parameters passed via the URL, improving synchronization between the app state and the URL. diff --git a/apps/supernova/public/index.html b/apps/supernova/public/index.html index ca936aefc..9889267e5 100644 --- a/apps/supernova/public/index.html +++ b/apps/supernova/public/index.html @@ -3,7 +3,7 @@ ~ SPDX-License-Identifier: Apache-2.0 --> - + @@ -28,13 +28,11 @@ - + >