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(button,icon,spinner): discovery-149 pf4 replacements #165

Merged
merged 2 commits into from
Sep 16, 2022

Conversation

cdcabrera
Copy link
Member

@cdcabrera cdcabrera commented Sep 15, 2022

What's included

  • refactor(button,icon,spinner): discovery-149 pf4 replacements

Notes

  • clean up for the last remaining button, icon, and spinners outside of pageLayout
  • starts to align modal dialogs across
    • add source wizard
    • create scan dialog
    • merge reports dialog
  • these updates highlight the inconsistency in our modal/dialog implementations.
    • add source wizard
      • shows both the x closing button and close button while pending
    • create scan dialog
      • shows the x closing button while pending
    • merge reports dialog
      • shows the closing button while pending
  • the remaining modal/dialog has variations in behavior that need to be brought into alignment
    • create credential dialog
      • does not have a pending message,
      • shuts down immediately after submission
      • uses its own internal form state

How to test

Coverage and basic unit test check

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

Local run check

  1. update the NPM packages with $ yarn
  2. $ yarn start:stage
  3. confirm that
    1. the download link for compound expanded scans displays, and is downloadable
    2. confirm the icon displays in the confirmation dialog associated with merging reports/scans

Example

before

Screen Shot 2022-09-16 at 10 48 28 AM
Screen Shot 2022-09-16 at 10 46 49 AM

after

Screen Shot 2022-09-16 at 11 27 55 AM

Screen Shot 2022-09-16 at 11 26 16 AM

Updates issue/story

DISCOVERY-149
closes #134
closes #97

* contextIcon, expand for warning, error, info, user
* createScanDialog, pf4 spinner
* mergeReportsDialog, pf4 icon, spinner
* pageLayout, pf4 user icon
* scanDownload, pf4 button
* scanJobsList, pf4 button for downloads
* tooltip, pf4 icon
@cdcabrera cdcabrera added pf4 Tracking for pf4 refactors pf4:clean up labels Sep 15, 2022
@cdcabrera cdcabrera marked this pull request as ready for review September 15, 2022 21:02
@codecov-commenter
Copy link

Codecov Report

Merging #165 (6cecb23) into dev (5e9371e) will increase coverage by 0.02%.
The diff coverage is 92.30%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #165      +/-   ##
==========================================
+ Coverage   80.31%   80.33%   +0.02%     
==========================================
  Files         108      108              
  Lines        3464     3468       +4     
  Branches     1133     1135       +2     
==========================================
+ Hits         2782     2786       +4     
  Misses        601      601              
  Partials       81       81              
Impacted Files Coverage Δ
...rc/components/createScanDialog/createScanDialog.js 57.00% <ø> (ø)
...omponents/mergeReportsDialog/mergeReportsDialog.js 65.67% <66.66%> (ø)
src/components/contextIcon/contextIcon.js 88.13% <100.00%> (+0.86%) ⬆️
src/components/pageLayout/pageLayout.js 80.76% <100.00%> (ø)
src/components/scans/scanDownload.js 50.00% <100.00%> (ø)
src/components/scans/scanJobsList.js 64.86% <100.00%> (ø)
src/components/tooltip/tooltip.js 100.00% <100.00%> (ø)

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 5e9371e...6cecb23. Read the comment docs.

@bclarhk
Copy link

bclarhk commented Sep 16, 2022

Looks good. We'll fix the inconsistencies later.

@cdcabrera cdcabrera merged commit 00a4f97 into quipucords:dev Sep 16, 2022
cdcabrera added a commit that referenced this pull request Sep 20, 2022
* contextIcon, expand for warning, error, info, user
* createScanDialog, pf4 spinner
* mergeReportsDialog, pf4 icon, spinner
* pageLayout, pf4 user icon
* scanDownload, pf4 button
* scanJobsList, pf4 button for downloads
* tooltip, pf4 icon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pf4:clean up pf4 Tracking for pf4 refactors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants