Skip to content

mgr/dashboard: Subsystem details page opens at stale scroll position after Add Namespace - #67759

Merged
aaSharma14 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-layout-issue-subsystem
Apr 10, 2026
Merged

aaSharma14 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-layout-issue-subsystem

Conversation

@sagargopale2233

@sagargopale2233 sagargopale2233 commented Mar 12, 2026 •

Copy link
Copy Markdown

mgr/dashboard: Subsystem details page opens at stale scroll position after Add Namespace

Fixes: https://tracker.ceph.com/issues/75473

Signed-off-by: Sagar Gopale [email protected]

Before :
Screenshot From 2026-03-12 18-04-55

After :
image

PR Description:

  • Fixes an NVMe/TCP UX issue where the subsystem details page could appear shifted/partially hidden after creating namespaces from the Add Namespace flow.
  • Resets scroll position after successful namespace creation by handling both viewport scroll and the dashboard’s primary scroll container (.container-fluid).
  • Keeps the change scoped to the Add Namespace success navigation path to avoid impacting unrelated pages or global routing behavior.
  • Preserves existing namespace creation behavior and post-submit redirect (tab=namespace) while ensuring consistent page layout on return.

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.

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@sagargopale2233

Copy link
Copy Markdown
Author

jenkins test windows

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Mar 20, 2026
@sagargopale2233
sagargopale2233 force-pushed the fix-layout-issue-subsystem branch from 2c45a7e to 744c02d Compare March 23, 2026 09:18
@sagargopale2233
sagargopale2233 force-pushed the fix-layout-issue-subsystem branch from 744c02d to 184f62a Compare March 23, 2026 10:22
@sagargopale2233

Copy link
Copy Markdown
Author

jenkins test make check arm64

@sagargopale2233
sagargopale2233 force-pushed the fix-layout-issue-subsystem branch from 184f62a to f12f7d9 Compare March 24, 2026 12:28
@Pegonzal

Copy link
Copy Markdown
Contributor

@sagargopale2233 I think the wrong tracker is attached, please verify it

@sagargopale2233

Copy link
Copy Markdown
Author

@sagargopale2233 I think the wrong tracker is attached, please verify it

No tracker is correct I will update the wording to avoid confusion.

@sagargopale2233 sagargopale2233 changed the title mgr/dashboard:fix-layout-issue-subsystem mgr/dashboard: Subsystem details page opens at stale scroll position after Add Namespace Mar 24, 2026
@sagargopale2233

Copy link
Copy Markdown
Author

jenkins test make check arm64

@sagargopale2233
sagargopale2233 force-pushed the fix-layout-issue-subsystem branch from 57f19a2 to 714a168 Compare March 31, 2026 13:53
@sagargopale2233

Copy link
Copy Markdown
Author

@sagargopale2233 The issue is due to the CSS in sidebar layout adding this css

  standalone: false,
  host: {
    class: 'tearsheet--full'
  }

Once workbench finds this its hide thinking full tearsheet is present

&:has(.tearsheet--full) {
padding-left: 0;
padding-right: 0;
overflow: hidden;

Renamed the host class from tearsheet--full to sidebar-layout--full in sidebar-layout.component.ts to avoid the class name collision.
Defined the new .sidebar-layout--full class in sidebar-layout.component.scss.
Added a separate :has(.sidebar-layout--full) rule in workbench-layout.component.scss — importantly without overflow: hidden, which was causing the content to shift/hide.

@sagargopale2233
sagargopale2233 requested a review from afreen23 April 1, 2026 07:50
@sagargopale2233
sagargopale2233 force-pushed the fix-layout-issue-subsystem branch from 533c2f2 to c8a9c17 Compare April 6, 2026 05:48
@github-project-automation github-project-automation Bot moved this from Review in progress to Reviewer approved in Ceph-Dashboard Apr 6, 2026
@afreen23

afreen23 commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Will test in sometime and add label @sagargopale2233

@dnyanee1997

dnyanee1997 commented Apr 9, 2026 •

Copy link
Copy Markdown
Contributor

Tested locally.
LGTM
Thanks!

@aaSharma14
aaSharma14 merged commit 176d26e into ceph:main Apr 10, 2026
6 checks passed
@aaSharma14
aaSharma14 deleted the fix-layout-issue-subsystem branch April 10, 2026 10:11
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Apr 10, 2026
@github-actions

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 176d26e3e2125fb48536c5a51c146a270ab82cdb^..176d26e3e2125fb48536c5a51c146a270ab82cdb

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/24237949605

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