From 3cf1839abbeb9abc380b4c44991a66390b1a1340 Mon Sep 17 00:00:00 2001 From: Samiul Date: Tue, 27 Jan 2026 15:28:51 +0600 Subject: [PATCH] fix backup pages inconsistencies Signed-off-by: Samiul --- .../ui/create-ui.yaml | 3 + .../ui/create-ui.yaml | 1 + .../ui/create-ui.yaml | 2 +- .../ui/create-ui.yaml | 215 +++++++++--------- 4 files changed, 113 insertions(+), 108 deletions(-) diff --git a/charts/corekubestashcom-backupconfiguration-editor-options/ui/create-ui.yaml b/charts/corekubestashcom-backupconfiguration-editor-options/ui/create-ui.yaml index 92930bd4f8..91db2819d9 100644 --- a/charts/corekubestashcom-backupconfiguration-editor-options/ui/create-ui.yaml +++ b/charts/corekubestashcom-backupconfiguration-editor-options/ui/create-ui.yaml @@ -62,6 +62,7 @@ step: schema: params schema: addon/properties/tasks - type: select + customClass: mt-4 label: Encryption Secret Namespace loader: getNamespaces schema: encryptionSecret/properties/namespace @@ -107,7 +108,9 @@ step: name: getTargetName watchPaths: - schema/properties/spec/properties/target/properties/namespace + - schema/properties/spec/properties/target/properties/kind label: Name + refresh: true validation: type: required schema: schema/properties/spec/properties/target/properties/name diff --git a/charts/corekubestashcom-backupsession-editor-options/ui/create-ui.yaml b/charts/corekubestashcom-backupsession-editor-options/ui/create-ui.yaml index f2b57584ce..4327a0986d 100644 --- a/charts/corekubestashcom-backupsession-editor-options/ui/create-ui.yaml +++ b/charts/corekubestashcom-backupsession-editor-options/ui/create-ui.yaml @@ -9,6 +9,7 @@ step: - type: block-layout label: Labels & Annotations showLabels: true + hideBlock: true elements: - type: object-item label: Labels diff --git a/charts/storagekubestashcom-backupstorage-editor-options/ui/create-ui.yaml b/charts/storagekubestashcom-backupstorage-editor-options/ui/create-ui.yaml index 51d9ac5ab2..c3b163d736 100644 --- a/charts/storagekubestashcom-backupstorage-editor-options/ui/create-ui.yaml +++ b/charts/storagekubestashcom-backupstorage-editor-options/ui/create-ui.yaml @@ -20,7 +20,7 @@ step: showLabels: true hideBlock: true type: block-layout - - customClass: mt-20 + - customClass: mt-10 label: Deletion Policy options: - description: options.deletionPolicy.delete.description diff --git a/charts/storagekubestashcom-repository-editor-options/ui/create-ui.yaml b/charts/storagekubestashcom-repository-editor-options/ui/create-ui.yaml index d734629bb9..ccfd9931af 100644 --- a/charts/storagekubestashcom-repository-editor-options/ui/create-ui.yaml +++ b/charts/storagekubestashcom-repository-editor-options/ui/create-ui.yaml @@ -2,16 +2,14 @@ step: - type: single-step-form loader: init elements: - - elements: - - loader: getNamespacesApi - hasGroup: isRancherManaged - label: Namespace - schema: schema/properties/metadata/properties/release/properties/namespace - type: select - - label: Repository Name - schema: schema/properties/metadata/properties/release/properties/name - type: input - type: block-layout + - loader: getNamespacesApi + hasGroup: isRancherManaged + label: Namespace + schema: schema/properties/metadata/properties/release/properties/namespace + type: select + - label: Repository Name + schema: schema/properties/metadata/properties/release/properties/name + type: input - elements: - type: object-item label: Labels @@ -19,104 +17,107 @@ step: - type: object-item label: Annotations schema: schema/properties/spec/properties/annotations - - label: Deletion Policy - options: - - Delete - - WipeOut - schema: schema/properties/spec/properties/deletionPolicy + label: Labels & Annotations + showLabels: true + hideBlock: true + type: block-layout + - label: Deletion Policy + customClass: mt-10 + options: + - Delete + - WipeOut + schema: schema/properties/spec/properties/deletionPolicy + type: select + - elements: + - disableUnselect: true + loader: fetchNamespaces + hasGroup: isRancherManaged + label: Namespace + refresh: true + watcher: + func: onStorageRefNamespaceChange + paths: + - schema/properties/spec/properties/storageRef/properties/namespace + schema: schema/properties/spec/properties/storageRef/properties/namespace + type: select + - disableUnselect: true + loader: + name: fetchNames|storageRef + watchPaths: + - schema/properties/spec/properties/storageRef/properties/namespace + label: Name + refresh: true + schema: schema/properties/spec/properties/storageRef/properties/name + type: select + label: Storage Ref + showLabels: true + type: block-layout + - elements: + - disableUnselect: true + loader: fetchNamespaces + hasGroup: isRancherManaged + label: Namespace + refresh: true + watcher: + func: onEncryptionSecretNamespaceChange + paths: + - schema/properties/spec/properties/encryptionSecret/properties/namespace + schema: schema/properties/spec/properties/encryptionSecret/properties/namespace + type: select + - disableUnselect: true + loader: + name: fetchNames|encryptionSecret + watchPaths: + - schema/properties/spec/properties/encryptionSecret/properties/namespace + label: Name + refresh: true + schema: schema/properties/spec/properties/encryptionSecret/properties/name + type: select + label: Encryption Secret + showLabels: true + type: block-layout + - label: Path + schema: schema/properties/spec/properties/path + type: input + - elements: + - loader: getApiGroup + label: Api Group + watcher: + func: onApiGroupChange + paths: + - schema/properties/spec/properties/appRef/properties/apiGroup + schema: schema/properties/spec/properties/appRef/properties/apiGroup + type: select + - loader: + name: getKinds + watchPaths: + - schema/properties/spec/properties/appRef/properties/apiGroup + label: Kind + watcher: + func: setVersion + paths: + - schema/properties/spec/properties/appRef/properties/kind + schema: schema/properties/spec/properties/appRef/properties/kind + type: select + - loader: fetchNamespaces + hasGroup: isRancherManaged + label: Namespace + watcher: + func: onAppRefNamespaceChange + paths: + - schema/properties/spec/properties/appRef/properties/namespace + schema: schema/properties/spec/properties/appRef/properties/namespace + type: select + - loader: + name: getTargetName + watchPaths: + - schema/properties/spec/properties/appRef/properties/kind + - schema/properties/spec/properties/appRef/properties/namespace + label: Name + schema: schema/properties/spec/properties/appRef/properties/name type: select - - elements: - - disableUnselect: true - loader: fetchNamespaces - hasGroup: isRancherManaged - label: Namespace - refresh: true - watcher: - func: onStorageRefNamespaceChange - paths: - - schema/properties/spec/properties/storageRef/properties/namespace - schema: schema/properties/spec/properties/storageRef/properties/namespace - type: select - - disableUnselect: true - loader: - name: fetchNames|storageRef - watchPaths: - - schema/properties/spec/properties/storageRef/properties/namespace - label: Name - refresh: true - schema: schema/properties/spec/properties/storageRef/properties/name - type: select - label: Storage Ref - showLabels: true - type: block-layout - - elements: - - disableUnselect: true - loader: fetchNamespaces - hasGroup: isRancherManaged - label: Namespace - refresh: true - watcher: - func: onEncryptionSecretNamespaceChange - paths: - - schema/properties/spec/properties/encryptionSecret/properties/namespace - schema: schema/properties/spec/properties/encryptionSecret/properties/namespace - type: select - - disableUnselect: true - loader: - name: fetchNames|encryptionSecret - watchPaths: - - schema/properties/spec/properties/encryptionSecret/properties/namespace - label: Name - refresh: true - schema: schema/properties/spec/properties/encryptionSecret/properties/name - type: select - label: Encryption Secret - showLabels: true - type: block-layout - - label: Path - schema: schema/properties/spec/properties/path - type: input - - elements: - - loader: getApiGroup - label: Api Group - watcher: - func: onApiGroupChange - paths: - - schema/properties/spec/properties/appRef/properties/apiGroup - schema: schema/properties/spec/properties/appRef/properties/apiGroup - type: select - - loader: - name: getKinds - watchPaths: - - schema/properties/spec/properties/appRef/properties/apiGroup - label: Kind - watcher: - func: setVersion - paths: - - schema/properties/spec/properties/appRef/properties/kind - schema: schema/properties/spec/properties/appRef/properties/kind - type: select - - loader: fetchNamespaces - hasGroup: isRancherManaged - label: Namespace - watcher: - func: onAppRefNamespaceChange - paths: - - schema/properties/spec/properties/appRef/properties/namespace - schema: schema/properties/spec/properties/appRef/properties/namespace - type: select - - loader: - name: getTargetName - watchPaths: - - schema/properties/spec/properties/appRef/properties/apiGroup - - schema/properties/spec/properties/appRef/properties/kind - - schema/properties/spec/properties/appRef/properties/namespace - label: Name - schema: schema/properties/spec/properties/appRef/properties/name - type: select - label: App Ref - showLabels: true - type: block-layout + label: App Ref + showLabels: true type: block-layout id: options type: multi-step-form