mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
Removing testing tabs and the learn more link (#12481)
This commit is contained in:
@@ -20,5 +20,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"devFlags": {}
|
"devFlags": {
|
||||||
|
"showRiskInsightsDebug": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
<h1 bitTypography="h1">{{ "riskInsights" | i18n }}</h1>
|
<h1 bitTypography="h1">{{ "riskInsights" | i18n }}</h1>
|
||||||
<div class="tw-text-muted tw-max-w-4xl tw-mb-2">
|
<div class="tw-text-muted tw-max-w-4xl tw-mb-2">
|
||||||
{{ "reviewAtRiskPasswords" | i18n }}
|
{{ "reviewAtRiskPasswords" | i18n }}
|
||||||
<a class="text-primary" routerLink="/login">{{ "learnMore" | i18n }}</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="tw-bg-primary-100 tw-rounded-lg tw-w-full tw-px-8 tw-py-4 tw-my-4 tw-flex tw-items-center"
|
class="tw-bg-primary-100 tw-rounded-lg tw-w-full tw-px-8 tw-py-4 tw-my-4 tw-flex tw-items-center"
|
||||||
@@ -45,13 +44,13 @@
|
|||||||
</ng-template>
|
</ng-template>
|
||||||
<tools-critical-applications></tools-critical-applications>
|
<tools-critical-applications></tools-critical-applications>
|
||||||
</bit-tab>
|
</bit-tab>
|
||||||
<bit-tab label="Raw Data">
|
<bit-tab *ngIf="showDebugTabs" label="Raw Data">
|
||||||
<tools-password-health></tools-password-health>
|
<tools-password-health></tools-password-health>
|
||||||
</bit-tab>
|
</bit-tab>
|
||||||
<bit-tab label="Raw Data + members">
|
<bit-tab *ngIf="showDebugTabs" label="Raw Data + members">
|
||||||
<tools-password-health-members></tools-password-health-members>
|
<tools-password-health-members></tools-password-health-members>
|
||||||
</bit-tab>
|
</bit-tab>
|
||||||
<bit-tab label="Raw Data + uri">
|
<bit-tab *ngIf="showDebugTabs" label="Raw Data + uri">
|
||||||
<tools-password-health-members-uri></tools-password-health-members-uri>
|
<tools-password-health-members-uri></tools-password-health-members-uri>
|
||||||
</bit-tab>
|
</bit-tab>
|
||||||
</bit-tab-group>
|
</bit-tab-group>
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import { RiskInsightsDataService } from "@bitwarden/bit-common/tools/reports/ris
|
|||||||
import { ApplicationHealthReportDetail } from "@bitwarden/bit-common/tools/reports/risk-insights/models/password-health";
|
import { ApplicationHealthReportDetail } from "@bitwarden/bit-common/tools/reports/risk-insights/models/password-health";
|
||||||
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
||||||
import { ConfigService } from "@bitwarden/common/platform/abstractions/config/config.service";
|
import { ConfigService } from "@bitwarden/common/platform/abstractions/config/config.service";
|
||||||
|
import { devFlagEnabled } from "@bitwarden/common/platform/misc/flags";
|
||||||
import { AsyncActionsModule, ButtonModule, TabsModule } from "@bitwarden/components";
|
import { AsyncActionsModule, ButtonModule, TabsModule } from "@bitwarden/components";
|
||||||
import { HeaderModule } from "@bitwarden/web-vault/app/layouts/header/header.module";
|
import { HeaderModule } from "@bitwarden/web-vault/app/layouts/header/header.module";
|
||||||
|
|
||||||
@@ -50,6 +51,7 @@ export class RiskInsightsComponent implements OnInit {
|
|||||||
dataLastUpdated: Date = new Date();
|
dataLastUpdated: Date = new Date();
|
||||||
|
|
||||||
isCriticalAppsFeatureEnabled: boolean = false;
|
isCriticalAppsFeatureEnabled: boolean = false;
|
||||||
|
showDebugTabs: boolean = false;
|
||||||
|
|
||||||
appsCount: number = 0;
|
appsCount: number = 0;
|
||||||
criticalAppsCount: number = 0;
|
criticalAppsCount: number = 0;
|
||||||
@@ -78,6 +80,8 @@ export class RiskInsightsComponent implements OnInit {
|
|||||||
FeatureFlag.CriticalApps,
|
FeatureFlag.CriticalApps,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
this.showDebugTabs = devFlagEnabled("showRiskInsightsDebug");
|
||||||
|
|
||||||
this.route.paramMap
|
this.route.paramMap
|
||||||
.pipe(
|
.pipe(
|
||||||
takeUntilDestroyed(this.destroyRef),
|
takeUntilDestroyed(this.destroyRef),
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ export type SharedDevFlags = {
|
|||||||
noopNotifications: boolean;
|
noopNotifications: boolean;
|
||||||
skipWelcomeOnInstall: boolean;
|
skipWelcomeOnInstall: boolean;
|
||||||
configRetrievalIntervalMs: number;
|
configRetrievalIntervalMs: number;
|
||||||
|
showRiskInsightsDebug: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
function getFlags<T>(envFlags: string | T): T {
|
function getFlags<T>(envFlags: string | T): T {
|
||||||
|
|||||||
Reference in New Issue
Block a user