Skip to content

Commit d086c73

Browse files
authored
Merge branch 'main' into mntor-3925
2 parents c5ee15c + 046e112 commit d086c73

File tree

15 files changed

+714
-572
lines changed

15 files changed

+714
-572
lines changed

package-lock.json

Lines changed: 74 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@
8181
"@leeoniya/ufuzzy": "^1.0.17",
8282
"@mozilla/glean": "^5.0.3",
8383
"@next/third-parties": "^14.2.15",
84-
"@sentry/nextjs": "^8.47.0",
84+
"@sentry/nextjs": "^8.48.0",
8585
"@sentry/node": "^8.0.0",
86-
"@sentry/utils": "^8.47.0",
86+
"@sentry/utils": "^8.48.0",
8787
"@stripe/stripe-js": "^5.5.0",
8888
"@types/jsdom": "^21.1.7",
89-
"@types/node": "^22.10.2",
89+
"@types/node": "^22.10.5",
9090
"@types/react": "^18.3.12",
9191
"@types/react-dom": "^18.3.1",
9292
"canvas-confetti": "^1.9.3",
@@ -163,7 +163,7 @@
163163
"stylelint-config-recommended-scss": "^14.1.0",
164164
"stylelint-scss": "^6.10.0",
165165
"tsx": "^4.19.2",
166-
"typescript": "^5.7.2",
166+
"typescript": "^5.7.3",
167167
"yaml": "^2.7.0"
168168
}
169169
}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ export const DashboardTopBannerContent = (props: DashboardTopBannerProps) => {
8080
);
8181
}
8282

83-
const relevantGuidedStep = getNextGuidedStep(stepDeterminationData);
83+
const relevantGuidedStep = getNextGuidedStep(
84+
stepDeterminationData,
85+
props.enabledFeatureFlags,
86+
);
8487

8588
const contentProps = {
8689
relevantGuidedStep,

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ export const View = (props: Props) => {
198198
const removalTimeEstimate = isScanResult(exposure)
199199
? props.removalTimeEstimates.find(({ d }) => d === exposure.data_broker)
200200
: undefined;
201+
201202
return (
202203
<li key={exposureCardKey} className={styles.exposureListItem}>
203204
<ExposureCard
@@ -253,6 +254,7 @@ export const View = (props: Props) => {
253254
const dataSummary = getDashboardSummary(
254255
adjustedScanResults,
255256
props.userBreaches,
257+
props.enabledFeatureFlags,
256258
);
257259

258260
const hasExposures = combinedArray.length > 0;
@@ -513,6 +515,7 @@ export const View = (props: Props) => {
513515
bannerData={getDashboardSummary(
514516
adjustedScanResults,
515517
props.userBreaches,
518+
props.enabledFeatureFlags,
516519
)}
517520
stepDeterminationData={{
518521
countryCode,

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import styles from "./ResolutionContainer.module.scss";
1212
import { ProgressCard } from "../../../../../../../components/client/ProgressCard";
1313
import { StepDeterminationData } from "../../../../../../../functions/server/getRelevantGuidedSteps";
1414
import { getDashboardSummary } from "../../../../../../../functions/server/dashboard";
15+
import { FeatureFlagName } from "../../../../../../../../db/tables/featureFlags";
1516

1617
type ResolutionContainerProps = {
1718
type: "highRisk" | "leakedPasswords" | "securityRecommendations";
@@ -25,6 +26,7 @@ type ResolutionContainerProps = {
2526
data: StepDeterminationData;
2627
label?: string;
2728
cta?: ReactNode;
29+
enabledFeatureFlags: FeatureFlagName[];
2830
};
2931

3032
export const ResolutionContainer = (props: ResolutionContainerProps) => {
@@ -40,6 +42,7 @@ export const ResolutionContainer = (props: ResolutionContainerProps) => {
4042
const resolutionSummary = getDashboardSummary(
4143
props.data.latestScanData?.results ?? [],
4244
props.data.subscriberBreaches,
45+
props.enabledFeatureFlags,
4346
);
4447

4548
return (

src/app/(proper_react)/(redesign)/(authenticated)/user/(dashboard)/dashboard/fix/data-broker-profiles/manual-remove/ManualRemoveView.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ export function ManualRemoveView(props: Props) {
4343
const l10n = useL10n();
4444
const [activeExposureCardKey, setActiveExposureCardKey] = useState(0);
4545

46-
const summary = getDashboardSummary(props.scanData.results, props.breaches);
46+
const summary = getDashboardSummary(
47+
props.scanData.results,
48+
props.breaches,
49+
props.enabledFeatureFlags,
50+
);
4751

4852
const countOfDataBrokerProfiles = props.scanData.results.length;
4953
const estimatedTime = countOfDataBrokerProfiles * 10; // 10 minutes per data broker site.

src/app/(proper_react)/(redesign)/(authenticated)/user/(dashboard)/dashboard/fix/data-broker-profiles/welcome-to-plus/WelcomeToPlusView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export function WelcomeToPlusView(props: Props) {
3939
const summary = getDashboardSummary(
4040
scanResultsInProgress,
4141
props.data.subscriberBreaches,
42+
props.enabledFeatureFlags,
4243
);
4344
const dataPointReduction = getDataPointReduction(summary);
4445

0 commit comments

Comments
 (0)