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: Add search and filter to Uploads list #3349

Merged
merged 15 commits into from
Oct 7, 2024

Conversation

spalmurray-codecov
Copy link
Contributor

@spalmurray-codecov spalmurray-codecov commented Oct 3, 2024

Adds some basic client-side search and filter functionality to the uploads list. Also updates the order of uploads to put the most recent at the top (was shocked to realize we don't do this lol). The flags error message in designs is coming in a later issue. Have tested keyboard navigation for all these new elements.

Designs
Closes codecov/engineering-team#1128

Recording 2024-10-03 at 11 40 23

@codecov-qa
Copy link

codecov-qa bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.17%. Comparing base (b6964b9) to head (f4e33f8).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3349      +/-   ##
==========================================
+ Coverage   99.12%   99.17%   +0.04%     
==========================================
  Files         800      799       -1     
  Lines       14016    14093      +77     
  Branches     3856     3882      +26     
==========================================
+ Hits        13894    13977      +83     
+ Misses        113      107       -6     
  Partials        9        9              
Files with missing lines Coverage Δ
...ailPage/CommitCoverage/UploadsCard/RenderError.tsx 100.00% <100.00%> (ø)
...tailPage/CommitCoverage/UploadsCard/UploadItem.tsx 100.00% <100.00%> (ø)
...age/CommitCoverage/UploadsCard/UploadReference.tsx 100.00% <100.00%> (ø)
...ailPage/CommitCoverage/UploadsCard/UploadsCard.tsx 100.00% <100.00%> (ø)
...ommitCoverage/UploadsCard/useUploads/useUploads.ts 100.00% <100.00%> (ø)
src/services/commit/useCommit.tsx 100.00% <100.00%> (ø)
src/shared/utils/commit.ts 100.00% <100.00%> (ø)
src/shared/utils/extractUploads.ts 100.00% <100.00%> (+6.38%) ⬆️
src/ui/SearchField/SearchField.jsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.97% <100.00%> (+<0.01%) ⬆️
Services 99.44% <100.00%> (+<0.01%) ⬆️
Shared 99.80% <100.00%> (+0.21%) ⬆️
UI 99.10% <100.00%> (+0.20%) ⬆️

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 b6964b9...f4e33f8. Read the comment docs.

Copy link

codecov-public-qa bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.17%. Comparing base (b6964b9) to head (f4e33f8).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3349      +/-   ##
==========================================
+ Coverage   99.12%   99.17%   +0.04%     
==========================================
  Files         800      799       -1     
  Lines       14016    14093      +77     
  Branches     3856     3882      +26     
==========================================
+ Hits        13894    13977      +83     
+ Misses        113      107       -6     
  Partials        9        9              
Files Coverage Δ
...ailPage/CommitCoverage/UploadsCard/RenderError.tsx 100.00% <100.00%> (ø)
...tailPage/CommitCoverage/UploadsCard/UploadItem.tsx 100.00% <100.00%> (ø)
...age/CommitCoverage/UploadsCard/UploadReference.tsx 100.00% <100.00%> (ø)
...ailPage/CommitCoverage/UploadsCard/UploadsCard.tsx 100.00% <100.00%> (ø)
...ommitCoverage/UploadsCard/useUploads/useUploads.ts 100.00% <100.00%> (ø)
src/services/commit/useCommit.tsx 100.00% <100.00%> (ø)
src/shared/utils/commit.ts 100.00% <100.00%> (ø)
src/shared/utils/extractUploads.ts 100.00% <100.00%> (+6.38%) ⬆️
src/ui/SearchField/SearchField.jsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.97% <100.00%> (+<0.01%) ⬆️
Services 99.44% <100.00%> (+<0.01%) ⬆️
Shared 99.80% <100.00%> (+0.21%) ⬆️
UI 99.10% <100.00%> (+0.20%) ⬆️

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 b6964b9...f4e33f8. Read the comment docs.

@codecov-notifications
Copy link

codecov-notifications bot commented Oct 3, 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    #3349      +/-   ##
==========================================
+ Coverage   99.12%   99.17%   +0.04%     
==========================================
  Files         800      799       -1     
  Lines       14016    14093      +77     
  Branches     3851     3882      +31     
==========================================
+ Hits        13894    13977      +83     
+ Misses        113      107       -6     
  Partials        9        9              
Files with missing lines Coverage Δ
...ailPage/CommitCoverage/UploadsCard/RenderError.tsx 100.00% <100.00%> (ø)
...tailPage/CommitCoverage/UploadsCard/UploadItem.tsx 100.00% <100.00%> (ø)
...age/CommitCoverage/UploadsCard/UploadReference.tsx 100.00% <100.00%> (ø)
...ailPage/CommitCoverage/UploadsCard/UploadsCard.tsx 100.00% <100.00%> (ø)
...ommitCoverage/UploadsCard/useUploads/useUploads.ts 100.00% <100.00%> (ø)
src/services/commit/useCommit.tsx 100.00% <100.00%> (ø)
src/shared/utils/commit.ts 100.00% <100.00%> (ø)
src/shared/utils/extractUploads.ts 100.00% <100.00%> (+6.38%) ⬆️
src/ui/SearchField/SearchField.jsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.97% <100.00%> (+<0.01%) ⬆️
Services 99.44% <100.00%> (+<0.01%) ⬆️
Shared 99.80% <100.00%> (+0.21%) ⬆️
UI 99.10% <100.00%> (+0.20%) ⬆️

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 b6964b9...f4e33f8. Read the comment docs.

Copy link

codecov bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.17%. Comparing base (b6964b9) to head (f4e33f8).
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    #3349      +/-   ##
==========================================
+ Coverage   99.12%   99.17%   +0.04%     
==========================================
  Files         800      799       -1     
  Lines       14016    14093      +77     
  Branches     3856     3887      +31     
==========================================
+ Hits        13894    13977      +83     
+ Misses        113      107       -6     
  Partials        9        9              
Files with missing lines Coverage Δ
...ailPage/CommitCoverage/UploadsCard/RenderError.tsx 100.00% <100.00%> (ø)
...tailPage/CommitCoverage/UploadsCard/UploadItem.tsx 100.00% <100.00%> (ø)
...age/CommitCoverage/UploadsCard/UploadReference.tsx 100.00% <100.00%> (ø)
...ailPage/CommitCoverage/UploadsCard/UploadsCard.tsx 100.00% <100.00%> (ø)
...ommitCoverage/UploadsCard/useUploads/useUploads.ts 100.00% <100.00%> (ø)
src/services/commit/useCommit.tsx 100.00% <100.00%> (ø)
src/shared/utils/commit.ts 100.00% <100.00%> (ø)
src/shared/utils/extractUploads.ts 100.00% <100.00%> (+6.38%) ⬆️
src/ui/SearchField/SearchField.jsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.97% <100.00%> (+<0.01%) ⬆️
Services 99.44% <100.00%> (+<0.01%) ⬆️
Shared 99.80% <100.00%> (+0.21%) ⬆️
UI 99.10% <100.00%> (+0.20%) ⬆️

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 b6964b9...f4e33f8. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented Oct 3, 2024

Bundle Report

Changes will increase total bundle size by 12.09kB (0.2%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-array-push 6.09MB 12.09kB (0.2%) ⬆️

Copy link

codecov bot commented Oct 3, 2024

Bundle Report

Changes will increase total bundle size by 12.09kB (0.2%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-array-push 6.09MB 12.09kB (0.2%) ⬆️

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Oct 3, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
3bccf2e Thu, 03 Oct 2024 16:53:49 GMT Expired Expired
aedadad Thu, 03 Oct 2024 17:07:21 GMT Expired Expired
aedadad Thu, 03 Oct 2024 17:10:40 GMT Expired Expired
b87a38e Thu, 03 Oct 2024 17:23:07 GMT Expired Expired
700d9d3 Thu, 03 Oct 2024 17:57:36 GMT Expired Expired
2d6d9cf Fri, 04 Oct 2024 20:27:06 GMT Expired Expired
fa96d59 Fri, 04 Oct 2024 21:08:02 GMT Expired Expired
f4e33f8 Mon, 07 Oct 2024 14:25:32 GMT Cloud Enterprise

@spalmurray-codecov spalmurray-codecov marked this pull request as ready for review October 3, 2024 19:04
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.

Couple of comments to peak at

src/ui/Checkbox/CheckboxNew.tsx Outdated Show resolved Hide resolved
src/shared/utils/extractUploads.ts Show resolved Hide resolved
src/shared/utils/extractUploads.ts Outdated Show resolved Hide resolved
src/shared/utils/extractUploads.ts Outdated Show resolved Hide resolved
src/shared/utils/extractUploads.ts Outdated Show resolved Hide resolved
src/shared/utils/extractUploads.ts Outdated Show resolved Hide resolved
src/shared/utils/extractUploads.ts Show resolved Hide resolved
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.

Awesome work with those small fixes!

@spalmurray-codecov spalmurray-codecov added this pull request to the merge queue Oct 7, 2024
Merged via the queue into main with commit b133ce8 Oct 7, 2024
62 checks passed
@spalmurray-codecov spalmurray-codecov deleted the spalmrurray/upload-search-filter branch October 7, 2024 14:57
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.

Allow filtering in upload aside
3 participants