fix(wizard): enable Plan My Trip button with default values

- Add debug toggle in Settings to override Pro subscription status (DEBUG builds only, defaults to true)
- Auto-validate wizard step flags on appear so button enables without explicit user interaction:
  - DatesStep: calls updateHasSetDates() on appear
  - RoutePreferenceStep: sets hasSetRoutePreference on appear
  - RepeatCitiesStep: sets hasSetRepeatCities on appear

Previously, canPlanTrip required all flags to be explicitly set by user interaction, even when valid defaults were showing.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-01-13 21:49:58 -06:00
parent cd68ba834b
commit e66f8056c8
5 changed files with 44 additions and 1 deletions

View File

@@ -260,6 +260,13 @@ struct SettingsView: View {
#if DEBUG
private var debugSection: some View {
Section {
Toggle(isOn: Binding(
get: { StoreManager.shared.debugProOverride },
set: { StoreManager.shared.debugProOverride = $0 }
)) {
Label("Override Pro Status", systemImage: "star.fill")
}
Button {
showOnboardingPaywall = true
} label: {