Skip to content

Sign-in failures in a dialog, with exception class and app version - #36

Merged
GothwadTech merged 1 commit into
mainfrom
fix/signin-error-dialog
Dec 4, 2026
Merged

GothwadTech merged 1 commit into
mainfrom
fix/signin-error-dialog

Conversation

@GothwadTech

Copy link
Copy Markdown
Collaborator

The snackbar kept showing the generic string, which means the exception had no message and the fallback hid it — and a snackbar is easy to miss anyway.

Change

Sign-in failures now surface as an AlertDialog:

<ExceptionClass>: <message>

App 1.0.173
  • The class name is included because some exceptions carry no message at all
  • The app version is included so we can tell whether the build under test really contains the fix
  • The snackbar stays as the quick signal; the dialog holds the detail

Why this is the right next step

Every attempt so far has been a guess about which step fails — redirect, PKCE, token exchange, userinfo. This turns that into one readable line.

…ass and app version

The snackbar still read "Could not sign in to Bansify", which means the exception carried no
message and the fallback swallowed it. A snackbar was also easy to miss and easy to
overwrite.

Sign-in failures now set a state that renders an AlertDialog showing:

  <ExceptionClass>: <message>
  App <versionName>

so one screenshot is enough to identify the failing step, and the version tells us whether
the build under test actually contains the fix.
@GothwadTech
GothwadTech merged commit e868f0d into main Dec 4, 2026
2 of 4 checks passed
GothwadTech added a commit that referenced this pull request Dec 4, 2026
…ng block (#37)

PR #36 merged its first commit (a3e0928), which nested the AlertDialog inside
safeBrowsingWarning?.let and never collected viewModel.signInError. main has failed the
Quality Gate since.

This applies the correction that was pushed after the merge: the dialog sits after the
safe-browsing block, the state is collected next to the other lifecycle values, and
SafeBrowsingDialog is untouched.
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.

1 participant