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(blatt): das Was-ist-neu-Blatt fuehrt mit dem Cloud-Block

purple07fcb5cb68e4
diff --git a/src/components/release/ReleaseNotesModal.tsx b/src/components/release/ReleaseNotesModal.tsx
index 0ca56db2..a1406bcf 100644
--- a/src/components/release/ReleaseNotesModal.tsx
+++ b/src/components/release/ReleaseNotesModal.tsx
@@ -9,6 +9,8 @@ import { AnimatePresence, motion } from 'framer-motion'
import { X, Sparkles, ChevronDown } from 'lucide-react'
import { version as currentVersion } from '../../../package.json'
import { useSettingsStore } from '../../stores/settingsStore'
+import { useUIStore } from '../../stores/uiStore'
+import { useCloudAuthStore, deriveCloudAvailable } from '../../stores/cloudAuthStore'
import { useReleaseNotesStore, shouldShowReleaseNotes } from '../../stores/releaseNotesStore'
import { releaseNoteFor } from '../../lib/release-notes'
@@ -16,11 +18,31 @@ export function ReleaseNotesModal() {
const lastNotesVersion = useReleaseNotesStore((s) => s.lastNotesVersion)
const markNotesSeen = useReleaseNotesStore((s) => s.markNotesSeen)
const onboardingDone = useSettingsStore((s) => s.settings.onboardingDone)
+ const updateSettings = useSettingsStore((s) => s.updateSettings)
+ const setCloudGateOpen = useUIStore((s) => s.setCloudGateOpen)
+ const cloudAvailable = useCloudAuthStore(deriveCloudAvailable)
const [expanded, setExpanded] = useState(false)
const open = shouldShowReleaseNotes(currentVersion, lastNotesVersion, onboardingDone)
const note = releaseNoteFor(currentVersion)
const close = () => markNotesSeen(currentVersion)
+
+ /**
+ * Der Knopf des Cloud-Blocks.
+ *
+ * Er tut genau das, was der Wolkenschalter im Kopf der App tut, und faellt
+ * darum auf dieselbe Unterscheidung zurueck: ein Konto, das die Wolke nutzen
+ * darf, wird umgeschaltet; jedes andere bekommt das Verkaufs-Panel. Kein
+ * zweiter Weg in die Wolke, nur ein zweiter Ausloeser.
+ *
+ * Das Blatt schliesst sich dabei, sonst laege es ueber dem, was es gerade
+ * geoeffnet hat. Es gilt danach als gelesen, denn der Kunde hat es gelesen.
+ */
+ const turnOnCloud = () => {
+ close()
+ if (cloudAvailable) updateSettings({ appMode: 'cloud' })
+ else setCloudGateOpen(true)
+ }
useDismissOnEscape(open && !!note, close)
return (
@@ -54,6 +76,38 @@ export function ReleaseNotesModal() {
</div>
<div className="p-4 space-y-3 max-h-[60vh] overflow-y-auto">
+ {/* Vor allem anderen und fetter als der Rest (David, 13.09.2026):
+ wer aktualisiert, liest dieses Blatt einmal, und das Angebot
+ gehoert an dessen Anfang statt zwischen die Fehlerbehebungen.
+ Die drei Zeilen und der Satz kommen aus lib/cloud-pitch.ts,
+ wortgleich mit dem Panel am Schalter. */}
+ {note.cloud && (
+ <div
+ data-testid="release-cloud-block"
+ className="rounded-lg border border-white/[0.08] bg-white/[0.03] p-3 space-y-2"
+ >
+ <p className="text-[0.55rem] font-semibold uppercase tracking-widest text-violet-300/80">
+ Cloud
+ </p>
+ {/* 0.7rem, nicht 0.75: die Typo-Leiter hat sieben Werte
+ abgebaut, und 0.75rem ist einer davon. Fett und weiss
+ gegen grau tragen den Unterschied ohne neue Groesse. */}
+ <ul className="space-y-1">
+ {note.cloud.lines.map((line) => (
+ <li key={line} className="text-[0.7rem] font-semibold leading-snug text-white">
+ {line}
+ </li>
+ ))}
+ </ul>
+ <p className="text-[0.62rem] leading-relaxed text-gray-300">{note.cloud.note}</p>
+ <button
+ onClick={turnOnCloud}
+ className="w-full flex items-center justify-center h-8 rounded-lg bg-white text-black text-[0.7rem] font-semibold hover:bg-gray-200 transition-colors"
+ >
+ Turn on Cloud
+ </button>
+ </div>
+ )}
<div className="flex items-center gap-2">
<Sparkles size={14} className="text-violet-300" />
<h3 className="text-[0.85rem] font-semibold text-white">What is new</h3>
diff --git a/src/lib/release-notes.ts b/src/lib/release-notes.ts
index 033e059f..a5842527 100644
--- a/src/lib/release-notes.ts
+++ b/src/lib/release-notes.ts
@@ -14,7 +14,7 @@
* changes expander, grouped into sections (Local, Cloud), and may be long.
*/
-import { CLOUD_PITCH } from './cloud-pitch'
+import { CLOUD_PITCH, CLOUD_SUBSCRIBER_LINE, cloudSalesLines } from './cloud-pitch'
/**
* The two model numbers the 3.0.0 sheet quotes, in one place and read, never
@@ -76,6 +76,25 @@ export interface ReleaseNote {
version: string
/** One line the user reads first. */
headline: string
+ /**
+ * Der Cloud-Block, der VOR allem anderen auf dem Blatt steht (David,
+ * 13.09.2026).
+ *
+ * Dieselben drei Zeilen und derselbe Abo-Satz wie im Verkaufs-Panel am
+ * Wolkenschalter, aus denselben Konstanten. Das Blatt ist die einzige
+ * Stelle, an der ein bestehender Kunde nach einer Aktualisierung etwas
+ * erfaehrt, also steht das Angebot dort oben und nicht zwischen den
+ * Fehlerbehebungen.
+ *
+ * Optional: nur das Blatt der laufenden Version traegt ihn. Eine alte Notiz
+ * bekommt rueckwirkend kein Angebot.
+ */
+ cloud?: {
+ /** Die drei gezaehlten Zeilen. */
+ lines: string[]
+ /** Der Abo-Satz, zeichengleich mit Panel, CHANGELOG und Guthaben-Dialog. */
+ note: string
+ }
/** Two to five short lines. Anything longer goes into `details`. */
lines: string[]
/** The full list behind the expander, grouped into sections. */
@@ -92,6 +111,13 @@ export const RELEASE_NOTES: ReleaseNote[] = [
{
version: '3.0.0',
headline: 'Uncensored, measured instead of promised, and Flash chat that costs nothing on a plan',
+ // Gelesen, nicht getippt: dieselben Funktionen, die das Verkaufs-Panel
+ // fuellen. Eine zweite Fassung derselben drei Zahlen waere genau der
+ // Fehler, den der Waechter unter diesem Blatt seit R2-11 verhindert.
+ cloud: {
+ lines: cloudSalesLines(),
+ note: CLOUD_SUBSCRIBER_LINE,
+ },
lines: [
`${SHEET_MARKED_MODELS} of the ${SHEET_CHAT_MODELS} cloud chat models we measured answer in full without refusing, and only those carry the No refusals mark. The catalogue holds ${SHEET_CATALOGUE_MODELS} chat models. We asked them, twice each, and counted only the ones that answered both times. The mark comes from that measurement, never from the model name.`,
// Der Bezugspunkt der 12 steht ausgeschrieben, nie als Rueckverweis.
diff --git a/src/stores/__tests__/releaseNotesStore.test.ts b/src/stores/__tests__/releaseNotesStore.test.ts
index 3b819a56..6b50cdb3 100644
--- a/src/stores/__tests__/releaseNotesStore.test.ts
+++ b/src/stores/__tests__/releaseNotesStore.test.ts
@@ -13,7 +13,7 @@
import { describe, it, expect, beforeEach } from 'vitest'
import { useReleaseNotesStore, shouldShowReleaseNotes } from '../releaseNotesStore'
import { RELEASE_NOTES, releaseNoteFor, SHEET_CATALOGUE_MODELS, SHEET_CHAT_MODELS, SHEET_MARKED_MODELS } from '../../lib/release-notes'
-import { CLOUD_PITCH } from '../../lib/cloud-pitch'
+import { CLOUD_PITCH, CLOUD_SUBSCRIBER_LINE, cloudSalesLines } from '../../lib/cloud-pitch'
import { readFileSync } from 'node:fs'
import { fileURLToPath } from 'node:url'
import { dirname, resolve } from 'node:path'
@@ -368,6 +368,59 @@ describe('the notes table', () => {
}
})
+ /**
+ * David, 13.09.2026: das Blatt fuehrt mit dem Cloud-Block.
+ *
+ * Der Block ist die einzige Stelle, an der ein BESTEHENDER Kunde nach einer
+ * Aktualisierung vom Angebot erfaehrt, also steht er vor allem anderen und
+ * faellt staerker aus als der Rest. Seine Zahlen sind dieselben Konstanten
+ * wie im Verkaufs-Panel am Schalter; zwei Fassungen derselben drei Zahlen
+ * waeren genau der Fund, den dieser Waechter seit R2-11 fernhaelt.
+ */
+ it('the sheet leads with the Cloud block, and it is read, never typed', () => {
+ const note = releaseNoteFor('3.0.0')
+ expect(note?.cloud, 'the 3.0.0 sheet carries no Cloud block').toBeDefined()
+ expect(note!.cloud!.lines, 'the block writes its own version of the three lines')
+ .toEqual(cloudSalesLines())
+ expect(note!.cloud!.note, 'the subscriber sentence is not the shared one')
+ .toBe(CLOUD_SUBSCRIBER_LINE)
+
+ const src = readFileSync(
+ resolve(dirname(fileURLToPath(import.meta.url)), '../../lib/release-notes.ts'), 'utf8',
+ )
+ expect(src).toContain('lines: cloudSalesLines()')
+ expect(src).toContain('note: CLOUD_SUBSCRIBER_LINE')
+
+ const modal = readFileSync(
+ resolve(dirname(fileURLToPath(import.meta.url)), '../../components/release/ReleaseNotesModal.tsx'),
+ 'utf8',
+ )
+ expect(modal).toContain('release-cloud-block')
+ expect(modal, 'the block has no way into the cloud').toContain('Turn on Cloud')
+ // Vor allem anderen: der Block steht im Quelltext vor der Ueberschrift
+ // des Blatts, und die Ueberschrift ist das erste, was sonst kam.
+ //
+ // Gegen die gerenderte Ueberschrift, nicht gegen die Zeichenkette: die
+ // Datei beginnt mit einem Kommentar, der "What is new" ebenfalls nennt,
+ // und gegen den stand der Block immer hinten.
+ expect(modal.indexOf('release-cloud-block'))
+ .toBeLessThan(modal.indexOf('What is new</h3>'))
+ // Der Knopf faellt auf denselben Weg zurueck wie der Schalter im Kopf.
+ expect(modal).toContain('setCloudGateOpen(true)')
+ expect(modal).toContain("updateSettings({ appMode: 'cloud' })")
+ })
+
+ it('and the rest of the sheet is unchanged, to the character', () => {
+ // Der Cloud-Block ist ein eigenes Feld und darf NICHT in die Prosa
+ // gerutscht sein: sonst haette er die Anker oben verschoben, und die
+ // bestehenden Saetze waeren nicht mehr zeichengleich.
+ const prose = proseOf('3.0.0')
+ expect(prose, 'the Cloud block leaked into the sheet prose')
+ .not.toContain('chat models with no refusals')
+ expect(prose, 'the subscriber sentence leaked into the sheet prose')
+ .not.toContain('more credits per euro')
+ })
+
it('the modal renders the expander and the sections', () => {
// Source guard, same pattern as the settings guards: the sheet must offer
// Show all changes and map note.details, or the table above is dead data.