Skip to content

fix: useInvoices, usePrefetchBranchDirEntry, BundleTrendQueryOpts, usePullComponents schemas #3809

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

Conversation

nicholas-codecov
Copy link
Contributor

Description

This PR updates the following Zod schemas, to resolve their related Sentry issue:

Ticket: codecov/engineering-team#3385

Notable Changes

  • Update useInvoices, usePrefetchBranchDirEntry, BundleTrendQueryOpts, usePullComponents
  • Update ComponentsSelector to use optional chaining

Copy link

codecov bot commented Mar 13, 2025

Bundle Report

Changes will increase total bundle size by 118 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 6.11MB 49 bytes (0.0%) ⬆️
gazebo-production-esm 6.19MB 69 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: gazebo-production-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index.*.js 15 bytes 53.59kB 0.03%
assets/index.*.js 32 bytes 125.74kB 0.03%
assets/usePrefetchBranchDirEntry.*.js 11 bytes 7.78kB 0.14%
assets/useInvoices.*.js 11 bytes 3.21kB 0.34%

Files in assets/index.*.js:

  • ./src/services/bundleAnalysis/BundleTrendDataQueryOpts.tsx → Total Size: 4.35kB

Files in assets/index.*.js:

  • ./src/services/pull/usePullComponents.tsx → Total Size: 3.98kB

  • ./src/pages/PullRequestPage/PullCoverage/routes/ComponentsSelector/ComponentsSelector.tsx → Total Size: 2.55kB

Files in assets/usePrefetchBranchDirEntry.*.js:

  • ./src/services/pathContents/branch/dir/usePrefetchBranchDirEntry.tsx → Total Size: 4.52kB

Files in assets/useInvoices.*.js:

  • ./src/services/account/useInvoices.ts → Total Size: 2.96kB
view changes for bundle: gazebo-production-system

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index-legacy.*.js 15 bytes 49.41kB 0.03%
assets/index-legacy.*.js 12 bytes 113.14kB 0.01%
assets/usePrefetchBranchDirEntry-legacy.*.js 11 bytes 6.95kB 0.16%
assets/useInvoices-legacy.*.js 11 bytes 3.25kB 0.34%

Files in assets/index-legacy.*.js:

  • ./src/services/bundleAnalysis/BundleTrendDataQueryOpts.tsx → Total Size: 4.35kB

Files in assets/index-legacy.*.js:

  • ./src/pages/PullRequestPage/PullCoverage/routes/ComponentsSelector/ComponentsSelector.tsx → Total Size: 2.55kB

  • ./src/services/pull/usePullComponents.tsx → Total Size: 3.98kB

Files in assets/usePrefetchBranchDirEntry-legacy.*.js:

  • ./src/services/pathContents/branch/dir/usePrefetchBranchDirEntry.tsx → Total Size: 4.54kB

Files in assets/useInvoices-legacy.*.js:

  • ./src/services/account/useInvoices.ts → Total Size: 2.99kB

Copy link

codecov bot commented Mar 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.73%. Comparing base (7f57f59) to head (21570d3).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3809   +/-   ##
=======================================
  Coverage   98.73%   98.73%           
=======================================
  Files         826      826           
  Lines       14994    14996    +2     
  Branches     4277     4287   +10     
=======================================
+ Hits        14805    14807    +2     
  Misses        182      182           
  Partials        7        7           
Files with missing lines Coverage Δ
...e/routes/ComponentsSelector/ComponentsSelector.tsx 100.00% <100.00%> (ø)
src/services/account/useInvoices.ts 100.00% <ø> (ø)
...rvices/bundleAnalysis/BundleTrendDataQueryOpts.tsx 100.00% <100.00%> (ø)
...hContents/branch/dir/usePrefetchBranchDirEntry.tsx 100.00% <ø> (ø)
src/services/pull/usePullComponents.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.30% <100.00%> (ø)
Services 99.38% <100.00%> (+<0.01%) ⬆️
Shared 99.12% <ø> (ø)
UI 99.08% <ø> (ø)

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 7f57f59...21570d3. Read the comment docs.

Copy link

codecov-public-qa bot commented Mar 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.73%. Comparing base (7f57f59) to head (21570d3).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main    #3809   +/-   ##
=======================================
  Coverage   98.73%   98.73%           
=======================================
  Files         826      826           
  Lines       14994    14996    +2     
  Branches     4285     4287    +2     
=======================================
+ Hits        14805    14807    +2     
  Misses        182      182           
  Partials        7        7           
Files with missing lines Coverage Δ
...e/routes/ComponentsSelector/ComponentsSelector.tsx 100.00% <100.00%> (ø)
src/services/account/useInvoices.ts 100.00% <ø> (ø)
...rvices/bundleAnalysis/BundleTrendDataQueryOpts.tsx 100.00% <100.00%> (ø)
...hContents/branch/dir/usePrefetchBranchDirEntry.tsx 100.00% <ø> (ø)
src/services/pull/usePullComponents.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.30% <100.00%> (ø)
Services 99.38% <100.00%> (+<0.01%) ⬆️
Shared 99.12% <ø> (ø)
UI 99.08% <ø> (ø)

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 7f57f59...21570d3. 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
21570d3 Thu, 13 Mar 2025 10:54:48 GMT Cloud Enterprise

Copy link
Contributor

@spalmurray-codecov spalmurray-codecov left a comment

Choose a reason for hiding this comment

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

Nice!

@nicholas-codecov nicholas-codecov added this pull request to the merge queue Mar 13, 2025
Merged via the queue into main with commit a7e92e4 Mar 13, 2025
46 checks passed
@nicholas-codecov nicholas-codecov deleted the gh-eng-3385-fix-useInvoices-usePrefetchBranchDirEntry-BundleTrendQueryOpts branch March 13, 2025 15:43
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.

4 participants