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): die zwei Altpfad-Knoepfe heissen wie im Web
purpled952dca42f6e
diff --git a/src/components/settings/MemorySettings.tsx b/src/components/settings/MemorySettings.tsxindex 4b0b7abd..441a0f00 100644--- a/src/components/settings/MemorySettings.tsx+++ b/src/components/settings/MemorySettings.tsx@@ -375,14 +375,14 @@ 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')}>Check old memory copy</button>+ <button className="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><p>Synchronized versions, including deletions</p><pre className="max-h-48 overflow-auto whitespace-pre-wrap break-words">{JSON.stringify(legacyReview.current, null, 2)}</pre></details><label className="block"><input type="checkbox" checked={confirmLegacyRemoval} disabled={syncBusy} onChange={event => setConfirmLegacyRemoval(event.target.checked)} /> I reviewed these versions and confirm removing the previous cloud copy, including any differences.</label>- <button className="underline disabled:opacity-50" disabled={!syncConsent || syncBusy || !confirmLegacyRemoval} onClick={() => void runSync(undefined, 'finalize')}>Remove old copy</button>+ <button className="underline disabled:opacity-50" disabled={!syncConsent || syncBusy || !confirmLegacyRemoval} onClick={() => void runSync(undefined, 'finalize')}>Remove previous cloud copy</button></div>}{syncConflicts.map((conflict, index) => {const local = entries.find(entry => entry.id === conflict.id)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 2813630d..d8387d56 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@@ -48,33 +48,33 @@ describe('der Altpfad in den Erinnerungseinstellungen', () => {render(<MemorySettings />)zustimmen()- fireEvent.click(screen.getByText('Check old memory copy'))+ fireEvent.click(screen.getByText('Review previous cloud copy for removal'))await waitFor(() => expect(angesehen).toHaveBeenCalledTimes(1))expect(screen.getByRole('status').textContent).toBe('Review both versions before removing the previous cloud copy.')- const entfernen = screen.getByText('Remove old copy') as HTMLButtonElement+ const entfernen = screen.getByText('Remove previous cloud copy') as HTMLButtonElementexpect(entfernen.disabled, 'entfernen war ohne Haekchen anklickbar').toBe(true)fireEvent.click(entfernen)expect(entfernt, 'ein toter Knopf hat trotzdem entfernt').not.toHaveBeenCalled()fireEvent.click(screen.getByLabelText(/I reviewed these versions and confirm removing the previous cloud copy/))- expect((screen.getByText('Remove old copy') as HTMLButtonElement).disabled).toBe(false)- fireEvent.click(screen.getByText('Remove old copy'))+ expect((screen.getByText('Remove previous cloud copy') as HTMLButtonElement).disabled).toBe(false)+ fireEvent.click(screen.getByText('Remove previous cloud copy'))await waitFor(() => expect(entfernt).toHaveBeenCalledTimes(1))expect(entfernt.mock.calls[0][0]).toBe(befund)expect(entfernt.mock.calls[0][1]).toBe(true)await waitFor(() => expect(screen.getByRole('status').textContent).toBe('Previous cloud copy removed. Older versions can no longer synchronize memories. Conversations keep synchronizing.',))- expect(screen.queryByText('Remove old copy'), 'der Befund steht nach dem Entfernen noch da').toBeNull()+ expect(screen.queryByText('Remove previous cloud copy'), 'der Befund steht nach dem Entfernen noch da').toBeNull()})it('fragt ohne Zustimmung zur Wolke gar nicht erst nach', () => {// Negativkontrolle: derselbe Riegel wie am Synchronisierungslauf. Ohne das// Haekchen zur Wolkenspeicherung geht keine Anfrage raus.render(<MemorySettings />)- const nachsehen = screen.getByText('Check old memory copy') as HTMLButtonElement+ const nachsehen = screen.getByText('Review previous cloud copy for removal') as HTMLButtonElementexpect(nachsehen.disabled).toBe(true)fireEvent.click(nachsehen)expect(angesehen).not.toHaveBeenCalled()@@ -84,6 +84,22 @@ describe('der Altpfad in den Erinnerungseinstellungen', () => {cleanup()useMemoryStore.setState({ activeMemoryOwner: null })render(<MemorySettings />)- expect(screen.queryByText('Check old memory copy')).toBeNull()+ expect(screen.queryByText('Review previous cloud copy for removal')).toBeNull()+ })++ it('traegt die Aufschriften des Webs, nicht mehr die alten kurzen', async () => {+ // Paritaet mit apps/web/components/settings/MemorySettings.tsx auf+ // ef0d616a: dort heissen die zwei Knoepfe "Review previous cloud copy for+ // removal" und "Remove previous cloud copy". Der Desktop hat sie+ // abgekuerzt, und der Bericht hat trotzdem "wortgleich mit dem Web"+ // behauptet. Die zwei queryByText sind die Negativkontrolle: faellt eine+ // der alten kurzen Aufschriften zurueck, steht sie hier wieder im Baum.+ render(<MemorySettings />)+ zustimmen()+ expect(screen.queryByText('Check old memory copy'), 'die alte kurze Aufschrift steht wieder da').toBeNull()+ fireEvent.click(screen.getByText('Review previous cloud copy for removal'))+ await waitFor(() => expect(angesehen).toHaveBeenCalledTimes(1))+ expect(screen.queryByText('Remove old copy'), 'die alte kurze Aufschrift steht wieder da').toBeNull()+ expect(screen.getByText('Remove previous cloud copy')).toBeTruthy()})})