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 AssetsTable to conditionally render file path column #3565

Conversation

nicholas-codecov
Copy link
Contributor

Description

Note

Requires (contains code from) #3535 - as it needs to be merged first

This PR adds in a new conditionally rendered column titled "File path" for a given set of supported plugins.

Closes codecov/engineering-team#2958

Notable Changes

  • Create new empty table for file path supported plugins
  • Add in x/24 widths to Tailwind config
    • Used only for the table as i needed more widths to get things fitting correctly
    • Should only be used in break-glass cases
  • Update AssetsTable with new column
  • Create/Update tests

Screenshots

File path supported plugin (trust that there are actual values in the column 😅):

Screenshot 2024-12-11 at 08 54 43

Non-file path supported plugin:

Screenshot 2024-12-11 at 08 55 06

@codecov-staging
Copy link

codecov-staging bot commented Dec 11, 2024

Bundle Report

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

Detailed changes
Bundle name Size Change
gazebo-staging-system-esm 5.72MB 3.1kB (0.05%) ⬆️
gazebo-staging-system 5.67MB 2.93kB (0.05%) ⬆️

Copy link

codecov bot commented Dec 11, 2024

Bundle Report

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

Detailed changes
Bundle name Size Change
gazebo-production-system 5.67MB 2.93kB (0.05%) ⬆️
gazebo-production-system-esm 5.72MB 3.1kB (0.05%) ⬆️

@codecov-notifications
Copy link

codecov-notifications bot commented Dec 11, 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    #3565   +/-   ##
=======================================
  Coverage   98.91%   98.91%           
=======================================
  Files         806      806           
  Lines       14478    14498   +20     
  Branches     4105     4112    +7     
=======================================
+ Hits        14321    14341   +20     
  Misses        150      150           
  Partials        7        7           
Files with missing lines Coverage Δ
...ndlesTab/BundleContent/AssetsTable/AssetsTable.tsx 100.00% <100.00%> (ø)
...undlesTab/BundleContent/AssetsTable/EmptyTable.tsx 100.00% <100.00%> (ø)
...dlesTab/BundleContent/AssetsTable/ModulesTable.tsx 100.00% <100.00%> (ø)
src/shared/utils/bundleAnalysis.ts 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.60% <100.00%> (+<0.01%) ⬆️
Services 99.36% <ø> (ø)
Shared 99.32% <100.00%> (+<0.01%) ⬆️
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 c05416a...bc5ee4b. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.91%. Comparing base (c05416a) to head (bc5ee4b).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3565   +/-   ##
=======================================
  Coverage   98.91%   98.91%           
=======================================
  Files         806      806           
  Lines       14478    14498   +20     
  Branches     4112     4112           
=======================================
+ Hits        14321    14341   +20     
  Misses        150      150           
  Partials        7        7           
Files with missing lines Coverage Δ
...ndlesTab/BundleContent/AssetsTable/AssetsTable.tsx 100.00% <100.00%> (ø)
...undlesTab/BundleContent/AssetsTable/EmptyTable.tsx 100.00% <100.00%> (ø)
...dlesTab/BundleContent/AssetsTable/ModulesTable.tsx 100.00% <100.00%> (ø)
src/shared/utils/bundleAnalysis.ts 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.60% <100.00%> (+<0.01%) ⬆️
Services 99.36% <ø> (ø)
Shared 99.32% <100.00%> (+<0.01%) ⬆️
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 c05416a...bc5ee4b. Read the comment docs.

Copy link

codecov-public-qa bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.91%. Comparing base (c05416a) to head (bc5ee4b).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3565   +/-   ##
=======================================
  Coverage   98.91%   98.91%           
=======================================
  Files         806      806           
  Lines       14478    14498   +20     
  Branches     4105     4119   +14     
=======================================
+ Hits        14321    14341   +20     
  Misses        150      150           
  Partials        7        7           
Files with missing lines Coverage Δ
...ndlesTab/BundleContent/AssetsTable/AssetsTable.tsx 100.00% <100.00%> (ø)
...undlesTab/BundleContent/AssetsTable/EmptyTable.tsx 100.00% <100.00%> (ø)
...dlesTab/BundleContent/AssetsTable/ModulesTable.tsx 100.00% <100.00%> (ø)
src/shared/utils/bundleAnalysis.ts 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.60% <100.00%> (+<0.01%) ⬆️
Services 99.36% <ø> (ø)
Shared 99.32% <100.00%> (+<0.01%) ⬆️
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 c05416a...bc5ee4b. Read the comment docs.

Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.91%. Comparing base (c05416a) to head (bc5ee4b).
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    #3565   +/-   ##
=======================================
  Coverage   98.91%   98.91%           
=======================================
  Files         806      806           
  Lines       14478    14498   +20     
  Branches     4105     4112    +7     
=======================================
+ Hits        14321    14341   +20     
  Misses        150      150           
  Partials        7        7           
Files with missing lines Coverage Δ
...ndlesTab/BundleContent/AssetsTable/AssetsTable.tsx 100.00% <100.00%> (ø)
...undlesTab/BundleContent/AssetsTable/EmptyTable.tsx 100.00% <100.00%> (ø)
...dlesTab/BundleContent/AssetsTable/ModulesTable.tsx 100.00% <100.00%> (ø)
src/shared/utils/bundleAnalysis.ts 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.60% <100.00%> (+<0.01%) ⬆️
Services 99.36% <ø> (ø)
Shared 99.32% <100.00%> (+<0.01%) ⬆️
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 c05416a...bc5ee4b. Read the comment docs.

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Dec 11, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
38e5544 Wed, 11 Dec 2024 16:11:44 GMT Expired Expired
957fd88 Thu, 12 Dec 2024 20:35:05 GMT Expired Expired
bc5ee4b Thu, 12 Dec 2024 21:01:01 GMT Cloud Enterprise

@nicholas-codecov nicholas-codecov force-pushed the gh-eng-2958-update-assets-table-to-conditionally-render-file-path-column branch from 38e5544 to 957fd88 Compare December 12, 2024 20:28
useFlags: vi.fn().mockReturnValue({ renderBundleFilePathColumn: true }),
}))

vi.mock('shared/featureFlags', async (importOriginal) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

lint error for unused variable

Copy link
Contributor

@calvin-codecov calvin-codecov left a comment

Choose a reason for hiding this comment

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

1 lint fix. LGTM besides that

@nicholas-codecov nicholas-codecov added this pull request to the merge queue Dec 13, 2024
Merged via the queue into main with commit d09206c Dec 13, 2024
62 checks passed
@nicholas-codecov nicholas-codecov deleted the gh-eng-2958-update-assets-table-to-conditionally-render-file-path-column branch December 13, 2024 14:37
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.

[UI] Update AssetsTable to conditionally display path column
3 participants