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

Add Supported Fields Based on Registrar fields bit flags #46

Merged
merged 8 commits into from
Feb 13, 2025

Conversation

71walceli
Copy link
Collaborator

This pull request includes several changes to the identity-registrar and IdentityForm components to enhance the handling of supported identity fields and improve the form's flexibility and functionality.

Enhancements to identity-registrar component:

  • Added a new supportedFields property to MainContentProps to dynamically handle supported identity fields. [1] [2] [3] [4]
  • Introduced a getSupportedFields function to determine supported fields based on a bitfield and updated the IdentityRegistrarComponent to use this function.

Enhancements to IdentityForm component:

  • Expanded the list of identity fields with additional options such as legal, web, matrix, email, discord, twitter, image, github, and pgp_fingerprint, each with validation and transformation logic. [1] [2] [3]
  • Updated the form to filter and display only the supported fields based on the supportedFields property. [1] [2]
  • Improved the handling of form data and error messages to ensure proper validation and user feedback.

@hitchhooker hitchhooker merged commit 75b52f2 into main Feb 13, 2025
1 check failed
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