Skip to content

fix(passkeys): Show passkeys unsupported error in alert bar#20544

Open
vpomerleau wants to merge 1 commit intomainfrom
FXA-13683
Open

fix(passkeys): Show passkeys unsupported error in alert bar#20544
vpomerleau wants to merge 1 commit intomainfrom
FXA-13683

Conversation

@vpomerleau
Copy link
Copy Markdown
Contributor

@vpomerleau vpomerleau commented May 8, 2026

Because

  • The implementation matched an outdated design

This pull request

  • Update the error messsage, and include a support link in the error component
  • Show the updated message in an alert bar, not inline

Issue that this pull request solves

Closes: FXA-13683

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).
  • I have manually reviewed all AI generated code.

How to review (Optional)

  • Key files/areas to focus on:
  • Suggested review order:
  • Risky or complex parts:

Screenshots (Optional)

Screenshot 2026-05-07 at 5 02 25 PM

Other information (Optional)

Any other information that is important to this pull request.

Because:

* The implementation matched an outdated design

This commit:

* Update the error messsage, and include a support link in the error component
* Show the updated message in an alert bar, not inline

Closes #FXA-13683
Copilot AI review requested due to automatic review settings May 8, 2026 00:10
@vpomerleau vpomerleau requested review from a team as code owners May 8, 2026 00:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the passkeys “not supported” UX in Firefox Accounts Settings to match the newer design by switching from an inline/banner message to an AlertBar message and adding a “Learn more” support link.

Changes:

  • Update WebAuthn NotSupportedError localization keys/text (including a new -v2 registration string) and add a dedicated “Learn more” link label.
  • Introduce a shared UnsupportedPasskeyAlert React component and trigger it via useAlertBar() from the Passkeys settings row and passkey creation flow.
  • Add a WebAuthn support pre-check before mounting the MFA guard for passkey creation, with updated unit tests/stories.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/fxa-settings/src/lib/passkeys/webauthn-errors.ts Updates NotSupportedError FTL id/text for registration and aligns fallback text.
packages/fxa-settings/src/lib/passkeys/index.ts Re-exports passkeys constants.
packages/fxa-settings/src/lib/passkeys/en.ftl Adds new not-supported-v2 message and link label; updates auth not-supported text.
packages/fxa-settings/src/lib/passkeys/constants.ts Introduces PASSKEY_SUPPORT_URL constant (currently placeholder).
packages/fxa-settings/src/components/Settings/UnsupportedPasskeyAlert/index.tsx Adds shared alert content with localized text + external support link.
packages/fxa-settings/src/components/Settings/UnitRowPasskey/index.tsx Uses AlertBar for unsupported WebAuthn instead of inline error banner; uses shared support URL.
packages/fxa-settings/src/components/Settings/UnitRowPasskey/index.test.tsx Updates tests to assert AlertBar push behavior and support link URL.
packages/fxa-settings/src/components/Settings/UnitRowPasskey/index.stories.tsx Adds AlertBar to stories so pushed alerts are visible.
packages/fxa-settings/src/components/Settings/UnitRowPasskey/en.ftl Removes old inline “webauthn not supported” banner string.
packages/fxa-settings/src/components/Settings/PagePasskeyAdd/index.tsx Adds pre-check to avoid MFA prompt when WebAuthn is unsupported; special-cases NotSupported to use shared alert.
packages/fxa-settings/src/components/Settings/PagePasskeyAdd/index.test.tsx Adds coverage for NotSupported alert content/link and for the pre-check redirect behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +5 to +7
// TODO: Update with the actual SUMO support article link once published.
export const PASSKEY_SUPPORT_URL =
'https://support.mozilla.org/kb/placeholder-article';
).toHaveBeenCalledWith({
event: { reason: 'not_supported' },
});
// Defensive defensive case: pre-check at MfaGuardPagePasskeyAdd is the
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants