Skip to content

fix: Handle case where branch or bundle is not selected - #2743

Merged
nicholas-codecov merged 5 commits into
mainfrom
gh-eng-1409-handle-case-where-branch-or-bundle-is-not-selected
Apr 5, 2024
Merged

nicholas-codecov merged 5 commits into
mainfrom
gh-eng-1409-handle-case-where-branch-or-bundle-is-not-selected

Conversation

@nicholas-codecov

Copy link
Copy Markdown
Contributor

Description

This PR adds in a new InfoBanner component that will render when there is no branch or bundle selected. There are some interesting cases where when initially setting up bundle analysis it seems like the branch entry for the default branch hasn't finished and we would end up with a "Unknown error" and they would just have to select the branch. As well this PR adds in an info banner to persuade the user to select a bundle if one has not already been selected.

Closes codecov/engineering-team#1409

Notable Changes

  • Add in new InfoBanner component
  • Update BranchSelector to redirect to URL with branch set as the param when default branch is selected
  • Update BundleContent to use the new InfoBanner component
  • Fix up the text spacing in bundle tab ErrorBanner

Screenshots

Screenshot 2024-04-04 at 10 22 59

Screenshot 2024-04-04 at 10 20 19

@codecov-notifications

codecov-notifications Bot commented Apr 4, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2743      +/-   ##
==========================================
- Coverage   98.43%   98.42%   -0.01%     
==========================================
  Files         856      857       +1     
  Lines       12272    12280       +8     
  Branches     3247     3248       +1     
==========================================
+ Hits        12080    12087       +7     
- Misses        187      188       +1     
  Partials        5        5              
Files Coverage Δ
...epoPage/BundlesTab/BundleContent/BundleContent.tsx 100.00% <100.00%> (ø)
...Tab/BundleContent/BundleSummary/BranchSelector.tsx 100.00% <100.00%> (ø)
...ndlesTab/BundleContent/ErrorBanner/ErrorBanner.tsx 100.00% <ø> (ø)
...BundlesTab/BundleContent/InfoBanner/InfoBanner.tsx 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

Components Coverage Δ
Assets 55.55% <ø> (ø)
Layouts 97.13% <ø> (ø)
Pages 99.26% <100.00%> (-0.02%) ⬇️
Services 99.59% <ø> (ø)
Shared 99.84% <ø> (ø)
UI 94.18% <ø> (ø)

Continue to review full report in Codecov by Sentry.

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

@codecov-qa

codecov-qa Bot commented Apr 4, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.42%. Comparing base (53a17ad) to head (81293c7).

✅ All tests successful. No failed tests found ☺️

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2743      +/-   ##
==========================================
- Coverage   98.43%   98.42%   -0.01%     
==========================================
  Files         856      857       +1     
  Lines       12272    12280       +8     
  Branches     3251     3190      -61     
==========================================
+ Hits        12080    12087       +7     
- Misses        187      188       +1     
  Partials        5        5              
Files Coverage Δ
...epoPage/BundlesTab/BundleContent/BundleContent.tsx 100.00% <100.00%> (ø)
...Tab/BundleContent/BundleSummary/BranchSelector.tsx 100.00% <100.00%> (ø)
...ndlesTab/BundleContent/ErrorBanner/ErrorBanner.tsx 100.00% <ø> (ø)
...BundlesTab/BundleContent/InfoBanner/InfoBanner.tsx 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

Components Coverage Δ
Assets 55.55% <ø> (ø)
Layouts 97.13% <ø> (ø)
Pages 99.26% <100.00%> (-0.02%) ⬇️
Services 99.59% <ø> (ø)
Shared 99.84% <ø> (ø)
UI 94.18% <ø> (ø)

Continue to review full report in Codecov by Sentry.

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

@codecov-public-qa

codecov-public-qa Bot commented Apr 4, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.42%. Comparing base (53a17ad) to head (81293c7).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2743      +/-   ##
==========================================
- Coverage   98.43%   98.42%   -0.01%     
==========================================
  Files         856      857       +1     
  Lines       12272    12280       +8     
  Branches     3190     3190              
==========================================
+ Hits        12080    12087       +7     
- Misses        187      188       +1     
  Partials        5        5              
Files Coverage Δ
...epoPage/BundlesTab/BundleContent/BundleContent.tsx 100.00% <100.00%> (ø)
...Tab/BundleContent/BundleSummary/BranchSelector.tsx 100.00% <100.00%> (ø)
...ndlesTab/BundleContent/ErrorBanner/ErrorBanner.tsx 100.00% <ø> (ø)
...BundlesTab/BundleContent/InfoBanner/InfoBanner.tsx 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

Components Coverage Δ
Assets 55.55% <ø> (ø)
Layouts 97.13% <ø> (ø)
Pages 99.26% <100.00%> (-0.02%) ⬇️
Services 99.59% <ø> (ø)
Shared 99.84% <ø> (ø)
UI 94.18% <ø> (ø)

Continue to review full report in Codecov by Sentry.

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

@codecov

codecov Bot commented Apr 4, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.43%. Comparing base (53a17ad) to head (81293c7).

✅ All tests successful. No failed tests found ☺️

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #2743     +/-   ##
=======================================
- Coverage   98.44   98.43   -0.01     
=======================================
  Files        856     857      +1     
  Lines      12272   12280      +8     
  Branches    3251    3190     -61     
=======================================
+ Hits       12080   12087      +7     
- Misses       187     188      +1     
  Partials       5       5             
Files Coverage Δ
...epoPage/BundlesTab/BundleContent/BundleContent.tsx 100.00% <100.00%> (ø)
...Tab/BundleContent/BundleSummary/BranchSelector.tsx 100.00% <100.00%> (ø)
...ndlesTab/BundleContent/ErrorBanner/ErrorBanner.tsx 100.00% <ø> (ø)
...BundlesTab/BundleContent/InfoBanner/InfoBanner.tsx 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

Components Coverage Δ
Assets 55.55% <ø> (ø)
Layouts 97.13% <ø> (ø)
Pages 99.26% <100.00%> (-0.02%) ⬇️
Services 99.59% <ø> (ø)
Shared 99.84% <ø> (ø)
UI 94.18% <ø> (ø)

Continue to review full report in Codecov by Sentry.

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

@codecov-staging

codecov-staging Bot commented Apr 4, 2024 •

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 833 bytes ⬆️

Bundle name Size Change
gazebo-staging-array-push 6.43MB 833 bytes ⬆️

@codecov

codecov Bot commented Apr 4, 2024 •

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 833 bytes ⬆️

Bundle name Size Change
gazebo-production-array-push 6.43MB 833 bytes ⬆️

@ajay-sentry ajay-sentry left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

solid 💯

@codecov-releaser

Copy link
Copy Markdown
Collaborator

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Commit Created Cloud Enterprise
81293c7 Fri, 05 Apr 2024 10:37:00 GMT Cloud Enterprise

@nicholas-codecov
nicholas-codecov merged commit 4205329 into main Apr 5, 2024
@nicholas-codecov
nicholas-codecov deleted the gh-eng-1409-handle-case-where-branch-or-bundle-is-not-selected branch April 5, 2024 11:35
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.

BUG: error shown upon bundle page reporting

4 participants