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
[default-login] Allow overriding provider list #461
Conversation
b13eec4
to
19d64e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments and questions, otherwise LGTM.
``` | ||
{ | ||
// Your custom provider implementations | ||
"customProviders": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the sake of brevity, could this key be just providers
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was my first name, however it was pretty confusing, because they can be appended to or replace the existing providers. I think this made it more clear what this really is.
@@ -19,14 +54,14 @@ static propTypes = { | |||
]).isRequired, | |||
title: PropTypes.string, | |||
description: PropTypes.string, | |||
sanityLogo: PropTypes.node | |||
SanityLogo: PropTypes.component |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think PropTypes.component
exists? At least it's undocumented: https://reactjs.org/docs/typechecking-with-proptypes.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh, invalid readme. The code is ok though.
@@ -0,0 +1,5 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if non-enterprise users adds providers here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They will be sent to whatever URL they give, however they will not be able to produce an actual Sanity session on their side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should warn or give some kind of feedback if that happens?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we now warn when the custom provider logo is clicked and the project is missing the feature. In this way someone can implement this before they get the actual bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Maybe the default svg logo could be placed in the base/components/icons if we want to reuse it (base part).
👍 to @kristofferj's suggestion about the question mark icon |
e4e5830
to
e672c72
Compare
4bc05d2
to
e963d9b
Compare
e672c72
to
889af3f
Compare
…le (#461) Allow overriding and configuring the provider list in the default-login part. This is to support the third party login enterprise features.
…le (#461) Allow overriding and configuring the provider list in the default-login part. This is to support the third party login enterprise features.
…le (#461) Allow overriding and configuring the provider list in the default-login part. This is to support the third party login enterprise features.
…le (#461) Allow overriding and configuring the provider list in the default-login part. This is to support the third party login enterprise features.
…le (#461) Allow overriding and configuring the provider list in the default-login part. This is to support the third party login enterprise features.
…le (#461) Allow overriding and configuring the provider list in the default-login part. This is to support the third party login enterprise features.
…le (#461) Allow overriding and configuring the provider list in the default-login part. This is to support the third party login enterprise features.
…le (#461) Allow overriding and configuring the provider list in the default-login part. This is to support the third party login enterprise features.
…le (#461) Allow overriding and configuring the provider list in the default-login part. This is to support the third party login enterprise features.
…le (#461) Allow overriding and configuring the provider list in the default-login part. This is to support the third party login enterprise features.
…le (#461) Allow overriding and configuring the provider list in the default-login part. This is to support the third party login enterprise features.
Allow overriding and configuring the provider list in the default-login part.
This is to support the third party login enterprise features.