Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Refactor
Session.resendValidationLink
and theResendValidationForm
to use the new API #10556Refactor
Session.resendValidationLink
and theResendValidationForm
to use the new API #10556Changes from all commits
6ed249a
fc01f7f
1444f37
7edabc4
ae97682
1ade4cd
2ef66fd
1d17c28
4672cd2
db9ea54
de7b94c
eeb48e9
840aaac
3e33ea3
4f6987e
33028f5
9576ee0
04d7fe1
e9920b7
f76df2b
ec3b6c2
5154fe0
ce3061a
e9f90bb
6f80da2
f5bed5e
070113f
6ba7db4
44de7e3
53de0a3
2c0ffff
de9a109
a814cc5
b47e419
be3212d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 know we did this before here, but I don't get why would we only care about one error message
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.
👍 yeah I was wondering about this too actually... won't errors also be keyed by microtime so we should be able to sort based on those values - not that we need to necessarily?
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.
So I actually took this logic from the LoginForm here, which displays the latest error. I simply moved that logic into
getLatestErrorMessage
since I thought it made sense to reuse them here, since they're all part of the same flow.Doesn't it make sense to only display the latest error though? Why would a user want to know about the other previous errors if they're unrelated to the last action they took?
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.
cc @iwiznia @bondydaa ^
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.
Hi ✋ coming from #17216, where this message is not translated when a user changes the language.
Localized text saved in Onyx is not translated when the locale is changed. So instead, we should save the key and translate it at the component level.
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 still don't get why we only care about one error... NAB though since this existed before
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.
Why do we need to check that there are no errors to add the border bottom?
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.
Because if there are errors, then the border bottom style is also added to the error row above. If we always add it here then we'd end up in a situation like this:
With the condition that fixes the problem: