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: Restructure PR Page #2520

Merged
merged 12 commits into from
Jan 24, 2024

Conversation

nicholas-codecov
Copy link
Contributor

Description

This PR restructures the current pull request page quite heavily, and moves lots of the current sub-routes into the PullCoverage directory in preparation for bundle analysis.

GH codecov/engineering-team#997

Notable Changes

  • Refactor PullRequestPageContent to PullCoverage
  • Move coverage specific stuff from PullRequestPage to PullCoverage
  • Move lots and lots annnnd lots of stuff
  • Clean up some tests, and bring some up to date

@codecov-qa
Copy link

codecov-qa bot commented Jan 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2a0ab75) 98.30% compared to head (da1681b) 98.30%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2520   +/-   ##
=======================================
  Coverage   98.30%   98.30%           
=======================================
  Files         800      800           
  Lines       10303    10304    +1     
  Branches     2586     2586           
=======================================
+ Hits        10128    10129    +1     
  Misses        173      173           
  Partials        2        2           
Files Coverage Δ
...questPage/PullCoverage/ErrorBanner/ErrorBanner.jsx 100.00% <ø> (ø)
...ages/PullRequestPage/PullCoverage/PullCoverage.jsx 100.00% <100.00%> (ø)
...PullCoverage/PullCoverageTabs/PullCoverageTabs.jsx 100.00% <100.00%> (ø)
...llCoverage/PullCoverageTabs/hooks/useTabsCounts.js 100.00% <ø> (ø)
...Coverage/Summary/CompareSummary/CompareSummary.jsx 93.33% <ø> (ø)
.../Summary/CompareSummary/CompareSummarySkeleton.jsx 100.00% <ø> (ø)
...Summary/CompareSummary/usePullForCompareSummary.js 100.00% <ø> (ø)
...s/PullRequestPage/PullCoverage/Summary/Summary.tsx 100.00% <ø> (ø)
...Page/PullCoverage/routes/CommitsTab/CommitsTab.tsx 100.00% <ø> (ø)
...ge/routes/CommitsTab/CommitsTable/CommitsTable.tsx 100.00% <ø> (ø)
... and 29 more
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.26% <100.00%> (+<0.01%) ⬆️
Services 99.50% <ø> (ø)
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 2a0ab75...da1681b. Read the comment docs.

Copy link

codecov-public-qa bot commented Jan 17, 2024

Codecov Report

Merging #2520 (da1681b) into main (2a0ab75) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2520   +/-   ##
=======================================
  Coverage   98.30%   98.30%           
=======================================
  Files         800      800           
  Lines       10303    10304    +1     
  Branches     2586     2567   -19     
=======================================
+ Hits        10128    10129    +1     
  Misses        173      173           
  Partials        2        2           
Files Coverage Δ
...questPage/PullCoverage/ErrorBanner/ErrorBanner.jsx 100.00% <ø> (ø)
...ages/PullRequestPage/PullCoverage/PullCoverage.jsx 100.00% <100.00%> (ø)
...PullCoverage/PullCoverageTabs/PullCoverageTabs.jsx 100.00% <100.00%> (ø)
...llCoverage/PullCoverageTabs/hooks/useTabsCounts.js 100.00% <ø> (ø)
...Coverage/Summary/CompareSummary/CompareSummary.jsx 93.33% <ø> (ø)
.../Summary/CompareSummary/CompareSummarySkeleton.jsx 100.00% <ø> (ø)
...Summary/CompareSummary/usePullForCompareSummary.js 100.00% <ø> (ø)
...s/PullRequestPage/PullCoverage/Summary/Summary.tsx 100.00% <ø> (ø)
...Page/PullCoverage/routes/CommitsTab/CommitsTab.tsx 100.00% <ø> (ø)
...ge/routes/CommitsTab/CommitsTable/CommitsTable.tsx 100.00% <ø> (ø)
... and 29 more
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.26% <100.00%> (+<0.01%) ⬆️
Services 99.50% <ø> (ø)
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 2a0ab75...da1681b. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented Jan 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2520   +/-   ##
=======================================
  Coverage   98.30%   98.30%           
=======================================
  Files         800      800           
  Lines       10303    10304    +1     
  Branches     2581     2581           
=======================================
+ Hits        10128    10129    +1     
  Misses        173      173           
  Partials        2        2           
Files Coverage Δ
...questPage/PullCoverage/ErrorBanner/ErrorBanner.jsx 100.00% <ø> (ø)
...ages/PullRequestPage/PullCoverage/PullCoverage.jsx 100.00% <100.00%> (ø)
...PullCoverage/PullCoverageTabs/PullCoverageTabs.jsx 100.00% <100.00%> (ø)
...llCoverage/PullCoverageTabs/hooks/useTabsCounts.js 100.00% <ø> (ø)
...Coverage/Summary/CompareSummary/CompareSummary.jsx 93.33% <ø> (ø)
.../Summary/CompareSummary/CompareSummarySkeleton.jsx 100.00% <ø> (ø)
...Summary/CompareSummary/usePullForCompareSummary.js 100.00% <ø> (ø)
...s/PullRequestPage/PullCoverage/Summary/Summary.tsx 100.00% <ø> (ø)
...Page/PullCoverage/routes/CommitsTab/CommitsTab.tsx 100.00% <ø> (ø)
...ge/routes/CommitsTab/CommitsTable/CommitsTable.tsx 100.00% <ø> (ø)
... and 29 more
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.26% <100.00%> (+<0.01%) ⬆️
Services 99.50% <ø> (ø)
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 2a0ab75...da1681b. Read the comment docs.

Copy link

netlify bot commented Jan 17, 2024

Deploy Preview for gazebo-staging ready!

Name Link
🔨 Latest commit da1681b
🔍 Latest deploy log https://app.netlify.com/sites/gazebo-staging/deploys/65b106eebed9210008f12ce6
😎 Deploy Preview https://deploy-preview-2520--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.

Copy link

codecov bot commented Jan 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2a0ab75) 98.30% compared to head (da1681b) 98.30%.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2520   +/-   ##
=====================================
  Coverage   98.30   98.30           
=====================================
  Files        800     800           
  Lines      10303   10304    +1     
  Branches    2581    2581           
=====================================
+ Hits       10128   10129    +1     
  Misses       173     173           
  Partials       2       2           
Files Coverage Δ
...questPage/PullCoverage/ErrorBanner/ErrorBanner.jsx 100.00% <ø> (ø)
...ages/PullRequestPage/PullCoverage/PullCoverage.jsx 100.00% <100.00%> (ø)
...PullCoverage/PullCoverageTabs/PullCoverageTabs.jsx 100.00% <100.00%> (ø)
...llCoverage/PullCoverageTabs/hooks/useTabsCounts.js 100.00% <ø> (ø)
...Coverage/Summary/CompareSummary/CompareSummary.jsx 93.33% <ø> (ø)
.../Summary/CompareSummary/CompareSummarySkeleton.jsx 100.00% <ø> (ø)
...Summary/CompareSummary/usePullForCompareSummary.js 100.00% <ø> (ø)
...s/PullRequestPage/PullCoverage/Summary/Summary.tsx 100.00% <ø> (ø)
...Page/PullCoverage/routes/CommitsTab/CommitsTab.tsx 100.00% <ø> (ø)
...ge/routes/CommitsTab/CommitsTable/CommitsTable.tsx 100.00% <ø> (ø)
... and 29 more
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.26% <100.00%> (+<0.01%) ⬆️
Services 99.50% <ø> (ø)
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 2a0ab75...da1681b. Read the comment docs.

@nicholas-codecov nicholas-codecov merged commit a1ba225 into main Jan 24, 2024
60 checks passed
@nicholas-codecov nicholas-codecov deleted the gh-eng-997-update-pr-page-restructure-pr-page branch January 24, 2024 13:57
RulaKhaled pushed a commit that referenced this pull request Jan 25, 2024
Restructure the PR page moving coverage related components down one level to make space in the current PR page for expanding product set.

GH codecov/engineering-team#997
RulaKhaled added a commit that referenced this pull request Jan 25, 2024
* feat: Update with global token if exists

* feat: Update circleci with global token if exists

* build: Update deps related to Adobe CSS (#2530)

Update deps related to Adobe CSS tools.

* feat: Enable Sentry Metrics Integration (#2529)

Update Sentry deps, as well as enabling Sentry metrics integration in sentry.ts.

GH codecov/engineering-team#998

* feat: Create Webpack plugin onboarding steps (#2516)

Create onboarding steps for bundle analysis webpack steps.

GH codecov/engineering-team#1043

* feat: Restructure PR Page (#2520)

Restructure the PR page moving coverage related components down one level to make space in the current PR page for expanding product set.

GH codecov/engineering-team#997

* feat: Restructure Commit Detail Page (#2523)

Move all coverage related items in the commit detail page down one level to the commit coverage directory in prep for adding in bundle analysis.

GH codecov/engineering-team#996

* fix: Move fetching of org upload token to a different hook (#2536)

Move fetching of the org upload token into it's own hook so we can call it precisely when we need it, instead of over fetching it.

* update with new global token hook

---------

Co-authored-by: nicholas-codecov <[email protected]>
Copy link

sentry-io bot commented Jan 26, 2024

Suspect Issues

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

  • ‼️ React ErrorBoundary TypeError: e.split(...).at is not a function getFilenameFromPath(shared/utils/url) View Issue
  • ‼️ React ErrorBoundary TypeError: n.at is not a function adjustListIfUpDir(shared/ContentsTable/utils/ad... View Issue
  • ‼️ React ErrorBoundary Error: Loading CSS chunk 6439 failed. ((css/6439.f5489ccf.chunk) View Issue
  • ‼️ React ErrorBoundary ReferenceError: Can't find variable: ResizeObserver _useState3(ui/CodeRenderer/hooks/useScrollToLine) View Issue
  • ‼️ React ErrorBoundary Error: Loading CSS chunk 4857 failed. linkTag.onload(webpack/runtime/css loading) 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.

3 participants