mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-16 01:21:48 +01:00
[AC-2614] Member Access Localization (#10931)
* Initial setup and modifications for member access report api implementation * Adding the permissions logic for getting the permissions text * fixing the test cases * Some refactoring on async calls * Comments on the model * Resolving the mock issue * messages * Localization of text * One more file to fix merge
This commit is contained in:
parent
456b156729
commit
8a199a1f66
@ -8756,6 +8756,27 @@
|
|||||||
"memberAccessReportPageDesc": {
|
"memberAccessReportPageDesc": {
|
||||||
"message": "Audit organization member access across groups, collections, and collection items. The CSV export provides a detailed breakdown per member, including information on collection permissions and account configurations."
|
"message": "Audit organization member access across groups, collections, and collection items. The CSV export provides a detailed breakdown per member, including information on collection permissions and account configurations."
|
||||||
},
|
},
|
||||||
|
"memberAccessReportNoCollection": {
|
||||||
|
"message": "(No Collection)"
|
||||||
|
},
|
||||||
|
"memberAccessReportNoCollectionPermission": {
|
||||||
|
"message": "(No Collection Permission)"
|
||||||
|
},
|
||||||
|
"memberAccessReportNoGroup": {
|
||||||
|
"message": "(No Group)"
|
||||||
|
},
|
||||||
|
"memberAccessReportTwoFactorEnabledTrue": {
|
||||||
|
"message": "On"
|
||||||
|
},
|
||||||
|
"memberAccessReportTwoFactorEnabledFalse": {
|
||||||
|
"message": "Off"
|
||||||
|
},
|
||||||
|
"memberAccessReportAuthenticationEnabledTrue": {
|
||||||
|
"message": "On"
|
||||||
|
},
|
||||||
|
"memberAccessReportAuthenticationEnabledFalse": {
|
||||||
|
"message": "Off"
|
||||||
|
},
|
||||||
"higherKDFIterations": {
|
"higherKDFIterations": {
|
||||||
"message": "Higher KDF iterations can help protect your master password from being brute forced by an attacker."
|
"message": "Higher KDF iterations can help protect your master password from being brute forced by an attacker."
|
||||||
},
|
},
|
||||||
|
@ -64,14 +64,25 @@ export class MemberAccessReportService {
|
|||||||
|
|
||||||
const exportItems = memberAccessReports.flatMap((report) => {
|
const exportItems = memberAccessReports.flatMap((report) => {
|
||||||
const userDetails = report.accessDetails.map((detail) => {
|
const userDetails = report.accessDetails.map((detail) => {
|
||||||
|
const collectionName = collectionNameMap.get(detail.collectionName.encryptedString);
|
||||||
return {
|
return {
|
||||||
email: report.email,
|
email: report.email,
|
||||||
name: report.userName,
|
name: report.userName,
|
||||||
twoStepLogin: report.twoFactorEnabled ? "On" : "Off",
|
twoStepLogin: report.twoFactorEnabled
|
||||||
accountRecovery: report.accountRecoveryEnabled ? "On" : "Off",
|
? this.i18nService.t("memberAccessReportTwoFactorEnabledTrue")
|
||||||
group: detail.groupName,
|
: this.i18nService.t("memberAccessReportTwoFactorEnabledFalse"),
|
||||||
collection: collectionNameMap.get(detail.collectionName.encryptedString),
|
accountRecovery: report.accountRecoveryEnabled
|
||||||
collectionPermission: this.getPermissionText(detail),
|
? this.i18nService.t("memberAccessReportAuthenticationEnabledTrue")
|
||||||
|
: this.i18nService.t("memberAccessReportAuthenticationEnabledFalse"),
|
||||||
|
group: detail.groupName
|
||||||
|
? detail.groupName
|
||||||
|
: this.i18nService.t("memberAccessReportNoGroup"),
|
||||||
|
collection: collectionName
|
||||||
|
? collectionName
|
||||||
|
: this.i18nService.t("memberAccessReportNoCollection"),
|
||||||
|
collectionPermission: detail.collectionId
|
||||||
|
? this.getPermissionText(detail)
|
||||||
|
: this.i18nService.t("memberAccessReportNoCollection"),
|
||||||
totalItems: detail.itemCount.toString(),
|
totalItems: detail.itemCount.toString(),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
@ -10,12 +10,12 @@ export type MemberAccessExportItem = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const userReportItemHeaders: { [key in keyof MemberAccessExportItem]: string } = {
|
export const userReportItemHeaders: { [key in keyof MemberAccessExportItem]: string } = {
|
||||||
email: "Email Address",
|
email: "Email",
|
||||||
name: "Full Name",
|
name: "Name",
|
||||||
twoStepLogin: "Two-Step Login",
|
twoStepLogin: "Two-Step Login",
|
||||||
accountRecovery: "Account Recovery",
|
accountRecovery: "Account Recovery",
|
||||||
group: "Group Name",
|
group: "Group",
|
||||||
collection: "Collection Name",
|
collection: "Collection",
|
||||||
collectionPermission: "Collection Permission",
|
collectionPermission: "Collection Permission",
|
||||||
totalItems: "Total Items",
|
totalItems: "Total Items",
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user