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(inhaltsregel): die Altersbestaetigung nennt dasselbe Verb wie das Web
purple269be4bfc2cf
diff --git a/src/components/settings/ContentPolicySettings.tsx b/src/components/settings/ContentPolicySettings.tsxindex 4dc9ea6f..130a45d2 100644--- a/src/components/settings/ContentPolicySettings.tsx+++ b/src/components/settings/ContentPolicySettings.tsx@@ -112,8 +112,8 @@ export function ContentPolicySettings() {{policy === 'off' && confirmedAt && (<p className="text-[0.6rem] text-gray-500">- Age confirmed on {new Date(confirmedAt).toLocaleDateString()}. Choosing another option- clears that confirmation.+ Age confirmed on {new Date(confirmedAt).toLocaleDateString()}. Switching to another+ option clears that confirmation.</p>)}diff --git a/src/components/settings/__tests__/content-policy-settings.test.tsx b/src/components/settings/__tests__/content-policy-settings.test.tsxindex a5b6dd9b..54aa5d9a 100644--- a/src/components/settings/__tests__/content-policy-settings.test.tsx+++ b/src/components/settings/__tests__/content-policy-settings.test.tsx@@ -80,4 +80,40 @@ describe('ContentPolicySettings', () => {render(<ContentPolicySettings />)expect(document.body.textContent ?? '').toMatch(/nothing on\s+your own machine is/i)})++ /**+ * R5-7: dieselbe Bedienung, zwei Verben. Der Desktop sagte "Choosing another+ * option", das Web "Switching to another option". Beide Saetze stehen vor+ * demselben Kunden, und Paritaet ist Hausregel, wo dasselbe Feature existiert.+ *+ * Der Wortlaut steht hier ausgeschrieben und nicht aus dem Web-Baum gelesen:+ * ein Checkout ohne das Nachbar-Repo wuerde sonst entweder fehlschlagen oder,+ * schlimmer, still gruen melden. Quelle des Satzes:+ * `apps/web/components/settings/ContentPolicySettings.tsx:135-136`.+ */+ const WEB_SATZ = 'Switching to another option clears that confirmation.'++ it('nennt die Altersbestaetigung mit dem Verb des Web', async () => {+ api.get.mockResolvedValue({ policy: 'off', ageConfirmedAt: '2026-09-10T08:00:00.000Z' })+ render(<ContentPolicySettings />)+ await waitFor(() => {+ const text = (document.body.textContent ?? '').replace(/\s+/g, ' ')+ expect(text).toContain(WEB_SATZ)+ expect(text).toContain('Age confirmed on ')+ })+ // Negativkontrolle: das alte Verb darf nirgends mehr stehen.+ expect(document.body.textContent ?? '').not.toMatch(/Choosing another option/)+ })++ it('und zeigt den Satz nur, solange die Regel wirklich aus ist', async () => {+ // Negativkontrolle zur Bedingung: bei strict und soft steht die Zeile gar+ // nicht da, auch wenn der Server ein Bestaetigungsdatum mitliefert.+ for (const policy of ['strict', 'soft'] as const) {+ cleanup()+ api.get.mockResolvedValue({ policy, ageConfirmedAt: '2026-09-10T08:00:00.000Z' })+ render(<ContentPolicySettings />)+ await waitFor(() => expect((screen.getByDisplayValue(policy) as HTMLInputElement).checked).toBe(true))+ expect(document.body.textContent ?? '', policy).not.toContain('Age confirmed on')+ }+ })})