From ed243fae9e4a46fd51d6e776cca8502302d80d88 Mon Sep 17 00:00:00 2001 From: FuelBoard Contributor Date: Thu, 13 Aug 2026 10:11:57 +0100 Subject: [PATCH] Onboarding: show green tick on Local Network page before advancing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The probe result landed while the Local Network prompt was still dismissing, so the granted tick was skipped and the page jumped straight to the final slide. Hold 'Connected — prices will load' on screen for a beat before auto-advancing, matching the visible tick flow of the Location and Notifications pages. --- FuelBoard/OnboardingView.swift | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/FuelBoard/OnboardingView.swift b/FuelBoard/OnboardingView.swift index bf47d05..683cd59 100644 --- a/FuelBoard/OnboardingView.swift +++ b/FuelBoard/OnboardingView.swift @@ -57,7 +57,17 @@ struct OnboardingView: View { if granted, page == 2 { page = 3 } } .onChange(of: prompter.dataGranted) { _, granted in - if granted, page == 3 { page = 4 } + if granted, page == 3 { + // The probe result lands while the Local Network prompt is + // still dismissing, so without a beat the green "Connected" + // tick is skipped and the page jumps straight to Done — + // unlike the Location/Notifications pages where the granted + // tick is visible. Hold the tick on screen, then advance. + Task { @MainActor in + try? await Task.sleep(nanoseconds: 800_000_000) + if page == 3 { page = 4 } + } + } } .background( LinearGradient(