-
Notifications
You must be signed in to change notification settings - Fork 739
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
FTUE - Combined register copy review #6545
FTUE - Combined register copy review #6545
Conversation
- it was hardcoded for matrix.org and made other server selections cause the page balance to feel off
… for different behaviours
…g the registration flow
- removes confusing extension in favour of splitting the error resets and submit enabled states
9751017
to
67676a4
Compare
SonarCloud Quality Gate failed. |
import javax.inject.Inject | ||
|
||
private const val MINIMUM_PASSWORD_LENGTH = 8 |
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.
My 2 cents: some homeservers may have other rules for password (length, char type usage, etc.). We may have a first error with "password must be 8 chars minimum", then later "password must be 10 chars minimum", which is quite annoying. I would avoid clients to do local check on this field and let the config server side.
} | ||
} | ||
|
||
private fun maybeUpdateHomeserver(userNameOrMatrixId: String, continuation: suspend (String) -> Unit = {}) { |
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.
Not sure that the lint will be ok but I suggest to name the string parameter inside the lambda for clarity
private fun maybeUpdateHomeserver(userNameOrMatrixId: String, continuation: suspend (String) -> Unit = {}) { | |
private fun maybeUpdateHomeserver(userNameOrMatrixId: String, continuation: suspend (userName: String) -> Unit = {}) { |
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 agree with this remark, also having an optional lambda for continuation
is a bit strange to me.
Adam may iterate later, we need to merge the PR and review the next one before tomorrow, and this is not a blocker.
Type of change
Content
Motivation and context
Fixes #6546
To simplify the registration screen copy and reinforce the matrix id concept
Screenshots / GIFs
Tests
With the combined register feature flag enabled and start the registration process
Attempt to register with an account that already exists
Attempt to register with a password shorter than 8 characters
Tested devices