[eric] phase3: hide the trial-spent nudge once a real model is connected

This commit is contained in:
ciregenz
2026-06-16 23:00:23 -07:00
parent 920f73cee9
commit fc6d53b492
@@ -174,7 +174,9 @@ const AppShell: React.FC = () => {
const [ftNudgeDismissed, setFtNudgeDismissed] = useState<boolean>(() => {
try { return localStorage.getItem('os_ft_nudge_dismissed') === '1'; } catch { return false; }
});
const showFreeTrialNudge = isOnline && (freeTrialSpent || (freeTrialUsed && !ftNudgeDismissed));
// Spent nudge hides the moment they connect a real model; the post-wow nudge only shows on the
// trial lane (so it already implies no own model) and is dismissible.
const showFreeTrialNudge = isOnline && ((freeTrialSpent && !hasModelConnected) || (freeTrialUsed && !ftNudgeDismissed));
const bannerDismissedForVersion = availableVersion != null && dismissedVersion === availableVersion;
const isUpdateActionable = updateStatus === 'available' || updateStatus === 'downloaded' || updateStatus === 'downloading';