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

fix(console): Add new providers in designer, after persistence #2719

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

betimshahini
Copy link
Contributor

Description

In scenarios where providers are already persisted in the Designer through a previous user-selection, this allows dynamic addition of new providers as they're added to the codebase. This new provider will be persisted once the Designer is saved.

Related Issues

Testing

  • Starting with an app with a previous designer configuration, added a new fake provider in Authentication.tsx, knownKeys array.
  • Verified this shows up in the providers list
  • Verified that the same persists on the backend upon saving.

Checklist

  • I have read the CONTRIBUTING guidelines
  • I have tested my code (manually and/or automated if applicable)
  • I have updated the documentation (if necessary)

@@ -360,14 +360,22 @@ const AuthPanel = ({
appTheme?.graphicURL
)

const diffOfProviders = AuthenticationScreenDefaults.knownKeys
.filter((k) => !appTheme?.providers?.some((v) => v.key === k))
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it's worth handling possible duplicate keys?

@betimshahini betimshahini merged commit 4bfc30b into main Oct 17, 2023
14 checks passed
@betimshahini betimshahini deleted the fix/2712-new-providers-in-designer branch October 17, 2023 13:48
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.

bug(console): Add new providers to persisted provider configurations in Designer
2 participants