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

Apply MUI theming to Registered Model List View #432

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

jenny-s51
Copy link
Contributor

@jenny-s51 jenny-s51 commented Sep 26, 2024

Description

Applies theming and styles to MR UI for Registered Models List View.

Before:
Screenshot 2024-09-26 at 9 37 07 AM

After:
Screenshot 2024-09-26 at 9 24 35 AM

How Has This Been Tested?

Visual updates only - tested manually in UI.

Merge criteria:

  • All the commits have been signed-off (To pass the DCO check)
  • The commits have meaningful messages; the author will squash them after approval or in case of manual merges will ask to merge with squash.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work.
  • Code changes follow the kubeflow contribution guidelines.

If you have UI changes

  • The developer has added tests or explained why testing cannot be added.
  • Included any necessary screenshots or gifs if it was a UI change.
  • Verify that UI/UX changes conform the UX guidelines for Kubeflow.

@ederign
Copy link
Member

ederign commented Sep 26, 2024

/retest

@ederign
Copy link
Member

ederign commented Sep 26, 2024

/ok-to-test

@ederign
Copy link
Member

ederign commented Sep 26, 2024

@tarilabs can you please fire the workflows here?

@Griffin-Sullivan
Copy link
Contributor

Griffin-Sullivan commented Sep 26, 2024

image
The filter on the registered models page doesn't change the filter label when selecting Owner. Should say "Find by Owner" here.

@Griffin-Sullivan
Copy link
Contributor

@jenny-s51 are we also able to add a little bit of spacing between the filter button and the text in the image above?

clients/ui/frontend/src/style/MUI-theme.scss Outdated Show resolved Hide resolved
@@ -7,6 +7,7 @@ import { filterLiveModels } from '~/app/utils';
import ModelRegistrySelectorNavigator from './ModelRegistrySelectorNavigator';
import RegisteredModelListView from './RegisteredModels/RegisteredModelListView';
import { modelRegistryUrl } from './routeUtils';
import '~/style/MUI-theme.scss';
Copy link
Contributor

Choose a reason for hiding this comment

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

I might not understand how all of this works, but are we able to just import this at a higher level so we don't need to import in multiple places?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, removed other imports

Copy link
Contributor

Choose a reason for hiding this comment

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

@jenny-s51 you can even add it in ModelRegistryRoutes.tsx since it's the entrypoint of MR or even in App.tsx since it's the entrypoint of the project if you want.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you @lucferbux - moved it to ModelRegistryRoutes.tsx

@jenny-s51 jenny-s51 force-pushed the applyTheming branch 2 times, most recently from 3468804 to 1541ea4 Compare September 26, 2024 20:26
Copy link
Contributor Author

@jenny-s51 jenny-s51 left a comment

Choose a reason for hiding this comment

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

Thanks for reviewing @Griffin-Sullivan !

The filter on the registered models page doesn't change the filter label when selecting Owner. Should say "Find by Owner" here.

Nice catch, fixed this

@jenny-s51 are we also able to add a little bit of spacing between the filter button and the text in the image above?

Yes, added some padding

@lucferbux
Copy link
Contributor

Ok I'm gonna leave a couple of visual elements I would love to discuss here

@lucferbux
Copy link
Contributor

Should modals be rectangles too?

Screenshot 2024-09-27 at 14 42 58

@lucferbux
Copy link
Contributor

Ok, this is a nit, and I wonder if it's feasible or do you guys agree on that, the central dashboard of kubeflow has this navbar format and the main dashboard is not contained in a square area (similar to patternfly 5):
Screenshot 2024-09-27 at 14 46 54

Whereas our dashboard has the pf6 look, would it be feasible to mimic the look and feel of the kubeflow dashboard for this PoC? If so, should we included in the scope of these changes (or maybe as a follow up?)

Screenshot 2024-09-27 at 14 48 22

Copy link
Contributor

@lucferbux lucferbux left a comment

Choose a reason for hiding this comment

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

Just a couple of nits but overall really great job here! btw, once #431 is merged you can rebase and get the form too.

@@ -7,6 +7,7 @@ import { filterLiveModels } from '~/app/utils';
import ModelRegistrySelectorNavigator from './ModelRegistrySelectorNavigator';
import RegisteredModelListView from './RegisteredModels/RegisteredModelListView';
import { modelRegistryUrl } from './routeUtils';
import '~/style/MUI-theme.scss';
Copy link
Contributor

Choose a reason for hiding this comment

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

@jenny-s51 you can even add it in ModelRegistryRoutes.tsx since it's the entrypoint of MR or even in App.tsx since it's the entrypoint of the project if you want.

@Griffin-Sullivan
Copy link
Contributor

@lucferbux I guess we should meet and maybe discuss how far do we want to take the look for the PoC. I don't see a side drawer button for their menu either, and it looks like we would need to mock the user login at the top.

@lucferbux
Copy link
Contributor

@lucferbux I guess we should meet and maybe discuss how far do we want to take the look for the PoC. I don't see a side drawer button for their menu either, and it looks like we would need to mock the user login at the top.

Yeah, I'm not talking about a carbon copy though, just at least get the primary colors and the navbar and main content with the same layout, not sure if it's feasible, but then again it's up to a debate.

@jenny-s51 jenny-s51 force-pushed the applyTheming branch 2 times, most recently from ab59973 to a405ddf Compare September 27, 2024 14:48
@jenny-s51
Copy link
Contributor Author

jenny-s51 commented Sep 27, 2024

Should modals be rectangles too?

Yes thank you @lucferbux updated the border radius

Copy link
Contributor Author

@jenny-s51 jenny-s51 left a comment

Choose a reason for hiding this comment

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

Yeah, I'm not talking about a carbon copy though, just at least get the primary colors and the navbar and main content with the same layout, not sure if it's feasible, but then again it's up to a debate.

Thank you for your awesome, helpful feedback on this @lucferbux !

We should definitely align on the consistency between KF UIs, especially the Kubeflow Central Dashboard. Looking at it in the context of this PR, the changes would involve the UI structure and quite a bit of styling, which is out of scope for this initial theming work of the Registered Model List View.

I wonder if it would make sense to create a new ticket to update the layout and theming of the page and navbar. Let me know your thoughts—I’m happy to open a ticket in JIRA so we can prioritize it for an upcoming sprint. cc @Griffin-Sullivan @ederign

@ederign
Copy link
Member

ederign commented Sep 27, 2024

@tarilabs can you please fire the GHA on this PR?

@Griffin-Sullivan
Copy link
Contributor

Yep those changes are not required for this first PR.

BTW to get past the DCO check can you sign your commit? An easy way to do this when you have already committed is to amend your commit with -s and force push.

git commit --amend -s
git push --force

Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

adjust padding of label for consistency in focused state

fix filter label text, add padding, remove unused imports

Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

update modal border radius, move css import

Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>
@jenny-s51
Copy link
Contributor Author

Thanks for sharing those commands @Griffin-Sullivan ! Updated and signed the commit.

Copy link
Contributor

@lucferbux lucferbux left a comment

Choose a reason for hiding this comment

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

/lgtm

All changes look incredible, great work here @jenny-s51 🎉

Copy link

@lucferbux: changing LGTM is restricted to collaborators

In response to this:

/lgtm

All changes look incredible, great work here @jenny-s51 🎉

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@alexcreasy
Copy link
Contributor

This looks amazing! Thanks so much @jenny-s51!!!

@alexcreasy
Copy link
Contributor

/lgtm

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexcreasy, lucferbux

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit 6844a1f into kubeflow:main Oct 1, 2024
3 checks passed
@lucferbux lucferbux mentioned this pull request Oct 1, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants