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: change planName to value for planData hook #2359

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

adrian-codecov
Copy link
Contributor

Description

We're changing the planName resolver value for plan data to value. Historically, we've used value, and although we ultimately want to use planName, maintaining both keys/utils/proptypes/revolving logic with different key names can be hard to follow, specially with those files not using TS atm.

Notable Changes

  • Change usePlanData hook to use value over planName
  • Change every use of planName to use value throughout the codebase + tests

Link to Sample Entry

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@netlify
Copy link

netlify bot commented Oct 30, 2023

Deploy Preview for gazebo-staging ready!

Name Link
🔨 Latest commit f5fea6b
🔍 Latest deploy log https://app.netlify.com/sites/gazebo-staging/deploys/65401dbbe5957400084e5ee3
😎 Deploy Preview https://deploy-preview-2359--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 Report

Merging #2359 (f5fea6b) into main (7007b98) will increase coverage by 61.35%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #2359       +/-   ##
===========================================
+ Coverage   35.79%   97.15%   +61.35%     
===========================================
  Files         700      725       +25     
  Lines        8623     8681       +58     
  Branches     2099     2132       +33     
===========================================
+ Hits         3087     8434     +5347     
+ Misses       5438      244     -5194     
+ Partials       98        3       -95     
Files Coverage Δ
...rc/pages/DefaultOrgSelector/DefaultOrgSelector.jsx 100.00% <100.00%> (+100.00%) ⬆️
...rsPage/MembersActivation/Activation/Activation.jsx 100.00% <100.00%> (+100.00%) ⬆️
...embersPage/MembersActivation/MembersActivation.jsx 100.00% <100.00%> (+100.00%) ⬆️
...ges/OwnerPage/Tabs/TrialReminder/TrialReminder.tsx 100.00% <100.00%> (+100.00%) ⬆️
...anPage/subRoutes/CancelPlanPage/CancelPlanPage.jsx 100.00% <100.00%> (+100.00%) ⬆️
...Plan/CurrentPlanCard/FreePlanCard/FreePlanCard.jsx 100.00% <100.00%> (+100.00%) ⬆️
...eePlanCard/ProPlanSubheading/ProPlanSubheading.tsx 100.00% <100.00%> (+100.00%) ⬆️
...tPlanCard/shared/ActionsBilling/ActionsBilling.jsx 100.00% <100.00%> (+100.00%) ⬆️
...outes/InvoiceDetailsPage/sections/InvoiceItems.jsx 100.00% <ø> (+100.00%) ⬆️
src/services/account/usePlanData.ts 100.00% <ø> (+8.33%) ⬆️
... and 1 more

... and 427 files with indirect coverage changes


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 7007b98...f5fea6b. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Oct 30, 2023

Codecov Report

Merging #2359 (f5fea6b) into main (7007b98) will increase coverage by 61.35%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #2359       +/-   ##
===========================================
+ Coverage   35.79%   97.15%   +61.35%     
===========================================
  Files         700      725       +25     
  Lines        8623     8681       +58     
  Branches     2150     2099       -51     
===========================================
+ Hits         3087     8434     +5347     
+ Misses       5433      245     -5188     
+ Partials      103        2      -101     
Files Coverage Δ
...rc/pages/DefaultOrgSelector/DefaultOrgSelector.jsx 100.00% <100.00%> (+100.00%) ⬆️
...rsPage/MembersActivation/Activation/Activation.jsx 100.00% <100.00%> (+100.00%) ⬆️
...embersPage/MembersActivation/MembersActivation.jsx 100.00% <100.00%> (+100.00%) ⬆️
...ges/OwnerPage/Tabs/TrialReminder/TrialReminder.tsx 100.00% <100.00%> (+100.00%) ⬆️
...anPage/subRoutes/CancelPlanPage/CancelPlanPage.jsx 100.00% <100.00%> (+100.00%) ⬆️
...Plan/CurrentPlanCard/FreePlanCard/FreePlanCard.jsx 100.00% <100.00%> (+100.00%) ⬆️
...eePlanCard/ProPlanSubheading/ProPlanSubheading.tsx 100.00% <100.00%> (+100.00%) ⬆️
...tPlanCard/shared/ActionsBilling/ActionsBilling.jsx 100.00% <100.00%> (+100.00%) ⬆️
...outes/InvoiceDetailsPage/sections/InvoiceItems.jsx 100.00% <ø> (+100.00%) ⬆️
src/services/account/usePlanData.ts 100.00% <ø> (+8.33%) ⬆️
... and 1 more

... and 427 files with indirect coverage changes


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 7007b98...f5fea6b. Read the comment docs.

@codecov-public-qa
Copy link

codecov-public-qa bot commented Oct 30, 2023

Codecov Report

Merging #2359 (f5fea6b) into main (7007b98) will increase coverage by 61.35%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #2359       +/-   ##
===========================================
+ Coverage   35.79%   97.15%   +61.35%     
===========================================
  Files         700      725       +25     
  Lines        8623     8681       +58     
  Branches     2144     2144               
===========================================
+ Hits         3087     8434     +5347     
+ Misses       5433      244     -5189     
+ Partials      103        3      -100     
Files Coverage Δ
...rc/pages/DefaultOrgSelector/DefaultOrgSelector.jsx 100.00% <100.00%> (+100.00%) ⬆️
...rsPage/MembersActivation/Activation/Activation.jsx 100.00% <100.00%> (+100.00%) ⬆️
...embersPage/MembersActivation/MembersActivation.jsx 100.00% <100.00%> (+100.00%) ⬆️
...ges/OwnerPage/Tabs/TrialReminder/TrialReminder.tsx 100.00% <100.00%> (+100.00%) ⬆️
...anPage/subRoutes/CancelPlanPage/CancelPlanPage.jsx 100.00% <100.00%> (+100.00%) ⬆️
...Plan/CurrentPlanCard/FreePlanCard/FreePlanCard.jsx 100.00% <100.00%> (+100.00%) ⬆️
...eePlanCard/ProPlanSubheading/ProPlanSubheading.tsx 100.00% <100.00%> (+100.00%) ⬆️
...tPlanCard/shared/ActionsBilling/ActionsBilling.jsx 100.00% <100.00%> (+100.00%) ⬆️
...outes/InvoiceDetailsPage/sections/InvoiceItems.jsx 100.00% <ø> (+100.00%) ⬆️
src/services/account/usePlanData.ts 100.00% <ø> (+8.33%) ⬆️
... and 1 more

... and 427 files with indirect coverage changes


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 7007b98...f5fea6b. Read the comment docs.

@codecov
Copy link

codecov bot commented Oct 30, 2023

Codecov Report

Merging #2359 (f5fea6b) into main (7007b98) will increase coverage by 61.35%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##            main   #2359      +/-   ##
========================================
+ Coverage   35.80   97.15   +61.35     
========================================
  Files        700     725      +25     
  Lines       8623    8681      +58     
  Branches    2144    2150       +6     
========================================
+ Hits        3087    8434    +5347     
+ Misses      5438     244    -5194     
+ Partials      98       3      -95     
Files Coverage Δ
...rc/pages/DefaultOrgSelector/DefaultOrgSelector.jsx 100.00% <100.00%> (+100.00%) ⬆️
...rsPage/MembersActivation/Activation/Activation.jsx 100.00% <100.00%> (+100.00%) ⬆️
...embersPage/MembersActivation/MembersActivation.jsx 100.00% <100.00%> (+100.00%) ⬆️
...ges/OwnerPage/Tabs/TrialReminder/TrialReminder.tsx 100.00% <100.00%> (+100.00%) ⬆️
...anPage/subRoutes/CancelPlanPage/CancelPlanPage.jsx 100.00% <100.00%> (+100.00%) ⬆️
...Plan/CurrentPlanCard/FreePlanCard/FreePlanCard.jsx 100.00% <100.00%> (+100.00%) ⬆️
...eePlanCard/ProPlanSubheading/ProPlanSubheading.tsx 100.00% <100.00%> (+100.00%) ⬆️
...tPlanCard/shared/ActionsBilling/ActionsBilling.jsx 100.00% <100.00%> (+100.00%) ⬆️
...outes/InvoiceDetailsPage/sections/InvoiceItems.jsx 100.00% <ø> (+100.00%) ⬆️
src/services/account/usePlanData.ts 100.00% <ø> (+8.33%) ⬆️
... and 1 more

... and 427 files with indirect coverage changes


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 7007b98...f5fea6b. Read the comment docs.

Copy link
Contributor

@rohitvinnakota-codecov rohitvinnakota-codecov left a comment

Choose a reason for hiding this comment

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

👍 consistency is good

@adrian-codecov adrian-codecov merged commit ba0b464 into main Oct 31, 2023
32 checks passed
@adrian-codecov adrian-codecov deleted the 719-change-planname-for-value branch October 31, 2023 00:34
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.

2 participants