Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX: Minor fixes to passkey handling #23947

Merged
merged 3 commits into from Oct 18, 2023
Merged

UX: Minor fixes to passkey handling #23947

merged 3 commits into from Oct 18, 2023

Conversation

pmusaraj
Copy link
Contributor

@pmusaraj pmusaraj commented Oct 16, 2023

  • don't try to guess the name of the manager (too many options)
  • improve error message when registration is not allowed
  • output error in console when registration fails
  • minor fix to rename dialog layout
  • hides action buttons in DiscourseHub (because adding passkeys there is not possible)
  • adds acceptance test to ensure action buttons are hidden for admins seeing another user's profile

- don't try to guess the name of the manager (too many options)
- improve error message when registration is not allowed
- output error in console when registration fails
@@ -111,6 +102,8 @@ export default class UserPasskeys extends Component {
bodyComponentModel: registrationResponse,
});
} catch (error) {
// eslint-disable-next-line no-console
console.error(error);
Copy link
Contributor

Choose a reason for hiding this comment

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

Leftover or (considering the eslint-disable...) intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, it's intentional. In this particular case, it's good to output the error in the console, it can help debug issues with a particular credential.

@pmusaraj pmusaraj merged commit a125c9e into main Oct 18, 2023
17 checks passed
@pmusaraj pmusaraj deleted the minor-changes-passkeys branch October 18, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants