-
Notifications
You must be signed in to change notification settings - Fork 24
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 to send users developer instead of users basic #3702
Conversation
Bundle ReportChanges will increase total bundle size by 36 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: gazebo-production-esmAssets Changed:
Files in
view changes for bundle: gazebo-production-systemAssets Changed:
Files in
|
Bundle ReportChanges will increase total bundle size by 36 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: gazebo-staging-systemAssets Changed:
Files in
view changes for bundle: gazebo-staging-esmAssets Changed:
Files in
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #3702 +/- ##
=======================================
Coverage 98.73% 98.73%
=======================================
Files 828 828
Lines 14888 14888
Branches 4225 4225
=======================================
Hits 14699 14699
Misses 180 180
Partials 9 9
Continue to review full report in Codecov by Sentry.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #3702 +/- ##
=======================================
Coverage 98.73% 98.73%
=======================================
Files 828 828
Lines 14888 14888
Branches 4225 4225
=======================================
Hits 14699 14699
Misses 180 180
Partials 9 9
Continue to review full report in Codecov by Sentry.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #3702 +/- ##
=======================================
Coverage 98.73% 98.73%
=======================================
Files 828 828
Lines 14888 14888
Branches 4233 4225 -8
=======================================
Hits 14699 14699
Misses 180 180
Partials 9 9
Continue to review full report in Codecov by Sentry.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #3702 +/- ##
=======================================
Coverage 98.73% 98.73%
=======================================
Files 828 828
Lines 14888 14888
Branches 4225 4225
=======================================
Hits 14699 14699
Misses 180 180
Partials 9 9
Continue to review full report in Codecov by Sentry.
|
isFreePlan: planValue === Plans.USERS_BASIC, | ||
isFreePlan: | ||
planValue === Plans.USERS_DEVELOPER || | ||
planValue === Plans.USERS_BASIC, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if none of the tests are using USERS_BASIC anymore, can we clean up this check? Similarly with any other references we might have
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i guess it'll be good if i just add another test for basic? since we technically still support the plan
@@ -235,7 +235,7 @@ describe('PlanUpgradeTeam', () => { | |||
) | |||
} | |||
|
|||
describe('when rendered with basic plan', () => { | |||
describe('when rendered with developers plan', () => { | |||
it('shows the monthly marketing name', async () => { | |||
setup({ plan: mockPlanBasic }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: is it possible to do a find and replace for mockPlanBasic too? Or similar fuzzy find
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yah good call
@@ -323,7 +323,7 @@ describe('PlanUpgradeTeam', () => { | |||
}) | |||
}) | |||
|
|||
describe('when rendered with non-basic plan', () => { | |||
describe('when rendered with non-developers plan', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should really be "non-free" or "paid"
@@ -72,7 +72,7 @@ function SpecialOffer() { | |||
Yes, I'd like 6 months with 30% discount | |||
</Button> | |||
<A variant="black" to={{ pageName: 'downgradePlanPage' }}> | |||
No thanks, I'll proceed to the basic plan | |||
No thanks, I'll proceed to the developers plan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're proceeding with developers plan on downgrades
@@ -20,7 +20,7 @@ function cancelPlan({ provider, owner, planType }) { | |||
|
|||
export function useCancelPlan({ provider, owner }) { | |||
const queryClient = useQueryClient() | |||
const planType = Plans.USERS_BASIC | |||
const planType = Plans.USERS_DEVELOPER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're sending the new plan type here
✅ Deploy preview for gazebo ready!Previews expire after 1 month automatically.
|
Description
We're switching users to "developer" when canceling their current paid plan. This PR removes occurrences of "basic" where appropriate. However, the plan name will remain in the enum since we still support grandfathering the old free plan
Notable Changes
Screenshots
Nothing visual changes
Link to Sample Entry
Closes Add Reference to new Free Plan in Gazebo and Feature Flag
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.