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

ref: Move coverage onboarding to coverage tab #2504

Merged

Conversation

nicholas-codecov
Copy link
Contributor

Description

This PR basically enables the tabs on the RepoPage to be rendered (though only the coverage tab, at the moment). This is basically setting things up for having bundle analysis onboarding under a new bundles tab once we reach that stage.

Closes codecov/engineering-team#1023

Notable Changes

  • Add new path matcher hook, and refactor to TS
  • Allow repo page tabs to be rendered when repo is not active or deactivated
  • Rename NewRepoTab to CoverageOnboarding
  • Tweak coverage onboarding tab styles
  • Update tests

Screenshots

Screenshot 2024-01-11 at 09 40 36

Copy link

codecov bot commented Jan 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (59bcfb4) 98.26% compared to head (6d82c58) 98.26%.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2504   +/-   ##
=====================================
  Coverage   98.26   98.26           
=====================================
  Files        786     786           
  Lines      10073   10083   +10     
  Branches    2550    2506   -44     
=====================================
+ Hits        9898    9908   +10     
  Misses       173     173           
  Partials       2       2           
Files Coverage Δ
.../RepoPage/CoverageOnboarding/CircleCI/CircleCI.jsx 100.00% <ø> (ø)
...CoverageOnboarding/GitHubActions/GitHubActions.tsx 100.00% <ø> (ø)
...c/pages/RepoPage/CoverageOnboarding/NewRepoTab.jsx 100.00% <ø> (ø)
...es/RepoPage/CoverageOnboarding/OtherCI/OtherCI.jsx 100.00% <ø> (ø)
...ng/OtherCI/TerminalInstructions/InstructionBox.jsx 100.00% <ø> (ø)
src/pages/RepoPage/RepoPage.jsx 100.00% <100.00%> (ø)
src/pages/RepoPage/hooks/pathMatchersHooks.ts 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.24% <100.00%> (+<0.01%) ⬆️
Services 99.49% <ø> (ø)
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 59bcfb4...6d82c58. Read the comment docs.

Copy link

netlify bot commented Jan 11, 2024

Deploy Preview for gazebo-staging ready!

Name Link
🔨 Latest commit 6d82c58
🔍 Latest deploy log https://app.netlify.com/sites/gazebo-staging/deploys/65a53c9a39f9450008db289f
😎 Deploy Preview https://deploy-preview-2504--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-staging
Copy link

codecov-staging bot commented Jan 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2504   +/-   ##
=======================================
  Coverage   98.26%   98.26%           
=======================================
  Files         786      786           
  Lines       10073    10083   +10     
  Branches     2536     2550   +14     
=======================================
+ Hits         9898     9908   +10     
  Misses        173      173           
  Partials        2        2           
Files Coverage Δ
.../RepoPage/CoverageOnboarding/CircleCI/CircleCI.jsx 100.00% <ø> (ø)
...CoverageOnboarding/GitHubActions/GitHubActions.tsx 100.00% <ø> (ø)
...c/pages/RepoPage/CoverageOnboarding/NewRepoTab.jsx 100.00% <ø> (ø)
...es/RepoPage/CoverageOnboarding/OtherCI/OtherCI.jsx 100.00% <ø> (ø)
...ng/OtherCI/TerminalInstructions/InstructionBox.jsx 100.00% <ø> (ø)
src/pages/RepoPage/RepoPage.jsx 100.00% <100.00%> (ø)
src/pages/RepoPage/hooks/pathMatchersHooks.ts 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.24% <100.00%> (+<0.01%) ⬆️
Services 99.49% <ø> (ø)
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 59bcfb4...6d82c58. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Jan 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (59bcfb4) 98.26% compared to head (6d82c58) 98.26%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2504   +/-   ##
=======================================
  Coverage   98.26%   98.26%           
=======================================
  Files         786      786           
  Lines       10073    10083   +10     
  Branches     2504     2555   +51     
=======================================
+ Hits         9898     9908   +10     
  Misses        173      173           
  Partials        2        2           
Files Coverage Δ
.../RepoPage/CoverageOnboarding/CircleCI/CircleCI.jsx 100.00% <ø> (ø)
...CoverageOnboarding/GitHubActions/GitHubActions.tsx 100.00% <ø> (ø)
...c/pages/RepoPage/CoverageOnboarding/NewRepoTab.jsx 100.00% <ø> (ø)
...es/RepoPage/CoverageOnboarding/OtherCI/OtherCI.jsx 100.00% <ø> (ø)
...ng/OtherCI/TerminalInstructions/InstructionBox.jsx 100.00% <ø> (ø)
src/pages/RepoPage/RepoPage.jsx 100.00% <100.00%> (ø)
src/pages/RepoPage/hooks/pathMatchersHooks.ts 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.24% <100.00%> (+<0.01%) ⬆️
Services 99.49% <ø> (ø)
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 59bcfb4...6d82c58. Read the comment docs.

Copy link
Contributor

@RulaKhaled RulaKhaled left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@RulaKhaled RulaKhaled left a comment

Choose a reason for hiding this comment

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

can you fix the failing test please, approved otherwise

Copy link

codecov-public-qa bot commented Jan 11, 2024

Codecov Report

Merging #2504 (6d82c58) into main (59bcfb4) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2504   +/-   ##
=======================================
  Coverage   98.26%   98.26%           
=======================================
  Files         786      786           
  Lines       10073    10083   +10     
  Branches     2504     2536   +32     
=======================================
+ Hits         9898     9908   +10     
  Misses        173      173           
  Partials        2        2           
Files Coverage Δ
.../RepoPage/CoverageOnboarding/CircleCI/CircleCI.jsx 100.00% <ø> (ø)
...CoverageOnboarding/GitHubActions/GitHubActions.tsx 100.00% <ø> (ø)
...c/pages/RepoPage/CoverageOnboarding/NewRepoTab.jsx 100.00% <ø> (ø)
...es/RepoPage/CoverageOnboarding/OtherCI/OtherCI.jsx 100.00% <ø> (ø)
...ng/OtherCI/TerminalInstructions/InstructionBox.jsx 100.00% <ø> (ø)
src/pages/RepoPage/RepoPage.jsx 100.00% <100.00%> (ø)
src/pages/RepoPage/hooks/pathMatchersHooks.ts 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.24% <100.00%> (+<0.01%) ⬆️
Services 99.49% <ø> (ø)
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 59bcfb4...6d82c58. Read the comment docs.

@codecovdesign
Copy link
Contributor

@nicholas-codecov looks great! minor sugguestion is adding some padding-top to space out the instructions a bit below the sub-nav

@nicholas-codecov
Copy link
Contributor Author

@nicholas-codecov looks great! minor sugguestion is adding some padding-top to space out the instructions a bit below the sub-nav

Are you talking about the header for the instructions?

@nicholas-codecov nicholas-codecov merged commit b9ec1c6 into main Jan 15, 2024
58 checks passed
@nicholas-codecov nicholas-codecov deleted the gh-eng-1023-move-coverage-onboarding-to-coverage-tab branch January 15, 2024 18:24
Copy link

sentry-io bot commented Jan 25, 2024

Suspect Issues

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

  • ‼️ React ErrorBoundary TypeError: Failed to fetch graphql(shared/api/api) 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.

[Client] Display coverage onboarding if coverage is disabled
3 participants