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.

feat(cloud): one-time 'LU Cloud is live' hello + monogram gate

purple7a679cc1a863
diff --git a/src/components/cloud/CloudGateModal.tsx b/src/components/cloud/CloudGateModal.tsx
index 5006034f..0469cec5 100644
--- a/src/components/cloud/CloudGateModal.tsx
+++ b/src/components/cloud/CloudGateModal.tsx
@@ -10,7 +10,7 @@
// the first flip). Payment stays on lu-labs.ai — the app never touches Stripe.
import { useEffect, useRef, useState } from 'react'
-import { Cloud, ExternalLink, HardDrive, RefreshCw, ArrowLeft, ArrowRight } from 'lucide-react'
+import { ExternalLink, HardDrive, RefreshCw, ArrowLeft, ArrowRight } from 'lucide-react'
import { Modal } from '../ui/Modal'
import { useUIStore } from '../../stores/uiStore'
import { useSettingsStore } from '../../stores/settingsStore'
@@ -57,13 +57,20 @@ function StayLocalButton({ onLocal }: { onLocal: () => void }) {
)
}
-/** The purple cloud emblem that headlines every step. */
+/** The LU monogram that headlines every step (David 2026-07-13: the stock
+ * cloud glyph is gone from this flow — the black/white mark stands on its
+ * own, matching the one-time intro popup). */
function CloudHero({ subtitle }: { subtitle?: string }) {
return (
<div className="flex flex-col items-center text-center gap-2">
- <span className="flex h-12 w-12 items-center justify-center rounded-2xl bg-[#7c3aed]/10 text-[#7c3aed] dark:text-[#a78bfa]">
- <Cloud size={24} />
- </span>
+ <img
+ src="/LU-monogram-bw.png"
+ alt=""
+ width={40}
+ height={40}
+ className="dark:invert-0 invert opacity-90 select-none"
+ draggable={false}
+ />
<h2 className="text-xl font-semibold text-gray-900 dark:text-white">LU Cloud</h2>
{subtitle && (
<p className="text-[0.75rem] leading-relaxed text-gray-600 dark:text-gray-400 max-w-xs">{subtitle}</p>
@@ -132,7 +139,7 @@ export function CloudGateModal() {
{signedOut ? (
step === 'intro' ? (
<div className="space-y-5 pt-2">
- <CloudHero subtitle="Run chat, image and video on LU's hosted GPU fleet with your lu-labs.ai account — the full cloud catalog, no downloads, no VRAM limits. Local mode stays free and never needs an account." />
+ <CloudHero subtitle="Image, video, chat, code. On LU's hosted GPUs." />
<div className="space-y-2 max-w-xs mx-auto">
<button onClick={() => setStep('plans')} className={primaryBtn}>
Get LU Cloud <ArrowRight size={13} />
@@ -142,7 +149,7 @@ export function CloudGateModal() {
</div>
) : step === 'plans' ? (
<div className="space-y-5 pt-2">
- <CloudHero subtitle="Pick a plan on lu-labs.ai — payment stays in the browser." />
+ <CloudHero subtitle="Pick a plan on lu-labs.ai. Payment stays in the browser." />
<div className="space-y-3 max-w-xs mx-auto">
<PlanGrid />
<StayLocalButton onLocal={stayLocal} />
@@ -189,7 +196,7 @@ export function CloudGateModal() {
<div className="space-y-3 max-w-xs mx-auto">
<p className="text-[0.72rem] text-center text-gray-600 dark:text-gray-400">
LU Cloud is in a closed beta right now (Max plan only). Your plan is
- active, but the beta hasn't opened for it yet — you'll get in the
+ active, but the beta hasn't opened for it yet. You'll get in the
moment it does, nothing to reinstall.
</p>
<StayLocalButton onLocal={stayLocal} />
@@ -217,7 +224,7 @@ export function CloudGateModal() {
<CloudHero />
<div className="space-y-3 max-w-xs mx-auto">
<p className="text-[0.72rem] text-center text-gray-600 dark:text-gray-400">
- Your plan is active, but it doesn't include a hosted-compute credit
+ Your plan is active, but it doesn't include a hosted compute credit
budget, so there's nothing for Cloud mode to run on. Plans with
cloud credits are on lu-labs.ai.
</p>
diff --git a/src/components/cloud/CloudIntroPopup.tsx b/src/components/cloud/CloudIntroPopup.tsx
new file mode 100644
index 00000000..455d72ae
--- /dev/null
+++ b/src/components/cloud/CloudIntroPopup.tsx
@@ -0,0 +1,88 @@
+// One-time "LU Cloud is here" hello (David 2026-07-13, shipped with 2.5.7).
+// Every install sees this exactly once on its first launch after onboarding,
+// auto-updaters and fresh installs alike, then never again: any way of
+// closing it writes the localStorage flag, and that flag rides the
+// store-backup list so even an NSIS localStorage wipe can't resurrect it.
+// Deliberately tiny and angular: the monogram, one line, two buttons. "Check
+// out the Cloud" opens the same CloudGateModal the header switch uses.
+
+import { useEffect, useState } from 'react'
+import { Modal } from '../ui/Modal'
+import { useUIStore } from '../../stores/uiStore'
+import { useSettingsStore } from '../../stores/settingsStore'
+
+export const CLOUD_INTRO_KEY = 'lu_cloud_intro_seen'
+
+/** Pure visibility rule, exported for tests. Users already running in cloud
+ * mode never get pitched — the flag is written for them silently instead. */
+export function shouldShowCloudIntro(alreadySeen: boolean, appMode: string): boolean {
+ return !alreadySeen && appMode !== 'cloud'
+}
+
+export function CloudIntroPopup() {
+ const appMode = useSettingsStore((s) => s.settings.appMode)
+ const setCloudGateOpen = useUIStore((s) => s.setCloudGateOpen)
+ const [open, setOpen] = useState(false)
+
+ useEffect(() => {
+ let seen = false
+ try {
+ seen = localStorage.getItem(CLOUD_INTRO_KEY) === '1'
+ } catch {
+ // storage unavailable — never loop the popup, just skip it
+ return
+ }
+ if (!shouldShowCloudIntro(seen, appMode)) {
+ // cloud users skip the pitch, but the once-ever contract still holds
+ if (!seen) try { localStorage.setItem(CLOUD_INTRO_KEY, '1') } catch { /* ignore */ }
+ return
+ }
+ // let the main UI settle for a beat before saying hello
+ const t = setTimeout(() => setOpen(true), 900)
+ return () => clearTimeout(t)
+ // mount-only on purpose: a later appMode flip must not re-arm the popup
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [])
+
+ const close = () => {
+ try { localStorage.setItem(CLOUD_INTRO_KEY, '1') } catch { /* ignore */ }
+ setOpen(false)
+ }
+
+ const checkOut = () => {
+ close()
+ setCloudGateOpen(true)
+ }
+
+ return (
+ <Modal open={open} onClose={close} hideHeader maxWidth="max-w-[260px]" panelRadius="rounded-lg" panelPad="p-5">
+ <div className="flex flex-col items-center text-center gap-3">
+ <img
+ src="/LU-monogram-bw.png"
+ alt=""
+ width={40}
+ height={40}
+ className="dark:invert-0 invert opacity-90 select-none"
+ draggable={false}
+ />
+ <div className="text-[0.8rem] font-semibold tracking-tight text-gray-900 dark:text-gray-100">
+ LU Cloud is live.
+ </div>
+ <div className="w-full flex flex-col gap-1.5">
+ <button
+ onClick={checkOut}
+ className="w-full px-3 py-2 rounded-md text-[0.7rem] font-medium text-white bg-[#7c3aed] hover:bg-[#6d31d6] transition-colors"
+ >
+ Check out the Cloud
+ </button>
+ <button
+ onClick={close}
+ className="w-full px-3 py-1.5 rounded-md text-[0.65rem] text-gray-500 hover:text-gray-800 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-white/5 transition-colors"
+ >
+ Dismiss
+ </button>
+ </div>
+ </div>
+ </Modal>
+ )
+}
diff --git a/src/components/cloud/__tests__/cloudIntroPopup.test.ts b/src/components/cloud/__tests__/cloudIntroPopup.test.ts
new file mode 100644
index 00000000..589af567
--- /dev/null
+++ b/src/components/cloud/__tests__/cloudIntroPopup.test.ts
@@ -0,0 +1,29 @@
+import { describe, it, expect } from 'vitest'
+import { CLOUD_INTRO_KEY, shouldShowCloudIntro } from '../CloudIntroPopup'
+
+// CloudIntroPopup — the once-ever "LU Cloud is live" hello (2.5.7)
+
+describe('shouldShowCloudIntro', () => {
+ it('shows for a first launch in local mode (updater or fresh install)', () => {
+ expect(shouldShowCloudIntro(false, 'local')).toBe(true)
+ })
+
+ it('never shows again once the flag is set', () => {
+ expect(shouldShowCloudIntro(true, 'local')).toBe(false)
+ expect(shouldShowCloudIntro(true, 'cloud')).toBe(false)
+ })
+
+ it('never pitches users already running in cloud mode', () => {
+ expect(shouldShowCloudIntro(false, 'cloud')).toBe(false)
+ })
+})
+
+describe('CLOUD_INTRO_KEY', () => {
+ // The exact string is load-bearing: AppShell's store-backup list and
+ // fatal-error's preserve list both carry it, so "seen once" survives an
+ // NSIS update that wipes WebView2 localStorage. Renaming it silently would
+ // re-show the popup to every updater.
+ it('stays the string the backup lists reference', () => {
+ expect(CLOUD_INTRO_KEY).toBe('lu_cloud_intro_seen')
+ })
+})
diff --git a/src/components/layout/AppShell.tsx b/src/components/layout/AppShell.tsx
index dff53c5d..4e3e56da 100644
--- a/src/components/layout/AppShell.tsx
+++ b/src/components/layout/AppShell.tsx
@@ -29,6 +29,7 @@ import { useCloudAuth } from '../../hooks/useCloudAuth'
import { useCloudAuthStore, deriveCloudAvailable } from '../../stores/cloudAuthStore'
import { useCreateStore } from '../../stores/createStore'
import { CloudGateModal } from '../cloud/CloudGateModal'
+import { CloudIntroPopup } from '../cloud/CloudIntroPopup'
import { CloudOnboardingModal } from '../cloud/CloudOnboardingModal'
import { ShortcutsModal } from './ShortcutsModal'
import { Titlebar } from './Titlebar'
@@ -138,10 +139,10 @@ export function AppShell() {
'locally-uncensored-agent-workflows', 'locally-uncensored-agent',
'locally-uncensored-voice', 'lu-benchmark-store', 'lu-update-checker-v2',
'rag-store', 'workflow-store', 'lu-cloud-catalog',
- // v2.5.0 launch teasers — back these up so an auto-updater who clicked
- // "Don't show me again" / dismissed the image-tool noti keeps that choice
- // across the NSIS update (which wipes WebView2 localStorage).
- 'lu_cloud_teaser', 'lu_image_tool_noti',
+ // One-shot notices — back these up so "seen it once" survives an NSIS
+ // update that wipes WebView2 localStorage (2.5.7: the cloud intro popup
+ // replaced the pre-launch lu_cloud_teaser waitlist badge).
+ 'lu_cloud_intro_seen', 'lu_image_tool_noti',
]
const STORE_KEYS_SET = new Set(STORE_KEYS)
// These two persist via idbStorage (IndexedDB) since v2.5.0 — the backup
@@ -792,6 +793,8 @@ export function AppShell() {
<CloudGateModal />
{/* One-time cloud onboarding — first successful switch flip. */}
<CloudOnboardingModal />
+ {/* Once-ever "LU Cloud is live" hello on the first 2.5.7 launch. */}
+ <CloudIntroPopup />
<ShortcutsModal />
</div>
)
diff --git a/src/components/ui/Modal.tsx b/src/components/ui/Modal.tsx
index ee9fa8b9..f44d78f2 100644
--- a/src/components/ui/Modal.tsx
+++ b/src/components/ui/Modal.tsx
@@ -12,13 +12,17 @@ interface Props {
hideHeader?: boolean
/** Tailwind max-width of the panel. Default `max-w-lg`. */
maxWidth?: string
+ /** Panel corner radius (default `rounded-2xl`). Override for a more angular look. */
+ panelRadius?: string
+ /** Panel padding (default `p-6`). Override for a tighter dialog. */
+ panelPad?: string
}
// A modal is a real dialog, so it needs an OPAQUE, elevated surface — not the
// transparent `.glass-card` (which is `background: transparent` for inline
// panels). Without this the dialog read straight through to whatever tab was
// behind it and the white title vanished on a light surface.
-export function Modal({ open, onClose, title, children, hideHeader, maxWidth = 'max-w-lg' }: Props) {
+export function Modal({ open, onClose, title, children, hideHeader, maxWidth = 'max-w-lg', panelRadius = 'rounded-2xl', panelPad = 'p-6' }: Props) {
return (
<AnimatePresence>
{open && (
@@ -31,7 +35,7 @@ export function Modal({ open, onClose, title, children, hideHeader, maxWidth = '
<div className="absolute inset-0 bg-black/60 backdrop-blur-sm" onClick={onClose} />
<motion.div
className={
- 'relative z-10 w-full rounded-2xl p-6 border border-gray-200 dark:border-white/10 ' +
+ `relative z-10 w-full ${panelRadius} ${panelPad} border border-gray-200 dark:border-white/10 ` +
'bg-white dark:bg-[#161719] shadow-2xl shadow-black/30 ' + maxWidth
}
initial={{ scale: 0.9, opacity: 0 }}
diff --git a/src/lib/fatal-error.ts b/src/lib/fatal-error.ts
index 6780ab2d..fbfa2e05 100644
--- a/src/lib/fatal-error.ts
+++ b/src/lib/fatal-error.ts
@@ -31,7 +31,7 @@ export const SETTINGS_STORAGE_KEYS = [
'workflow-store',
'lu-update-checker-v2',
'lu-benchmark-store',
- 'lu_cloud_teaser',
+ 'lu_cloud_intro_seen',
'lu_image_tool_noti',
]
diff --git a/src/stores/__tests__/cloudTeaserStore.test.ts b/src/stores/__tests__/cloudTeaserStore.test.ts
deleted file mode 100644
index 63c65ca2..00000000
--- a/src/stores/__tests__/cloudTeaserStore.test.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import { describe, it, expect, beforeEach } from 'vitest'
-import { useCloudTeaserStore } from '../cloudTeaserStore'
-
-// ═══════════════════════════════════════════════════════════════
-// cloudTeaserStore — Cloud waitlist teaser persistence
-// ═══════════════════════════════════════════════════════════════
-
-describe('cloudTeaserStore', () => {
- beforeEach(() => {
- useCloudTeaserStore.setState({ dismissed: false, submitted: false })
- })
-
- it('defaults to visible and not-yet-submitted', () => {
- const s = useCloudTeaserStore.getState()
- expect(s.dismissed).toBe(false)
- expect(s.submitted).toBe(false)
- })
-
- it('setSubmitted flips the join flag without dismissing the badge', () => {
- useCloudTeaserStore.getState().setSubmitted(true)
- const s = useCloudTeaserStore.getState()
- expect(s.submitted).toBe(true)
- // Per the plan: joining the list must NOT hide the badge.
- expect(s.dismissed).toBe(false)
- })
-
- it('setDismissed is the only thing that hides the badge', () => {
- useCloudTeaserStore.getState().setDismissed(true)
- expect(useCloudTeaserStore.getState().dismissed).toBe(true)
- })
-})
diff --git a/src/stores/cloudTeaserStore.ts b/src/stores/cloudTeaserStore.ts
deleted file mode 100644
index 3de16f1d..00000000
--- a/src/stores/cloudTeaserStore.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import { create } from "zustand";
-import { persist } from "zustand/middleware";
-
-/**
- * Persisted state for the Cloud "Hosted LU Workflows" waitlist teaser badge.
- *
- * - `dismissed`: the user clicked "Don't show me again". This is the ONLY way
- * the badge disappears — closing the popover or clicking outside leaves it.
- * Persists across app restarts (zustand persist → localStorage `lu_cloud_teaser`).
- * - `submitted`: the user joined the waitlist. The badge intentionally STAYS
- * (per the plan) but the popover then shows "You're on the list" instead of
- * the form.
- */
-interface CloudTeaserState {
- dismissed: boolean;
- submitted: boolean;
- setDismissed: (v: boolean) => void;
- setSubmitted: (v: boolean) => void;
-}
-
-export const useCloudTeaserStore = create<CloudTeaserState>()(
- persist(
- (set) => ({
- dismissed: false,
- submitted: false,
- setDismissed: (v) => set({ dismissed: v }),
- setSubmitted: (v) => set({ submitted: v }),
- }),
- { name: "lu_cloud_teaser" },
- ),
-);