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

ref: Convert TokensTable to tanstack table #2612

Merged
merged 9 commits into from
Feb 26, 2024

Conversation

spalmurray-codecov
Copy link
Contributor

@spalmurray-codecov spalmurray-codecov commented Feb 21, 2024

Description

Refactor TokensTable and the hooks it depends on: useSessions and useRevokeUserToken. Also, update the column layout of TokensTable to better accommodate long names. Since the 'Token' column has fixed width, allowing the name column to take up more width seems like good change. See change in screenshot.

Closes codecov/engineering-team#601

Notable Changes

  • Convert TokensTable to TS/tanstack table
  • Update column layout of TokensTable
  • Convert useSessions to TS
  • Convert useRevokeUserToken to TS

Screenshots

layoutchange

Copy link

codecov-public-qa bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (747ed94) 98.37% compared to head (e9ec767) 98.38%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2612   +/-   ##
=======================================
  Coverage   98.37%   98.38%           
=======================================
  Files         845      845           
  Lines       11415    11422    +7     
  Branches     2958     2961    +3     
=======================================
+ Hits        11230    11237    +7     
  Misses        183      183           
  Partials        2        2           
Files Coverage Δ
.../pages/AccountSettings/tabs/Access/TokensTable.tsx 100.00% <100.00%> (ø)
src/services/access/useRevokeUserToken.ts 100.00% <100.00%> (ø)
src/services/access/useSessions.ts 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 55.26% <ø> (ø)
Layouts 97.00% <ø> (ø)
Pages 99.34% <100.00%> (+<0.01%) ⬆️
Services 99.60% <100.00%> (+<0.01%) ⬆️
Shared 99.83% <ø> (ø)
UI 94.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 747ed94...e9ec767. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.38%. Comparing base (747ed94) to head (e9ec767).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2612   +/-   ##
=======================================
  Coverage   98.37%   98.38%           
=======================================
  Files         845      845           
  Lines       11415    11422    +7     
  Branches     2958     2961    +3     
=======================================
+ Hits        11230    11237    +7     
  Misses        183      183           
  Partials        2        2           
Files Coverage Δ
.../pages/AccountSettings/tabs/Access/TokensTable.tsx 100.00% <100.00%> (ø)
src/services/access/useRevokeUserToken.ts 100.00% <100.00%> (ø)
src/services/access/useSessions.ts 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 55.26% <ø> (ø)
Layouts 97.00% <ø> (ø)
Pages 99.34% <100.00%> (+<0.01%) ⬆️
Services 99.60% <100.00%> (+<0.01%) ⬆️
Shared 99.83% <ø> (ø)
UI 94.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 747ed94...e9ec767. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2612   +/-   ##
=======================================
  Coverage   98.37%   98.38%           
=======================================
  Files         845      845           
  Lines       11415    11422    +7     
  Branches     2948     2910   -38     
=======================================
+ Hits        11230    11237    +7     
  Misses        183      183           
  Partials        2        2           
Files Coverage Δ
.../pages/AccountSettings/tabs/Access/TokensTable.tsx 100.00% <100.00%> (ø)
src/services/access/useRevokeUserToken.ts 100.00% <100.00%> (ø)
src/services/access/useSessions.ts 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 55.26% <ø> (ø)
Layouts 97.00% <ø> (ø)
Pages 99.34% <100.00%> (+<0.01%) ⬆️
Services 99.60% <100.00%> (+<0.01%) ⬆️
Shared 99.83% <ø> (ø)
UI 94.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 747ed94...e9ec767. Read the comment docs.

Copy link

codecov bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.38%. Comparing base (747ed94) to head (e9ec767).

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2612   +/-   ##
=====================================
  Coverage   98.38   98.38           
=====================================
  Files        845     845           
  Lines      11415   11422    +7     
  Branches    2958    2910   -48     
=====================================
+ Hits       11230   11237    +7     
  Misses       183     183           
  Partials       2       2           
Files Coverage Δ
.../pages/AccountSettings/tabs/Access/TokensTable.tsx 100.00% <100.00%> (ø)
src/services/access/useRevokeUserToken.ts 100.00% <100.00%> (ø)
src/services/access/useSessions.ts 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 55.26% <ø> (ø)
Layouts 97.00% <ø> (ø)
Pages 99.34% <100.00%> (+<0.01%) ⬆️
Services 99.60% <100.00%> (+<0.01%) ⬆️
Shared 99.83% <ø> (ø)
UI 94.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 747ed94...e9ec767. Read the comment docs.

Copy link

netlify bot commented Feb 21, 2024

Deploy Preview for gazebo-staging ready!

Name Link
🔨 Latest commit e9ec767
🔍 Latest deploy log https://app.netlify.com/sites/gazebo-staging/deploys/65dcad2923aa440008d624b5
😎 Deploy Preview https://deploy-preview-2612--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 21, 2024

Bundle Report

Changes will increase total bundle size by 4.31kB ⬆️

Bundle name Size Change
gazebo-production-array-push 5.89MB 4.31kB ⬆️

@codecov-staging
Copy link

codecov-staging bot commented Feb 21, 2024

Bundle Report

Changes will increase total bundle size by 4.31kB ⬆️

Bundle name Size Change
gazebo-staging-array-push 5.88MB 4.31kB ⬆️

@codecov-releaser
Copy link
Contributor

Visit https://preview-pr-2612.codecov.dev for your PR preview. Expires after 1 month automatically. Enterprise URL: https://preview-pr-2612-enterprise.codecov.dev

@spalmurray-codecov spalmurray-codecov changed the title gh eng 601 TokensTable ref: Convert TokensTable Feb 21, 2024
@spalmurray-codecov spalmurray-codecov changed the title ref: Convert TokensTable ref: Convert TokensTable to tanstack table Feb 23, 2024
@spalmurray-codecov spalmurray-codecov marked this pull request as ready for review February 23, 2024 20:05
Copy link
Contributor

@ajay-sentry ajay-sentry left a comment

Choose a reason for hiding this comment

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

looks good to me!

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.

Looks all good to me ✅

@spalmurray-codecov spalmurray-codecov merged commit 9514708 into main Feb 26, 2024
62 checks passed
@spalmurray-codecov spalmurray-codecov deleted the gh-eng-601-TokensTable branch February 26, 2024 16:43
RulaKhaled pushed a commit that referenced this pull request Mar 8, 2024
Refactor TokensTable, useSessions, and useRevokeUserToken.

GH codecov/engineering-team#601
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.

TokensTable
4 participants