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

azure v5: change 'None' node pool AZ selection to 'Not specified' #1941

Merged
merged 8 commits into from Oct 21, 2020

Conversation

axbarsan
Copy link
Contributor

@axbarsan axbarsan commented Oct 20, 2020

Closes https://github.com/giantswarm/giantswarm/issues/13843

In this PR, the None NP AZ selection option is changed to Not specified and a longer explanation is now provided. Also, before, the explanation was shown in a tooltip, which was different from other options. That is now aligned, as well.

Unfortunately, to be able to make the option look like the others, it was easier to rewrite the whole AZ selector, than to add the option to the old implementation. In the previous implementation, we were relying on fixed heights, and a lot of CSS class magic. It would've required a lot of hacks to convert the new option and make everything behave correctly on all providers.

In the new implementation, I'm leveraging the Collapse component from react-bootstrap. Since we discussed about switching to a UI library, I didn't bother writing custom code for that.

The new implementation looks almost 100% the same as the old one, but the transitions are now way quicker, and there are no glitches when switching between Automatic and Manual, anymore.

Preview

image

@axbarsan axbarsan added the kind/ux-enhancement Improving existing functionality label Oct 20, 2020
@axbarsan axbarsan self-assigned this Oct 20, 2020

return (
<RUMActionTarget
name={mergeActionNames(RUMActions.SelectAZSelection, typeName)}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The RUM action name is now computed here, by appending the selection type to the end of the base action name (e.g. SELECT_AZ_SELECTION_AUTOMATIC)

@axbarsan axbarsan requested review from a team October 20, 2020 18:54
@axbarsan axbarsan marked this pull request as ready for review October 20, 2020 18:54
@T-Kukawka
Copy link

i would say: "By not specifying the availability zone, Azure will select the zone by itself where the VM size is most available."
rest looks good 👍

@axbarsan
Copy link
Contributor Author

i would say: "By not specifying the availability zone, Azure will select the zone by itself where the VM size is most available."
rest looks good 👍

Updated the screenshot 👍🏻

@marians
Copy link
Member

marians commented Oct 21, 2020

LGTM! Gave some input regarding wording.

@axbarsan axbarsan merged commit 978c97a into master Oct 21, 2020
@axbarsan axbarsan deleted the azure-v5/change-az-selection-none-to-not-specified branch October 21, 2020 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/ux-enhancement Improving existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants