-
Notifications
You must be signed in to change notification settings - Fork 356
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
Adding a welcoming page prompting to add a Provider #5434
Conversation
@miq-bot add_label ux/review |
@romanblanco @terezanovotna is it when I log for the first time to CF just after install? or then I got to Infra Provider for the first time? |
@Loicavenel the new screen appears anytime there are no Infrastructure Providers |
@romanblanco is it for every providers? |
@Loicavenel No. Just thought it probably should be for every. I'll update the PR. |
This looks awesome!!
|
app/views/layouts/_empty.html.haml
Outdated
"data-miq_sparkle_on" => true, | ||
"data-miq_sparkle_off" => true, | ||
"data-method" => :post, | ||
:title => _("Add a new %{provider_type} Provider") % {:provider_type => type}) |
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.
We need to avoid doing string arithmetics with gettext strings as much as possible (i.e. we should avoid string concatenations). In this case, may I suggest to add the full string from parent view:
= render :partial => 'layouts/empty', :locals => {:add_text => _("Add a new Network Provider")}
and then just render the text 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.
@mzazrivec updated.
@terezanovotna to answer questions 1. and 2.
since the last commit (0b6d7ad) the documentation links to different sections of http://manageiq.org/docs/reference/latest/doc-Managing_Providers/miq/, depending on the provider type:
I'd avoid using "Welcome! To start using Red Hat Cloud Forms..." as the page is used on more providers pages. The user might not be using the product for the first time. Also less problems with productization (ManageIQ vs. Red Hat CloudForms). I'll keep the general one. |
@romanblanco We are missing Ansible Tower.. URL is : https:///automation_manager/explorer#/ |
@Loicavenel updated. |
the wording looks good 👍 Nice job! |
update: to get the empty state full-screen gray, it seems that .container-fluid needs to have a CSS style The problem is, that now would apply to the toolbar buttons and breadcrumbs as well, which is not desired. @skateman @epwinchell, would you know how this could be solved? |
@miq-bot add_reviewer @epwinchell |
@romanblanco I think the welcoming page should be using _center_div_no_listnav layout. We just merged a PR: ( https://github.com/ManageIQ/manageiq-ui-classic/pull/5455/files) that adds a method using "miq-body" (not miq-sand-paper, which is specific to GTL) for situations just like this. cc @himdel |
Agreed, instead of changing It could be a just about appending another |
not sure if I understand, but what I got now, seems to work correctly @epwinchell @terezanovotna please review |
👍 LGTM by me :) What I meant is that you may need new controller method if |
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.
@romanblanco Tested. Looks great.
@romanblanco Still missing a couple: Configuration > Management - Providers ... Foreman providers though the storage manager screens are special in that you can't create those directly, they come to being by adding an cloud/infra provider, so not sure about those.. Otherwise LGTM too, let me know if you want this merged now, and deal with the rest separately.. |
@romanblanco For Storage, providers cannot be added there, they are coming when OpenStack or RHV is added. I think we should put just a message without Button... |
f17d1bf
to
5409aec
Compare
Checked commits romanblanco/manageiq-ui-classic@f65634a~...dc18540 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 app/helpers/application_helper/page_layouts.rb
|
I believe the PR is ready. All the In case of Other changes can be done in a separate PR. |
Makes sense, in explorers, having those other bits missing may break any ajax transitions, so that will be harder. @miq-bot add_label changelog/yes |
I feel this new page as very welcoming 🤣 sorry |
@romanblanco One issue - when this happens in an explorer screen, you can still click on the tree root (to get to the "same screen"), and get to the old "No records found" screen... Have no foreman providers, (This may not really be fixable in explorers, I'm not sure, we don't really do ajax transitions between different layouts so.. just putting it here.) |
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1678190
Before:
After:
Links
Steps for Testing/QA