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

Refactor files changed table on commit detail page #2569

Merged
merged 16 commits into from
Feb 9, 2024

Conversation

rohitvinnakota-codecov
Copy link
Contributor

@rohitvinnakota-codecov rohitvinnakota-codecov commented Feb 7, 2024

Description

This PR refactors the FilesChangedTable on the commit detail page to use tanstack. This closes codecov/engineering-team#585.

Screenshots

Screenshot 2024-02-08 at 10 35 12 AM

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@rohitvinnakota-codecov rohitvinnakota-codecov changed the title [Draft [Draft] Commit detail page table refactor Feb 7, 2024
Copy link

netlify bot commented Feb 7, 2024

Deploy Preview for gazebo-staging ready!

Name Link
🔨 Latest commit 87f3263
🔍 Latest deploy log https://app.netlify.com/sites/gazebo-staging/deploys/65c63a188130bf0008df31fc
😎 Deploy Preview https://deploy-preview-2569--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 Feb 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fbc19cb) 98.31% compared to head (1e6a669) 98.32%.

❗ Current head 1e6a669 differs from pull request most recent head 87f3263. Consider uploading reports for the commit 87f3263 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #2569     +/-   ##
=======================================
+ Coverage   98.31   98.32   +0.01     
=======================================
  Files        820     820             
  Lines      10827   10868     +41     
  Branches    2775    2772      -3     
=======================================
+ Hits       10644   10685     +41     
  Misses       181     181             
  Partials       2       2             
Files Coverage Δ
...ChangedTab/FilesChangedTable/FilesChangedTable.tsx 100.00% <100.00%> (ø)
src/services/commit/useCommit.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 55.26% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.30% <100.00%> (+<0.01%) ⬆️
Services 99.56% <100.00%> (+<0.01%) ⬆️
Shared 99.83% <ø> (ø)
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 fbc19cb...87f3263. Read the comment docs.

@codecov-releaser
Copy link
Contributor

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

Copy link

codecov-public-qa bot commented Feb 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fbc19cb) 98.30% compared to head (87f3263) 98.31%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2569   +/-   ##
=======================================
  Coverage   98.30%   98.31%           
=======================================
  Files         820      820           
  Lines       10827    10868   +41     
  Branches     2767     2782   +15     
=======================================
+ Hits        10644    10685   +41     
  Misses        181      181           
  Partials        2        2           
Files Coverage Δ
...ChangedTab/FilesChangedTable/FilesChangedTable.tsx 100.00% <100.00%> (ø)
src/services/commit/useCommit.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 55.26% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.30% <100.00%> (+<0.01%) ⬆️
Services 99.56% <100.00%> (+<0.01%) ⬆️
Shared 99.83% <ø> (ø)
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 fbc19cb...87f3263. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented Feb 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2569   +/-   ##
=======================================
  Coverage   98.30%   98.31%           
=======================================
  Files         820      820           
  Lines       10827    10868   +41     
  Branches     2775     2737   -38     
=======================================
+ Hits        10644    10685   +41     
  Misses        181      181           
  Partials        2        2           
Files Coverage Δ
...ChangedTab/FilesChangedTable/FilesChangedTable.tsx 100.00% <100.00%> (ø)
src/services/commit/useCommit.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 55.26% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.30% <100.00%> (+<0.01%) ⬆️
Services 99.56% <100.00%> (+<0.01%) ⬆️
Shared 99.83% <ø> (ø)
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 fbc19cb...87f3263. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Feb 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fbc19cb) 98.30% compared to head (87f3263) 98.31%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2569   +/-   ##
=======================================
  Coverage   98.30%   98.31%           
=======================================
  Files         820      820           
  Lines       10827    10868   +41     
  Branches     2722     2737   +15     
=======================================
+ Hits        10644    10685   +41     
  Misses        181      181           
  Partials        2        2           
Files Coverage Δ
...ChangedTab/FilesChangedTable/FilesChangedTable.tsx 100.00% <100.00%> (ø)
src/services/commit/useCommit.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 55.26% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.30% <100.00%> (+<0.01%) ⬆️
Services 99.56% <100.00%> (+<0.01%) ⬆️
Shared 99.83% <ø> (ø)
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 fbc19cb...87f3263. Read the comment docs.

@rohitvinnakota-codecov rohitvinnakota-codecov marked this pull request as ready for review February 8, 2024 15:27
@rohitvinnakota-codecov rohitvinnakota-codecov changed the title [Draft] Commit detail page table refactor Refactor files changed table on commit detail page Feb 8, 2024
@codecov-staging
Copy link

codecov-staging bot commented Feb 8, 2024

Bundle Report

Changes will increase total bundle size by 8.27KB ⬆️

Bundle name Size Change
gazebo-staging-array-push 5.81MB 8.27KB ⬆️

Copy link
Contributor

@nicholas-codecov nicholas-codecov left a comment

Choose a reason for hiding this comment

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

One small thing to quickly peak at, but no blockers ✅

@@ -75,7 +81,7 @@ const wrapper =
)

describe('FilesChangedTable', () => {
function setup(data = [], state = 'processed') {
function setup(data: any = null, state = 'processed') {
Copy link
Contributor

Choose a reason for hiding this comment

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

l: Is there any way to use the Zod schema to infer the data here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@rohitvinnakota-codecov rohitvinnakota-codecov merged commit 4bee609 into main Feb 9, 2024
45 checks passed
@rohitvinnakota-codecov rohitvinnakota-codecov deleted the rvinnakota/commit-detail-table-refactor branch February 9, 2024 14:53
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.

FilesChangedTable Commit Detail Page
3 participants