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

refactor(graphCard): sw-923 allow nested graph configs #1073

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

cdcabrera
Copy link
Member

@cdcabrera cdcabrera commented Mar 3, 2023

What's included

  • refactor(graphCard): sw-923 allow nested graph configs

Notes

  • there will be minimal visual differences with existing graph displays, see example screenshots
    • these changes align to future graph display updates associated with sw-747, sw-748
    • the affected product views are RHEL, Satellite, OpenShift Container, OpenShift Dedicated.
      • The change presents as extra margins around the graphs
      • Reason for alteration... all products will now utilize the same card we no longer make a distinction between on-demand receiving a different styling beyond the metrics display.
  • there will be no behavioral changes with graph displays

How to test

Example

Screen Shot 2023-03-06 at 1 29 40 PM

Screen Shot 2023-03-06 at 1 30 43 PM

Screen Shot 2023-03-06 at 1 30 03 PM

Screen Shot 2023-03-06 at 1 30 26 PM

Updates issue/story

sw-923

@cdcabrera cdcabrera added the 202304 project phase label Mar 3, 2023
@cdcabrera cdcabrera force-pushed the sw-923 branch 2 times, most recently from c6f981a to 35f1ced Compare March 6, 2023 19:38
@cdcabrera cdcabrera marked this pull request as ready for review March 6, 2023 19:39
@codecov-commenter
Copy link

codecov-commenter commented Mar 6, 2023

Codecov Report

Merging #1073 (a626634) into dev (d50d5e6) will decrease coverage by 0.01%.
The diff coverage is 97.82%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #1073      +/-   ##
==========================================
- Coverage   93.51%   93.50%   -0.01%     
==========================================
  Files         123      123              
  Lines        4118     4128      +10     
  Branches     1678     1681       +3     
==========================================
+ Hits         3851     3860       +9     
- Misses        249      250       +1     
  Partials       18       18              
Impacted Files Coverage Δ
src/config/product.openshiftContainer.js 80.95% <ø> (ø)
src/config/product.openshiftDedicated.js 80.76% <ø> (ø)
src/config/product.rhacs.js 85.71% <ø> (ø)
src/config/product.rhel.js 90.69% <ø> (ø)
src/config/product.rhods.js 85.71% <ø> (ø)
src/config/product.rhosak.js 83.72% <ø> (ø)
src/config/product.satellite.js 94.11% <ø> (ø)
src/components/graphCard/graphCard.js 92.85% <87.50%> (-7.15%) ⬇️
src/components/graphCard/graphCardChart.js 83.33% <100.00%> (-1.67%) ⬇️
...components/graphCard/graphCardChartTitleTooltip.js 100.00% <100.00%> (ø)
... and 5 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 d50d5e6...a626634. Read the comment docs.

Copy link
Member Author

@cdcabrera cdcabrera left a comment

Choose a reason for hiding this comment

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

Looks like we need to confirm any related components, hooks, that are pulling graph configuration. During review we came across

  • src/components/toolbar/toolbarFieldCategory.js

... using the graph config to generate the "category" / "type" options used as a filter.

* config, products, isMetricDisplay, nested chart groups
* graphCard, isMetricDisplay setting
* graphCardChart, remove isStandalone, useProduct hook
* graphCardChartTitleTooltip, stringId, remove hook
* graphCardContext, return single list of settings
* graphCardHelpers, restructure for nested chart groups
* graphCardMetricTotals, alias id to chartId
* productViewContext, uom filter on nested chart groups
* styling, adjust grouped chart margins
* toolbarFieldCategory, generate opts, chart groups
@cdcabrera
Copy link
Member Author

/retest

@cdcabrera cdcabrera merged commit 047387f into RedHatInsights:dev Mar 7, 2023
cdcabrera added a commit that referenced this pull request Mar 21, 2023
* config, products, isMetricDisplay, nested chart groups
* graphCard, isMetricDisplay setting
* graphCardChart, remove isStandalone, useProduct hook
* graphCardChartTitleTooltip, stringId, remove hook
* graphCardContext, return single list of settings
* graphCardHelpers, restructure for nested chart groups
* graphCardMetricTotals, alias id to chartId
* productViewContext, uom filter on nested chart groups
* styling, adjust grouped chart margins
* toolbarFieldCategory, generate opts, chart groups
cdcabrera added a commit that referenced this pull request Apr 6, 2023
* config, products, isMetricDisplay, nested chart groups
* graphCard, isMetricDisplay setting
* graphCardChart, remove isStandalone, useProduct hook
* graphCardChartTitleTooltip, stringId, remove hook
* graphCardContext, return single list of settings
* graphCardHelpers, restructure for nested chart groups
* graphCardMetricTotals, alias id to chartId
* productViewContext, uom filter on nested chart groups
* styling, adjust grouped chart margins
* toolbarFieldCategory, generate opts, chart groups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
202304 project phase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants