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.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
feat(cloud): der Teaser nennt die GPU-Groesse und fuehrt zur Preisseite
David26ea26e17fb8
diff --git a/src/components/cloud/CloudTeaserModal.tsx b/src/components/cloud/CloudTeaserModal.tsxindex c2ce2cae..f7c10a2e 100644--- a/src/components/cloud/CloudTeaserModal.tsx+++ b/src/components/cloud/CloudTeaserModal.tsx@@ -5,6 +5,7 @@// explicitly cloud-tagged surfaces), never shows in cloud mode, and the// footer link turns the whole discovery layer off (Settings can re-enable).+import { useEffect, useState } from 'react'import { AnimatePresence, motion } from 'framer-motion'import { useDismissOnEscape } from '../../hooks/useDismissOnEscape'import { X, Cloud, Sparkles, MonitorDown } from 'lucide-react'@@ -14,6 +15,9 @@ import { cloudModelById } from '../../stores/cloudCatalogStore'import { useCreateStore, type CreateIntent } from '../../stores/createStore'import { isIntentAvailable } from '../create/experimental/intents'import { isMlxImageHost } from '../../api/mlx-image'+import { openExternal } from '../../api/backend'+import { CLOUD_BASE } from '../../api/cloud/config'+import { getMaxVramGb } from '../../lib/hardware'interface TeaserCopy {title: string@@ -54,14 +58,26 @@ const INTENT_COPY: Record<Extract<CloudTeaserTarget, { surface: 'intent' }>['intexport function CloudTeaserModal() {const target = useUIStore((s) => s.cloudTeaser)const setCloudTeaser = useUIStore((s) => s.setCloudTeaser)- const setCloudGateOpen = useUIStore((s) => s.setCloudGateOpen)const setIntent = useCreateStore((s) => s.setIntent)const { updateSettings } = useSettingsStore()const teasersEnabled = useSettingsStore((s) => s.settings.cloudTeasersEnabled)+ // The card's own number (David, 2026-09-07): "Your GPU has 6 GB" says why+ // the tool is greyed out better than any adjective. Read once per opening,+ // from the same detect_gpus the hardware settings use; null when nothing+ // was found, and then the line falls back to the wording without a number.+ const [gpuGb, setGpuGb] = useState<number | null>(null)+ useEffect(() => {+ if (!target) return+ let alive = true+ void getMaxVramGb().then((gb) => {+ if (alive) setGpuGb(gb > 0 ? Math.round(gb) : null)+ })+ return () => { alive = false }+ }, [target])// One-time onboarding (David 2026-07-19): the Cloud discovery layer is meant// to appear ONCE per user, never again — not after updates either. Any- // dismissal of this sheet (button, backdrop, X, Try local / Try cloud) retires+ // dismissal of this sheet (button, backdrop, X, Try local / See plans) retires// the whole discovery layer permanently; the persisted flag survives updates,// and Settings can re-enable it. Cloud-only *features* (upscale / eraser) stay// accessible regardless — their sheet renders on tap, not on this flag.@@ -135,23 +151,25 @@ export function CloudTeaserModal() {</div><p className="text-[0.7rem] leading-relaxed text-gray-400">{copy.line}</p><p className="text-[0.62rem] leading-relaxed text-gray-500">+ {gpuGb !== null && `Your GPU has ${gpuGb} GB. `}{localLane? 'Runs on your PC with downloaded models, or on LU Cloud where datacenter GPUs do the heavy lifting.'- : 'Runs on LU Cloud. Your PC stays cool while datacenter GPUs do the heavy lifting.'}+ : 'Runs on LU Cloud, where datacenter GPUs do the heavy lifting and VRAM is not the limit.'}</p><div className="flex items-center gap-2 pt-1"><buttononClick={() => {- // 2.6.3 B5: intent teasers used to detour through an- // example-video popup before the gate. That stage is gone- // (David 2026-08-04), so both surfaces take the same path- // the model rows always took, one click shorter.+ // The plans live on the pricing page, not behind the+ // in-app gate (David, 2026-09-07: "nur zur Preisseite").+ // Until 2.6.8 this opened CloudGateModal, which asks for a+ // login before it shows a single price; the browser page+ // shows the numbers first and logs in second.close()- setCloudGateOpen(true)+ void openExternal(`${CLOUD_BASE}/pricing`)}}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} /> {localLane ? 'Try cloud' : 'See plans'}+ <Sparkles size={12} /> See plans</button>{localLane && (<buttondiff --git a/src/components/cloud/__tests__/cloud-path-shortened.test.ts b/src/components/cloud/__tests__/cloud-path-shortened.test.tsindex b6ee9aec..b88c3fdd 100644--- a/src/components/cloud/__tests__/cloud-path-shortened.test.ts+++ b/src/components/cloud/__tests__/cloud-path-shortened.test.ts@@ -46,10 +46,13 @@ describe('the example-video stage is gone', () => {}})- it('the teaser sheet goes straight to the gate from both surfaces', () => {- // The intent branch used to call setCloudExampleVideo; both branches take- // the model-row path now, which was always one step shorter.- expect(teaser).toMatch(/setCloudGateOpen\(true\)/)+ it('the teaser sheet opens the pricing page from both surfaces', () => {+ // The intent branch used to call setCloudExampleVideo, then both branches+ // went to the in-app gate. Since 2026-09-07 the one button opens the+ // pricing page in the browser (prices first, login second), and the gate+ // is no longer referenced from the sheet at all.+ expect(teaser).toMatch(/openExternal\(`\$\{CLOUD_BASE\}\/pricing`\)/)+ expect(teaser).not.toMatch(/setCloudGateOpen/)expect(teaser).not.toMatch(/setCloudExampleVideo/)// The branch itself is gone, not just its call.expect(teaser).not.toMatch(/if \(t\.surface === 'intent'\)/)