Skip to content

Commit 7871367

Browse files
committed
chore: Remove discount coupon UI
1 parent 0f2cb8f commit 7871367

File tree

13 files changed

+26
-595
lines changed

13 files changed

+26
-595
lines changed

functional-tests/fixtures/baseTest.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { getBaseTestEnvUrl } from "../utils/environment";
1010
// Feature flags that are enabled by default locally
1111
export const defaultLocalForcedFeatureFlags: FeatureFlagName[] = [
1212
"CancellationFlow",
13-
"DiscountCouponNextThreeMonths",
1413
"AutomaticRemovalCsatSurvey",
1514
"AdditionalRemovalStatuses",
1615
"PromptNoneAuthFlow",

src/app/(proper_react)/(redesign)/(authenticated)/admin/emails/EmailTrigger.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
triggerFirstDataBrokerRemovalFixed,
1313
triggerMonthlyActivityFree,
1414
triggerMonthlyActivityPlus,
15-
triggerPlusExpirationEmail,
1615
triggerSignupReportEmail,
1716
triggerVerificationEmail,
1817
} from "./actions";
@@ -37,10 +36,6 @@ export const EmailTrigger = (props: Props) => {
3736
isSendingMonthlyActivityPlusOverview,
3837
setIsSendingMonthlyActivityPlusOverview,
3938
] = useState(false);
40-
const [
41-
isSendingPlusExpirationNotification,
42-
setIsSendingPlusExpirationNotification,
43-
] = useState(false);
4439
const [firstDataBrokerRemovalFixed, setFirstDataBrokerRemovalFixed] =
4540
useState(false);
4641

@@ -144,18 +139,6 @@ export const EmailTrigger = (props: Props) => {
144139
>
145140
First data broker removal fixed
146141
</Button>
147-
<Button
148-
variant="primary"
149-
isLoading={isSendingPlusExpirationNotification}
150-
onPress={() => {
151-
setIsSendingPlusExpirationNotification(true);
152-
void triggerPlusExpirationEmail(selectedEmailAddress).then(() => {
153-
setIsSendingPlusExpirationNotification(false);
154-
});
155-
}}
156-
>
157-
Plus expiration notification
158-
</Button>
159142
</div>
160143
</main>
161144
);

src/app/(proper_react)/(redesign)/(authenticated)/admin/emails/actions.tsx

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ import { isEligibleForPremium } from "../../../../../functions/universal/premium
4040
import { MonthlyActivityFreeEmail } from "../../../../../../emails/templates/monthlyActivityFree/MonthlyActivityFreeEmail";
4141
import { getMonthlyActivityFreeUnsubscribeLink } from "../../../../../../app/functions/cronjobs/unsubscribeLinks";
4242
import { getScanResultsWithBroker } from "../../../../../../db/tables/onerep_scans";
43-
import {
44-
getUnstyledUpcomingExpirationEmail,
45-
UpcomingExpirationEmail,
46-
} from "../../../../../../emails/templates/upcomingExpiration/UpcomingExpirationEmail";
47-
import { CONST_DAY_MILLISECONDS } from "../../../../../../constants";
4843
import { getEnabledFeatureFlags } from "../../../../../../db/tables/featureFlags";
4944
import { getExperimentationIdFromUserSession } from "../../../../../functions/server/getExperimentationId";
5045
import { getExperiments } from "../../../../../functions/server/getExperiments";
@@ -302,28 +297,3 @@ export async function triggerFirstDataBrokerRemovalFixed(emailAddress: string) {
302297
/>,
303298
);
304299
}
305-
306-
export async function triggerPlusExpirationEmail(emailAddress: string) {
307-
const subscriber = await getAdminSubscriber();
308-
if (!subscriber) {
309-
return false;
310-
}
311-
312-
const acceptLangHeader = await getAcceptLangHeaderInServerComponents();
313-
const l10n = getL10n(acceptLangHeader);
314-
await send(
315-
emailAddress,
316-
l10n.getString("email-plus-expiration-subject"),
317-
<UpcomingExpirationEmail
318-
subscriber={sanitizeSubscriberRow(subscriber)}
319-
// Always pretend that the user's account expires in 7 days for the test email:
320-
expirationDate={new Date(Date.now() + 7 * CONST_DAY_MILLISECONDS)}
321-
l10n={l10n}
322-
/>,
323-
getUnstyledUpcomingExpirationEmail({
324-
subscriber: sanitizeSubscriberRow(subscriber),
325-
expirationDate: new Date(Date.now() + 7 * CONST_DAY_MILLISECONDS),
326-
l10n: l10n,
327-
}),
328-
);
329-
}

src/app/(proper_react)/(redesign)/(authenticated)/user/(dashboard)/settings/CancelFlow.module.scss

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,6 @@
5757
}
5858
}
5959

60-
.errorApplyingCoupon {
61-
padding-top: tokens.$spacing-sm;
62-
color: tokens.$color-red-60;
63-
font-weight: 500;
64-
65-
button {
66-
color: tokens.$color-red-60;
67-
font-weight: 500;
68-
}
69-
}
70-
7160
small {
7261
color: tokens.$color-grey-30;
7362
font-weight: 400;

0 commit comments

Comments
 (0)