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

OpenShift Container Platform 2 column view #591

Merged
merged 3 commits into from
Mar 2, 2021

Conversation

cdcabrera
Copy link
Member

@cdcabrera cdcabrera commented Feb 26, 2021

What's included

  • fix(style): on error, page layout extends below left nav
  • chore(productViewOpenShiftDedicated): code annotation
  • feat(productViewOpenShiftContainer): ent-3324 two column view
    • i18n, locale strings
    • openshiftView, converted to productViewOpenShiftContainer
    • productView(s), remove unused viewSelector, redux refs
    • productViewOpenShiftContainer, useSelector for uom
    • routerConfig, point to new component
    • viewSelectors, removed, unnecessary

Notes

  • This PR currently contains... issues
    • Resolved, quick fixes/hacks to get the two column view to minimally function with UOM. It is not ready for release.
      • we can probably switch to useState and replace the entire hack switched to using useSelector
    • Subsequent PR graph redraw is even more noticeable when there are 2 graphs, we do have fix to help with this, switching to context and hooks
    • Subsequent PR graph tooltips may get clipped by the SVG border because of the way victory handles tooltips. we may be able to override this with HTML/CSS. testing in an environment will help resolve this if any issue exists.
      • Initially, it appears this has more to do with the narrow columns and the left navigation system. When the left nav is active the tooltips appear to behave which leads us to educated guess there's some level of CSS causing the issue.
    • we removed the banner alerts since they made use of pulling from the product ids... now that there are 2 product ids associated with the page need to determine if we just ignore the Openshift-metrics since it appears as a facet of the other

How to test

Coverage and basic unit test check

  1. update the NPM packages with $ yarn
  2. $ yarn test
  3. confirm tests come back without error

Proxy run check

  1. update the NPM packages with $ yarn
  2. make sure Docker is running, plus on network, then
  3. $ yarn start:proxy
  4. you can attempt to login and navigate towards the original OpenShift route /subscriptions/openshift-sw to bring up the new 2 column view. It is expected that only the OpenShift Container Platform is currently functioning (the left side, see below screenshots)

Example

Emulated testing data

Screen Shot 2021-02-26 at 12 52 51 AM

Expected environment view (temporarily broken, missing data)

Screen Shot 2021-03-01 at 1 34 05 PM

Updates issue/story

ent-3324
ent-3506
ent-3505
ent-3504

@cdcabrera cdcabrera force-pushed the ent-3324-openshift-columns branch 2 times, most recently from 4cc6db8 to 241923c Compare February 26, 2021 06:00
@codecov-io
Copy link

Codecov Report

Merging #591 (241923c) into ci (e5cf9d3) will decrease coverage by 1.35%.
The diff coverage is 45.94%.

Impacted file tree graph

@@            Coverage Diff             @@
##               ci     #591      +/-   ##
==========================================
- Coverage   94.25%   92.89%   -1.36%     
==========================================
  Files          87       87              
  Lines        2140     2605     +465     
  Branches      540      905     +365     
==========================================
+ Hits         2017     2420     +403     
- Misses        104      151      +47     
- Partials       19       34      +15     
Impacted Files Coverage Δ
src/components/productView/productView.js 100.00% <ø> (ø)
...nents/productView/productViewOpenShiftDedicated.js 94.44% <ø> (-5.56%) ⬇️
src/components/openshiftView/openshiftView.js 49.36% <43.66%> (-42.30%) ⬇️
src/components/productView/productViewRhel.js 91.42% <100.00%> (-0.24%) ⬇️
src/components/productView/productViewSatellite.js 91.42% <100.00%> (-0.24%) ⬇️
src/redux/selectors/viewSelectors.js 100.00% <100.00%> (ø)
src/components/router/redirect.js 65.00% <0.00%> (-5.59%) ⬇️
src/components/router/routerHelpers.js 91.42% <0.00%> (-5.45%) ⬇️
src/redux/selectors/subscriptionsListSelectors.js 97.22% <0.00%> (-2.78%) ⬇️
... and 51 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e5cf9d3...241923c. Read the comment docs.

@cdcabrera cdcabrera added 202104 project phase story New feature, or process work labels Feb 26, 2021
@cdcabrera cdcabrera force-pushed the ent-3324-openshift-columns branch from 016346f to f4fe1f6 Compare March 1, 2021 20:19
@cdcabrera cdcabrera changed the title WIP OpenShift Container Platform 2 column view OpenShift Container Platform 2 column view Mar 1, 2021
@cdcabrera cdcabrera marked this pull request as ready for review March 2, 2021 15:43
…Insights#591)

* i18n, locale strings
* openshiftView, converted to productViewOpenShiftContainer
* productView(s), remove unused viewSelector, redux refs
* productViewOpenShiftContainer, useSelector for uom
* routerConfig, point to new component
* viewSelectors, removed, unnecessary
@cdcabrera cdcabrera force-pushed the ent-3324-openshift-columns branch from f4fe1f6 to 73c9d2d Compare March 2, 2021 15:48
@cdcabrera cdcabrera merged commit 818d341 into RedHatInsights:ci Mar 2, 2021
cdcabrera added a commit that referenced this pull request Mar 5, 2021
* i18n, locale strings
* openshiftView, converted to productViewOpenShiftContainer
* productView(s), remove unused viewSelector, redux refs
* productViewOpenShiftContainer, useSelector for uom
* routerConfig, point to new component
* viewSelectors, removed, unnecessary
cdcabrera added a commit to cdcabrera/curiosity-frontend that referenced this pull request Mar 24, 2021
cdcabrera added a commit to cdcabrera/curiosity-frontend that referenced this pull request Mar 24, 2021
cdcabrera added a commit to cdcabrera/curiosity-frontend that referenced this pull request Mar 24, 2021
…Insights#591)

* i18n, locale strings
* openshiftView, converted to productViewOpenShiftContainer
* productView(s), remove unused viewSelector, redux refs
* productViewOpenShiftContainer, useSelector for uom
* routerConfig, point to new component
* viewSelectors, removed, unnecessary
cdcabrera added a commit to cdcabrera/curiosity-frontend that referenced this pull request Mar 25, 2021
cdcabrera added a commit to cdcabrera/curiosity-frontend that referenced this pull request Mar 25, 2021
cdcabrera added a commit to cdcabrera/curiosity-frontend that referenced this pull request Mar 25, 2021
…Insights#591)

* i18n, locale strings
* openshiftView, converted to productViewOpenShiftContainer
* productView(s), remove unused viewSelector, redux refs
* productViewOpenShiftContainer, useSelector for uom
* routerConfig, point to new component
* viewSelectors, removed, unnecessary
cdcabrera added a commit that referenced this pull request Mar 25, 2021
* i18n, locale strings
* openshiftView, converted to productViewOpenShiftContainer
* productView(s), remove unused viewSelector, redux refs
* productViewOpenShiftContainer, useSelector for uom
* routerConfig, point to new component
* viewSelectors, removed, unnecessary
cdcabrera added a commit that referenced this pull request Apr 13, 2021
* i18n, locale strings
* openshiftView, converted to productViewOpenShiftContainer
* productView(s), remove unused viewSelector, redux refs
* productViewOpenShiftContainer, useSelector for uom
* routerConfig, point to new component
* viewSelectors, removed, unnecessary
cdcabrera added a commit that referenced this pull request Apr 13, 2021
* i18n, locale strings
* openshiftView, converted to productViewOpenShiftContainer
* productView(s), remove unused viewSelector, redux refs
* productViewOpenShiftContainer, useSelector for uom
* routerConfig, point to new component
* viewSelectors, removed, unnecessary
cdcabrera added a commit that referenced this pull request Apr 20, 2021
* i18n, locale strings
* openshiftView, converted to productViewOpenShiftContainer
* productView(s), remove unused viewSelector, redux refs
* productViewOpenShiftContainer, useSelector for uom
* routerConfig, point to new component
* viewSelectors, removed, unnecessary
cdcabrera added a commit that referenced this pull request Apr 26, 2021
* i18n, locale strings
* openshiftView, converted to productViewOpenShiftContainer
* productView(s), remove unused viewSelector, redux refs
* productViewOpenShiftContainer, useSelector for uom
* routerConfig, point to new component
* viewSelectors, removed, unnecessary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
202104 project phase story New feature, or process work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants