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: Move bundle tab trend dropdown #3019

Merged
merged 6 commits into from
Jul 17, 2024

Conversation

nicholas-codecov
Copy link
Contributor

Description

This PR adjusts the trend dropdown on the bundles tab to be inline with the toggle chart button so that the user can still change the trend which applies to the assets table. Also included is a small tweak to remove passing an artificial date and instead pass null which the API will interpret as the first data point.

Notable Changes

  • Rework ToggleElement to allow element to be placed inline
  • Move TrendDropdown from BundleChart to BundleContent
  • Pass null for after instead of artificial date - the change to adjust the query to accept this was already done
  • Create/Update tests

Screenshots

Screenshot 2024-07-16 at 13 37 08

Screenshot 2024-07-16 at 13 37 01

@codecov-qa
Copy link

codecov-qa bot commented Jul 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.35%. Comparing base (f45efbf) to head (57750fd).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3019   +/-   ##
=======================================
  Coverage   98.35%   98.35%           
=======================================
  Files         910      910           
  Lines       13535    13535           
  Branches     3588     3588           
=======================================
  Hits        13313    13313           
  Misses        218      218           
  Partials        4        4           
Files Coverage Δ
.../BundleContent/AssetsTable/useBundleAssetsTable.ts 100.00% <100.00%> (ø)
...ndlesTab/BundleContent/BundleChart/BundleChart.tsx 100.00% <ø> (ø)
...ab/BundleContent/BundleChart/useBundleChartData.ts 100.00% <100.00%> (ø)
...epoPage/BundlesTab/BundleContent/BundleContent.tsx 100.00% <ø> (ø)
...epoPage/BundlesTab/BundleContent/ToggleElement.tsx 100.00% <100.00%> (ø)
...epoPage/BundlesTab/BundleContent/TrendDropdown.tsx 100.00% <ø> (ø)
src/services/bundleAnalysis/useBundleAssets.tsx 100.00% <ø> (ø)
src/services/bundleAnalysis/useBundleTrendData.tsx 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

Components Coverage Δ
Assets 53.84% <ø> (ø)
Layouts 97.68% <ø> (ø)
Pages 99.15% <100.00%> (ø)
Services 99.47% <ø> (ø)
Shared 99.69% <ø> (ø)
UI 94.28% <ø> (ø)

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 f45efbf...57750fd. Read the comment docs.

Copy link

codecov-public-qa bot commented Jul 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.35%. Comparing base (f45efbf) to head (57750fd).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3019   +/-   ##
=======================================
  Coverage   98.35%   98.35%           
=======================================
  Files         910      910           
  Lines       13535    13535           
  Branches     3588     3664   +76     
=======================================
  Hits        13313    13313           
  Misses        218      218           
  Partials        4        4           
Files Coverage Δ
.../BundleContent/AssetsTable/useBundleAssetsTable.ts 100.00% <100.00%> (ø)
...ndlesTab/BundleContent/BundleChart/BundleChart.tsx 100.00% <ø> (ø)
...ab/BundleContent/BundleChart/useBundleChartData.ts 100.00% <100.00%> (ø)
...epoPage/BundlesTab/BundleContent/BundleContent.tsx 100.00% <ø> (ø)
...epoPage/BundlesTab/BundleContent/ToggleElement.tsx 100.00% <100.00%> (ø)
...epoPage/BundlesTab/BundleContent/TrendDropdown.tsx 100.00% <ø> (ø)
src/services/bundleAnalysis/useBundleAssets.tsx 100.00% <ø> (ø)
src/services/bundleAnalysis/useBundleTrendData.tsx 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

Components Coverage Δ
Assets 53.84% <ø> (ø)
Layouts 97.68% <ø> (ø)
Pages 99.15% <100.00%> (ø)
Services 99.47% <ø> (ø)
Shared 99.69% <ø> (ø)
UI 94.28% <ø> (ø)

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 f45efbf...57750fd. Read the comment docs.

@codecov-notifications
Copy link

codecov-notifications bot commented Jul 16, 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    #3019   +/-   ##
=======================================
  Coverage   98.35%   98.35%           
=======================================
  Files         910      910           
  Lines       13535    13535           
  Branches     3659     3638   -21     
=======================================
  Hits        13313    13313           
  Misses        218      218           
  Partials        4        4           
Files Coverage Δ
.../BundleContent/AssetsTable/useBundleAssetsTable.ts 100.00% <100.00%> (ø)
...ndlesTab/BundleContent/BundleChart/BundleChart.tsx 100.00% <ø> (ø)
...ab/BundleContent/BundleChart/useBundleChartData.ts 100.00% <100.00%> (ø)
...epoPage/BundlesTab/BundleContent/BundleContent.tsx 100.00% <ø> (ø)
...epoPage/BundlesTab/BundleContent/ToggleElement.tsx 100.00% <100.00%> (ø)
...epoPage/BundlesTab/BundleContent/TrendDropdown.tsx 100.00% <ø> (ø)
src/services/bundleAnalysis/useBundleAssets.tsx 100.00% <ø> (ø)
src/services/bundleAnalysis/useBundleTrendData.tsx 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

Components Coverage Δ
Assets 53.84% <ø> (ø)
Layouts 97.68% <ø> (ø)
Pages 99.15% <100.00%> (ø)
Services 99.47% <ø> (ø)
Shared 99.69% <ø> (ø)
UI 94.28% <ø> (ø)

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 f45efbf...57750fd. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented Jul 16, 2024

Bundle Report

Changes will increase total bundle size by 91 bytes ⬆️

Bundle name Size Change
gazebo-staging-array-push 6.07MB 91 bytes ⬆️

Copy link

codecov bot commented Jul 16, 2024

Bundle Report

Changes will increase total bundle size by 91 bytes ⬆️

Bundle name Size Change
gazebo-production-array-push 6.07MB 91 bytes ⬆️

Copy link

codecov bot commented Jul 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.35%. Comparing base (f45efbf) to head (57750fd).
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      #3019   +/-   ##
===========================================
  Coverage   98.35000   98.35000           
===========================================
  Files           910        910           
  Lines         13535      13535           
  Branches       3659       3664    +5     
===========================================
  Hits          13313      13313           
  Misses          218        218           
  Partials          4          4           
Files Coverage Δ
.../BundleContent/AssetsTable/useBundleAssetsTable.ts 100.00% <100.00%> (ø)
...ndlesTab/BundleContent/BundleChart/BundleChart.tsx 100.00% <ø> (ø)
...ab/BundleContent/BundleChart/useBundleChartData.ts 100.00% <100.00%> (ø)
...epoPage/BundlesTab/BundleContent/BundleContent.tsx 100.00% <ø> (ø)
...epoPage/BundlesTab/BundleContent/ToggleElement.tsx 100.00% <100.00%> (ø)
...epoPage/BundlesTab/BundleContent/TrendDropdown.tsx 100.00% <ø> (ø)
src/services/bundleAnalysis/useBundleAssets.tsx 100.00% <ø> (ø)
src/services/bundleAnalysis/useBundleTrendData.tsx 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

Components Coverage Δ
Assets 53.84% <ø> (ø)
Layouts 97.68% <ø> (ø)
Pages 99.15% <100.00%> (ø)
Services 99.47% <ø> (ø)
Shared 99.69% <ø> (ø)
UI 94.28% <ø> (ø)

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 f45efbf...57750fd. Read the comment docs.

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Jul 16, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
7bdc696 Tue, 16 Jul 2024 16:55:02 GMT Expired Expired
57750fd Wed, 17 Jul 2024 12:12:43 GMT Cloud Enterprise

<span className="transition-transform duration-200">
<Icon size="md" variant="solid" name="chevronRight" />
</span>
{isHidden ? showElement : hideElement}
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a little confusing, isHidden == true then show element?

Copy link
Contributor

Choose a reason for hiding this comment

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

I understand the intent, but maybe there's a way to modify the wording here a bit 🤔

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.

1 comment, not blocking though

@nicholas-codecov nicholas-codecov added this pull request to the merge queue Jul 17, 2024
Merged via the queue into main with commit 0f04370 Jul 17, 2024
61 checks passed
@nicholas-codecov nicholas-codecov deleted the feat-move-bundle-tab-trend-dropdown branch July 17, 2024 13:43
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