Skip to content

Prompt for login before emulator selection on first run#270

Merged
gtsiolis merged 2 commits into
mainfrom
des-238-prompt-for-login-before-emulator-selection-on-first-run
May 28, 2026
Merged

Prompt for login before emulator selection on first run#270
gtsiolis merged 2 commits into
mainfrom
des-238-prompt-for-login-before-emulator-selection-on-first-run

Conversation

@gtsiolis
Copy link
Copy Markdown
Member

@gtsiolis gtsiolis commented May 28, 2026

On a fresh install with no stored credentials, lstk currently shows the emulator picker first and only then starts the login flow. That order is backwards:

  • Login is a hard gate. Until the user authenticates, the picked emulator can't actually start, so any input we collect before login is friction the user may end up throwing away if they bail at the auth step.
  • The natural mental model is identify-then-configure: "log me in, then ask me what I want to run."

This flips the order so first-run users see the login screen first, then the emulator picker.

BEFORE AFTER
Screenshot 2026-05-28 at 13 44 31 Screenshot 2026-05-28 at 13 43 13

Cc @anisaoshafi @carole-lavillonniere because #217

@gtsiolis gtsiolis force-pushed the des-238-prompt-for-login-before-emulator-selection-on-first-run branch from 6e5df70 to 7544760 Compare May 28, 2026 10:48
@gtsiolis gtsiolis self-assigned this May 28, 2026
@gtsiolis gtsiolis force-pushed the des-238-prompt-for-login-before-emulator-selection-on-first-run branch from 7544760 to 9b1150a Compare May 28, 2026 11:21
Comment thread internal/ui/run_test.go Outdated
Comment thread internal/ui/run_test.go Outdated
Copy link
Copy Markdown
Collaborator

@anisaoshafi anisaoshafi left a comment

Choose a reason for hiding this comment

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

Good catch 🎣 George, this is a better approach!
Only have a concern about the test.

Comment thread internal/ui/run_test.go Outdated
@gtsiolis gtsiolis force-pushed the des-238-prompt-for-login-before-emulator-selection-on-first-run branch from 9b1150a to d897dda Compare May 28, 2026 13:08
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@gtsiolis gtsiolis force-pushed the des-238-prompt-for-login-before-emulator-selection-on-first-run branch from d897dda to 7000c71 Compare May 28, 2026 13:10
@gtsiolis
Copy link
Copy Markdown
Member Author

Thanks both, resolved comments in 7000c71. Please, take another look when you're free! 🍬 🍬

@anisaoshafi
Copy link
Copy Markdown
Collaborator

anisaoshafi commented May 28, 2026

ℹ️ Some tests are failing intermittently, likely due to planned maintenance on https://www.dockerstatus.com/ All green now after few retries ✅

@gtsiolis gtsiolis merged commit ec14f45 into main May 28, 2026
46 of 56 checks passed
@gtsiolis gtsiolis deleted the des-238-prompt-for-login-before-emulator-selection-on-first-run branch May 28, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants