Skip to content

Commit bbf7b60

Browse files
authored
Merge pull request #6155 from mozilla/mntor-4968
Remove yearly and bundle plans
2 parents 3483511 + e4eeef9 commit bbf7b60

File tree

55 files changed

+498
-3398
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+498
-3398
lines changed

.env

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

114114
# Monitor Premium features
115115
# Link to start user on the subscription process. PREMIUM_ENABLED must be set to `true`.
116-
SUBSCRIPTION_BILLING_AMOUNT_YEARLY_US=13.37
117116
SUBSCRIPTION_BILLING_AMOUNT_MONTHLY_US=42.42
118117
SUBSCRIPTION_BILLING_AMOUNT_BUNDLE_INDIVIDUAL_MONTHLY_US=424
119118
SUBSCRIPTION_BILLING_AMOUNT_BUNDLE_MONTHLY_US=42

.env.local.example

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

functional-tests/fixtures/baseTest.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export const defaultLocalForcedFeatureFlags: FeatureFlagName[] = [
2222
"EditScanProfileDetails",
2323
"SubPlat3",
2424
"Announcements",
25-
"PrivacyProductsBundle",
2625
];
2726

2827
const test = baseTest.extend<{

functional-tests/tests/subscriptions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { FeatureFlagName } from "../../src/db/tables/featureFlags";
1010
const extraFeatureFlags: FeatureFlagName[] = ["GA4SubscriptionEvents"];
1111
test.use({ extraLocalForcedFeatureFlags: extraFeatureFlags });
1212

13-
const productPlans = ["Monitor Plus", "Privacy Protection Plan"];
13+
const productPlans = ["Monitor Plus"];
1414

1515
// General tests to confirm the E2E test setup works as expected
1616
test.describe(`Verify subscription flows [${process.env.E2E_TEST_ENV}]`, () => {

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/(bundle)/bundle/onboarding/BundleOnboardingView.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ type Story = StoryObj<typeof BundleOnboardingView>;
1717
export const BundleOnboarding: Story = {
1818
args: {
1919
l10n: getL10n(),
20-
enabledFeatureFlags: ["PrivacyProductsBundle"],
2120
},
2221
};

src/app/(bundle)/bundle/onboarding/page.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
} from "../../../functions/l10n/serverComponents";
1212
import { BundleOnboardingView } from "./BundleOnboardingView";
1313
import { getEnabledFeatureFlags } from "../../../../db/tables/featureFlags";
14-
import NotFound from "../../../not-found";
1514
import { getServerSession } from "../../../functions/server/getServerSession";
1615

1716
export default async function Page() {
@@ -24,9 +23,7 @@ export default async function Page() {
2423
}
2524
: { isSignedOut: true },
2625
);
27-
if (!enabledFeatureFlags.includes("PrivacyProductsBundle")) {
28-
return NotFound();
29-
}
26+
3027
const headersList = await headers();
3128
const countryCode = getCountryCode(headersList);
3229
const l10n = getL10n(await getAcceptLangHeaderInServerComponents());

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/Dashboard.stories.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,10 @@ const DashboardWrapper = (props: DashboardWrapperProps) => {
234234
isEligibleForPremium={props.countryCode === "us"}
235235
isEligibleForFreeScan={props.countryCode === "us" && !scanData.scan}
236236
monthlySubscriptionUrl=""
237-
yearlySubscriptionUrl=""
238237
fxaSettingsUrl=""
239238
scanCount={scanCount}
240239
totalNumberOfPerformedScans={props.totalNumberOfPerformedScans}
241240
subscriptionBillingAmount={{
242-
yearly: 13.37,
243241
monthly: 42.42,
244242
}}
245243
isNewUser={true}

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,10 @@ const DashboardWrapper = (props: DashboardWrapperProps) => {
196196
isEligibleForPremium={props.countryCode === "us"}
197197
isEligibleForFreeScan={props.countryCode === "us" && !scanData.scan}
198198
monthlySubscriptionUrl=""
199-
yearlySubscriptionUrl=""
200199
fxaSettingsUrl=""
201200
scanCount={scanCount}
202201
totalNumberOfPerformedScans={props.totalNumberOfPerformedScans}
203202
subscriptionBillingAmount={{
204-
yearly: 13.37,
205203
monthly: 42.42,
206204
}}
207205
isNewUser={true}

0 commit comments

Comments
 (0)