-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(settings): Generate recovery key as PDF
Because: * We want to include more information in the recovery key file, and rendering for localized content in .txt format was inconsistent accross apps and platforms. This commit: * Add react-pdf library and associated dependencies for client-side PDF generation * Add DownloadRecoveryKeyPDF component to handle PDF generation and download * Create RecoveryKeyPDF with styling and l10n * Update tests for recovery key * Add pdf-parse library to test PDF content with Playwright * Add font assets to fxa-settings for PDF creation * Remove fonts from CDN assets folder (no longer needed) * Use mono font for account recovery key in React app and PDF to help user differentiate between similar characters such as O and 0 Closes #FXA-7223
- Loading branch information
1 parent
56026cd
commit fa400c5
Showing
60 changed files
with
1,586 additions
and
491 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
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
35 changes: 0 additions & 35 deletions
35
packages/fxa-settings/src/components/ButtonDownloadRecoveryKey/en.ftl
This file was deleted.
Oops, something went wrong.
65 changes: 0 additions & 65 deletions
65
packages/fxa-settings/src/components/ButtonDownloadRecoveryKey/index.stories.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.