Skip to content

Commit 2d81aa0

Browse files
committed
chore: Remove yearly subscription plan
1 parent 733db23 commit 2d81aa0

File tree

35 files changed

+68
-714
lines changed

35 files changed

+68
-714
lines changed

.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ E2E_TEST_ACCOUNT_BASE_PASSWORD=test-password
116116

117117
# Monitor Premium features
118118
# Link to start user on the subscription process. PREMIUM_ENABLED must be set to `true`.
119-
SUBSCRIPTION_BILLING_AMOUNT_YEARLY_US=13.37
120119
SUBSCRIPTION_BILLING_AMOUNT_MONTHLY_US=42.42
121120
SUBSCRIPTION_BILLING_AMOUNT_BUNDLE_INDIVIDUAL_MONTHLY_US=424
122121
SUBSCRIPTION_BILLING_AMOUNT_BUNDLE_MONTHLY_US=42

.env.local.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ NEXTAUTH_SECRET=r7nKAKDWV0Bl53GHgQ/kA/EJCM2zvuH+8G3wZtwbXEA=
4242
EMAIL_FROM="Mozilla Monitor Stage <[email protected]>"
4343
# Whether GA4 sends data or not. NOTE: must be set in build environment.
4444
NEXT_PUBLIC_GA4_DEBUG_MODE=true
45-
SUBSCRIPTION_BILLING_AMOUNT_YEARLY_US=13.37
4645
SUBSCRIPTION_BILLING_AMOUNT_MONTHLY_US=42.42
4746
SUBSCRIPTION_BILLING_AMOUNT_BUNDLE_INDIVIDUAL_MONTHLY_US=424
4847
SUBSCRIPTION_BILLING_AMOUNT_BUNDLE_MONTHLY_US=42

.github/workflows/functional_tests_pr.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ jobs:
8383
ONEREP_API_BASE: "http://localhost:6060/api/mock/onerep/"
8484
ONEREP_API_KEY: ${{ secrets.ONEREP_API_KEY }}
8585
PREMIUM_PLAN_ID_MONTHLY_US: ${{ secrets.STAGE_PREMIUM_PLAN_ID_MONTHLY_US }}
86-
PREMIUM_PLAN_ID_YEARLY_US: ${{ secrets.STAGE_PREMIUM_PLAN_ID_YEARLY_US }}
8786
PREMIUM_PRODUCT_ID: ${{ secrets.STAGE_PREMIUM_PRODUCT_ID }}
8887
REDIS_URL: "redis://redis.mock"
8988
- uses: actions/upload-artifact@v4

src/TestComponentWrapper.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export const TestComponentWrapper = (props: { children: ReactNode }) => {
2020
<CookiesProvider>
2121
<SubscriptionBillingProvider
2222
value={{
23-
yearly: 0,
2423
monthly: 0,
2524
bundle: {
2625
monthly: 0,

src/app/(proper_react)/(redesign)/(authenticated)/admin/feature-flags/page.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ export default async function FeatureFlagPage() {
3131
type: "monthly",
3232
enabledFeatureFlags: [],
3333
});
34-
const yearlySubscriptionUrl = getPremiumSubscriptionUrl({
35-
type: "yearly",
36-
enabledFeatureFlags: [],
37-
});
3834
const fxaSettingsUrl = process.env.FXA_SETTINGS_URL!;
3935

4036
if (!session?.user?.email || !session.user.subscriber?.id) {
@@ -86,7 +82,6 @@ export default async function FeatureFlagPage() {
8682
<Toolbar
8783
user={session.user}
8884
monthlySubscriptionUrl={monthlySubscriptionUrl}
89-
yearlySubscriptionUrl={yearlySubscriptionUrl}
9085
subscriptionBillingAmount={getSubscriptionBillingAmount()}
9186
fxaSettingsUrl={fxaSettingsUrl}
9287
// Since this page is only accessed by contributors, no need to load

src/app/(proper_react)/(redesign)/(authenticated)/user/(dashboard)/dashboard/DashboardTopBanner/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ export type DashboardTopBannerProps = {
2424
tabType: TabType;
2525
onShowFixed: () => void;
2626
monthlySubscriptionUrl: string;
27-
yearlySubscriptionUrl: string;
2827
subscriptionBillingAmount: {
29-
yearly: number;
3028
monthly: number;
3129
};
3230
totalNumberOfPerformedScans?: number;

src/app/(proper_react)/(redesign)/(authenticated)/user/(dashboard)/dashboard/View.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ export type Props = {
8181
isEligibleForFreeScan: boolean;
8282
isEligibleForPremium: boolean;
8383
monthlySubscriptionUrl: string;
84-
yearlySubscriptionUrl: string;
8584
subscriptionBillingAmount: {
86-
yearly: number;
8785
monthly: number;
8886
};
8987
fxaSettingsUrl: string;
@@ -536,7 +534,6 @@ export const View = (props: Props) => {
536534
<Toolbar
537535
user={props.user}
538536
monthlySubscriptionUrl={props.monthlySubscriptionUrl}
539-
yearlySubscriptionUrl={props.yearlySubscriptionUrl}
540537
subscriptionBillingAmount={props.subscriptionBillingAmount}
541538
fxaSettingsUrl={props.fxaSettingsUrl}
542539
lastScanDate={

src/app/(proper_react)/(redesign)/(authenticated)/user/(dashboard)/dashboard/[[...slug]]/page.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,6 @@ export default async function DashboardPage(props: Props) {
177177
type: "monthly",
178178
enabledFeatureFlags,
179179
});
180-
const yearlySubscriptionUrl = getPremiumSubscriptionUrl({
181-
type: "yearly",
182-
enabledFeatureFlags,
183-
});
184180
const fxaSettingsUrl = process.env.FXA_SETTINGS_URL!;
185181
const profileStats = await getProfilesStats();
186182
const additionalSubplatParams = await getAttributionsFromCookiesOrDb(
@@ -255,7 +251,6 @@ export default async function DashboardPage(props: Props) {
255251
userBreaches={subBreaches}
256252
enabledFeatureFlags={enabledFeatureFlags}
257253
monthlySubscriptionUrl={`${monthlySubscriptionUrl}${additionalSubplatParamsString}`}
258-
yearlySubscriptionUrl={`${yearlySubscriptionUrl}${additionalSubplatParamsString}`}
259254
subscriptionBillingAmount={getSubscriptionBillingAmount()}
260255
fxaSettingsUrl={fxaSettingsUrl}
261256
scanCount={scanCount}

0 commit comments

Comments
 (0)