-
Notifications
You must be signed in to change notification settings - Fork 62
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
Conversation
66ef76e
to
105a115
Compare
/retest |
/ok-to-test |
@tarilabs can you please fire the workflows here? |
@jenny-s51 are we also able to add a little bit of spacing between the filter button and the text in the image above? |
@@ -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'; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
3468804
to
1541ea4
Compare
There was a problem hiding this 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
Ok I'm gonna leave a couple of visual elements I would love to discuss here |
There was a problem hiding this 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'; |
There was a problem hiding this comment.
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.
@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. |
ab59973
to
a405ddf
Compare
Yes thank you @lucferbux updated the border radius |
There was a problem hiding this 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
@tarilabs can you please fire the GHA on this PR? |
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.
|
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>
a405ddf
to
192af54
Compare
Thanks for sharing those commands @Griffin-Sullivan ! Updated and signed the commit. |
There was a problem hiding this 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 🎉
@lucferbux: changing LGTM is restricted to collaborators In response to this:
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. |
This looks amazing! Thanks so much @jenny-s51!!! |
/lgtm |
[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 |
Description
Applies theming and styles to MR UI for Registered Models List View.
Before:
![Screenshot 2024-09-26 at 9 37 07 AM](https://private-user-images.githubusercontent.com/32821331/371166590-cbe707db-8078-4b5b-b3a0-ad2483ec5eff.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNzA3NDcsIm5iZiI6MTczOTA3MDQ0NywicGF0aCI6Ii8zMjgyMTMzMS8zNzExNjY1OTAtY2JlNzA3ZGItODA3OC00YjViLWIzYTAtYWQyNDgzZWM1ZWZmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDAzMDcyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRlMmViNTI2NGI4ZDMxYjZmNjdlNzU1M2ZlMjk3MWZhZWNiYjE4ZTQwNjg1MDNiZjllYjE2YWVmODVlZmY1NDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.8Ro6SM0ycWPE_FNtNTAqisJWxzLtamovvThu2j07q60)
After:
![Screenshot 2024-09-26 at 9 24 35 AM](https://private-user-images.githubusercontent.com/32821331/371166647-4fbdb4ce-74bb-4b86-babf-319257b6a613.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNzA3NDcsIm5iZiI6MTczOTA3MDQ0NywicGF0aCI6Ii8zMjgyMTMzMS8zNzExNjY2NDctNGZiZGI0Y2UtNzRiYi00Yjg2LWJhYmYtMzE5MjU3YjZhNjEzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDAzMDcyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVlMjhhM2QxMzlhZjczMmQwYTViYjA2NWNjNDdhMzgzMzRiZmVkYjc5NGZlZTI5NjRiMGQ0ZGRkOGM1MDljZTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.lEDHZ1gRcPBLsDdyD4adxh3GWGWgEa-MY7SAzWyjGC8)
How Has This Been Tested?
Visual updates only - tested manually in UI.
Merge criteria:
DCO
check)If you have UI changes