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
Fixes #35012 - add call-to-action empty states #10144
Fixes #35012 - add call-to-action empty states #10144
Conversation
Can one of the admins verify this patch? |
Issues: #35012 |
[test katello] |
08ef72b
to
8b13871
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 @tazhibaevaaliya!
I'll let @lfu do the testing etc. but wanted to leave some code comments below.
Also, seems like the React tests will need some work!
webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js
Outdated
Show resolved
Hide resolved
Seems duplicated @jeremylenz's comments :) Tests looked well for RHEL hosts. But Debian hosts would get the same page for |
Hmm.. We could maybe check if the deb content type is enabled and not show the RH Repos link if so? @ianballou would that even work? I would consider it extra credit either way. |
@jeremylenz @lfu What is the best way to incorporate your comments? Should I manually add and make another commit or there is an easier way? |
If you want to keep it squashed, you can make your changes and then
and force push. If you want to add a commit instead, you can just add it and then do a regular push. I'm fine with either one 👍 |
Debian is installed by default, so likely few upstream users would see this RH Repos link then. Is there a fact or something that we could grab from the API to determine that the host is a RHEL one? At least in Rails you can do Edit: on the content host page I see "OS" under "Content Host Properties", so there must be a way. |
Looks like the host details provides
We could see if that string contains "RedHat". Kinda hacky, but would save us another API request. thoughts? |
8b13871
to
9bcd988
Compare
Here's the old logic for determining if a host is a Debian one: https://github.com/Katello/katello/blob/master/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host.factory.js#L30 |
Love it 😆 |
@ianballou @jeremylenz @lfu Will we need to create a separate card for this issue then? |
Also, quick question, once I committed, should I rebase once more to pick up the latest commit in my emptySearch/35027-add-link-to-clear-search branch? @jeremylenz |
It's up to you. You'll have to fix any conflicts either way -- you're just choosing to do it later, when this PR is merged, or now if you decide to rebase. :) |
@jeremylenz Yay! I just love rebasing 😄 |
41f71b9
to
10ea804
Compare
APJ |
[test katello] |
10ea804
to
dbb6b8f
Compare
[test katello] |
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 👍🏻
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.
Great work @tazhibaevaaliya!
ACK 👍
@jeremylenz and @lfu Thank you for all your help! |
What are the changes introduced in this pull request?
Added call-to-actions for empty state on Host collections (under Host Overview Tab), Module Streams (under Content Tab), Repository sets, and Host content view selection (under Host Overview Tab -> Content View Details) pages/tabs
Considerations taken when implementing this change?
I believe that adding call-to-actions will increase user experience whenever they are no existing/available items/products/repos to show
What are the testing steps for this pull request?
For all the corresponding tabs:
Note: there is a separate card created for the last action item (empty search)