Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

619 B
Raw Blame
/**
 * When "What is new" (E21) opens by itself: once per version, never during
 * the onboarding, never for a version without notes. Pure, so the rule is a
 * unit test. The seen version lives in the shared releaseNotesStore, the
 * texts are the phone's own (strings/release-notes.ts).
 */
import { mobileReleaseNoteFor } from '../../../strings/release-notes'

export function shouldShowMobileNotes(currentVersion: string, lastSeen: string | null, onboardingDone: boolean): boolean {
  if (!onboardingDone) return false
  if (!mobileReleaseNoteFor(currentVersion)) return false
  return lastSeen !== currentVersion
}