-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(auth): [PM-3953] generalize copy for login with device flows
Updates UI text and translations for the login with device feature to be more consistent and clear across desktop, browser and web clients. Changes include: - Updated titles and content for login via auth request components - Revised translations for device approval modal - Updated notification titles and alert messages - Simplified device management URL handling - Added missing translations across platforms Resolves PM-3953
- Loading branch information
1 parent
91509f2
commit 8e70d5b
Showing
16 changed files
with
146 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,15 +51,15 @@ describe("DesktopLoginApprovalComponentService", () => { | |
it("calls ipc.auth.loginRequest with correct parameters when window is not visible", async () => { | ||
const title = "Log in requested"; | ||
const email = "[email protected]"; | ||
const message = `Confirm login attempt for ${email}`; | ||
const message = `Confirm access attempt for ${email}`; | ||
const closeText = "Close"; | ||
|
||
const loginApprovalComponent = { email } as LoginApprovalComponent; | ||
i18nService.t.mockImplementation((key: string) => { | ||
switch (key) { | ||
case "logInRequested": | ||
case "accountAccessRequested": | ||
return title; | ||
case "confirmLoginAtemptForMail": | ||
case "confirmAccessAttempt": | ||
return message; | ||
case "close": | ||
return closeText; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1203,6 +1203,9 @@ | |
"logInInitiated": { | ||
"message": "Log in initiated" | ||
}, | ||
"logInRequestSent": { | ||
"message": "Request sent" | ||
}, | ||
"submit": { | ||
"message": "Submit" | ||
}, | ||
|
@@ -1392,12 +1395,39 @@ | |
"notificationSentDevice": { | ||
"message": "A notification has been sent to your device." | ||
}, | ||
"notificationSentDevicePart1": { | ||
"message": "Unlock Bitwarden on your device or on the " | ||
}, | ||
"areYouTryingToAccessYourAccount": { | ||
"message": "Are you trying to access your account?" | ||
}, | ||
"accessAttemptBy": { | ||
"message": "Access attempt by $EMAIL$", | ||
"placeholders": { | ||
"email": { | ||
"content": "$1", | ||
"example": "[email protected]" | ||
} | ||
} | ||
}, | ||
"confirmAccess": { | ||
"message": "Confirm access" | ||
}, | ||
"denyAccess": { | ||
"message": "Deny access" | ||
}, | ||
"notificationSentDeviceAnchor": { | ||
"message": "web app" | ||
}, | ||
"notificationSentDevicePart2": { | ||
"message": "Make sure the Fingerprint phrase matches the one below before approving." | ||
}, | ||
"notificationSentDeviceComplete": { | ||
"message": "Unlock Bitwarden on your device. Make sure the Fingerprint phrase matches the one below before approving." | ||
}, | ||
"aNotificationWasSentToYourDevice": { | ||
"message": "A notification was sent to your device" | ||
}, | ||
"makeSureYourAccountIsUnlockedAndTheFingerprintEtc": { | ||
"message": "Make sure your account is unlocked and the fingerprint phrase matches on the other device" | ||
}, | ||
"versionNumber": { | ||
"message": "Version $VERSION_NUMBER$", | ||
"placeholders": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.