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

introduce preselectedType for AccessConsoles component #906

Merged

Conversation

mareklibra
Copy link
Contributor

What: introduce preselectedType for AccessConsoles component
Prior this patch, the component started "empty" (no console rendered).
The new property can be used to pre-select particular component for initial state.

As a part of this PR, fix for not-rendering unlisted console types is provided.

@mareklibra mareklibra force-pushed the AccessConsoles.fixIfNotPresent branch from cab2260 to 2f66053 Compare November 12, 2018 10:53
@mareklibra
Copy link
Contributor Author

Cc @lizsurette

@mareklibra mareklibra changed the title Access consoles.fix if not present introduce preselectedType for AccessConsoles component Nov 13, 2018
@mareklibra mareklibra force-pushed the AccessConsoles.fixIfNotPresent branch from 2f66053 to 23f080d Compare November 13, 2018 09:15
@patternfly-build
Copy link
Contributor

PatternFly-React preview: https://906-pr-patternfly-react-patternfly.surge.sh

@coveralls
Copy link

coveralls commented Nov 13, 2018

Pull Request Test Coverage Report for Build 3320

  • 6 of 6 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.006%) to 81.325%

Totals Coverage Status
Change from base Build 3317: 0.006%
Covered Lines: 3878
Relevant Lines: 4493

💛 - Coveralls

@mareklibra
Copy link
Contributor Author

Cc @lizsurette , can you please have a look? This just enables pre-selection one of the consoles within AccessConsoles, so the initial state is not empty from the user perspective.

@lizsurette
Copy link
Contributor

@mareklibra This looks great to me! I think this should be the default, honestly.

dtaylor113
dtaylor113 previously approved these changes Nov 20, 2018
Only available consoles are listed in the AccessConsole's dropdown.
Prior this fix, all component types were always listed.
The AccessConsoles component can be newly requested to
render particular console type by default instead of just empty space.
@mareklibra mareklibra force-pushed the AccessConsoles.fixIfNotPresent branch from 23f080d to d011eb4 Compare November 21, 2018 14:07
@mareklibra
Copy link
Contributor Author

mareklibra commented Nov 21, 2018

Rebased to resolve conflict only.

@mareklibra
Copy link
Contributor Author

@dtaylor113 , @jeff-phillips-18 , can you please have another look?
There are no changes since your last approval, just resolved merge conflicts.

@jeff-phillips-18 jeff-phillips-18 merged commit 45c3647 into patternfly:master Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants