Commit Graph

116 Commits

Author SHA1 Message Date
Jonas Bark
2c7b18f410 fix(paywall): "Go Pro" from the trainer picker opens instead of crashing
The onboarding trainer picker passed the State's own context into
connectTrainerFromPicker. Its trial gate opens the Go Pro dialog, whose
purchase action opens the paywall drawer -- and that context sits above
the Scaffold's DrawerOverlay, so openDrawer's `parentLayer!` threw. In
release the user saw only a "Null check operator used on a null value"
toast and the paywall never appeared, which on an expired trial leaves
no way forward at all.

Pass _sheetContext, which lives below the Scaffold.

_showPaywall also stops depending on callers getting that right: with no
DrawerOverlay ancestor it now falls back to showDialog, which only needs
a Navigator. The paywall already constrains and scrolls itself, so it
renders correctly either way. The paywall is the last thing that should
break when a caller passes the wrong context.

Symbolized from a support bundle (chat 197d1f1a, Windows 6.4.3 patch 13):
four identical traces seconds apart, each on the Go Pro tap.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-19 22:13:47 +02:00
Jonas Bark
74bb2737ba fix: UI feedback round — remembered devices, Click V2 unlock, paywall, Pro dialog
- Remembered controllers offer a single "Forget" instead of two disconnect
  variants: there is no link to drop on a device that isn't here.
- Click V2: drop the unlock-mode dropdown and the new-unlock-method toggle.
  The explainer stays the one place the mode is chosen — it also does the
  follow-on work (un-ignoring the left puck, the right-side-only remap,
  cancelling the reset timer) that the bare dropdown never did. "Set up
  again" now sits on the right puck's card too.
- Paywall: the Base column reads "Basis"/"Base" rather than "VOLL"/"FULL",
  and the one-time Base card moves above the Pro plans so top-to-bottom
  matches the comparison table's left-to-right.
- A remembered controller's own settings page shows its button mapping
  again. The gate counted live controllers only and KeymapExplanation
  looked its filterDevice up in the live list, so the page fell through to
  a warning about connection methods, which had nothing to do with it.
- showGoProDialog takes a feature name for its title, so the keymap sync
  cloud icon says what it does instead of only "Pro Feature".

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-13 07:50:34 +02:00
Jonas Bark
45b214b095 feat(iap): show the in-app paywall on iOS and Android too, with real store prices
Riders see the Flutter paywall on every platform now — RevenueCat's hosted
sheet is only a fallback when an offering has no matching package. Its
price loader was gated to macOS, so mobile would have shown the hardcoded
'About 2.25 $/mo' placeholders; it now fetches offerings wherever
RevenueCat is in use (the Windows Stripe build keeps the fallback, having
no offerings to read). Purchases still go straight to the store via the
paywall's own buttons (fromPaywall: true).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-11 07:32:32 +02:00
Jonas Bark
120a810628 feat(onboarding): mobile welcome screen, theme-aware accent, honest VS copy, platform-correct paywall
- Mobile opens on a welcome screen whose headline reveals word by word,
  then the subtitle, the three what-you'll-do rows and the actions.
  'I'll set this up later' records completion, so a rider who declines
  isn't asked again on every launch. Desktop keeps its rail-framed step 1.
- Dark mode: colorScheme.primary is only the brand blue in the LIGHT
  theme, so white-on-primary icons and check marks were invisible (the
  Network tile above all). New onboardingAccent()/onboardingOnAccent keep
  the brand accent in both themes, lightened for dark.
- Step 4's blocked state read as 'Virtual Shifting doesn't work here'; it
  now leads with 'Optional: connect your smart trainer' and says plainly
  that VS does work — just not with both apps on one phone. The normal
  step regains the design's 'Optional:' prefix too.
- 'See Pro & Base options' goes through IAPManager again, so iOS/Android
  get RevenueCat's hosted paywall instead of the desktop fallback with
  placeholder 'about x €' prices (_loadRevenueCatPricing is macOS-only).
  The desktop paywall keeps pull-to-dismiss, now for every caller.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-10 23:52:44 +02:00
Jonas Bark
0723272455 prepare release 2026-07-09 15:17:51 +02:00
Jonas Bark
2f5373cc60 feat: add beta_access entitlement flag and Shorebird track mapping
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 11:02:23 +02:00
Jonas Bark
c68ef13971 feat(6.2): make Record Screen a Pro-only action (proGuard + editor badge) 2026-06-24 20:28:38 +02:00
Jonas Bark
91336836ee Localize keymap strings + trial banner in screenshots
- Show the Base version in screenshots (re-assert IAPManager.isPurchased in the
  shoot() helper, which core.settings.reset() had cleared — so the overview no
  longer shows "N day trial available").
- Localize previously-hardcoded strings (en source; de/es/fr/it/pl are drafts):
  - InGameAction labels (~50): title is now a localized getter backed by
    englishTitle (Steer Right, Change Camera, Tuck, ...).
  - ButtonTrigger (Single/Double Click, Long Press).
  - Button-simulator action categories (Shifting/Steering/Other).
  - The "N day trial available" banner string.
- Regenerated all localized screenshots.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 11:43:27 +02:00
Jonas Bark
3bfe743705 feat(iap): mirror Android freemium model on iOS/macOS (80/day trial, 15/day after) 2026-06-17 20:28:37 +02:00
Jonas Bark
5426aa2c99 feat(iap): gate iOS/macOS full version on isPurchasedBuild (free from build 138) 2026-06-17 20:25:58 +02:00
Jonas Bark
5d06ffa65f feat(iap): add freeAgainFromBuild gate (isPurchasedBuild helper) + tests 2026-06-17 20:20:10 +02:00
Jonas Bark
e79edf4809 UI adjustments 2026-06-10 08:53:30 +02:00
Jonas Bark
4b72b74dd3 fix(iap): guard isProEnabledForCurrentDevice against uninitialised state 2026-04-23 10:06:56 +02:00
Jonas Bark
2b4211f0cd fix(proxy-details): gate Pro notice on FitnessBikeDefinition, move IAP safety to IAPManager 2026-04-23 09:47:40 +02:00
Jonas Bark
a6e8f67838 sync subscriptions after logging in 2026-03-29 16:40:38 +02:00
Jonas Bark
1db2c6f382 fix patch 2026-03-26 16:34:04 +01:00
Jonas Bark
9e816b466f Win: bought before 50 check 2026-03-22 10:51:28 +01:00
Jonas Bark
bd58e8d2a5 allow music / volume control for old purchases 2026-03-20 16:48:23 +01:00
Jonas Bark
b1e3fda6d2 revise revenuecat initialization 2026-03-20 07:58:23 +01:00
Jonas Bark
23399e9737 reenable steering for earlier purchases 2026-03-19 21:01:50 +01:00
Jonas Bark
6be587771e open billing portal 2026-03-12 18:06:17 +01:00
Jonas Bark
5492caa8fe new ui #18 2026-03-12 07:38:20 +01:00
Jonas Bark
76bc8f5175 new ui #14 2026-03-11 19:30:29 +01:00
Jonas Bark
a2ed9915f3 new ui #10 2026-03-11 15:13:00 +01:00
Jonas Bark
64d7add190 allow purchasing full version outside windows store 2026-03-11 10:11:24 +01:00
Jonas Bark
db3de7a7b8 fix paywall check 2026-03-08 16:12:20 +01:00
Jonas Bark
081f06ef69 use store ID from Windows #1 2026-03-07 17:22:47 +01:00
Jonas Bark
7681abc5a9 revise logic 2026-03-06 18:18:23 +01:00
Jonas Bark
0ecd604f57 no longer build self signed MSIX 2026-03-06 18:12:09 +01:00
Jonas Bark
261e23b6b8 free month paywall 2026-03-02 19:02:22 +01:00
Jonas Bark
f72f50286b free trial for windows 2026-02-27 19:56:52 +01:00
Jonas Bark
d033417089 cleanup 2026-02-26 18:15:00 +01:00
Jonas Bark
a4d30ebd0d use prices from revenuecat 2026-02-26 09:25:20 +01:00
Jonas Bark
bfeb29fcda ui fixes 2026-02-25 23:29:15 +01:00
Jonas Bark
43420e1e63 paywall for macOS + Windows 2026-02-25 23:19:38 +01:00
Jonas Bark
dd24cd9d97 paywall #1 2026-02-25 22:25:25 +01:00
Jonas Bark
3085a8f864 add long press option for devices that do not support it (tap once = down, tap again = up) 2026-02-25 18:43:00 +01:00
Jonas Bark
105b44eb14 revenuecat changes 2026-02-21 21:26:56 +01:00
Jonas Bark
d13d646f48 allow logging in without pro 2026-02-21 20:39:50 +01:00
Jonas Bark
1fd03ade44 stripe implementation 2026-02-21 19:38:10 +01:00
Jonas Bark
30bb9653c1 stripe implementation 2026-02-21 19:18:25 +01:00
Jonas Bark
50d5134f70 remove windows iap implementation 2026-02-21 18:21:02 +01:00
Jonas Bark
8faa47c40e register current device 2026-02-20 16:27:01 +01:00
Jonas Bark
095443b68d local pro version without needing to log in 2026-02-20 15:42:28 +01:00
Jonas Bark
3ea2d407fb check if current device is registered 2026-02-19 13:24:46 +01:00
Jonas Bark
bbaed112a5 adjust login page and buy subscription 2026-02-19 13:02:46 +01:00
Jonas Bark
1815448ff7 device registration logic 2026-02-19 12:19:54 +01:00
Jonas Bark
b54e14f695 subscription #1 2026-02-17 15:07:43 +01:00
jonas.bark@gmx.de
b9478b1bd2 Windows login 2026-02-16 17:14:38 +01:00
Jonas Bark
e1a7aac3e4 sign in with google, apple 2026-02-16 16:26:22 +01:00