mirror of
https://github.com/bitwarden/browser
synced 2025-12-23 19:53:43 +00:00
[SM-1031] Remove SecretsManager & showDDG compile flags (#8610)
Remove old compile flags which should no longer be required, and may even cause issues. secretsManager: false hides the app switcher which is now used for more than just secrets manager.
This commit is contained in:
@@ -11,13 +11,13 @@ import { GroupPolicyEnvironment } from "../admin-console/types/group-policy-envi
|
||||
import { BrowserApi } from "./browser/browser-api";
|
||||
|
||||
// required to avoid linting errors when there are no flags
|
||||
/* eslint-disable-next-line @typescript-eslint/ban-types */
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
export type Flags = {
|
||||
accountSwitching?: boolean;
|
||||
} & SharedFlags;
|
||||
|
||||
// required to avoid linting errors when there are no flags
|
||||
/* eslint-disable-next-line @typescript-eslint/ban-types */
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
export type DevFlags = {
|
||||
storeSessionDecrypted?: boolean;
|
||||
managedEnvironment?: GroupPolicyEnvironment;
|
||||
|
||||
@@ -7,11 +7,11 @@ import {
|
||||
} from "@bitwarden/common/platform/misc/flags";
|
||||
|
||||
// required to avoid linting errors when there are no flags
|
||||
/* eslint-disable-next-line @typescript-eslint/ban-types */
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
export type Flags = {} & SharedFlags;
|
||||
|
||||
// required to avoid linting errors when there are no flags
|
||||
/* eslint-disable-next-line @typescript-eslint/ban-types */
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
export type DevFlags = {} & SharedDevFlags;
|
||||
|
||||
export function flagEnabled(flag: keyof Flags): boolean {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"devFlags": {},
|
||||
"flags": {
|
||||
"showDDGSetting": true,
|
||||
"enableCipherKeyEncryption": false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"flags": {
|
||||
"showDDGSetting": true,
|
||||
"enableCipherKeyEncryption": false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ import { DialogService } from "@bitwarden/components";
|
||||
|
||||
import { SetPinComponent } from "../../auth/components/set-pin.component";
|
||||
import { DesktopAutofillSettingsService } from "../../autofill/services/desktop-autofill-settings.service";
|
||||
import { flagEnabled } from "../../platform/flags";
|
||||
import { DesktopSettingsService } from "../../platform/services/desktop-settings.service";
|
||||
|
||||
@Component({
|
||||
@@ -146,7 +145,7 @@ export class SettingsComponent implements OnInit {
|
||||
this.startToTrayDescText = this.i18nService.t(startToTrayKey + "Desc");
|
||||
|
||||
// DuckDuckGo browser is only for macos initially
|
||||
this.showDuckDuckGoIntegrationOption = flagEnabled("showDDGSetting") && isMac;
|
||||
this.showDuckDuckGoIntegrationOption = isMac;
|
||||
|
||||
this.vaultTimeoutOptions = [
|
||||
// { name: i18nService.t('immediately'), value: 0 },
|
||||
|
||||
@@ -7,13 +7,11 @@ import {
|
||||
} from "@bitwarden/common/platform/misc/flags";
|
||||
|
||||
// required to avoid linting errors when there are no flags
|
||||
/* eslint-disable-next-line @typescript-eslint/ban-types */
|
||||
export type Flags = {
|
||||
showDDGSetting?: boolean;
|
||||
} & SharedFlags;
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
export type Flags = {} & SharedFlags;
|
||||
|
||||
// required to avoid linting errors when there are no flags
|
||||
/* eslint-disable-next-line @typescript-eslint/ban-types */
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
export type DevFlags = {} & SharedDevFlags;
|
||||
|
||||
export function flagEnabled(flag: keyof Flags): boolean {
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
"allowedHosts": "auto"
|
||||
},
|
||||
"flags": {
|
||||
"secretsManager": false,
|
||||
"showPasswordless": false,
|
||||
"enableCipherKeyEncryption": false
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
"proxyNotifications": "https://notifications.bitwarden.com"
|
||||
},
|
||||
"flags": {
|
||||
"secretsManager": true,
|
||||
"showPasswordless": true,
|
||||
"enableCipherKeyEncryption": false
|
||||
}
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
}
|
||||
],
|
||||
"flags": {
|
||||
"secretsManager": true,
|
||||
"showPasswordless": true,
|
||||
"enableCipherKeyEncryption": false
|
||||
},
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
"buttonAction": "https://www.paypal.com/cgi-bin/webscr"
|
||||
},
|
||||
"flags": {
|
||||
"secretsManager": true,
|
||||
"showPasswordless": true,
|
||||
"enableCipherKeyEncryption": false
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
}
|
||||
],
|
||||
"flags": {
|
||||
"secretsManager": true,
|
||||
"showPasswordless": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
}
|
||||
],
|
||||
"flags": {
|
||||
"secretsManager": true,
|
||||
"showPasswordless": true,
|
||||
"enableCipherKeyEncryption": false
|
||||
}
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
"port": 8081
|
||||
},
|
||||
"flags": {
|
||||
"secretsManager": true,
|
||||
"showPasswordless": true,
|
||||
"enableCipherKeyEncryption": false
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
"scim": "https://scim.usdev.bitwarden.pw"
|
||||
},
|
||||
"flags": {
|
||||
"secretsManager": true,
|
||||
"showPasswordless": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,6 @@ import { Collection } from "@bitwarden/common/vault/models/domain/collection";
|
||||
import { CollectionDetailsResponse } from "@bitwarden/common/vault/models/response/collection.response";
|
||||
import { DialogService, SimpleDialogOptions } from "@bitwarden/components";
|
||||
|
||||
import { flagEnabled } from "../../../../utils/flags";
|
||||
import { openEntityEventsDialog } from "../../../admin-console/organizations/manage/entity-events.component";
|
||||
import { BasePeopleComponent } from "../../common/base.people.component";
|
||||
import { GroupService } from "../core";
|
||||
@@ -148,9 +147,7 @@ export class PeopleComponent
|
||||
shareReplay({ refCount: true, bufferSize: 1 }),
|
||||
);
|
||||
|
||||
this.canUseSecretsManager$ = organization$.pipe(
|
||||
map((org) => org.useSecretsManager && flagEnabled("secretsManager")),
|
||||
);
|
||||
this.canUseSecretsManager$ = organization$.pipe(map((org) => org.useSecretsManager));
|
||||
|
||||
const policies$ = organization$.pipe(
|
||||
switchMap((organization) => {
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
<ng-template [ngIf]="isEnabled">
|
||||
<button
|
||||
type="button"
|
||||
bitIconButton="bwi bwi-fw bwi-filter"
|
||||
[bitMenuTriggerFor]="content?.menu"
|
||||
[buttonType]="buttonType"
|
||||
[attr.aria-label]="'switchProducts' | i18n"
|
||||
></button>
|
||||
<product-switcher-content #content></product-switcher-content>
|
||||
</ng-template>
|
||||
<button
|
||||
type="button"
|
||||
bitIconButton="bwi bwi-fw bwi-filter"
|
||||
[bitMenuTriggerFor]="content?.menu"
|
||||
[buttonType]="buttonType"
|
||||
[attr.aria-label]="'switchProducts' | i18n"
|
||||
></button>
|
||||
<product-switcher-content #content></product-switcher-content>
|
||||
|
||||
@@ -1,16 +1,11 @@
|
||||
import { AfterViewInit, ChangeDetectorRef, Component, Input } from "@angular/core";
|
||||
|
||||
import { IconButtonType } from "@bitwarden/components/src/icon-button/icon-button.component";
|
||||
|
||||
import { flagEnabled } from "../../../utils/flags";
|
||||
|
||||
@Component({
|
||||
selector: "product-switcher",
|
||||
templateUrl: "./product-switcher.component.html",
|
||||
})
|
||||
export class ProductSwitcherComponent implements AfterViewInit {
|
||||
protected isEnabled = flagEnabled("secretsManager");
|
||||
|
||||
/**
|
||||
* Passed to the product switcher's `bitIconButton`
|
||||
*/
|
||||
|
||||
@@ -7,14 +7,13 @@ import {
|
||||
} from "@bitwarden/common/platform/misc/flags";
|
||||
|
||||
// required to avoid linting errors when there are no flags
|
||||
/* eslint-disable-next-line @typescript-eslint/ban-types */
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
export type Flags = {
|
||||
secretsManager?: boolean;
|
||||
showPasswordless?: boolean;
|
||||
} & SharedFlags;
|
||||
|
||||
// required to avoid linting errors when there are no flags
|
||||
/* eslint-disable-next-line @typescript-eslint/ban-types */
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
export type DevFlags = {} & SharedDevFlags;
|
||||
|
||||
export function flagEnabled(flag: keyof Flags): boolean {
|
||||
|
||||
Reference in New Issue
Block a user