mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-13 05:07:40 +02:00
[eric] phase3: hide the trial-spent nudge once a real model is connected
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user