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): der Teaser-Knopf fuehrt direkt in Signup und Checkout mit Hosted

Davidd0c44afdaadb
diff --git a/src/components/cloud/CloudTeaserModal.tsx b/src/components/cloud/CloudTeaserModal.tsx
index f7c10a2e..3300f43a 100644
--- a/src/components/cloud/CloudTeaserModal.tsx
+++ b/src/components/cloud/CloudTeaserModal.tsx
@@ -77,7 +77,7 @@ export function CloudTeaserModal() {
// 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 / See plans) retires
+ // dismissal of this sheet (button, backdrop, X, Try local / Get LU Cloud) 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.
@@ -159,17 +159,19 @@ export function CloudTeaserModal() {
<div className="flex items-center gap-2 pt-1">
<button
onClick={() => {
- // 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.
+ // Straight into signup and checkout with Hosted preselected
+ // (David, 2026-09-07: "die Pricing-Seite ist eine
+ // Entscheidung zu viel"). Until 2.6.8 this opened
+ // CloudGateModal, which asks for a login before it shows a
+ // single price. The src tag names the card size, so the
+ // funnel on the server can say what this button brings.
close()
- void openExternal(`${CLOUD_BASE}/pricing`)
+ const src = gpuGb !== null ? `gpu${gpuGb}` : 'gpu-unknown'
+ void openExternal(`${CLOUD_BASE}/checkout/start?plan=hosted&src=${src}`)
}}
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
+ <Sparkles size={12} /> Get LU Cloud
</button>
{localLane && (
<button
diff --git a/src/components/cloud/__tests__/cloud-path-shortened.test.ts b/src/components/cloud/__tests__/cloud-path-shortened.test.ts
index b88c3fdd..4f1b04bf 100644
--- a/src/components/cloud/__tests__/cloud-path-shortened.test.ts
+++ b/src/components/cloud/__tests__/cloud-path-shortened.test.ts
@@ -46,12 +46,13 @@ describe('the example-video stage is gone', () => {
}
})
- it('the teaser sheet opens the pricing page from both surfaces', () => {
+ it('the teaser sheet goes straight into checkout 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`\)/)
+ // went to the in-app gate. Since 2026-09-07 the one button opens
+ // /checkout/start in the browser with Hosted preselected and the card
+ // size as src, and the gate is no longer referenced from the sheet.
+ expect(teaser).toMatch(/openExternal\(`\$\{CLOUD_BASE\}\/checkout\/start\?plan=hosted&src=\$\{src\}`\)/)
+ expect(teaser).toMatch(/gpuGb !== null \? `gpu\$\{gpuGb\}` : 'gpu-unknown'/)
expect(teaser).not.toMatch(/setCloudGateOpen/)
expect(teaser).not.toMatch(/setCloudExampleVideo/)
// The branch itself is gone, not just its call.