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: Use new chart library for analytics page #3464

Merged

Conversation

nicholas-codecov
Copy link
Contributor

Description

This PR updates the chart being used on the analytics page to use our new chart setup. This PR also includes TS refactors for everything that had to be changed.

Ticket: codecov/engineering-team#2770

Notable Changes

  • Update analytics page Chart to use new chart library and refactor to TS
  • Update useCoverage to TS, and reduce the overall amount of things as the new chart library doesn't require as much data as the previous setup
  • Remove unused prop-type from ChartSelectors (cleaning up the console, and test output)
  • Update useReposCoverageMeasurements to TS
  • Create/Update tests

Screenshots

Screenshot 2024-11-05 at 07 20 20

Screenshot 2024-11-05 at 07 21 11

Screenshot 2024-11-05 at 07 20 37

Copy link

codecov bot commented Nov 5, 2024

Bundle Report

Changes will decrease total bundle size by 1.1kB (-0.01%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 5.75MB 554 bytes (-0.01%) ⬇️
gazebo-production-system-esm 5.8MB 542 bytes (-0.01%) ⬇️

@codecov-staging
Copy link

codecov-staging bot commented Nov 5, 2024

Bundle Report

Changes will decrease total bundle size by 1.1kB (-0.01%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-system-esm* 5.8MB 542 bytes (-0.01%) ⬇️
gazebo-staging-system 5.75MB 554 bytes (-0.01%) ⬇️

ℹ️ *Bundle size includes cached data from a previous commit

Copy link

codecov bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 95.55556% with 2 lines in your changes missing coverage. Please review.

Project coverage is 99.07%. Comparing base (96f88d8) to head (fea7d53).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/pages/AnalyticsPage/Chart/Chart.tsx 87.50% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3464      +/-   ##
==========================================
- Coverage   99.09%   99.07%   -0.02%     
==========================================
  Files         804      804              
  Lines       14187    14183       -4     
  Branches     4024     4021       -3     
==========================================
- Hits        14058    14052       -6     
- Misses        120      122       +2     
  Partials        9        9              
Files with missing lines Coverage Δ
src/pages/AnalyticsPage/AnalyticsPage.jsx 100.00% <ø> (ø)
src/pages/AnalyticsPage/Chart/useCoverage.ts 100.00% <100.00%> (ø)
...es/AnalyticsPage/ChartSelectors/ChartSelectors.jsx 100.00% <ø> (ø)
...rc/services/charts/useReposCoverageMeasurements.ts 100.00% <100.00%> (ø)
src/shared/utils/timeseriesCharts.ts 100.00% <ø> (ø)
src/pages/AnalyticsPage/Chart/Chart.tsx 87.50% <87.50%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.77% <94.44%> (-0.03%) ⬇️
Services 99.36% <100.00%> (+<0.01%) ⬆️
Shared 99.74% <ø> (ø)
UI 99.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 96f88d8...fea7d53. Read the comment docs.

@codecov-notifications
Copy link

codecov-notifications bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 95.55556% with 2 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/pages/AnalyticsPage/Chart/Chart.tsx 87.50% 2 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3464      +/-   ##
==========================================
- Coverage   99.09%   99.07%   -0.02%     
==========================================
  Files         804      804              
  Lines       14187    14183       -4     
  Branches     4017     4021       +4     
==========================================
- Hits        14058    14052       -6     
- Misses        120      122       +2     
  Partials        9        9              
Files with missing lines Coverage Δ
src/pages/AnalyticsPage/AnalyticsPage.jsx 100.00% <ø> (ø)
src/pages/AnalyticsPage/Chart/useCoverage.ts 100.00% <100.00%> (ø)
...es/AnalyticsPage/ChartSelectors/ChartSelectors.jsx 100.00% <ø> (ø)
...rc/services/charts/useReposCoverageMeasurements.ts 100.00% <100.00%> (ø)
src/shared/utils/timeseriesCharts.ts 100.00% <ø> (ø)
src/pages/AnalyticsPage/Chart/Chart.tsx 87.50% <87.50%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.77% <94.44%> (-0.03%) ⬇️
Services 99.36% <100.00%> (+<0.01%) ⬆️
Shared 99.74% <ø> (ø)
UI 99.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 96f88d8...fea7d53. Read the comment docs.

Copy link

codecov-public-qa bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 95.55556% with 2 lines in your changes missing coverage. Please review.

Project coverage is 99.07%. Comparing base (96f88d8) to head (fea7d53).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3464      +/-   ##
==========================================
- Coverage   99.09%   99.07%   -0.02%     
==========================================
  Files         804      804              
  Lines       14187    14183       -4     
  Branches     4017     4021       +4     
==========================================
- Hits        14058    14052       -6     
- Misses        120      122       +2     
  Partials        9        9              
Files Coverage Δ
src/pages/AnalyticsPage/AnalyticsPage.jsx 100.00% <ø> (ø)
src/pages/AnalyticsPage/Chart/useCoverage.ts 100.00% <100.00%> (ø)
...es/AnalyticsPage/ChartSelectors/ChartSelectors.jsx 100.00% <ø> (ø)
...rc/services/charts/useReposCoverageMeasurements.ts 100.00% <100.00%> (ø)
src/shared/utils/timeseriesCharts.ts 100.00% <ø> (ø)
src/pages/AnalyticsPage/Chart/Chart.tsx 87.50% <87.50%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.77% <94.44%> (-0.03%) ⬇️
Services 99.36% <100.00%> (+<0.01%) ⬆️
Shared 99.74% <ø> (ø)
UI 99.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 96f88d8...fea7d53. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 95.55556% with 2 lines in your changes missing coverage. Please review.

Project coverage is 99.07%. Comparing base (96f88d8) to head (fea7d53).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/pages/AnalyticsPage/Chart/Chart.tsx 87.50% 2 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3464      +/-   ##
==========================================
- Coverage   99.09%   99.07%   -0.02%     
==========================================
  Files         804      804              
  Lines       14187    14183       -4     
  Branches     4024     4014      -10     
==========================================
- Hits        14058    14052       -6     
- Misses        120      122       +2     
  Partials        9        9              
Files with missing lines Coverage Δ
src/pages/AnalyticsPage/AnalyticsPage.jsx 100.00% <ø> (ø)
src/pages/AnalyticsPage/Chart/useCoverage.ts 100.00% <100.00%> (ø)
...es/AnalyticsPage/ChartSelectors/ChartSelectors.jsx 100.00% <ø> (ø)
...rc/services/charts/useReposCoverageMeasurements.ts 100.00% <100.00%> (ø)
src/shared/utils/timeseriesCharts.ts 100.00% <ø> (ø)
src/pages/AnalyticsPage/Chart/Chart.tsx 87.50% <87.50%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.77% <94.44%> (-0.03%) ⬇️
Services 99.36% <100.00%> (+<0.01%) ⬆️
Shared 99.74% <ø> (ø)
UI 99.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 96f88d8...fea7d53. Read the comment docs.

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Nov 5, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
781de1f Tue, 05 Nov 2024 11:38:36 GMT Expired Expired
03f9fbd Tue, 05 Nov 2024 12:15:54 GMT Expired Expired
baacb51 Fri, 08 Nov 2024 16:03:28 GMT Expired Expired
fea7d53 Fri, 08 Nov 2024 18:21:28 GMT Cloud Enterprise

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.

lgtm couple questions

@spalmurray-codecov
Copy link
Contributor

These charts are so much better 😂

@nicholas-codecov nicholas-codecov added this pull request to the merge queue Nov 8, 2024
Merged via the queue into main with commit 416c9f5 Nov 8, 2024
50 of 62 checks passed
@nicholas-codecov nicholas-codecov deleted the feat-gh-eng-2770-create-new-chart-for-analytics-page branch November 8, 2024 18:44
nicholas-codecov added a commit that referenced this pull request Nov 8, 2024
@nicholas-codecov nicholas-codecov restored the feat-gh-eng-2770-create-new-chart-for-analytics-page branch November 8, 2024 18:54
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.

4 participants