Repository navigation
mgr/dashboard: NVMe Onboarding Setup Cards - #69241
Conversation
f826aac to
38190f3
Compare
f8e02a8 to
e33f750
Compare
cloudbehl
left a comment
There was a problem hiding this comment.
Please enable co-pilot to review your code.
There was a problem hiding this comment.
Pull request overview
This PR updates the Ceph Dashboard NVMe-oF (NVMe/TCP) UI to introduce an onboarding “setup cards” experience and a shared tabs shell that stays visible only on list routes, with a centralized refresh trigger to keep setup progress in sync after NVMe-oF-related operations. It also extends the shared table toolbar to support a projected filter area intended for the new gateway-group filter.
Changes:
- Add an NVMe-oF tabs shell with route-aware visibility and onboarding setup cards driven by live cluster state.
- Introduce
NvmeofStateServiceto emit refresh events based on finished tasks and explicit refresh requests. - Extend the shared table toolbar with a projected “filter slot” and adjust existing toolbar/filter/loading rendering.
Reviewed changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts | Adds a new compactSearchField input (currently not wired into template/styles). |
| src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.html | Adds toolbar content projection slot; changes column filter markup; replaces inline-loading rendering in executing cell template. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-tabs/nvmeof-tabs.component.ts | Implements tabs shell state, onboarding/setup state fetching, and refresh wiring. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-tabs/nvmeof-tabs.component.html | Wraps NVMe-oF views in a conditional tabs shell and injects setup cards. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-tabs/nvmeof-tabs.component.spec.ts | Adds test coverage for shell visibility and setup-card state scenarios. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems/nvmeof-subsystems.component.html | Removes embedded tabs component (tabs now provided by the route shell). |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-list/nvmeof-namespaces-list.component.html | Removes embedded tabs component (tabs now provided by the route shell). |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway-group/nvmeof-gateway-group.component.html | Removes embedded tabs component (tabs now provided by the route shell). |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway/nvmeof-gateway.component.ts | Minor query-param handling adjustment for internal tab state. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-state.service.ts | New service to emit refresh events from Summary finished-task updates. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-state.service.spec.ts | Adds unit tests for refresh emission and task filtering behavior. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-setup-cards/nvmeof-setup-cards.component.ts | New standalone setup-cards component API (inputs for progress, output for dismissal). |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-setup-cards/nvmeof-setup-cards.component.html | Renders the 3-step onboarding cards and “configuration complete” CTA. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-setup-cards/nvmeof-setup-cards.component.scss | Styles the setup cards layout and productive-card spacing. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway-group-filter/nvmeof-gateway-group-filter.component.ts | New standalone gateway-group combobox filter component. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway-group-filter/nvmeof-gateway-group-filter.component.html | Filter UI markup for projecting into table toolbar slot. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway-group-filter/nvmeof-gateway-group-filter.component.scss | Layout/styling for the gateway-group filter control. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway-group-filter/nvmeof-gateway-group-filter.component.spec.ts | Basic creation/render test for the filter component. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/block.module.ts | Wires NVMe-oF tabs shell into routing; imports standalone components; adjusts Carbon module imports. |
Comments suppressed due to low confidence (1)
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/block.module.ts:81
- BlockModule no longer imports
InlineLoadingModule/FileUploaderModulefromcarbon-components-angular, but BlockModule-declared templates still use<cds-inline-loading>(e.g.rbd-list.component.html) and<cds-file-uploader>(e.g.nvmeof-subsystem-step-2.component.html). This will cause Angular template compilation errors (unknown elements). Re-add these modules to the Carbon import list here.
import {
ButtonModule,
CheckboxModule,
ComboBoxModule,
DatePickerModule,
GridModule,
IconModule,
IconService,
InputModule,
ModalModule,
NumberModule,
RadioModule,
SelectModule,
UIShellModule,
TreeviewModule,
SideNavModule,
TabsModule,
TagModule,
LayoutModule,
ContainedListModule,
LayerModule,
ThemeModule
} from 'carbon-components-angular';
5bad092 to
670a854
Compare
nizamial09
left a comment
There was a problem hiding this comment.
Thanks @pujaoshahu, its a lot to review so please excuse the delay here.. and I think i didn't fully review here so if you want to callout any file or function that you are not clear and want a second eye do let us know and we can try to review that more closely.
on top of the code review i did, i didn't really look into those css changes. ideally when we use carbon we shouldn't customize a lot of css. if we are doing it, then it defeats the purpose of having a library to rely on, so please take a look and see if we can reduce the custom css things..
|
jenkins test make check |
Ack |
|
The fixed test case retriggered the make check process. |
nmunet
left a comment
There was a problem hiding this comment.
Thanks for the work here @pujaoshahu,
some suggestion from my end
@pujaoshahu waiting for a reply here as well btw and see some action done on those.. let's keep the conversation moving in the comments itself.. |
Thanks for the detailed review, and no worries on the delay — really appreciate the time spent here. I went through the CSS-heavy parts again with your feedback in mind and reduced custom styling where possible, especially by leaning on Carbon layout/utilities in the setup-cards flow. I also removed a few unnecessary styles and cleaned up related template code from the recent changes. One place I intentionally kept minimal custom CSS is setup-step-card, since switching that piece fully to cdsStack introduced template binding issues in this module context. I’ve kept it to the smallest scoped flex rules needed for layout only. If you want a second pass focus area, I’d especially appreciate another look at: Happy to further reduce styling if you spot any specific block that should be converted to Carbon primitives. |
|
jenkins test make check |
|
jenkins test api |
|
jenkins test dashboard |
|
jenkins test dashboard cephadm |
|
jenkins test windows |
|
jenkins test dashboard cephadm |
|
jenkins test dashboard |
|
jenkins test api |
|
jenkins test dashboard cephadm |
|
jenkins test api |
| </cds-combo-box> | ||
| </div> | ||
| </div> | ||
| </div> |
| <span class="cds--type-label-01">{{ statusMessage }}</span> | ||
| } | ||
| </div> | ||
| </div> |
| </cds-combo-box> | ||
| </div> | ||
| </div> | ||
| </div> |
|
This is an automated message by src/script/redmine-upkeep.py. I found one or more
The referenced tickets are: Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them. |




Screencast.From.2026-06-11.11-54-54.mp4
Fixes: https://tracker.ceph.com/issues/77067
Signed-off-by: pujaoshahu [email protected]
Summery:
This PR introduces a shared NVMe-oF tabs shell with on-boarding setup cards and a centralized refresh mechanism so setup progress stays in sync after NVMe-related operations.
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.