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

feat: Add bundle analysis feedback survey banner #3135

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

spalmurray-codecov
Copy link
Contributor

@spalmurray-codecov spalmurray-codecov commented Aug 16, 2024

Adds bundle analysis feedback survey banner. Also, adjusts GlobalTopBanners to only render at most one banner. Was scratching my head for a bit on how to only show max one banner, but just had to use my whole brain and realize could do with CSS 😄

Design

Closes codecov/engineering-team#2030

Screenshot 2024-08-16 at 15 12 01

@spalmurray-codecov spalmurray-codecov marked this pull request as ready for review August 16, 2024 19:11
@@ -765,17 +765,6 @@ export function useNavLinks() {
) => `/${provider}/${owner}/${repo}/bundles/new/webpack`,
text: 'Webpack',
},
teamPlanFeedbackSurvey: {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

accidentally left in last PR

)}
>
{children}
<div>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

wrapper div is necessary so the css in parent cannot mess with the flex display here

@codecov-staging
Copy link

Bundle Report

Changes will increase total bundle size by 3.8kB ⬆️

Bundle name Size Change
gazebo-staging-array-push 5.77MB 3.8kB ⬆️

Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.31%. Comparing base (afd1ac9) to head (382d4dc).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3135   +/-   ##
=======================================
  Coverage   98.31%   98.31%           
=======================================
  Files         918      919    +1     
  Lines       14168    14177    +9     
  Branches     3918     3895   -23     
=======================================
+ Hits        13929    13938    +9     
  Misses        234      234           
  Partials        5        5           
Files Coverage Δ
src/services/navigation/useNavLinks/useNavLinks.js 98.78% <ø> (-0.01%) ⬇️
...rvices/navigation/useNavLinks/useStaticNavLinks.js 98.78% <100.00%> (+0.01%) ⬆️
...ners/BundleFeedbackBanner/BundleFeedbackBanner.tsx 100.00% <100.00%> (ø)
src/shared/GlobalTopBanners/GlobalTopBanners.tsx 100.00% <100.00%> (ø)
.../TeamPlanFeedbackBanner/TeamPlanFeedbackBanner.tsx 100.00% <ø> (ø)
src/ui/TopBanner/TopBanner.tsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 54.05% <ø> (ø)
Layouts 98.80% <ø> (ø)
Pages 99.03% <ø> (ø)
Services 99.51% <100.00%> (-0.01%) ⬇️
Shared 99.71% <100.00%> (+<0.01%) ⬆️
UI 94.53% <ø> (ø)

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 afd1ac9...382d4dc. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Aug 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.31%. Comparing base (afd1ac9) to head (382d4dc).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3135   +/-   ##
=======================================
  Coverage   98.31%   98.31%           
=======================================
  Files         918      919    +1     
  Lines       14168    14177    +9     
  Branches     3923     3921    -2     
=======================================
+ Hits        13929    13938    +9     
  Misses        234      234           
  Partials        5        5           
Files Coverage Δ
src/services/navigation/useNavLinks/useNavLinks.js 98.78% <ø> (-0.01%) ⬇️
...rvices/navigation/useNavLinks/useStaticNavLinks.js 98.78% <100.00%> (+0.01%) ⬆️
...ners/BundleFeedbackBanner/BundleFeedbackBanner.tsx 100.00% <100.00%> (ø)
src/shared/GlobalTopBanners/GlobalTopBanners.tsx 100.00% <100.00%> (ø)
.../TeamPlanFeedbackBanner/TeamPlanFeedbackBanner.tsx 100.00% <ø> (ø)
src/ui/TopBanner/TopBanner.tsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 54.05% <ø> (ø)
Layouts 98.80% <ø> (ø)
Pages 99.03% <ø> (ø)
Services 99.51% <100.00%> (-0.01%) ⬇️
Shared 99.71% <100.00%> (+<0.01%) ⬆️
UI 94.53% <ø> (ø)

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 afd1ac9...382d4dc. Read the comment docs.

@codecov-notifications
Copy link

codecov-notifications bot commented Aug 16, 2024

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    #3135   +/-   ##
=======================================
  Coverage   98.31%   98.31%           
=======================================
  Files         918      919    +1     
  Lines       14168    14177    +9     
  Branches     3837     3895   +58     
=======================================
+ Hits        13929    13938    +9     
  Misses        234      234           
  Partials        5        5           
Files Coverage Δ
src/services/navigation/useNavLinks/useNavLinks.js 98.78% <ø> (-0.01%) ⬇️
...rvices/navigation/useNavLinks/useStaticNavLinks.js 98.78% <100.00%> (+0.01%) ⬆️
...ners/BundleFeedbackBanner/BundleFeedbackBanner.tsx 100.00% <100.00%> (ø)
src/shared/GlobalTopBanners/GlobalTopBanners.tsx 100.00% <100.00%> (ø)
.../TeamPlanFeedbackBanner/TeamPlanFeedbackBanner.tsx 100.00% <ø> (ø)
src/ui/TopBanner/TopBanner.tsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 54.05% <ø> (ø)
Layouts 98.80% <ø> (ø)
Pages 99.03% <ø> (ø)
Services 99.51% <100.00%> (-0.01%) ⬇️
Shared 99.71% <100.00%> (+<0.01%) ⬆️
UI 94.53% <ø> (ø)

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 afd1ac9...382d4dc. Read the comment docs.

@codecov-releaser
Copy link
Contributor

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
382d4dc Fri, 16 Aug 2024 19:17:50 GMT Cloud Enterprise

Copy link

codecov bot commented Aug 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.31%. Comparing base (afd1ac9) to head (382d4dc).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@               Coverage Diff                @@
##              main      #3135         +/-   ##
================================================
+ Coverage   0.00000   98.31000   +98.31000     
================================================
  Files            0        919        +919     
  Lines            0      14177      +14177     
  Branches         0       3921       +3921     
================================================
+ Hits             0      13938      +13938     
- Misses           0        234        +234     
- Partials         0          5          +5     
Files Coverage Δ
src/services/navigation/useNavLinks/useNavLinks.js 98.78% <ø> (ø)
...rvices/navigation/useNavLinks/useStaticNavLinks.js 98.78% <100.00%> (ø)
...ners/BundleFeedbackBanner/BundleFeedbackBanner.tsx 100.00% <100.00%> (ø)
src/shared/GlobalTopBanners/GlobalTopBanners.tsx 100.00% <100.00%> (ø)
.../TeamPlanFeedbackBanner/TeamPlanFeedbackBanner.tsx 100.00% <ø> (ø)
src/ui/TopBanner/TopBanner.tsx 100.00% <ø> (ø)

... and 913 files with indirect coverage changes

Components Coverage Δ
Assets 54.05% <ø> (∅)
Layouts 98.80% <ø> (∅)
Pages 99.03% <ø> (∅)
Services 99.51% <100.00%> (∅)
Shared 99.71% <100.00%> (∅)
UI 94.53% <ø> (∅)

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 afd1ac9...382d4dc. Read the comment docs.

@spalmurray-codecov spalmurray-codecov added this pull request to the merge queue Aug 16, 2024
Merged via the queue into main with commit 7d7c0cb Aug 16, 2024
61 checks passed
@spalmurray-codecov spalmurray-codecov deleted the spalmurray/ba-feedback-banner branch August 16, 2024 19:59
Copy link

sentry-io bot commented Aug 17, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TypeError: Load failed /:provider/:owner/:repo View Issue

Did you find this useful? React with a 👍 or 👎

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.

Pro Plan Survey (or Bundle IF active repo)
3 participants