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
fix(erinnerungen): Sync und Review kleben an der Kontosammlung nicht mehr aneinander
purple2823a294df08
diff --git a/src/components/settings/MemorySettings.tsx b/src/components/settings/MemorySettings.tsxindex 441a0f00..e9340396 100644--- a/src/components/settings/MemorySettings.tsx+++ b/src/components/settings/MemorySettings.tsx@@ -366,7 +366,7 @@ function MemorySettingsPanel() {<p>Marking a memory sensitive does not erase existing cloud copies. Delete the memory and sync to request its removal from cloud sync.</p><label className="block"><input type="checkbox" checked={syncConsent} disabled={syncBusy} onChange={event => setSyncConsent(event.target.checked)} /> Allow cloud storage for this account collection</label><label className="block"><input type="checkbox" checked={sensitiveSyncConsent} disabled={syncBusy} onChange={event => setSensitiveSyncConsent(event.target.checked)} /> Also allow cloud storage of sensitive memories</label>- <button className="underline disabled:opacity-50" disabled={!syncConsent || syncBusy} onClick={() => void runSync()}>Sync account memories</button>+ <button className="mr-3 underline disabled:opacity-50" disabled={!syncConsent || syncBusy} onClick={() => void runSync()}>Sync account memories</button>{syncBusy && <button className="ml-3 underline" onClick={() => syncController.current?.abort()}>Cancel synchronization</button>}{syncMessage && <p role="status">{syncMessage}</p>}{/* R5-30: der Altpfad. Vor dem heutigen Protokoll lag die@@ -375,7 +375,7 @@ function MemorySettingsPanel() {liegen, wo der Kunde ihn nie zu Gesicht bekam. Ansehen zuerst,entfernen nur mit Haekchen: eine alte Kopie ist manchmal dieeinzige, und wer sie ungesehen wegwirft, merkt es spaeter. */}- <button className="underline disabled:opacity-50" disabled={!syncConsent || syncBusy} onClick={() => void runSync(undefined, 'review')}>Review previous cloud copy for removal</button>+ <button className="block underline disabled:opacity-50" disabled={!syncConsent || syncBusy} onClick={() => void runSync(undefined, 'review')}>Review previous cloud copy for removal</button>{legacyReview && <div className="space-y-2 rounded border border-gray-200 p-2 dark:border-white/10" role="group" aria-label="Legacy memory finalization review"><details><summary className="cursor-pointer">Compare both versions</summary><p>Previous cloud copy</p><pre className="max-h-48 overflow-auto whitespace-pre-wrap break-words">{JSON.stringify(legacyReview.previous, null, 2)}</pre>diff --git a/src/components/settings/__tests__/der-altpfad-steht-auch-im-desktop.test.tsx b/src/components/settings/__tests__/der-altpfad-steht-auch-im-desktop.test.tsxindex d8387d56..814f09fe 100644--- a/src/components/settings/__tests__/der-altpfad-steht-auch-im-desktop.test.tsx+++ b/src/components/settings/__tests__/der-altpfad-steht-auch-im-desktop.test.tsx@@ -37,6 +37,20 @@ const { useMemoryStore } = await import('../../../stores/memoryStore')const zustimmen = () => fireEvent.click(screen.getByLabelText('Allow cloud storage for this account collection'))+// jsdom rechnet kein Layout. Diese Lesart formt den Text so, wie die Klassen+// ihn am Schirm formen: block, p und div stehen in eigener Zeile, mr-* und+// ml-* setzen Luft. Mehr Regeln braucht der eine Fall unten nicht.+const sichtbarerText = (el: Element): string => Array.from(el.childNodes).map(node => {+ if (node.nodeType === Node.TEXT_NODE) return node.textContent ?? ''+ if (!(node instanceof Element)) return ''+ const klassen = Array.from(node.classList)+ let text = sichtbarerText(node)+ if (klassen.some(k => /^m[rx]-/.test(k))) text = `${text} `+ if (klassen.some(k => /^m[lx]-/.test(k))) text = ` ${text}`+ if (klassen.includes('block') || node.tagName === 'P' || node.tagName === 'DIV') text = `\n${text}\n`+ return text+}).join('')+beforeEach(() => {angesehen.mockClear(); entfernt.mockClear()useMemoryStore.setState({ entries: [], activeMemoryOwner: 'konto-1', memoryCollectionRevision: 0 })@@ -102,4 +116,25 @@ describe('der Altpfad in den Erinnerungseinstellungen', () => {expect(screen.queryByText('Remove old copy'), 'die alte kurze Aufschrift steht wieder da').toBeNull()expect(screen.getByText('Remove previous cloud copy')).toBeTruthy()})++ it('Sync und Review kleben nicht aneinander, Abstand und eigene Zeile wie im Web', () => {+ // T13e, Nebenfund N1: an der Kontosammlung stand am Schirm+ // "Sync account memoriesReview previous cloud copy for removal", eine+ // einzige unterstrichene Zeile, die wie ein Link aussah. Zwei Inline-Knoepfe+ // ohne Luft dazwischen. Das Web setzt an denselben Stellen mr-3 und block+ // (apps/web/components/settings/MemorySettings.tsx:272 und :277 auf+ // 224f923d). textContent allein beweist hier nichts: Klassen schreiben+ // keinen Text, der Elternknoten klebt die zwei Aufschriften in textContent+ // immer zusammen. Deshalb Elemente, Klassen und die Lesart oben.+ render(<MemorySettings />)+ const sync = screen.getByText('Sync account memories')+ const review = screen.getByText('Review previous cloud copy for removal')+ expect(sync.tagName).toBe('BUTTON')+ expect(review.tagName).toBe('BUTTON')+ expect(sync, 'beide Aufschriften stehen in einem Element').not.toBe(review)+ expect(sync.parentElement).toBe(review.parentElement)+ expect(sync.classList.contains('mr-3'), 'Sync hat keinen Abstand nach rechts').toBe(true)+ expect(review.classList.contains('block'), 'Review steht nicht in eigener Zeile').toBe(true)+ expect(sichtbarerText(sync.parentElement!), 'Sync und Review kleben aneinander').not.toContain('memoriesReview')+ })})