[Navigation] Show Back when Sign in is opened from Profiles #103
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The same Sign-in screen is used for two different navigation contexts:
Current
SignInScreenalways renders a TopAppBar with only the Sign-in title. When it was pushed from Profiles, Android/system Back can return to Profiles but the screen provides no visible Back affordance, so it visually reads like a root destination.Reviewed against current
mainatf9f7feba8e7bb499c6001bf0cc19a38357b7494aon 2026-09-27.Desired behavior
Root onboarding
When Sign in is the root/start destination:
Add profile / re-authentication
When Sign in was pushed from an existing app destination:
The visible Back action, Android Back and predictive Back should agree.
Architecture
Do not infer context from UI text.
Pass explicit navigation capability/context from the NavHost/route into
SignInRoute/SignInScreen, or use another clear navigation-owned signal.Keep:
The toolbar Back is route navigation. The in-form “change server/back to server” action remains wizard-stage navigation. Do not conflate the two.
Implementation starting points
app/src/main/kotlin/com/example/shelfplayer/navigation/ShelfPlayerNavHost.ktapp/src/main/kotlin/com/example/shelfplayer/feature/onboarding/SignInScreen.ktAcceptance