Skip to content

mgr/dashboard: NVMe Onboarding Setup Cards - #69241

Merged
afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:bug-3990-pr1
Jul 1, 2026
Merged

afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:bug-3990-pr1

Conversation

@pujaoshahu

@pujaoshahu pujaoshahu commented Jun 2, 2026 •

Copy link
Copy Markdown
Screencast.From.2026-06-11.11-54-54.mp4
image

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@pujaoshahu
pujaoshahu marked this pull request as ready for review June 2, 2026 18:30
@pujaoshahu
pujaoshahu requested a review from a team as a code owner June 2, 2026 18:30
@pujaoshahu
pujaoshahu requested review from Pegonzal and nizamial09 June 2, 2026 18:30
@pujaoshahu pujaoshahu changed the title mgr/dashboard:NVMe-oF: Add shared tabs shell on boarding setup cards … mgr/dashboard:NVMe-oF- Add shared tabs shell on boarding setup cards and refresh state Jun 2, 2026
@pujaoshahu
pujaoshahu force-pushed the bug-3990-pr1 branch 2 times, most recently from f826aac to 38190f3 Compare June 2, 2026 18:39
@pujaoshahu pujaoshahu changed the title mgr/dashboard:NVMe-oF- Add shared tabs shell on boarding setup cards and refresh state mgr/dashboard:NVMe-of Add shared tabs shell on boarding setup cards and refresh state Jun 2, 2026
@pujaoshahu pujaoshahu changed the title mgr/dashboard:NVMe-of Add shared tabs shell on boarding setup cards and refresh state mgr/dashboard: Add shared tabs shell on boarding setup cards and refresh state Jun 2, 2026
@pujaoshahu
pujaoshahu force-pushed the bug-3990-pr1 branch 3 times, most recently from f8e02a8 to e33f750 Compare June 3, 2026 07:24

@cloudbehl cloudbehl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please enable co-pilot to review your code.

@cloudbehl

Copy link
Copy Markdown
Contributor

which status are we showing, on click on complete onboarding, view status?

image

@pujaoshahu pujaoshahu changed the title mgr/dashboard: Add shared tabs shell on boarding setup cards and refresh state mgr/dashboard: NVMe-oF – Onboarding Setup Cards Jun 3, 2026
@pujaoshahu

pujaoshahu commented Jun 3, 2026 •

Copy link
Copy Markdown
Author

which status are we showing, on click on complete onboarding, view status?

image

This hyperlink will navigate to the Resource Cards page after the gateway, subsystem and namespace have been created successfully
image

@pujaoshahu
pujaoshahu requested a review from Copilot June 3, 2026 13:37
@pujaoshahu
pujaoshahu requested review from afreen23 and nmunet and removed request for Pegonzal June 3, 2026 13:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 NvmeofStateService to 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 / FileUploaderModule from carbon-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';

@pujaoshahu pujaoshahu changed the title mgr/dashboard: NVMe-oF – Onboarding Setup Cards mgr/dashboard: NVMe Onboarding Setup Cards Jun 3, 2026
@pujaoshahu
pujaoshahu force-pushed the bug-3990-pr1 branch 3 times, most recently from 5bad092 to 670a854 Compare June 3, 2026 18:38

@nizamial09 nizamial09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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..

@nizamial09 nizamial09 mentioned this pull request Jun 11, 2026
4 of 14 tasks
@nizamial09

Copy link
Copy Markdown
Member

jenkins test make check

@pujaoshahu

Copy link
Copy Markdown
Author

jenkins test make check

Ack

@pujaoshahu

Copy link
Copy Markdown
Author

The fixed test case retriggered the make check process.

@nmunet nmunet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the work here @pujaoshahu,
some suggestion from my end

@nizamial09

Copy link
Copy Markdown
Member

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..

@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..

@pujaoshahu

Copy link
Copy Markdown
Author

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

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.

@pujaoshahu

Copy link
Copy Markdown
Author

jenkins test make check

@pujaoshahu

Copy link
Copy Markdown
Author

jenkins test api

@pujaoshahu

Copy link
Copy Markdown
Author

jenkins test dashboard

@pujaoshahu

Copy link
Copy Markdown
Author

jenkins test dashboard cephadm

@nmunet nmunet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@pujaoshahu

Copy link
Copy Markdown
Author

jenkins test windows

@pujaoshahu

Copy link
Copy Markdown
Author

jenkins test dashboard cephadm

@pujaoshahu

Copy link
Copy Markdown
Author

jenkins test dashboard

@pujaoshahu

Copy link
Copy Markdown
Author

jenkins test api

@pujaoshahu

Copy link
Copy Markdown
Author

jenkins test dashboard cephadm

@nizamial09

Copy link
Copy Markdown
Member

jenkins test api

</cds-combo-box>
</div>
</div>
</div>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new line needed

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@afreen23 afreen23 Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where ?
image
I'm not sure why it's not reflecting. I've pushed the code again. Where are you still seeing the issue?

<span class="cds--type-label-01">{{ statusMessage }}</span>
}
</div>
</div>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again, I dont think so.

</cds-combo-box>
</div>
</div>
</div>

@afreen23 afreen23 Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where ?
image
I'm not sure why it's not reflecting. I've pushed the code again. Where are you still seeing the issue?

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I found one or more Fixes: tags in the commit messages in

git log 2538df0b13432f94f024fbdedb08971f893510f9^..2538df0b13432f94f024fbdedb08971f893510f9

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.

Update Log: https://github.com/ceph/ceph/actions/runs/28510406914

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

7 participants