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: Putting it all together on the commit page #2542

Merged

Conversation

nicholas-codecov
Copy link
Contributor

Description

This PR puts everything all together on the commit detail page to conditionally display coverage info, BA info, or both when both have been enabled. Updated error handling is on it's way, just waiting on some UI/UX designs to come in.

GH codecov/engineering-team#996

Note

Requires #2535, #2540, and #2541

Notable Changes

  • Update the CommitDetailPage to conditionally render different contents
  • Move CommitDetailPage to TS

Screenshots

Only coverage enabled:

Screenshot 2024-01-26 at 09 15 24

Only BA data enabled:

Screenshot 2024-01-26 at 07 39 20

Both uploaded (not expanded):

Screenshot 2024-01-26 at 08 17 53

Both uploaded (expanded):

Screenshot 2024-01-26 at 09 12 29

@codecov-qa
Copy link

codecov-qa bot commented Jan 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f229fb4) 98.34% compared to head (3527e4d) 98.34%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2542   +/-   ##
=======================================
  Coverage   98.34%   98.34%           
=======================================
  Files         811      811           
  Lines       10561    10599   +38     
  Branches     2633     2696   +63     
=======================================
+ Hits        10386    10424   +38     
  Misses        173      173           
  Partials        2        2           
Files Coverage Δ
...Page/CommitBundleAnalysis/CommitBundleAnalysis.tsx 100.00% <100.00%> (ø)
...tBundleAnalysisTable/CommitBundleAnalysisTable.tsx 100.00% <ø> (ø)
src/pages/CommitDetailPage/CommitDetailPage.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.28% <100.00%> (+<0.01%) ⬆️
Services 99.55% <ø> (ø)
Shared 99.82% <ø> (ø)
UI 94.23% <ø> (ø)

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 f229fb4...3527e4d. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented Jan 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2542   +/-   ##
=======================================
  Coverage   98.34%   98.34%           
=======================================
  Files         811      811           
  Lines       10561    10599   +38     
  Branches     2635     2696   +61     
=======================================
+ Hits        10386    10424   +38     
  Misses        173      173           
  Partials        2        2           
Files Coverage Δ
...Page/CommitBundleAnalysis/CommitBundleAnalysis.tsx 100.00% <100.00%> (ø)
...tBundleAnalysisTable/CommitBundleAnalysisTable.tsx 100.00% <ø> (ø)
src/pages/CommitDetailPage/CommitDetailPage.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.28% <100.00%> (+<0.01%) ⬆️
Services 99.55% <ø> (ø)
Shared 99.82% <ø> (ø)
UI 94.23% <ø> (ø)

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 f229fb4...3527e4d. Read the comment docs.

Copy link

codecov-public-qa bot commented Jan 26, 2024

Codecov Report

Merging #2542 (3527e4d) into main (f229fb4) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2542   +/-   ##
=======================================
  Coverage   98.34%   98.34%           
=======================================
  Files         811      811           
  Lines       10561    10599   +38     
  Branches     2684     2696   +12     
=======================================
+ Hits        10386    10424   +38     
  Misses        173      173           
  Partials        2        2           
Files Coverage Δ
...Page/CommitBundleAnalysis/CommitBundleAnalysis.tsx 100.00% <100.00%> (ø)
...tBundleAnalysisTable/CommitBundleAnalysisTable.tsx 100.00% <ø> (ø)
src/pages/CommitDetailPage/CommitDetailPage.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.28% <100.00%> (+<0.01%) ⬆️
Services 99.55% <ø> (ø)
Shared 99.82% <ø> (ø)
UI 94.23% <ø> (ø)

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 f229fb4...3527e4d. Read the comment docs.

Copy link

codecov bot commented Jan 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f229fb4) 98.34% compared to head (3527e4d) 98.35%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #2542     +/-   ##
=======================================
+ Coverage   98.34   98.35   +0.01     
=======================================
  Files        811     811             
  Lines      10561   10599     +38     
  Branches    2676    2696     +20     
=======================================
+ Hits       10386   10424     +38     
  Misses       173     173             
  Partials       2       2             
Files Coverage Δ
...Page/CommitBundleAnalysis/CommitBundleAnalysis.tsx 100.00% <100.00%> (ø)
...tBundleAnalysisTable/CommitBundleAnalysisTable.tsx 100.00% <ø> (ø)
src/pages/CommitDetailPage/CommitDetailPage.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.28% <100.00%> (+<0.01%) ⬆️
Services 99.55% <ø> (ø)
Shared 99.82% <ø> (ø)
UI 94.23% <ø> (ø)

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 f229fb4...3527e4d. Read the comment docs.

Copy link

netlify bot commented Jan 26, 2024

Deploy Preview for gazebo-staging ready!

Name Link
🔨 Latest commit 3527e4d
🔍 Latest deploy log https://app.netlify.com/sites/gazebo-staging/deploys/65c0dbd3ccd25e00080d288b
😎 Deploy Preview https://deploy-preview-2542--gazebo-staging.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codecov-releaser
Copy link
Contributor

Visit https://preview-pr-2542.codecov.dev for your PR preview. Expires after 1 month automatically.

@nicholas-codecov nicholas-codecov force-pushed the gh-eng-996-putting-it-all-together-on-the-commit-page branch from 16eb5f4 to 4bb4039 Compare January 26, 2024 15:06
COVERAGE: 'coverage',
BUNDLE_ANALYSIS: 'bundle-analysis',
BOTH: 'both',
} as const
Copy link
Contributor

Choose a reason for hiding this comment

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

l: why as const?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So it interprets the values as literals not just as strings.

if (
!isLoading &&
!commitPageData?.commit &&
!commitPageData?.isCurrentUserPartOfOrg
Copy link
Contributor

Choose a reason for hiding this comment

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

qq: why do we care if user is not part of org?

Copy link
Contributor Author

@nicholas-codecov nicholas-codecov Feb 2, 2024

Choose a reason for hiding this comment

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

@nicholas-codecov nicholas-codecov merged commit ac46181 into main Feb 5, 2024
60 checks passed
@nicholas-codecov nicholas-codecov deleted the gh-eng-996-putting-it-all-together-on-the-commit-page branch February 5, 2024 13:18
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.

3 participants