Skip to content

Commit

Permalink
Merge branch 'main' into mntor-3825
Browse files Browse the repository at this point in the history
  • Loading branch information
flozia committed Dec 20, 2024
2 parents 6c396f7 + 2bd45be commit a0503a8
Show file tree
Hide file tree
Showing 41 changed files with 851 additions and 785 deletions.
1,228 changes: 613 additions & 615 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
"npm": "10.1.0"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.705.0",
"@aws-sdk/lib-storage": "^3.705.0",
"@aws-sdk/client-s3": "^3.716.0",
"@aws-sdk/lib-storage": "^3.716.0",
"@fluent/bundle": "^0.18.0",
"@fluent/langneg": "^0.7.0",
"@fluent/react": "^0.15.2",
Expand All @@ -86,7 +86,7 @@
"@sentry/utils": "^8.42.0",
"@stripe/stripe-js": "^5.2.0",
"@types/jsdom": "^21.1.7",
"@types/node": "^22.9.0",
"@types/node": "^22.10.2",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"canvas-confetti": "^1.9.3",
Expand All @@ -99,7 +99,7 @@
"knex": "^3.1.0",
"mjml": "^4.15.3",
"next": "^14.2.15",
"next-auth": "^4.24.10",
"next-auth": "^4.24.11",
"nodemailer": "^6.9.16",
"pg": "^8.13.1",
"react": "^18.3.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default async function FeatureFlagPage() {
lastScanDate={null}
// We're not going to run experiments on the feature flag page (it's
// not user-visible), so no need to fetch experiment data:
experimentData={defaultExperimentData}
experimentData={defaultExperimentData["Features"]}
/>
</div>
</nav>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export type DashboardWrapperProps = (
totalNumberOfPerformedScans?: number;
activeTab?: TabType;
enabledFeatureFlags?: FeatureFlagName[];
experimentData?: ExperimentData;
experimentData?: ExperimentData["Features"];
hasFirstMonitoringScan?: boolean;
signInCount?: number;
autoOpenUpsellDialog?: boolean;
Expand Down Expand Up @@ -227,7 +227,7 @@ const DashboardWrapper = (props: DashboardWrapperProps) => {
enabledFeatureFlags={props.enabledFeatureFlags ?? []}
experimentData={
props.experimentData ?? {
...defaultExperimentData,
...defaultExperimentData["Features"],
"last-scan-date": {
enabled: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3487,7 +3487,7 @@ describe("CSAT survey banner", () => {
activeTab="fixed"
enabledFeatureFlags={["PetitionBannerCsatSurvey"]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-privacy-petition-banner": {
enabled: false,
},
Expand Down Expand Up @@ -3515,7 +3515,7 @@ describe("CSAT survey banner", () => {
activeTab="action-needed"
enabledFeatureFlags={["PetitionBannerCsatSurvey"]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-privacy-petition-banner": {
enabled: false,
},
Expand All @@ -3539,7 +3539,7 @@ describe("CSAT survey banner", () => {
activeTab="fixed"
enabledFeatureFlags={["PetitionBannerCsatSurvey"]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-privacy-petition-banner": {
enabled: true,
},
Expand All @@ -3564,7 +3564,7 @@ describe("CSAT survey banner", () => {
activeTab="fixed"
enabledFeatureFlags={["PetitionBannerCsatSurvey"]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-privacy-petition-banner": {
enabled: true,
},
Expand Down Expand Up @@ -3595,7 +3595,7 @@ describe("CSAT survey banner", () => {
activeTab="fixed"
enabledFeatureFlags={["PetitionBannerCsatSurvey"]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-privacy-petition-banner": {
enabled: true,
},
Expand Down Expand Up @@ -3630,7 +3630,7 @@ describe("CSAT survey banner", () => {
"AutomaticRemovalCsatSurvey",
]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-privacy-petition-banner": {
enabled: true,
},
Expand Down Expand Up @@ -3659,7 +3659,7 @@ describe("CSAT survey banner", () => {
activeTab="fixed"
enabledFeatureFlags={["DataBrokerRemovalTimeEstimateCsat"]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-broker-removal-time-estimates": {
enabled: true,
},
Expand All @@ -3683,7 +3683,7 @@ describe("CSAT survey banner", () => {
activeTab="fixed"
enabledFeatureFlags={["DataBrokerRemovalTimeEstimateCsat"]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-broker-removal-time-estimates": {
enabled: false,
},
Expand All @@ -3707,7 +3707,7 @@ describe("CSAT survey banner", () => {
activeTab="action-needed"
enabledFeatureFlags={["DataBrokerRemovalTimeEstimateCsat"]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-broker-removal-time-estimates": {
enabled: true,
},
Expand All @@ -3731,7 +3731,7 @@ describe("CSAT survey banner", () => {
activeTab="fixed"
enabledFeatureFlags={["DataBrokerRemovalTimeEstimateCsat"]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-broker-removal-time-estimates": {
enabled: true,
},
Expand All @@ -3756,7 +3756,7 @@ describe("Data privacy petition banner", () => {
<ComposedDashboard
enabledFeatureFlags={["PetitionBannerCsatSurvey"]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-privacy-petition-banner": {
enabled: true,
},
Expand All @@ -3780,7 +3780,7 @@ describe("Data privacy petition banner", () => {
activeTab="fixed"
enabledFeatureFlags={["PetitionBannerCsatSurvey"]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-privacy-petition-banner": {
enabled: true,
},
Expand All @@ -3804,7 +3804,7 @@ describe("Data privacy petition banner", () => {
activeTab="fixed"
enabledFeatureFlags={["PetitionBannerCsatSurvey"]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-privacy-petition-banner": {
enabled: true,
},
Expand All @@ -3827,7 +3827,7 @@ describe("Data privacy petition banner", () => {
<ComposedDashboard
enabledFeatureFlags={["PetitionBannerCsatSurvey"]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-privacy-petition-banner": {
enabled: true,
},
Expand All @@ -3847,7 +3847,7 @@ describe("Data privacy petition banner", () => {
<ComposedDashboard
enabledFeatureFlags={["PetitionBannerCsatSurvey"]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-privacy-petition-banner": {
enabled: true,
},
Expand Down Expand Up @@ -3882,7 +3882,7 @@ describe("Data privacy petition banner", () => {
activeTab="fixed"
enabledFeatureFlags={["PetitionBannerCsatSurvey"]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-privacy-petition-banner": {
enabled: true,
},
Expand Down Expand Up @@ -3914,7 +3914,7 @@ describe("Data privacy petition banner", () => {
activeTab="fixed"
enabledFeatureFlags={["PetitionBannerCsatSurvey"]}
experimentData={{
...defaultExperimentData,
...defaultExperimentData["Features"],
"data-privacy-petition-banner": {
enabled: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const DashboardWrapper = (props: DashboardWrapperProps) => {
enabledFeatureFlags={props.enabledFeatureFlags ?? []}
experimentData={
props.experimentData ?? {
...defaultExperimentData,
...defaultExperimentData["Features"],
"last-scan-date": {
enabled: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const DashboardWrapper = (props: DashboardWrapperProps) => {
enabledFeatureFlags={props.enabledFeatureFlags ?? []}
experimentData={
props.experimentData ?? {
...defaultExperimentData,
...defaultExperimentData["Features"],
"last-scan-date": {
enabled: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const DashboardWrapper = (props: DashboardWrapperProps) => {
enabledFeatureFlags={props.enabledFeatureFlags ?? []}
experimentData={
props.experimentData ?? {
...defaultExperimentData,
...defaultExperimentData["Features"],
"last-scan-date": {
enabled: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export type TabType = "action-needed" | "fixed";

export type Props = {
enabledFeatureFlags: FeatureFlagName[];
experimentData: ExperimentData;
experimentData: ExperimentData["Features"];
user: Session["user"];
userBreaches: SubscriberBreach[];
userScanData: LatestOnerepScanData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { OpenInNew } from "../../../../../../components/server/Icons";
export type Props = {
fxaSubscriptionsUrl: string;
enableDiscountCoupon: boolean;
experimentData?: ExperimentData;
experimentData?: ExperimentData["Features"];
isMonthlySubscriber: boolean;
};

Expand Down
Loading

0 comments on commit a0503a8

Please sign in to comment.