-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Invites: Do not show sign up for match email error to known user #2793
Conversation
@rickybanister mentions that an error notice is not needed in this case |
8a2f77c
to
2eaaf0a
Compare
Disregard, I was actually logged in 😞 Code wise, this looks good to me. Let's just get a design review from @rickybanister. Here are updated screenshots:
|
The disabled email field still needs an italic note beneath it explaining why it's disabled/cannot be edited. Something like The invitation can only be accepted by %email-address% |
2eaaf0a
to
6c4ca2c
Compare
Screenshot for the italic note that @rickybanister suggested. |
@@ -6,6 +6,10 @@ | |||
max-height: 0; | |||
overflow: hidden; | |||
transition: all .3s ease-in-out; | |||
&.no-validate { |
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.
I believe we need a blank line above this.
I left a couple of comments about the no validate style. Besides that, this LGTM. |
Perfect @roccotripaldi ! Now we're talking. |
6c4ca2c
to
c1b177c
Compare
Addressed your feedback @ebinnion - thanks! |
whoa, good catch |
@roccotripaldi – I pushed up a commit that I believe fixes that error. In my testing, the issue seemed to be that we update state after getting an invite and then right after that we update state to set My commit refactors the I tested both logged in and logged out flows for forcing email, and I didn't notice any regressions. If you're fine with my changes, then |
dc5a820
to
968b2fb
Compare
I was getting |
968b2fb
to
d0d5c44
Compare
}; | ||
console.log( props ); |
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.
Let's remove this.
d0d5c44
to
cb438a2
Compare
@roccotripaldi - Thanks for fixing the error. I reviewed again and this LGTM. |
cb438a2
to
c6d0781
Compare
c6d0781
to
cdba7e9
Compare
…wn-user Invites: Do not show sign up for match email error to known user
If an invite was sent to a known user, and the site requires that all
invites be accepted with a matching email, there's no need to show a signup form.
Closes #2767
Prior to this PR we'd present this for invites to known users:
But it doesn't make sense to ask a known user to sign up. So this PR will instead present this:
To test: