1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 13:23:34 +00:00

[PM-20999] Styling corrections to Access Intelligence - Part 2 (#14552)

This commit is contained in:
Vijay Oommen
2025-05-13 14:29:23 -05:00
committed by GitHub
parent 896c9bd583
commit 1cc06fd3b9
3 changed files with 54 additions and 26 deletions

View File

@@ -140,9 +140,15 @@
"atRiskMembersDescription": { "atRiskMembersDescription": {
"message": "These members are logging into applications with weak, exposed, or reused passwords." "message": "These members are logging into applications with weak, exposed, or reused passwords."
}, },
"atRiskMembersDescriptionNone": {
"message": "These are no members logging into applications with weak, exposed, or reused passwords."
},
"atRiskApplicationsDescription": { "atRiskApplicationsDescription": {
"message": "These applications have weak, exposed, or reused passwords." "message": "These applications have weak, exposed, or reused passwords."
}, },
"atRiskApplicationsDescriptionNone": {
"message": "These are no applications with weak, exposed, or reused passwords."
},
"atRiskMembersDescriptionWithApp": { "atRiskMembersDescriptionWithApp": {
"message": "These members are logging into $APPNAME$ with weak, exposed, or reused passwords.", "message": "These members are logging into $APPNAME$ with weak, exposed, or reused passwords.",
"placeholders": { "placeholders": {
@@ -152,6 +158,15 @@
} }
} }
}, },
"atRiskMembersDescriptionWithAppNone": {
"message": "There are no at risk members for $APPNAME$.",
"placeholders": {
"appname": {
"content": "$1",
"example": "Salesforce"
}
}
},
"totalMembers": { "totalMembers": {
"message": "Total members" "message": "Total members"
}, },

View File

@@ -89,7 +89,7 @@
<bit-menu #rowMenu> <bit-menu #rowMenu>
<button type="button" bitMenuItem (click)="unmarkAsCriticalApp(row.applicationName)"> <button type="button" bitMenuItem (click)="unmarkAsCriticalApp(row.applicationName)">
<i aria-hidden="true" class="bwi bwi-star-f"></i> {{ "unmarkAsCriticalApp" | i18n }} {{ "unmarkAsCriticalApp" | i18n }}
</button> </button>
</bit-menu> </bit-menu>
</td> </td>

View File

@@ -68,19 +68,24 @@
</bit-drawer-header> </bit-drawer-header>
<bit-drawer-body> <bit-drawer-body>
<span bitTypography="body1" class="tw-text-muted tw-text-sm">{{ <span bitTypography="body1" class="tw-text-muted tw-text-sm">{{
"atRiskMembersDescription" | i18n (dataService.atRiskMemberDetails.length > 0
? "atRiskMembersDescription"
: "atRiskMembersDescriptionNone"
) | i18n
}}</span> }}</span>
<div class="tw-flex tw-justify-between tw-mt-2 tw-text-muted"> <ng-container *ngIf="dataService.atRiskMemberDetails.length > 0">
<div bitTypography="body2" class="tw-text-sm tw-font-bold">{{ "email" | i18n }}</div> <div class="tw-flex tw-justify-between tw-mt-2 tw-text-muted">
<div bitTypography="body2" class="tw-text-sm tw-font-bold"> <div bitTypography="body2" class="tw-text-sm tw-font-bold">{{ "email" | i18n }}</div>
{{ "atRiskPasswords" | i18n }} <div bitTypography="body2" class="tw-text-sm tw-font-bold">
</div> {{ "atRiskPasswords" | i18n }}
</div> </div>
<ng-container *ngFor="let member of dataService.atRiskMemberDetails">
<div class="tw-flex tw-justify-between tw-mt-2">
<div>{{ member.email }}</div>
<div>{{ member.atRiskPasswordCount }}</div>
</div> </div>
<ng-container *ngFor="let member of dataService.atRiskMemberDetails">
<div class="tw-flex tw-justify-between tw-mt-2">
<div>{{ member.email }}</div>
<div>{{ member.atRiskPasswordCount }}</div>
</div>
</ng-container>
</ng-container> </ng-container>
</bit-drawer-body> </bit-drawer-body>
</ng-container> </ng-container>
@@ -94,7 +99,10 @@
</div> </div>
<div bitTypography="body1" class="tw-text-muted tw-text-sm tw-mb-2"> <div bitTypography="body1" class="tw-text-muted tw-text-sm tw-mb-2">
{{ {{
"atRiskMembersDescriptionWithApp" | i18n: dataService.appAtRiskMembers.applicationName (dataService.appAtRiskMembers.members.length > 0
? "atRiskMembersDescriptionWithApp"
: "atRiskMembersDescriptionWithAppNone"
) | i18n: dataService.appAtRiskMembers.applicationName
}} }}
</div> </div>
<div class="tw-mt-1"> <div class="tw-mt-1">
@@ -113,21 +121,26 @@
<bit-drawer-body> <bit-drawer-body>
<span bitTypography="body2" class="tw-text-muted tw-text-sm">{{ <span bitTypography="body2" class="tw-text-muted tw-text-sm">{{
"atRiskApplicationsDescription" | i18n (dataService.atRiskAppDetails.length > 0
? "atRiskApplicationsDescription"
: "atRiskApplicationsDescriptionNone"
) | i18n
}}</span> }}</span>
<div class="tw-flex tw-justify-between tw-mt-2 tw-text-muted"> <ng-container *ngIf="dataService.atRiskAppDetails.length > 0">
<div bitTypography="body2" class="tw-text-sm tw-font-bold"> <div class="tw-flex tw-justify-between tw-mt-2 tw-text-muted">
{{ "application" | i18n }} <div bitTypography="body2" class="tw-text-sm tw-font-bold">
</div> {{ "application" | i18n }}
<div bitTypography="body2" class="tw-text-sm tw-font-bold"> </div>
{{ "atRiskPasswords" | i18n }} <div bitTypography="body2" class="tw-text-sm tw-font-bold">
</div> {{ "atRiskPasswords" | i18n }}
</div> </div>
<ng-container *ngFor="let app of dataService.atRiskAppDetails">
<div class="tw-flex tw-justify-between tw-mt-2">
<div>{{ app.applicationName }}</div>
<div>{{ app.atRiskPasswordCount }}</div>
</div> </div>
<ng-container *ngFor="let app of dataService.atRiskAppDetails">
<div class="tw-flex tw-justify-between tw-mt-2">
<div>{{ app.applicationName }}</div>
<div>{{ app.atRiskPasswordCount }}</div>
</div>
</ng-container>
</ng-container> </ng-container>
</bit-drawer-body> </bit-drawer-body>
</ng-container> </ng-container>