From 132a7259c90659eb431b73cbe69ed85cebfa50d4 Mon Sep 17 00:00:00 2001 From: Afreen Misbah Date: Mon, 29 Dec 2025 10:21:36 +0530 Subject: [PATCH] mgr/dashboard: Add generic wizard component Fixes https://tracker.ceph.com/issues/74291 - made on top of carbon modal - carbon design system used - wide tearsheet - added a step component as well to support navigation code - added unit tests Signed-off-by: Afreen Misbah --- .../nvmeof-subsystems-form.component.html | 117 +++++++------- .../nvmeof-subsystems-form.component.ts | 44 ++++- .../shared/components/components.module.ts | 16 +- .../tearsheet-step.component.html | 3 + .../tearsheet-step.component.scss | 0 .../tearsheet-step.component.spec.ts | 24 +++ .../tearsheet-step.component.ts | 12 ++ .../tearsheet/tearsheet.component.html | 69 ++++++++ .../tearsheet/tearsheet.component.scss | 65 ++++++++ .../tearsheet/tearsheet.component.spec.ts | 153 ++++++++++++++++++ .../tearsheet/tearsheet.component.ts | 91 +++++++++++ 11 files changed, 524 insertions(+), 70 deletions(-) create mode 100644 src/pybind/mgr/dashboard/frontend/src/app/shared/components/tearsheet-step/tearsheet-step.component.html create mode 100644 src/pybind/mgr/dashboard/frontend/src/app/shared/components/tearsheet-step/tearsheet-step.component.scss create mode 100644 src/pybind/mgr/dashboard/frontend/src/app/shared/components/tearsheet-step/tearsheet-step.component.spec.ts create mode 100644 src/pybind/mgr/dashboard/frontend/src/app/shared/components/tearsheet-step/tearsheet-step.component.ts create mode 100644 src/pybind/mgr/dashboard/frontend/src/app/shared/components/tearsheet/tearsheet.component.html create mode 100644 src/pybind/mgr/dashboard/frontend/src/app/shared/components/tearsheet/tearsheet.component.scss create mode 100644 src/pybind/mgr/dashboard/frontend/src/app/shared/components/tearsheet/tearsheet.component.spec.ts create mode 100644 src/pybind/mgr/dashboard/frontend/src/app/shared/components/tearsheet/tearsheet.component.ts diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystems-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystems-form.component.html index 4bb762e9ea5f1..ad17ad83deb80 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystems-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystems-form.component.html @@ -1,71 +1,64 @@ - - {{ action | titlecase }} {{ resource | upperFirst }} - + +
-