Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mgr/dashboard: Bootstrapify #35954

Merged
merged 3 commits into from Aug 10, 2020
Merged

mgr/dashboard: Bootstrapify #35954

merged 3 commits into from Aug 10, 2020

Conversation

SchoolGuy
Copy link
Contributor

This PR is directly based on #35501. Before that is merged, this one cannot be merged.

Checklist


Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard backend
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@SchoolGuy SchoolGuy requested a review from a team as a code owner July 7, 2020 07:12
@SchoolGuy SchoolGuy marked this pull request as draft July 7, 2020 07:12
@SchoolGuy
Copy link
Contributor Author

The tests are failing because of unresolved paths for some pictures in the SCSS. Locally this just works fine. Anyone any ideas?

@SchoolGuy
Copy link
Contributor Author

jenkins test dashboard backend

@SchoolGuy SchoolGuy marked this pull request as ready for review July 24, 2020 08:32
@Exotelis Exotelis self-requested a review July 24, 2020 08:36
Copy link
Contributor

@tspmelo tspmelo left a comment

Choose a reason for hiding this comment

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

Didn't check every page, but cd-col-form-label is breaking the pages I tested.
Please check the other pages and maybe revert this.

I notice lots of colors have change throughout the dashboard.
It would be nice if you could show some screenshots of the bigger changes so everyone can comment on those.

for example the "No data to display" warning is now blue
image

And the selection row is now darker, and the warning text is brighter (contrast is not the best).
image

@SchoolGuy
Copy link
Contributor Author

jenkins test make check

@SchoolGuy
Copy link
Contributor Author

jenkins test dashboard

@SchoolGuy
Copy link
Contributor Author

jenkins test dashboard backend

@SchoolGuy
Copy link
Contributor Author

jenkins test make check

@SchoolGuy
Copy link
Contributor Author

jenkins test dashboard

@SchoolGuy
Copy link
Contributor Author

Here are the screenshots desired by @tspmelo

On the left side you see the new dashboard and on the right side the old dashboard. If you desire screenshots of other views please say which one you desire.

pr-35954-cluster-hosts-1
pr-35954-cluster-logs-1
pr-35954-cluster-osds-1
pr-35954-cluster-osds-edit-1
pr-35954-dashboard-1
pr-35954-pools-1
pr-35954-user-management-1

@SchoolGuy
Copy link
Contributor Author

@tspmelo Once again I squashed your recommendations in your review commit.

@votdev
Copy link
Member

votdev commented Aug 4, 2020

IMO the selected table rows color is too dark, the old one looks better, maybe something between those colors will be a good solution.

@alfonsomthd
Copy link
Contributor

@SchoolGuy Can you squash those commits that are not worth keeping apart?

@SchoolGuy
Copy link
Contributor Author

@alfonsomthd Sure thing. I will do it later in the day...

@alfonsomthd alfonsomthd added the skip-teuthology For PRs whose changes do not have an effect on QA runs/changes are not being tested in Teuthology label Aug 7, 2020
@SchoolGuy
Copy link
Contributor Author

SchoolGuy commented Aug 8, 2020

Commits squashed, as per request of @alfonsomthd

Copy link
Contributor

@tspmelo tspmelo left a comment

Choose a reason for hiding this comment

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

commit mgr/dashboard: SCSS cleanup is missing the Fixes: https://tracker.ceph.com/issues/46382.

Please replace the message of commit mgr/dashboard: SCSS: Replaced usage of base class with specific with:

The SCSS class cd-col-form-label is the specific and correct class to use.
Previously sometimes the class col-form-label was used.

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

Signed-off-by: Enno Gotthold <egotthold@suse.de>

@SchoolGuy
Copy link
Contributor Author

@tspmelo I force pushed and added the Fixes to my commit message.

Removes unnecessary variables and uses already existing bootstrap variables instead.

Also we removed uneffective SCSS, as well as moved the Navtabs SCSS code into a module Bootstrap style

Last but not least we cleaned up toast & tooltip SCSS.

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

Signed-off-by: Sebastian Krah <skrah@suse.com>
Signed-off-by: Enno Gotthold <egotthold@suse.de>
The SCSS class cd-col-form-label is the specific and correct class to use. Previously sometimes the class col-form-label was used.

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

Signed-off-by: Enno Gotthold <egotthold@suse.de>
@LenzGr LenzGr merged commit a77f46f into ceph:master Aug 10, 2020
votdev added a commit to votdev/ceph that referenced this pull request Aug 10, 2020
… have been changed by the mentioned PR.

Signed-off-by: Volker Theile <vtheile@suse.com>
votdev added a commit to votdev/ceph that referenced this pull request Aug 10, 2020
Rename some color names that have been changed by the mentioned PR.

Signed-off-by: Volker Theile <vtheile@suse.com>
tchaikov pushed a commit to votdev/ceph that referenced this pull request Aug 10, 2020
Fix regression introduced by ceph#35954.
Rename some color names that have been changed by the mentioned PR.

Signed-off-by: Volker Theile <vtheile@suse.com>
@LenzGr LenzGr changed the title mgr/dashboard: Bootrapify mgr/dashboard: Bootstrapify Aug 26, 2020
ideepika pushed a commit to ceph/ceph-ci that referenced this pull request Sep 3, 2020
Fix regression introduced by ceph/ceph#35954.
Rename some color names that have been changed by the mentioned PR.

Signed-off-by: Volker Theile <vtheile@suse.com>
guits pushed a commit to guits/ceph that referenced this pull request Sep 16, 2020
Fix regression introduced by ceph#35954.
Rename some color names that have been changed by the mentioned PR.

Signed-off-by: Volker Theile <vtheile@suse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dashboard needs-review skip-teuthology For PRs whose changes do not have an effect on QA runs/changes are not being tested in Teuthology
Projects
None yet
7 participants