mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 05:13:29 +00:00
Removing critical applications feature flag and logic (#14889)
This commit is contained in:
@@ -59,7 +59,6 @@
|
|||||||
type="button"
|
type="button"
|
||||||
[buttonType]="'primary'"
|
[buttonType]="'primary'"
|
||||||
bitButton
|
bitButton
|
||||||
*ngIf="isCriticalAppsFeatureEnabled"
|
|
||||||
[disabled]="!selectedUrls.size"
|
[disabled]="!selectedUrls.size"
|
||||||
[loading]="markingAsCritical"
|
[loading]="markingAsCritical"
|
||||||
(click)="markAppsAsCritical()"
|
(click)="markAppsAsCritical()"
|
||||||
@@ -74,7 +73,6 @@
|
|||||||
[showRowCheckBox]="true"
|
[showRowCheckBox]="true"
|
||||||
[showRowMenuForCriticalApps]="false"
|
[showRowMenuForCriticalApps]="false"
|
||||||
[selectedUrls]="selectedUrls"
|
[selectedUrls]="selectedUrls"
|
||||||
[isCriticalAppsFeatureEnabled]="isCriticalAppsFeatureEnabled"
|
|
||||||
[isDrawerIsOpenForThisRecord]="isDrawerOpenForTableRow"
|
[isDrawerIsOpenForThisRecord]="isDrawerOpenForTableRow"
|
||||||
[checkboxChange]="onCheckboxChange"
|
[checkboxChange]="onCheckboxChange"
|
||||||
[showAppAtRiskMembers]="showAppAtRiskMembers"
|
[showAppAtRiskMembers]="showAppAtRiskMembers"
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ import {
|
|||||||
import { Organization } from "@bitwarden/common/admin-console/models/domain/organization";
|
import { Organization } from "@bitwarden/common/admin-console/models/domain/organization";
|
||||||
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
|
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
|
||||||
import { getUserId } from "@bitwarden/common/auth/services/account.service";
|
import { getUserId } from "@bitwarden/common/auth/services/account.service";
|
||||||
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 { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
||||||
@@ -74,13 +73,8 @@ export class AllApplicationsComponent implements OnInit {
|
|||||||
|
|
||||||
destroyRef = inject(DestroyRef);
|
destroyRef = inject(DestroyRef);
|
||||||
isLoading$: Observable<boolean> = of(false);
|
isLoading$: Observable<boolean> = of(false);
|
||||||
isCriticalAppsFeatureEnabled = false;
|
|
||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
this.isCriticalAppsFeatureEnabled = await this.configService.getFeatureFlag(
|
|
||||||
FeatureFlag.CriticalApps,
|
|
||||||
);
|
|
||||||
|
|
||||||
const organizationId = this.activatedRoute.snapshot.paramMap.get("organizationId") ?? "";
|
const organizationId = this.activatedRoute.snapshot.paramMap.get("organizationId") ?? "";
|
||||||
const userId = await firstValueFrom(getUserId(this.accountService.activeAccount$));
|
const userId = await firstValueFrom(getUserId(this.accountService.activeAccount$));
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ng-container>
|
<ng-container>
|
||||||
<bit-table-scroll [dataSource]="dataSource" [rowSize]="53">
|
<bit-table-scroll [dataSource]="dataSource" [rowSize]="53">
|
||||||
<ng-container header>
|
<ng-container header>
|
||||||
<th *ngIf="isCriticalAppsFeatureEnabled"></th>
|
<th></th>
|
||||||
<th bitCell></th>
|
<th bitCell></th>
|
||||||
<th bitSortable="applicationName" bitCell>{{ "application" | i18n }}</th>
|
<th bitSortable="applicationName" bitCell>{{ "application" | i18n }}</th>
|
||||||
<th bitSortable="atRiskPasswordCount" bitCell>{{ "atRiskPasswords" | i18n }}</th>
|
<th bitSortable="atRiskPasswordCount" bitCell>{{ "atRiskPasswords" | i18n }}</th>
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
<ng-template bitRowDef let-row>
|
<ng-template bitRowDef let-row>
|
||||||
<td
|
<td
|
||||||
bitCell
|
bitCell
|
||||||
*ngIf="isCriticalAppsFeatureEnabled && showRowCheckBox"
|
*ngIf="showRowCheckBox"
|
||||||
[ngClass]="{ 'tw-bg-primary-100': isDrawerIsOpenForThisRecord(row.applicationName) }"
|
[ngClass]="{ 'tw-bg-primary-100': isDrawerIsOpenForThisRecord(row.applicationName) }"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ export class AppTableRowScrollableComponent {
|
|||||||
@Input() showRowMenuForCriticalApps: boolean = false;
|
@Input() showRowMenuForCriticalApps: boolean = false;
|
||||||
@Input() showRowCheckBox: boolean = false;
|
@Input() showRowCheckBox: boolean = false;
|
||||||
@Input() selectedUrls: Set<string> = new Set<string>();
|
@Input() selectedUrls: Set<string> = new Set<string>();
|
||||||
@Input() isCriticalAppsFeatureEnabled: boolean = false;
|
|
||||||
@Input() isDrawerIsOpenForThisRecord!: (applicationName: string) => boolean;
|
@Input() isDrawerIsOpenForThisRecord!: (applicationName: string) => boolean;
|
||||||
@Input() showAppAtRiskMembers!: (applicationName: string) => void;
|
@Input() showAppAtRiskMembers!: (applicationName: string) => void;
|
||||||
@Input() unmarkAsCriticalApp!: (applicationName: string) => void;
|
@Input() unmarkAsCriticalApp!: (applicationName: string) => void;
|
||||||
|
|||||||
@@ -82,7 +82,6 @@
|
|||||||
[dataSource]="dataSource"
|
[dataSource]="dataSource"
|
||||||
[showRowCheckBox]="false"
|
[showRowCheckBox]="false"
|
||||||
[showRowMenuForCriticalApps]="true"
|
[showRowMenuForCriticalApps]="true"
|
||||||
[isCriticalAppsFeatureEnabled]="true"
|
|
||||||
[isDrawerIsOpenForThisRecord]="isDrawerOpenForTableRow"
|
[isDrawerIsOpenForThisRecord]="isDrawerOpenForTableRow"
|
||||||
[showAppAtRiskMembers]="showAppAtRiskMembers"
|
[showAppAtRiskMembers]="showAppAtRiskMembers"
|
||||||
[unmarkAsCriticalApp]="unmarkAsCriticalApp"
|
[unmarkAsCriticalApp]="unmarkAsCriticalApp"
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
<bit-tab label="{{ 'allApplicationsWithCount' | i18n: appsCount }}">
|
<bit-tab label="{{ 'allApplicationsWithCount' | i18n: appsCount }}">
|
||||||
<tools-all-applications></tools-all-applications>
|
<tools-all-applications></tools-all-applications>
|
||||||
</bit-tab>
|
</bit-tab>
|
||||||
<bit-tab *ngIf="isCriticalAppsFeatureEnabled">
|
<bit-tab>
|
||||||
<ng-template bitTabLabel>
|
<ng-template bitTabLabel>
|
||||||
<i class="bwi bwi-star"></i>
|
<i class="bwi bwi-star"></i>
|
||||||
{{ "criticalApplicationsWithCount" | i18n: (criticalApps$ | async)?.length ?? 0 }}
|
{{ "criticalApplicationsWithCount" | i18n: (criticalApps$ | async)?.length ?? 0 }}
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import {
|
|||||||
DrawerType,
|
DrawerType,
|
||||||
PasswordHealthReportApplicationsResponse,
|
PasswordHealthReportApplicationsResponse,
|
||||||
} from "@bitwarden/bit-common/dirt/reports/risk-insights/models/password-health";
|
} from "@bitwarden/bit-common/dirt/reports/risk-insights/models/password-health";
|
||||||
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 { devFlagEnabled } from "@bitwarden/common/platform/misc/flags";
|
||||||
import { OrganizationId } from "@bitwarden/common/types/guid";
|
import { OrganizationId } from "@bitwarden/common/types/guid";
|
||||||
@@ -70,7 +69,6 @@ export class RiskInsightsComponent implements OnInit {
|
|||||||
|
|
||||||
dataLastUpdated: Date = new Date();
|
dataLastUpdated: Date = new Date();
|
||||||
|
|
||||||
isCriticalAppsFeatureEnabled: boolean = false;
|
|
||||||
criticalApps$: Observable<PasswordHealthReportApplicationsResponse[]> = new Observable();
|
criticalApps$: Observable<PasswordHealthReportApplicationsResponse[]> = new Observable();
|
||||||
showDebugTabs: boolean = false;
|
showDebugTabs: boolean = false;
|
||||||
|
|
||||||
@@ -100,10 +98,6 @@ export class RiskInsightsComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
this.isCriticalAppsFeatureEnabled = await this.configService.getFeatureFlag(
|
|
||||||
FeatureFlag.CriticalApps,
|
|
||||||
);
|
|
||||||
|
|
||||||
this.showDebugTabs = devFlagEnabled("showRiskInsightsDebug");
|
this.showDebugTabs = devFlagEnabled("showRiskInsightsDebug");
|
||||||
|
|
||||||
this.route.paramMap
|
this.route.paramMap
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ export enum FeatureFlag {
|
|||||||
UseOrganizationWarningsService = "use-organization-warnings-service",
|
UseOrganizationWarningsService = "use-organization-warnings-service",
|
||||||
|
|
||||||
/* Data Insights and Reporting */
|
/* Data Insights and Reporting */
|
||||||
CriticalApps = "pm-14466-risk-insights-critical-application",
|
|
||||||
EnableRiskInsightsNotifications = "enable-risk-insights-notifications",
|
EnableRiskInsightsNotifications = "enable-risk-insights-notifications",
|
||||||
|
|
||||||
/* Key Management */
|
/* Key Management */
|
||||||
@@ -93,7 +92,6 @@ export const DefaultFeatureFlagValue = {
|
|||||||
[FeatureFlag.MacOsNativeCredentialSync]: FALSE,
|
[FeatureFlag.MacOsNativeCredentialSync]: FALSE,
|
||||||
|
|
||||||
/* Data Insights and Reporting */
|
/* Data Insights and Reporting */
|
||||||
[FeatureFlag.CriticalApps]: FALSE,
|
|
||||||
[FeatureFlag.EnableRiskInsightsNotifications]: FALSE,
|
[FeatureFlag.EnableRiskInsightsNotifications]: FALSE,
|
||||||
|
|
||||||
/* Tools */
|
/* Tools */
|
||||||
|
|||||||
Reference in New Issue
Block a user