Skip to content

Conversation

fulleni
Copy link
Member

@fulleni fulleni commented Oct 5, 2025

Status

HOLD

Description

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

fulleni added 14 commits October 3, 2025 10:43
- Add new property 'postAuthRedirectIntent' to store intended navigation path after authentication
- Update AppState copyWith method to handle new property
- Include new property in AppState props for equality checks
- Add comments to explain the purpose and usage of the new property
- Add new AppEvent for capturing navigation intents before authentication
- This event will help track where users should be redirected after successful auth
- Include GoRouterState as a property to represent the intended destination
- Add handling for PostAuthRedirectIntentCaptured events in AppBloc
- Implement navigation to pending intent after user data is loaded
- Store and clear post-auth redirect intent in AppState
- Add GoRouter import for context navigation
- Introduce AuthFlow enum to differentiate between standard sign-in and account linking flows
- Add flow property to AuthenticationState with default value of signIn
- Update copyWith method to include flow parameter
- Modify props list to include the new flow property
Add a new event to represent when an anonymous user initiates the account linking flow.
- Add AuthenticationLinkingInitiated event and handler
- Update authentication flow logic for signing in and linking
- Reset authentication flow to signIn after sign-out or linking
…ndling

- Remove unnecessary parameters (headline, subHeadline, showAnonymousButton, isLinkingContext) from AuthenticationPage constructor
- Implement dynamic content rendering based on AuthenticationBloc's flow state
- Refactor leading IconButton to always show without condition
- Update icon display based on authentication flow
- Simplify sign-in button navigation by removing isLinkingContext check
- Remove isLinkingContext parameter from RequestCodePage
- Remove context-sensitive navigation logic from _RequestCodeView
- Simplify back navigation to always go to Authentication page
- Remove conditional routing for code verification
- Remove query parameter 'context' as it's no longer needed
- Add AuthenticationLinkingInitiated event to kick off linking process
- Simplify navigation to authentication page
- Remove nested account linking routes and related parameters
- Enhance redirect logic with detailed logging using logging package
- Adjust authentication page to use BLoC state for display context
- Simplify route protection logic and remove unnecessary comments
- Add Logger instance for AccountPage
- Implement logging for account linking and sign-out actions
- Replace BlocListener with context.pushNamed for authentication navigation
- Update button actions with appropriate logging and navigation
- Add detailed comments to unauthenticated, authenticated, and anonymous states
- Clarify the nature of user sessions in each state
- Improve understanding of user session types and their implications
…w reset

- Add comprehensive logging to AuthenticationBloc for better debugging
- Implement AuthenticationFlowReset event to revert auth flow to signIn
- Enhance AuthenticationLinkingInitiated event documentation
- Improve AuthFlow enum descriptions
- Conditionally display close button in AuthenticationPage for account linking flow
- Strengthen router redirect logic for anonymous users
@fulleni fulleni closed this Oct 5, 2025
@fulleni fulleni deleted the refactor/state-driven-auth-routing branch October 7, 2025 05:25
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