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

fix: Do not allow removing sorting from repos table #3554

Merged
merged 4 commits into from
Dec 10, 2024

Conversation

calvin-codecov
Copy link
Contributor

@calvin-codecov calvin-codecov commented Dec 4, 2024

Description

Closes https://github.com/codecov/internal-issues/issues/1054

Code Example

<span
  className="text-ds-blue-darker group-hover/columnheader:opacity-100"
  data-sort-direction={header.column.getIsSorted()}
>
  <Icon name="arrowUp" size="sm" />
</span>

header.column.getIsSorted() would start out as "desc" and then would switch between "asc" and "false" on clicks that triggered a sorting change. The enableSortingRemoval tanstack property when set to false doesn't let the column be unsorted as one of the states so now it only cycles between "desc" and "asc"

Notable Changes

Screenshots

Screen.Recording.2024-12-06.at.11.47.31.AM.mov

Link to Sample Entry

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.

@codecov-staging
Copy link

codecov-staging bot commented Dec 4, 2024

Bundle Report

Changes will decrease total bundle size by 56 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-system-esm 5.72MB 39 bytes (0.0%) ⬆️
gazebo-staging-system 5.67MB 95 bytes (-0.0%) ⬇️

Copy link

codecov bot commented Dec 4, 2024

Bundle Report

Changes will decrease total bundle size by 56 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 5.67MB 95 bytes (-0.0%) ⬇️
gazebo-production-system-esm 5.72MB 39 bytes (0.0%) ⬆️

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.90%. Comparing base (8e7be0e) to head (20d73ef).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3554      +/-   ##
==========================================
- Coverage   98.90%   98.90%   -0.01%     
==========================================
  Files         806      806              
  Lines       14484    14484              
  Branches     4118     4118              
==========================================
- Hits        14326    14325       -1     
- Misses        151      152       +1     
  Partials        7        7              
Files with missing lines Coverage Δ
src/shared/ListRepo/ReposTable/ReposTable.tsx 98.50% <ø> (-1.50%) ⬇️
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.59% <ø> (ø)
Services 99.33% <ø> (ø)
Shared 99.26% <ø> (-0.07%) ⬇️
UI 99.14% <ø> (ø)

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 8e7be0e...20d73ef. Read the comment docs.

@codecov-notifications
Copy link

codecov-notifications bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3554      +/-   ##
==========================================
- Coverage   98.90%   98.90%   -0.01%     
==========================================
  Files         806      806              
  Lines       14484    14484              
  Branches     4118     4111       -7     
==========================================
- Hits        14326    14325       -1     
- Misses        151      152       +1     
  Partials        7        7              
Files with missing lines Coverage Δ
src/shared/ListRepo/ReposTable/ReposTable.tsx 98.50% <ø> (-1.50%) ⬇️
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.59% <ø> (ø)
Services 99.33% <ø> (ø)
Shared 99.26% <ø> (-0.07%) ⬇️
UI 99.14% <ø> (ø)

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 8e7be0e...20d73ef. Read the comment docs.

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Dec 4, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
ef3a399 Wed, 04 Dec 2024 19:42:56 GMT Expired Expired
238ede5 Fri, 06 Dec 2024 18:33:27 GMT Expired Expired
f543c1a Sat, 07 Dec 2024 00:17:42 GMT Expired Expired
8db620e Tue, 10 Dec 2024 14:10:52 GMT Expired Expired
20d73ef Tue, 10 Dec 2024 20:15:21 GMT Cloud Enterprise

@codecov-qa
Copy link

codecov-qa bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.90%. Comparing base (8e7be0e) to head (20d73ef).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3554      +/-   ##
==========================================
- Coverage   98.90%   98.90%   -0.01%     
==========================================
  Files         806      806              
  Lines       14484    14484              
  Branches     4111     4111              
==========================================
- Hits        14326    14325       -1     
- Misses        151      152       +1     
  Partials        7        7              
Files with missing lines Coverage Δ
src/shared/ListRepo/ReposTable/ReposTable.tsx 98.50% <ø> (-1.50%) ⬇️
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.59% <ø> (ø)
Services 99.33% <ø> (ø)
Shared 99.26% <ø> (-0.07%) ⬇️
UI 99.14% <ø> (ø)

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 8e7be0e...20d73ef. Read the comment docs.

@calvin-codecov calvin-codecov force-pushed the cy/analytics_sort_arrow branch from ef3a399 to 238ede5 Compare December 6, 2024 18:28
@calvin-codecov calvin-codecov changed the title test comment for build fix: Do not allow removing sorting from repos table Dec 6, 2024
Copy link

codecov-public-qa bot commented Dec 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.90%. Comparing base (8e7be0e) to head (20d73ef).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3554      +/-   ##
==========================================
- Coverage   98.90%   98.90%   -0.01%     
==========================================
  Files         806      806              
  Lines       14484    14484              
  Branches     4118     4111       -7     
==========================================
- Hits        14326    14325       -1     
- Misses        151      152       +1     
  Partials        7        7              
Files with missing lines Coverage Δ
src/shared/ListRepo/ReposTable/ReposTable.tsx 98.50% <ø> (-1.50%) ⬇️
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.59% <ø> (ø)
Services 99.33% <ø> (ø)
Shared 99.26% <ø> (-0.07%) ⬇️
UI 99.14% <ø> (ø)

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 8e7be0e...20d73ef. Read the comment docs.

@calvin-codecov calvin-codecov added this pull request to the merge queue Dec 10, 2024
Merged via the queue into main with commit cdd2bcd Dec 10, 2024
58 of 62 checks passed
@calvin-codecov calvin-codecov deleted the cy/analytics_sort_arrow branch December 10, 2024 20: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