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

fix(apple): Debounce sign in button #4334

Merged
merged 1 commit into from
Mar 27, 2024
Merged

fix(apple): Debounce sign in button #4334

merged 1 commit into from
Mar 27, 2024

Conversation

jamilbk
Copy link
Member

@jamilbk jamilbk commented Mar 27, 2024

The handler for opening the webview can sometimes take a few seconds, so this is to prevent users from accidentally double-tapping the sign in button.

Copy link

vercel bot commented Mar 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
firezone ⬜️ Ignored (Inspect) Visit Preview Mar 27, 2024 4:44am

@jamilbk jamilbk self-assigned this Mar 27, 2024
Copy link

github-actions bot commented Mar 27, 2024

Terraform Cloud Plan Output

Plan: 9 to add, 8 to change, 9 to destroy.

Terraform Cloud Plan

Copy link

github-actions bot commented Mar 27, 2024

Performance Test Results

TCP

Test Name Received/s Sent/s Retransmits
direct-tcp-client2server 218.4 MiB (-3%) 220.3 MiB (-3%) 100 (-67%)
direct-tcp-server2client 227.6 MiB (+1%) 229.0 MiB (+2%) 177 (-54%)
relayed-tcp-client2server 147.9 MiB (-1%) 148.8 MiB (-1%) 164 (-5%)
relayed-tcp-server2client 156.6 MiB (+4%) 157.0 MiB (+4%) 130 (-13%)

UDP

Test Name Total/s Jitter Lost
direct-udp-client2server 50.0 MiB (-0%) 0.31ms (+16%) 0.00% (NaN%)
direct-udp-server2client 50.0 MiB (+0%) 0.01ms (-24%) 0.00% (NaN%)
relayed-udp-client2server 50.0 MiB (0%) 0.10ms (-16%) 0.00% (NaN%)
relayed-udp-server2client 50.0 MiB (-0%) 0.06ms (-12%) 0.00% (NaN%)

Comment on lines +56 to +58
DispatchQueue.main.async {
Task { await model.signInButtonTapped() }
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Wrapping this in DispatchQueue decreased some UI stuttering.

Copy link
Collaborator

@ReactorScram ReactorScram left a comment

Choose a reason for hiding this comment

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

LGTM, can't think of any way it can go wrong

@jamilbk jamilbk added this pull request to the merge queue Mar 27, 2024
Merged via the queue into main with commit 6e7f2c9 Mar 27, 2024
152 checks passed
@jamilbk jamilbk deleted the fix/debounce-sign-in branch March 27, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants