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: Update assets table to have modules table expander #2635

Conversation

nicholas-codecov
Copy link
Contributor

Description

This PR adds in a new ModulesTable that is used as the sub-component for what the asset table is expanded. It shows all of the modules that make up that given asset, their type, size, and estimated download time.

Closes codecov/engineering-team#1211

Notable Changes

  • Create new ModulesTable component
  • Update AssetsTable
  • Update tests

Screenshots

Screenshot 2024-02-29 at 08 34 57 Screenshot 2024-02-29 at 08 35 09

Copy link

codecov-public-qa bot commented Feb 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (adf8d2c) 18.98% compared to head (0b140c9) 98.41%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #2635       +/-   ##
===========================================
+ Coverage   18.98%   98.41%   +79.43%     
===========================================
  Files         822      851       +29     
  Lines       11528    11637      +109     
  Branches     2971     2981       +10     
===========================================
+ Hits         2189    11453     +9264     
+ Misses       9151      182     -8969     
+ Partials      188        2      -186     
Files Coverage Δ
...ndlesTab/BundleContent/AssetsTable/AssetsTable.tsx 100.00% <100.00%> (+100.00%) ⬆️
...dlesTab/BundleContent/AssetsTable/ModulesTable.tsx 100.00% <100.00%> (ø)
...epoPage/BundlesTab/BundleContent/BundleContent.tsx 100.00% <100.00%> (+100.00%) ⬆️
.../services/bundleAnalysis/useBundleAssetModules.tsx 100.00% <100.00%> (+100.00%) ⬆️

... and 657 files with indirect coverage changes

Components Coverage Δ
Assets 55.55% <ø> (+5.55%) ⬆️
Layouts 97.00% <ø> (+93.47%) ⬆️
Pages 99.34% <100.00%> (+99.05%) ⬆️
Services 99.61% <100.00%> (+72.11%) ⬆️
Shared 99.83% <ø> (+14.84%) ⬆️
UI 94.14% <ø> (+59.15%) ⬆️

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 adf8d2c...0b140c9. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Feb 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.41%. Comparing base (adf8d2c) to head (0b140c9).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #2635       +/-   ##
===========================================
+ Coverage   18.98%   98.41%   +79.43%     
===========================================
  Files         822      851       +29     
  Lines       11528    11637      +109     
  Branches     3018     2981       -37     
===========================================
+ Hits         2189    11453     +9264     
+ Misses       9144      182     -8962     
+ Partials      195        2      -193     
Files Coverage Δ
...ndlesTab/BundleContent/AssetsTable/AssetsTable.tsx 100.00% <100.00%> (+100.00%) ⬆️
...dlesTab/BundleContent/AssetsTable/ModulesTable.tsx 100.00% <100.00%> (ø)
...epoPage/BundlesTab/BundleContent/BundleContent.tsx 100.00% <100.00%> (+100.00%) ⬆️
.../services/bundleAnalysis/useBundleAssetModules.tsx 100.00% <100.00%> (+100.00%) ⬆️

... and 657 files with indirect coverage changes

Components Coverage Δ
Assets 55.55% <ø> (+5.55%) ⬆️
Layouts 97.00% <ø> (+93.47%) ⬆️
Pages 99.34% <100.00%> (+99.05%) ⬆️
Services 99.61% <100.00%> (+72.11%) ⬆️
Shared 99.83% <ø> (+14.84%) ⬆️
UI 94.14% <ø> (+59.15%) ⬆️

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 adf8d2c...0b140c9. Read the comment docs.

Copy link

netlify bot commented Feb 29, 2024

Deploy Preview for gazebo-staging ready!

Name Link
🔨 Latest commit 0b140c9
🔍 Latest deploy log https://app.netlify.com/sites/gazebo-staging/deploys/65e0fb6a5f41ca000825cc2d
😎 Deploy Preview https://deploy-preview-2635--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.

@codecov-staging
Copy link

codecov-staging bot commented Feb 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2635   +/-   ##
=======================================
  Coverage        ?   89.31%           
=======================================
  Files           ?      849           
  Lines           ?    11632           
  Branches        ?     3034           
=======================================
  Hits            ?    10389           
  Misses          ?     1217           
  Partials        ?       26           
Files Coverage Δ
...ndlesTab/BundleContent/AssetsTable/AssetsTable.tsx 100.00% <100.00%> (ø)
...dlesTab/BundleContent/AssetsTable/ModulesTable.tsx 100.00% <100.00%> (ø)
...epoPage/BundlesTab/BundleContent/BundleContent.tsx 100.00% <100.00%> (ø)
.../services/bundleAnalysis/useBundleAssetModules.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 52.94% <ø> (?)
Layouts 19.33% <ø> (?)
Pages 88.08% <100.00%> (?)
Services 99.56% <100.00%> (?)
Shared 99.83% <ø> (?)
UI 93.97% <ø> (?)

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 adf8d2c...0b140c9. Read the comment docs.

Copy link

codecov bot commented Feb 29, 2024

Bundle Report

Changes will increase total bundle size by 5.61kB ⬆️

Bundle name Size Change
gazebo-production-array-push 5.91MB 5.61kB ⬆️

Copy link

codecov bot commented Feb 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.42%. Comparing base (adf8d2c) to head (0b140c9).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##            main   #2635      +/-   ##
========================================
+ Coverage   18.99   98.42   +79.43     
========================================
  Files        822     851      +29     
  Lines      11528   11637     +109     
  Branches    2971    2981      +10     
========================================
+ Hits        2189   11453    +9264     
+ Misses      9151     182    -8969     
+ Partials     188       2     -186     
Files Coverage Δ
...ndlesTab/BundleContent/AssetsTable/AssetsTable.tsx 100.00% <100.00%> (+100.00%) ⬆️
...dlesTab/BundleContent/AssetsTable/ModulesTable.tsx 100.00% <100.00%> (ø)
...epoPage/BundlesTab/BundleContent/BundleContent.tsx 100.00% <100.00%> (+100.00%) ⬆️
.../services/bundleAnalysis/useBundleAssetModules.tsx 100.00% <100.00%> (+100.00%) ⬆️

... and 657 files with indirect coverage changes

Components Coverage Δ
Assets 55.55% <ø> (+5.55%) ⬆️
Layouts 97.00% <ø> (+93.47%) ⬆️
Pages 99.34% <100.00%> (+99.05%) ⬆️
Services 99.61% <100.00%> (+72.11%) ⬆️
Shared 99.83% <ø> (+14.84%) ⬆️
UI 94.14% <ø> (+59.15%) ⬆️

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 adf8d2c...0b140c9. Read the comment docs.

@codecov-releaser
Copy link
Contributor

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

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.

code looks good

@spalmurray-codecov
Copy link
Contributor

I feel like at least the two right columns here should be aligned. The left one I think I could be convinced to leave it or align it. Lmk your thoughts

Screenshot 2024-02-29 at 09 37 47

@nicholas-codecov
Copy link
Contributor Author

I feel like at least the two right columns here should be aligned. The left one I think I could be convinced to leave it or align it. Lmk your thoughts

Screenshot 2024-02-29 at 09 37 47

I think for the name column it's fine, it aligns with the expander arrow which is part of the name column, I have fixed up the other two columns however.

@nicholas-codecov nicholas-codecov merged commit 9b973f2 into main Feb 29, 2024
53 checks passed
@nicholas-codecov nicholas-codecov deleted the gh-eng-1211-update-assets-table-to-have-modules-table-expander branch February 29, 2024 21:55
RulaKhaled pushed a commit that referenced this pull request Mar 8, 2024
Create new ModulesTable component and use in the Assets table in the updated bundles tab.

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

[Client] Update table to have expander to display a list of modules
3 participants