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

FTUE tweaks #6450

Merged
merged 1 commit into from
Jul 19, 2022
Merged

FTUE tweaks #6450

merged 1 commit into from
Jul 19, 2022

Conversation

pixlwave
Copy link
Member

There is one more string to update, otherwise this is it (pending user testing).

  • Allow login using a phone number.
  • Update the server when entering a full MXID during registration.
  • Reset the authentication service back to matrix.org after onboarding completes.
  • Disable zoom on ReCaptcha to fix responsiveness issue.
  • Tidy up unused methods.

Closes #6428. Closes #6429. Closes #6430.

Input of full MXID during Registration
Simulator Screen Recording - iPhone 13 Pro - 2022-07-18 at 14 31 57

- Allow login using a phone number.
- Update the server when entering a full MXID during registration.
- Reset the authentication service back to matrix.org after onboarding completes.
- Disable zoom on ReCaptcha to fix responsiveness issue.
- Tidy up unused methods.
@pixlwave pixlwave requested review from a team and SBiOSoftWhare and removed request for a team July 18, 2022 15:44
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Contributor

@SBiOSoftWhare SBiOSoftWhare left a comment

Choose a reason for hiding this comment

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

LGTM, just some small questions

@@ -195,8 +195,8 @@ final class AuthenticationLoginCoordinator: Coordinator, Presentable {

@MainActor private func parseUsername(_ username: String) {
guard MXTools.isMatrixUserIdentifier(username) else { return }
let domain = username.split(separator: ":")[1]
let homeserverAddress = HomeserverAddress.sanitized(String(domain))
let domain = username.components(separatedBy: ":")[1]
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a risk to get username without : symbol here? if yes it can crash.

Copy link
Member Author

Choose a reason for hiding this comment

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

There shouldn't be as the guard MXTools.isMatrixUserIdentifier(username) else { return } should prevent us from reaching this code if it isn't a valid MXID.

@@ -59,10 +59,20 @@ class AuthenticationRegistrationViewModel: AuthenticationRegistrationViewModelTy
}
}

@MainActor func update(isLoading: Bool) {
guard state.isLoading != isLoading else { return }
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there existing way like property wrappers to have this behavior?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nothing built in as far as I'm aware but wouldn't be difficult to make one. Seems a bit out of scope to start doing that in this PR though.

@github-actions
Copy link

📱 Scan the QR code below to install the build for this PR.
🔒 This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.

QR code

If you can't scan the QR code you can install the build via this link: https://i.diawi.com/MS2iXy

@pixlwave pixlwave merged commit e3bcb71 into develop Jul 19, 2022
@pixlwave pixlwave deleted the doug/ftue-tweaks branch July 19, 2022 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants