mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
[PM-20997] Part 1 of PM-20117 - Styling Changes (#14527)
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
icon="bwi-filter"
|
icon="bwi-filter"
|
||||||
*ngIf="organization.useRiskInsights"
|
*ngIf="organization.useRiskInsights"
|
||||||
[text]="'accessIntelligence' | i18n"
|
[text]="'accessIntelligence' | i18n"
|
||||||
|
route="access-intelligence"
|
||||||
>
|
>
|
||||||
<bit-nav-item
|
<bit-nav-item
|
||||||
[text]="'riskInsights' | i18n"
|
[text]="'riskInsights' | i18n"
|
||||||
|
|||||||
@@ -98,8 +98,8 @@
|
|||||||
"markAppAsCritical": {
|
"markAppAsCritical": {
|
||||||
"message": "Mark app as critical"
|
"message": "Mark app as critical"
|
||||||
},
|
},
|
||||||
"appsMarkedAsCritical": {
|
"applicationsMarkedAsCriticalSuccess": {
|
||||||
"message": "Apps marked as critical"
|
"message": "Applications marked as critical"
|
||||||
},
|
},
|
||||||
"application": {
|
"application": {
|
||||||
"message": "Application"
|
"message": "Application"
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ export type ApplicationHealthReportDetail = {
|
|||||||
atRiskMemberCount: number;
|
atRiskMemberCount: number;
|
||||||
memberDetails: MemberDetailsFlat[];
|
memberDetails: MemberDetailsFlat[];
|
||||||
atRiskMemberDetails: MemberDetailsFlat[];
|
atRiskMemberDetails: MemberDetailsFlat[];
|
||||||
|
cipher: CipherView;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ApplicationHealthReportDetailWithCriticalFlag = ApplicationHealthReportDetail & {
|
export type ApplicationHealthReportDetailWithCriticalFlag = ApplicationHealthReportDetail & {
|
||||||
@@ -48,6 +49,7 @@ export type CipherHealthReportUriDetail = {
|
|||||||
exposedPasswordDetail: ExposedPasswordDetail;
|
exposedPasswordDetail: ExposedPasswordDetail;
|
||||||
cipherMembers: MemberDetailsFlat[];
|
cipherMembers: MemberDetailsFlat[];
|
||||||
trimmedUri: string;
|
trimmedUri: string;
|
||||||
|
cipher: CipherView;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -355,6 +355,7 @@ export class RiskInsightsReportService {
|
|||||||
atRiskMemberDetails: existingUriDetail ? existingUriDetail.atRiskMemberDetails : [],
|
atRiskMemberDetails: existingUriDetail ? existingUriDetail.atRiskMemberDetails : [],
|
||||||
atRiskPasswordCount: existingUriDetail ? existingUriDetail.atRiskPasswordCount : 0,
|
atRiskPasswordCount: existingUriDetail ? existingUriDetail.atRiskPasswordCount : 0,
|
||||||
atRiskMemberCount: existingUriDetail ? existingUriDetail.atRiskMemberDetails.length : 0,
|
atRiskMemberCount: existingUriDetail ? existingUriDetail.atRiskMemberDetails.length : 0,
|
||||||
|
cipher: newUriDetail.cipher,
|
||||||
} as ApplicationHealthReportDetail;
|
} as ApplicationHealthReportDetail;
|
||||||
|
|
||||||
if (isAtRisk) {
|
if (isAtRisk) {
|
||||||
@@ -399,6 +400,7 @@ export class RiskInsightsReportService {
|
|||||||
exposedPasswordDetail: detail.exposedPasswordDetail,
|
exposedPasswordDetail: detail.exposedPasswordDetail,
|
||||||
cipherMembers: detail.cipherMembers,
|
cipherMembers: detail.cipherMembers,
|
||||||
trimmedUri: uri,
|
trimmedUri: uri,
|
||||||
|
cipher: detail as CipherView,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { organizationPermissionsGuard } from "@bitwarden/web-vault/app/admin-con
|
|||||||
import { RiskInsightsComponent } from "./risk-insights.component";
|
import { RiskInsightsComponent } from "./risk-insights.component";
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
|
{ path: "", pathMatch: "full", redirectTo: "risk-insights" },
|
||||||
{
|
{
|
||||||
path: "risk-insights",
|
path: "risk-insights",
|
||||||
canActivate: [organizationPermissionsGuard((org) => org.useRiskInsights)],
|
canActivate: [organizationPermissionsGuard((org) => org.useRiskInsights)],
|
||||||
|
|||||||
@@ -56,16 +56,15 @@
|
|||||||
[formControl]="searchControl"
|
[formControl]="searchControl"
|
||||||
></bit-search>
|
></bit-search>
|
||||||
<button
|
<button
|
||||||
class="tw-rounded-lg"
|
|
||||||
type="button"
|
type="button"
|
||||||
buttonType="secondary"
|
[buttonType]="'primary'"
|
||||||
bitButton
|
bitButton
|
||||||
*ngIf="isCriticalAppsFeatureEnabled"
|
*ngIf="isCriticalAppsFeatureEnabled"
|
||||||
[disabled]="!selectedUrls.size"
|
[disabled]="!selectedUrls.size"
|
||||||
[loading]="markingAsCritical"
|
[loading]="markingAsCritical"
|
||||||
(click)="markAppsAsCritical()"
|
(click)="markAppsAsCritical()"
|
||||||
>
|
>
|
||||||
<i class="bwi bwi-star-f tw-mr-2"></i>
|
<i class="bwi tw-mr-2" [ngClass]="selectedUrls.size ? 'bwi-star-f' : 'bwi-star'"></i>
|
||||||
{{ "markAppAsCritical" | i18n }}
|
{{ "markAppAsCritical" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import { ConfigService } from "@bitwarden/common/platform/abstractions/config/co
|
|||||||
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";
|
||||||
import {
|
import {
|
||||||
|
IconButtonModule,
|
||||||
Icons,
|
Icons,
|
||||||
NoItemsModule,
|
NoItemsModule,
|
||||||
SearchModule,
|
SearchModule,
|
||||||
@@ -53,6 +54,7 @@ import { ApplicationsLoadingComponent } from "./risk-insights-loading.component"
|
|||||||
NoItemsModule,
|
NoItemsModule,
|
||||||
SharedModule,
|
SharedModule,
|
||||||
AppTableRowScrollableComponent,
|
AppTableRowScrollableComponent,
|
||||||
|
IconButtonModule,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class AllApplicationsComponent implements OnInit {
|
export class AllApplicationsComponent implements OnInit {
|
||||||
@@ -160,7 +162,7 @@ export class AllApplicationsComponent implements OnInit {
|
|||||||
this.toastService.showToast({
|
this.toastService.showToast({
|
||||||
variant: "success",
|
variant: "success",
|
||||||
title: "",
|
title: "",
|
||||||
message: this.i18nService.t("appsMarkedAsCritical"),
|
message: this.i18nService.t("applicationsMarkedAsCriticalSuccess"),
|
||||||
});
|
});
|
||||||
} finally {
|
} finally {
|
||||||
this.selectedUrls.clear();
|
this.selectedUrls.clear();
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
<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 *ngIf="isCriticalAppsFeatureEnabled"></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>
|
||||||
<th bitSortable="passwordCount" bitCell>{{ "totalPasswords" | i18n }}</th>
|
<th bitSortable="passwordCount" bitCell>{{ "totalPasswords" | i18n }}</th>
|
||||||
@@ -30,6 +31,9 @@
|
|||||||
>
|
>
|
||||||
<i class="bwi bwi-star-f" *ngIf="row.isMarkedAsCritical"></i>
|
<i class="bwi bwi-star-f" *ngIf="row.isMarkedAsCritical"></i>
|
||||||
</td>
|
</td>
|
||||||
|
<td bitCell>
|
||||||
|
<app-vault-icon [cipher]="row.cipher"></app-vault-icon>
|
||||||
|
</td>
|
||||||
<td
|
<td
|
||||||
class="tw-cursor-pointer"
|
class="tw-cursor-pointer"
|
||||||
[ngClass]="{ 'tw-bg-primary-100': isDrawerIsOpenForThisRecord(row.applicationName) }"
|
[ngClass]="{ 'tw-bg-primary-100': isDrawerIsOpenForThisRecord(row.applicationName) }"
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
<ng-container>
|
<ng-container>
|
||||||
<bit-layout>
|
<bit-layout>
|
||||||
<div class="tw-mb-1 tw-text-primary-600" bitTypography="body1">
|
|
||||||
{{ "accessIntelligence" | i18n }}
|
|
||||||
</div>
|
|
||||||
<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-main tw-max-w-4xl tw-mb-2">
|
||||||
{{ "reviewAtRiskPasswords" | i18n }}
|
{{ "reviewAtRiskPasswords" | i18n }}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@@ -74,8 +71,10 @@
|
|||||||
"atRiskMembersDescription" | i18n
|
"atRiskMembersDescription" | i18n
|
||||||
}}</span>
|
}}</span>
|
||||||
<div class="tw-flex tw-justify-between tw-mt-2 tw-text-muted">
|
<div class="tw-flex tw-justify-between tw-mt-2 tw-text-muted">
|
||||||
<div bitTypography="body2" class="tw-font-bold">{{ "email" | i18n }}</div>
|
<div bitTypography="body2" class="tw-text-sm tw-font-bold">{{ "email" | i18n }}</div>
|
||||||
<div bitTypography="body2" class="tw-font-bold">{{ "atRiskPasswords" | i18n }}</div>
|
<div bitTypography="body2" class="tw-text-sm tw-font-bold">
|
||||||
|
{{ "atRiskPasswords" | i18n }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ng-container *ngFor="let member of dataService.atRiskMemberDetails">
|
<ng-container *ngFor="let member of dataService.atRiskMemberDetails">
|
||||||
<div class="tw-flex tw-justify-between tw-mt-2">
|
<div class="tw-flex tw-justify-between tw-mt-2">
|
||||||
@@ -117,8 +116,12 @@
|
|||||||
"atRiskApplicationsDescription" | i18n
|
"atRiskApplicationsDescription" | i18n
|
||||||
}}</span>
|
}}</span>
|
||||||
<div class="tw-flex tw-justify-between tw-mt-2 tw-text-muted">
|
<div class="tw-flex tw-justify-between tw-mt-2 tw-text-muted">
|
||||||
<div bitTypography="body2" class="tw-font-bold">{{ "application" | i18n }}</div>
|
<div bitTypography="body2" class="tw-text-sm tw-font-bold">
|
||||||
<div bitTypography="body2" class="tw-font-bold">{{ "atRiskPasswords" | i18n }}</div>
|
{{ "application" | i18n }}
|
||||||
|
</div>
|
||||||
|
<div bitTypography="body2" class="tw-text-sm tw-font-bold">
|
||||||
|
{{ "atRiskPasswords" | i18n }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ng-container *ngFor="let app of dataService.atRiskAppDetails">
|
<ng-container *ngFor="let app of dataService.atRiskAppDetails">
|
||||||
<div class="tw-flex tw-justify-between tw-mt-2">
|
<div class="tw-flex tw-justify-between tw-mt-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user