Add onboarding login and plan selection steps to setup wizard#100
Open
phoneuooyd wants to merge 2 commits into
Open
Add onboarding login and plan selection steps to setup wizard#100phoneuooyd wants to merge 2 commits into
phoneuooyd wants to merge 2 commits into
Conversation
…ack navigation (#101) * Rework setup wizard flow and guest plan behavior * Add plan selection state and UI updates Introduce SelectedPlanChoice and related logic to manage plan selection and completion validation (CanCompleteSetup, IsFreePlanSelected, IsPremiumPlanSelected). Prevent guests from choosing Premium and defer persisting the plan choice until setup completion. Update SelectPlan to update selection (and block invalid Premium selection) and wire command CanExecute changes for CompleteSetupCommand. UI changes: add visual selection indicators and DataTriggers to plan tiles/buttons, dim Premium when not selectable, refactor step layouts (frames/stacklayouts), expose the page BindingContext via x:Name (SetupWizardRoot) and x:Reference for child views, relocate navigation buttons to a bottom grid, and adjust bindings for visibility/enabled states. Also add an AppTheme alias import.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
FoodbookApp.App/ViewModels/SetupLoginViewModel.cs,FoodbookApp.App/Views/SetupLoginPage.xamlandSetupLoginPage.xaml.cs, implementing login/register toggle, validation, error messages and aContinueWithoutAccountflow using existing auth services (IAccountService/ISupabaseAuthService).FoodbookApp.App/Views/SetupPlanSelectionPage.xamland.xaml.cswith Free/Premium cards and commands to select the plan and persist the choice.SetupWizardViewModel(FoodbookApp.App/ViewModels/SetupWizardViewModel.cs) to a multi-step state machine with commands (NextStepCommand,PreviousStepCommand,SelectFreePlanCommand,SelectPremiumPlanCommand) and wired the newSetupLoginViewModelinto the flow.SavePlanChoice(string)andGetPlanChoice()toFoodbookApp.App/Interfaces/IPreferencesService.csand implemented them inFoodbookApp.App/Services/PreferencesService.csusing the newPlanChoicepreference key.FoodbookApp.App/MauiProgram.csand updatedSetupWizardPage.xamlto render the step-based UI and include the new login and plan selection views.FoodbookApp.App/Localization/SetupWizardPageResources.resxandSetupWizardPageResources.pl-PL.resxfor new labels, buttons and validation messages.Testing
xml.etree.ElementTreeto ensure well-formed XML, which passed for all updated files.dotnet build FoodbookApp.App/FoodbookApp.App.csproj, but thedotnettool is not available in this environment so the build could not be executed (bash: command not found: dotnet).Codex Task