Skip to content

fix: Sign in mock in Auth screen#18

Merged
michalurbanek merged 1 commit intomasterfrom
mu/fix/mock_signin
Apr 10, 2026
Merged

fix: Sign in mock in Auth screen#18
michalurbanek merged 1 commit intomasterfrom
mu/fix/mock_signin

Conversation

@michalurbanek
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the “Mock Sign In” flow on the Authentication screen by routing it through the existing AuthenticationStateNotifier sign-in completion path (so it updates current user state and emits the signed-in event, letting AuthenticationPage handle navigation).

Changes:

  • Add mockSignIn() to AuthenticationStateNotifier to run _signInCompletion without an upstream auth provider.
  • Update the “Mock Sign In” button to call mockSignIn() and remove now-unused navigation/usecase imports.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
lib/features/authentication/authentication_state.dart Adds mockSignIn() that runs the shared sign-in completion flow and emits the signed-in event.
lib/features/authentication/authentication_page_content.dart Rewires the “Mock Sign In” button to use the notifier API instead of directly navigating.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@michalurbanek michalurbanek merged commit c79936d into master Apr 10, 2026
5 checks passed
@michalurbanek michalurbanek deleted the mu/fix/mock_signin branch April 13, 2026 07:49
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.

2 participants