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): local-mode discovery layer - locked tabs, hosted rows, teaser sheet

purple868a9e9663ae
diff --git a/src/components/cloud/CloudTeaserModal.tsx b/src/components/cloud/CloudTeaserModal.tsx
new file mode 100644
index 00000000..1695f4c5
--- /dev/null
+++ b/src/components/cloud/CloudTeaserModal.tsx
@@ -0,0 +1,335 @@
+// Cloud discovery sheet (2.5.8): Local mode surfaces the hosted-only Create
+// tools + hosted models as tappable teasers, and THIS is what a tap opens — a
+// small sheet with an animated "show me" demo of the tool, one line of copy,
+// and the path into LU Cloud. Never blocks a local flow (it only opens from
+// explicitly cloud-tagged surfaces), never shows in cloud mode, and the
+// footer link turns the whole discovery layer off (Settings can re-enable).
+
+import { AnimatePresence, motion } from 'framer-motion'
+import { X, Cloud, Sparkles } from 'lucide-react'
+import { useUIStore, type CloudTeaserTarget } from '../../stores/uiStore'
+import { useSettingsStore } from '../../stores/settingsStore'
+import { cloudModelById } from '../../stores/cloudCatalogStore'
+
+interface TeaserCopy {
+ title: string
+ line: string
+}
+
+const INTENT_COPY: Record<Extract<CloudTeaserTarget, { surface: 'intent' }>['intent'], TeaserCopy> = {
+ upscale: {
+ title: 'Upscale',
+ line: 'Blow any image up to crisp 2K-8K — no VRAM needed.',
+ },
+ eraser: {
+ title: 'Erase Object',
+ line: 'Paint over anything and it’s gone — clean fill, no trace.',
+ },
+ character: {
+ title: 'Character Studio',
+ line: 'Train a character from a few photos, then put them in any scene.',
+ },
+ lipsync: {
+ title: 'Talking Character',
+ line: 'A portrait plus any voice becomes a talking video.',
+ },
+ music: {
+ title: 'Music',
+ line: 'Describe a track, get a full song — up to four minutes.',
+ },
+ extend: {
+ title: 'Extend Video',
+ line: 'Keep a clip going — the cloud continues it seamlessly.',
+ },
+ motion: {
+ title: 'Motion Control',
+ line: 'Your character copies the moves from any dance or pose video.',
+ },
+}
+
+export function CloudTeaserModal() {
+ const target = useUIStore((s) => s.cloudTeaser)
+ const setCloudTeaser = useUIStore((s) => s.setCloudTeaser)
+ const setCloudGateOpen = useUIStore((s) => s.setCloudGateOpen)
+ const { updateSettings } = useSettingsStore()
+
+ const close = () => setCloudTeaser(null)
+ const copy: TeaserCopy | null =
+ target?.surface === 'intent'
+ ? INTENT_COPY[target.intent]
+ : target?.surface === 'create-model'
+ ? {
+ title: cloudModelById(target.modelId)?.label ?? 'Hosted model',
+ line:
+ target.kind === 'video'
+ ? 'Cinema-grade video models on datacenter GPUs — no download, no VRAM limit.'
+ : 'Frontier image models on datacenter GPUs — no download, no VRAM limit.',
+ }
+ : null
+
+ return (
+ <AnimatePresence>
+ {target && copy && (
+ <motion.div
+ initial={{ opacity: 0 }}
+ animate={{ opacity: 1 }}
+ exit={{ opacity: 0 }}
+ className="fixed inset-0 z-[90] flex items-center justify-center bg-black/60 backdrop-blur-sm"
+ onClick={close}
+ >
+ <motion.div
+ initial={{ opacity: 0, y: 10, scale: 0.97 }}
+ animate={{ opacity: 1, y: 0, scale: 1 }}
+ exit={{ opacity: 0, y: 10, scale: 0.97 }}
+ transition={{ duration: 0.15, ease: 'easeOut' }}
+ onClick={(e) => e.stopPropagation()}
+ className="w-[360px] max-w-[92vw] rounded-2xl bg-[#232323] border border-white/[0.08] shadow-2xl shadow-black/50 overflow-hidden"
+ >
+ {/* Demo stage */}
+ <div className="relative h-[130px] bg-[#1b1b1b] border-b border-white/[0.06] overflow-hidden">
+ <TeaserDemo target={target} />
+ <button
+ onClick={close}
+ className="absolute top-2 right-2 p-1.5 rounded-md text-gray-500 hover:text-gray-200 hover:bg-white/10 transition-colors"
+ title="Close"
+ aria-label="Close"
+ >
+ <X size={14} />
+ </button>
+ </div>
+
+ <div className="p-4 space-y-3">
+ <div className="flex items-center gap-2">
+ <Cloud size={14} className="text-violet-300" />
+ <h3 className="text-[0.85rem] font-semibold text-white">{copy.title}</h3>
+ <span className="ml-auto text-[0.55rem] font-medium uppercase tracking-widest text-violet-300/80">
+ LU Cloud
+ </span>
+ </div>
+ <p className="text-[0.7rem] leading-relaxed text-gray-400">{copy.line}</p>
+ <p className="text-[0.62rem] leading-relaxed text-gray-500">
+ Runs on LU Cloud — your PC stays cool while datacenter GPUs do the
+ heavy lifting. Part of the Max plan (closed beta).
+ </p>
+ <div className="flex items-center gap-2 pt-1">
+ <button
+ onClick={() => { close(); setCloudGateOpen(true) }}
+ className="flex-1 flex items-center justify-center gap-1.5 h-8 rounded-lg bg-white text-black text-[0.7rem] font-semibold hover:bg-gray-200 transition-colors"
+ >
+ <Sparkles size={12} /> See plans
+ </button>
+ <button
+ onClick={close}
+ className="px-3 h-8 rounded-lg text-[0.7rem] text-gray-400 hover:text-gray-200 hover:bg-white/[0.06] transition-colors"
+ >
+ Not now
+ </button>
+ </div>
+ <button
+ onClick={() => { updateSettings({ cloudTeasersEnabled: false }); close() }}
+ className="w-full text-center text-[0.58rem] text-gray-600 hover:text-gray-400 transition-colors pt-0.5"
+ >
+ Hide Cloud features in Local mode
+ </button>
+ </div>
+ </motion.div>
+ </motion.div>
+ )}
+ </AnimatePresence>
+ )
+}
+
+// ── "Show me" demos — tiny looping motion sketches, one per tool. Pure
+// CSS/SVG so they ship inside the bundle (no media assets, theme-crisp). ──
+
+function TeaserDemo({ target }: { target: CloudTeaserTarget }) {
+ const kind = target.surface === 'intent' ? target.intent : target.kind === 'video' ? 'video-model' : 'image-model'
+ switch (kind) {
+ case 'upscale': return <UpscaleDemo />
+ case 'eraser': return <EraserDemo />
+ case 'character': return <CharacterDemo />
+ case 'lipsync': return <LipsyncDemo />
+ case 'music': return <MusicDemo />
+ case 'extend': return <ExtendDemo />
+ case 'motion': return <MotionDemo />
+ default: return <ModelDemo video={kind === 'video-model'} />
+ }
+}
+
+const LOOP = { duration: 2.6, repeat: Infinity, ease: 'easeInOut' as const }
+
+function Stage({ children }: { children: React.ReactNode }) {
+ return <div className="absolute inset-0 flex items-center justify-center">{children}</div>
+}
+
+function UpscaleDemo() {
+ return (
+ <Stage>
+ <motion.div
+ className="w-20 h-20 rounded-lg bg-gradient-to-br from-violet-500/60 to-sky-500/60"
+ animate={{ filter: ['blur(6px)', 'blur(0px)', 'blur(0px)', 'blur(6px)'], scale: [0.8, 1.05, 1.05, 0.8] }}
+ transition={{ ...LOOP, duration: 3.2, times: [0, 0.4, 0.7, 1] }}
+ />
+ <motion.span
+ className="absolute text-[0.55rem] font-mono text-white/70"
+ animate={{ opacity: [0, 0, 1, 0] }}
+ transition={{ ...LOOP, duration: 3.2, times: [0, 0.4, 0.6, 1] }}
+ >
+ 4K
+ </motion.span>
+ </Stage>
+ )
+}
+
+function EraserDemo() {
+ return (
+ <Stage>
+ <div className="relative w-24 h-16 rounded-lg bg-gradient-to-br from-emerald-800/60 to-emerald-600/40">
+ <motion.div
+ className="absolute left-3 bottom-3 w-6 h-8 rounded-sm bg-amber-400/80"
+ animate={{ opacity: [1, 1, 0, 0, 1] }}
+ transition={{ ...LOOP, duration: 3, times: [0, 0.35, 0.55, 0.85, 1] }}
+ />
+ <motion.div
+ className="absolute w-3.5 h-3.5 rounded-full border-2 border-white/80 bg-white/20"
+ animate={{ x: [8, 20, 8], y: [18, 30, 18], opacity: [0, 1, 0] }}
+ transition={{ ...LOOP, duration: 3 }}
+ />
+ </div>
+ </Stage>
+ )
+}
+
+function CharacterDemo() {
+ return (
+ <Stage>
+ <div className="flex items-center gap-3">
+ <div className="grid grid-cols-2 gap-1">
+ {[0, 1, 2, 3].map((i) => (
+ <motion.div
+ key={i}
+ className="w-5 h-5 rounded-sm bg-white/25"
+ animate={{ opacity: [0.4, 1, 0.4] }}
+ transition={{ ...LOOP, delay: i * 0.18 }}
+ />
+ ))}
+ </div>
+ <motion.div animate={{ x: [0, 3, 0] }} transition={LOOP} className="text-gray-500 text-[0.7rem]">→</motion.div>
+ <motion.div
+ className="w-12 h-12 rounded-full bg-gradient-to-br from-violet-400/70 to-fuchsia-400/70 flex items-center justify-center"
+ animate={{ scale: [0.92, 1.06, 0.92] }}
+ transition={LOOP}
+ >
+ <Sparkles size={14} className="text-white/90" />
+ </motion.div>
+ </div>
+ </Stage>
+ )
+}
+
+function LipsyncDemo() {
+ return (
+ <Stage>
+ <div className="flex items-center gap-4">
+ <div className="relative w-14 h-14 rounded-full bg-white/15 flex items-end justify-center pb-3">
+ <div className="absolute top-4 flex gap-2.5">
+ <span className="w-1.5 h-1.5 rounded-full bg-white/70" />
+ <span className="w-1.5 h-1.5 rounded-full bg-white/70" />
+ </div>
+ <motion.div
+ className="w-4 rounded-full bg-rose-300/90"
+ animate={{ height: [2, 6, 3, 7, 2] }}
+ transition={{ duration: 1.1, repeat: Infinity, ease: 'easeInOut' }}
+ />
+ </div>
+ <div className="flex items-end gap-0.5 h-8">
+ {[10, 18, 26, 16, 22, 12, 20].map((h, i) => (
+ <motion.span
+ key={i}
+ className="w-1 rounded-full bg-violet-300/80"
+ animate={{ height: [h * 0.4, h, h * 0.4] }}
+ transition={{ duration: 0.9, repeat: Infinity, ease: 'easeInOut', delay: i * 0.09 }}
+ />
+ ))}
+ </div>
+ </div>
+ </Stage>
+ )
+}
+
+function MusicDemo() {
+ return (
+ <Stage>
+ <div className="flex items-end gap-1 h-12">
+ {[14, 26, 38, 22, 34, 18, 30, 24, 40, 16].map((h, i) => (
+ <motion.span
+ key={i}
+ className="w-1.5 rounded-full bg-gradient-to-t from-violet-500/80 to-sky-400/80"
+ animate={{ height: [h * 0.35, h, h * 0.35] }}
+ transition={{ duration: 1.1, repeat: Infinity, ease: 'easeInOut', delay: i * 0.07 }}
+ />
+ ))}
+ </div>
+ </Stage>
+ )
+}
+
+function ExtendDemo() {
+ return (
+ <Stage>
+ <div className="flex items-center gap-1">
+ {[0, 1, 2].map((i) => (
+ <div key={i} className="w-8 h-12 rounded-sm bg-white/20 border border-white/10" />
+ ))}
+ {[3, 4].map((i) => (
+ <motion.div
+ key={i}
+ className="w-8 h-12 rounded-sm bg-violet-400/50 border border-violet-300/30"
+ animate={{ opacity: [0, 0, 1, 1, 0], x: [-6, -6, 0, 0, -6] }}
+ transition={{ duration: 3, repeat: Infinity, ease: 'easeOut', times: [0, 0.2 + i * 0.12, 0.35 + i * 0.12, 0.85, 1] }}
+ />
+ ))}
+ </div>
+ </Stage>
+ )
+}
+
+function MotionDemo() {
+ return (
+ <Stage>
+ <div className="flex items-center gap-5">
+ <motion.div
+ className="w-8 h-14 rounded-md border-2 border-dashed border-white/40"
+ animate={{ rotate: [-9, 9, -9] }}
+ transition={LOOP}
+ />
+ <motion.div animate={{ opacity: [0.3, 1, 0.3] }} transition={LOOP} className="text-gray-500 text-[0.7rem]">→</motion.div>
+ <motion.div
+ className="w-8 h-14 rounded-md bg-gradient-to-b from-violet-400/80 to-fuchsia-500/70"
+ animate={{ rotate: [-9, 9, -9] }}
+ transition={{ ...LOOP, delay: 0.12 }}
+ />
+ </div>
+ </Stage>
+ )
+}
+
+function ModelDemo({ video }: { video: boolean }) {
+ return (
+ <Stage>
+ <motion.div
+ className={
+ video
+ ? 'w-24 h-14 rounded-lg bg-gradient-to-br from-sky-500/50 to-violet-500/50'
+ : 'w-16 h-16 rounded-lg bg-gradient-to-br from-violet-500/50 to-fuchsia-500/50'
+ }
+ animate={{ scale: [0.94, 1.04, 0.94], opacity: [0.7, 1, 0.7] }}
+ transition={LOOP}
+ >
+ <div className="w-full h-full flex items-center justify-center">
+ <Cloud size={18} className="text-white/80" />
+ </div>
+ </motion.div>
+ </Stage>
+ )
+}
diff --git a/src/components/create/experimental/IntentBar.tsx b/src/components/create/experimental/IntentBar.tsx
index 4e1576c3..9b493556 100644
--- a/src/components/create/experimental/IntentBar.tsx
+++ b/src/components/create/experimental/IntentBar.tsx
@@ -1,4 +1,7 @@
+import { Cloud } from 'lucide-react'
import { useCreateStore } from '../../../stores/createStore'
+import { useSettingsStore } from '../../../stores/settingsStore'
+import { useUIStore, type CloudTeaserTarget } from '../../../stores/uiStore'
import { INTENTS } from './intents'
import { cn } from '../ui/cn'
@@ -9,14 +12,19 @@ import { cn } from '../ui/cn'
// cross-fades via colour/shadow; neighbours slide on natural flex reflow.
const EASE = 'ease-[cubic-bezier(0.22,1,0.36,1)]'
+type TeaserIntent = Extract<CloudTeaserTarget, { surface: 'intent' }>['intent']
+
export function IntentBar() {
const intent = useCreateStore((s) => s.intent())
const setIntent = useCreateStore((s) => s.setIntent)
const backend = useCreateStore((s) => s.backend)
- // Utility intents (upscale/eraser) are hosted-only endpoints — hide them on
- // the local backend. setIntent's base already clears a stale utilityOp when
- // the mode flips back and the user picks any normal intent.
- const intents = INTENTS.filter((m) => !m.cloudOnly || backend === 'cloud')
+ const teasersEnabled = useSettingsStore((s) => s.settings.cloudTeasersEnabled)
+ const setCloudTeaser = useUIStore((s) => s.setCloudTeaser)
+ // Hosted-only intents (upscale/eraser + the 2.5.8 categories) are live on
+ // the cloud backend. On local they stay VISIBLE as locked teasers (cloud
+ // glyph, sheet on tap) while the discovery layer is on — never selectable,
+ // never blocking a local flow. Teasers off = the pre-2.5.8 behavior.
+ const intents = INTENTS.filter((m) => !m.cloudOnly || backend === 'cloud' || teasersEnabled)
return (
<div
@@ -28,27 +36,42 @@ export function IntentBar() {
style={{ transform: 'scale(0.763)', transformOrigin: 'center' }}
>
{intents.map((meta) => {
- const selected = intent === meta.id
+ const locked = meta.cloudOnly === true && backend !== 'cloud'
+ const selected = !locked && intent === meta.id
const Icon = meta.icon
return (
<button
key={meta.id}
role="radio"
aria-checked={selected}
- aria-label={meta.label}
- title={meta.label}
- onClick={() => setIntent(meta.id)}
+ aria-label={locked ? `${meta.label} — runs on LU Cloud` : meta.label}
+ title={locked ? `${meta.label} — runs on LU Cloud` : meta.label}
+ onClick={() =>
+ locked
+ ? setCloudTeaser({ surface: 'intent', intent: meta.id as TeaserIntent })
+ : setIntent(meta.id)
+ }
className={cn(
- 'flex items-center h-9 rounded-full border lu-focus-ring transition-[background-color,border-color,box-shadow,color] duration-200',
+ 'relative flex items-center h-9 rounded-full border lu-focus-ring transition-[background-color,border-color,box-shadow,color] duration-200',
EASE,
selected
? 'bg-white/[0.11] border-white/20 shadow-sm text-white'
- : 'border-transparent text-gray-500 hover:text-gray-200 hover:bg-white/[0.05]',
+ : locked
+ ? 'border-transparent text-gray-600 hover:text-gray-400 hover:bg-white/[0.03]'
+ : 'border-transparent text-gray-500 hover:text-gray-200 hover:bg-white/[0.05]',
)}
>
<span className="grid place-items-center w-9 h-9 shrink-0">
<Icon size={16} strokeWidth={selected ? 2 : 1.75} />
</span>
+ {locked && (
+ <Cloud
+ size={9}
+ className="absolute top-1 right-1 text-violet-300/80"
+ strokeWidth={2.2}
+ aria-hidden
+ />
+ )}
<span
className={cn(
'overflow-hidden whitespace-nowrap min-w-0 t-control transition-[max-width,opacity,padding] duration-200',
diff --git a/src/components/layout/AppShell.tsx b/src/components/layout/AppShell.tsx
index e1fdf6fe..bb8a1254 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 { CloudTeaserModal } from '../cloud/CloudTeaserModal'
import { CloudIntroPopup } from '../cloud/CloudIntroPopup'
import { CloudOnboardingModal } from '../cloud/CloudOnboardingModal'
import { ShortcutsModal } from './ShortcutsModal'
@@ -808,6 +809,9 @@ export function AppShell() {
/>
{/* Cloud gate: login → plan → beta wall, opened by the header switch. */}
<CloudGateModal />
+ {/* Cloud discovery sheet: opened by the Local-mode teaser surfaces
+ (locked Create tabs, hosted model rows). */}
+ <CloudTeaserModal />
{/* One-time cloud onboarding — first successful switch flip. */}
<CloudOnboardingModal />
{/* Once-ever "LU Cloud is live" hello on the first 2.5.7 launch. */}
diff --git a/src/components/models/ModelSelector.tsx b/src/components/models/ModelSelector.tsx
index b290b7f4..87c24d22 100644
--- a/src/components/models/ModelSelector.tsx
+++ b/src/components/models/ModelSelector.tsx
@@ -1,9 +1,11 @@
import { useState, useRef, useEffect } from 'react'
import { motion, AnimatePresence } from 'framer-motion'
-import { ChevronDown, Loader2, Power, PlayCircle, X } from 'lucide-react'
+import { ChevronDown, Loader2, Power, PlayCircle, X, Cloud } from 'lucide-react'
import { useModels } from '../../hooks/useModels'
import { useModelStore } from '../../stores/modelStore'
import { useProviderStore } from '../../stores/providerStore'
+import { useSettingsStore } from '../../stores/settingsStore'
+import { useUIStore } from '../../stores/uiStore'
import { unloadAllModels, loadModel, unloadModel, listRunningModels } from '../../api/ollama'
import { displayModelName } from '../../api/providers'
import { backendCall } from '../../api/backend'
@@ -11,6 +13,60 @@ import { listLoadedLmStudioModels, loadLmStudioModel, unloadLmStudioModel } from
import { isLmStudioProvider } from '../../lib/hf-to-provider'
import type { AIModel } from '../../types/models'
+// ── Local-mode cloud discovery (2.5.8): an "LU Cloud" section at the list's
+// tail. Signed-in accounts show their real hosted chat models (the appMode
+// filter hides them from the selectable list); logged-out shows one generic
+// row. Tapping any row opens the Cloud gate (login → plan → beta) — chat rows
+// skip the teaser sheet, the gate IS the pitch here. Hidden in cloud mode
+// (models are the real list there) and when the discovery layer is off. ──
+function CloudTeaserSection({ onOpen }: { onOpen: () => void }) {
+ const appMode = useSettingsStore((s) => s.settings.appMode)
+ const teasersEnabled = useSettingsStore((s) => s.settings.cloudTeasersEnabled)
+ const setCloudGateOpen = useUIStore((s) => s.setCloudGateOpen)
+ const allModels = useModelStore((s) => s.models)
+ if (appMode === 'cloud' || !teasersEnabled) return null
+ const cloudChat = allModels.filter((m) => m.provider === 'lu-cloud' && m.type === 'text').slice(0, 5)
+ const open = () => { onOpen(); setCloudGateOpen(true) }
+ return (
+ <div className="mt-1 border-t border-white/[0.05]">
+ <div className="px-2.5 pt-2 pb-0.5 flex items-center gap-1">
+ <Cloud size={9} className="text-violet-300/80" />
+ <span className="text-[0.55rem] font-medium uppercase tracking-widest text-gray-600">
+ LU Cloud
+ </span>
+ </div>
+ {cloudChat.length > 0 ? (
+ cloudChat.map((m) => (
+ <button
+ key={m.name}
+ onClick={open}
+ className="w-full flex items-center gap-2 px-2.5 py-1.5 text-left hover:bg-white/[0.04] transition-colors"
+ title="Runs on LU Cloud — tap to see plans"
+ >
+ <Cloud size={10} className="text-violet-300/70 shrink-0" />
+ <span className="text-[0.68rem] text-gray-400 truncate">
+ {('displayName' in m && m.displayName) || displayModelName(m.name)}
+ </span>
+ <span className="ml-auto text-[8px] text-violet-300/70">Cloud</span>
+ </button>
+ ))
+ ) : (
+ <button
+ onClick={open}
+ className="w-full flex items-center gap-2 px-2.5 py-1.5 text-left hover:bg-white/[0.04] transition-colors"
+ title="Runs on LU Cloud — tap to see plans"
+ >
+ <Cloud size={10} className="text-violet-300/70 shrink-0" />
+ <span className="text-[0.68rem] text-gray-400">
+ Frontier chat models — no GPU needed
+ </span>
+ <span className="ml-auto text-[8px] text-violet-300/70">Cloud</span>
+ </button>
+ )}
+ </div>
+ )
+}
+
// True when `prev` already holds exactly the names in `next`. Lets the 1.5 s
// loaded-state poll bail out of a state update (return the SAME Set ref) when
// nothing changed, so React skips the re-render instead of reconciling the whole
@@ -752,6 +808,8 @@ export function ModelSelector({ openUpward = false }: { openUpward?: boolean } =
})}
</div>
))}
+
+ <CloudTeaserSection onOpen={() => setOpen(false)} />
</div>
{/* Sticky footer: Unload */}
diff --git a/src/components/settings/SettingsPage.tsx b/src/components/settings/SettingsPage.tsx
index bbc7ae56..d2ba35b7 100644
--- a/src/components/settings/SettingsPage.tsx
+++ b/src/components/settings/SettingsPage.tsx
@@ -985,6 +985,32 @@ export function SettingsPage() {
{tab === 'general' && (<>
<Section title="LU Cloud Account" defaultOpen>
<AccountPanel />
+ {/* Local-mode discovery layer (2.5.8): the locked Create tabs +
+ hosted-model rows. The teaser sheet's "Hide Cloud features"
+ link flips this off; this is the way back on. */}
+ <div className="flex items-center justify-between pt-1">
+ <div className="min-w-0 pr-3">
+ <span className="text-[0.7rem] text-gray-700 dark:text-gray-400">Show Cloud features in Local mode</span>
+ <p className="text-[0.6rem] text-gray-500 dark:text-gray-600 leading-snug">
+ Locked Create tools and hosted models appear as tappable previews. Never blocks a local flow.
+ </p>
+ </div>
+ <button
+ onClick={() => updateSettings({ cloudTeasersEnabled: !settings.cloudTeasersEnabled })}
+ className={`relative w-8 h-[18px] rounded-full transition-colors shrink-0 ${
+ settings.cloudTeasersEnabled ? 'bg-violet-500/70' : 'bg-gray-300 dark:bg-white/10'
+ }`}
+ role="switch"
+ aria-checked={settings.cloudTeasersEnabled}
+ aria-label="Show Cloud features in Local mode"
+ >
+ <span
+ className={`absolute top-[2px] w-3.5 h-3.5 rounded-full bg-white shadow transition-all ${
+ settings.cloudTeasersEnabled ? 'left-[16px]' : 'left-[2px]'
+ }`}
+ />
+ </button>
+ </div>
</Section>
<Section title="Appearance">
<div className="flex items-center justify-between">
diff --git a/src/lib/constants.ts b/src/lib/constants.ts
index 30ac852e..067f040b 100644
--- a/src/lib/constants.ts
+++ b/src/lib/constants.ts
@@ -17,6 +17,8 @@ export const DEFAULT_SETTINGS: Settings = {
// Global Local/Cloud switch (2.5.7) — local is and stays the default.
appMode: 'local',
cloudOnboardingSeen: false,
+ // Cloud teasers in Local mode (2.5.8) — on by default, one-click off.
+ cloudTeasersEnabled: true,
personasEnabled: true,
thinkingEnabled: true,
// Small-Model Mode (v2.5.0) — lean profile for 3B-8B local models.
diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.ts
index df1c6757..dc268d6b 100644
--- a/src/stores/settingsStore.ts
+++ b/src/stores/settingsStore.ts
@@ -35,7 +35,9 @@ import { DEFAULT_SETTINGS, BUILT_IN_PERSONAS } from '../lib/constants'
// fills the default while preserving every existing value; NVIDIA unaffected.
// v13 (2.5.7): added settings.cloudOnboardingSeen (one-time Cloud onboarding
// on the first successful switch flip, default false). Additive merge.
-const STORE_VERSION = 13
+// v14 (2.5.8): added settings.cloudTeasersEnabled (Cloud discovery in Local
+// mode: locked Create tabs + hosted-model picker rows, default true). Additive.
+const STORE_VERSION = 14
interface SettingsState {
settings: Settings
diff --git a/src/stores/uiStore.ts b/src/stores/uiStore.ts
index 738f5c56..405dcdc1 100644
--- a/src/stores/uiStore.ts
+++ b/src/stores/uiStore.ts
@@ -2,6 +2,18 @@ import { create } from 'zustand'
export type View = 'chat' | 'models' | 'settings' | 'create' | 'benchmark'
+/** Which Cloud teaser sheet is open (Local-mode discovery, 2.5.8).
+ * 'intent' = a locked Create tab (the cloud-only intents incl. the five
+ * 2.5.8 categories); 'create-model' = a hosted model row in the Create
+ * picker (modelId = the tapped catalog id). The chat picker's Cloud rows
+ * open the CloudGateModal directly — no sheet there. */
+export type CloudTeaserTarget =
+ | {
+ surface: 'intent'
+ intent: 'upscale' | 'eraser' | 'character' | 'lipsync' | 'music' | 'extend' | 'motion'
+ }
+ | { surface: 'create-model'; kind: 'image' | 'video'; modelId: string }
+
interface UIState {
currentView: View
sidebarOpen: boolean
@@ -11,11 +23,14 @@ interface UIState {
/** One-time Cloud onboarding — opened on the first successful flip to
* Cloud (subscription present, cloudOnboardingSeen still false). */
cloudOnboardingOpen: boolean
+ /** CloudTeaserModal — null = closed. */
+ cloudTeaser: CloudTeaserTarget | null
setView: (view: View) => void
toggleSidebar: () => void
setSidebarOpen: (open: boolean) => void
setCloudGateOpen: (open: boolean) => void
setCloudOnboardingOpen: (open: boolean) => void
+ setCloudTeaser: (target: CloudTeaserTarget | null) => void
}
export const useUIStore = create<UIState>()((set) => ({
@@ -23,6 +38,7 @@ export const useUIStore = create<UIState>()((set) => ({
sidebarOpen: true,
cloudGateOpen: false,
cloudOnboardingOpen: false,
+ cloudTeaser: null,
// Sidebar visibility follows the view: it's the conversation list, which
// only makes sense in Chat. The hamburger toggle still works on other views;
@@ -32,4 +48,5 @@ export const useUIStore = create<UIState>()((set) => ({
setSidebarOpen: (open) => set({ sidebarOpen: open }),
setCloudGateOpen: (open) => set({ cloudGateOpen: open }),
setCloudOnboardingOpen: (open) => set({ cloudOnboardingOpen: open }),
+ setCloudTeaser: (target) => set({ cloudTeaser: target }),
}))
diff --git a/src/types/settings.ts b/src/types/settings.ts
index 4cfe3f8e..13a3a5c9 100644
--- a/src/types/settings.ts
+++ b/src/types/settings.ts
@@ -27,6 +27,12 @@ export interface Settings {
* to Cloud shows a short what-changes walkthrough; after that the switch
* flips silently. Persisted so it never re-triggers. */
cloudOnboardingSeen: boolean
+ /** Cloud discovery inside Local mode (2.5.8): locked Upscale/Erase tabs in
+ * Create, hosted-model rows in the chat + Create pickers, each opening a
+ * small "runs on LU Cloud" sheet. Teasers never block a local flow and
+ * never show in cloud mode. Off = Local mode shows zero Cloud surfaces;
+ * the sheet's "Hide Cloud features" link and Settings both flip this. */
+ cloudTeasersEnabled: boolean
/** Master switch for personas. When off, new chats get no persona system
* prompt (raw model). Default true. Ported from the uselu web companion. */
personasEnabled: boolean