From 18c6f9598a45567753bc802abeb6546cb90568ca Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Tue, 17 Nov 2026 22:15:30 +0100 Subject: [PATCH] Uitsnede-dialoog: de tekst over opslaan van de hero is weg Co-Authored-By: Claude Sonnet 5.5 --- frontend/src/features/hero/components/FocusDialog.tsx | 1 - frontend/src/features/hero/pages/HeroPage.test.tsx | 3 ++- frontend/src/i18n/locales/en/translation.json | 1 - frontend/src/i18n/locales/nl/translation.json | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/features/hero/components/FocusDialog.tsx b/frontend/src/features/hero/components/FocusDialog.tsx index 2c47ab8..5e7a4de 100644 --- a/frontend/src/features/hero/components/FocusDialog.tsx +++ b/frontend/src/features/hero/components/FocusDialog.tsx @@ -98,7 +98,6 @@ function FocusEditor({ image, onApply, onClose }: { image: HeroImageDto; onApply return (

{t('hero.focus.intro')}

-

{t('hero.focus.applyHint')}

{t('hero.focus.targetLegend')} diff --git a/frontend/src/features/hero/pages/HeroPage.test.tsx b/frontend/src/features/hero/pages/HeroPage.test.tsx index cc36d50..bdcb874 100644 --- a/frontend/src/features/hero/pages/HeroPage.test.tsx +++ b/frontend/src/features/hero/pages/HeroPage.test.tsx @@ -281,7 +281,8 @@ describe('Focus dialog', () => { expect(screen.getByTestId('focus-y')).toHaveValue(50); expect(screen.getByTestId('focus-preview-wide')).toBeInTheDocument(); expect(screen.getByTestId('focus-preview-tall')).toBeInTheDocument(); - expect(screen.getByTestId('focus-apply-hint')).toHaveTextContent(/pas nadat je de hero opslaat|only takes effect when you save the hero/); + // A crop is processed at once: there is no note about saving the hero. + expect(screen.queryByTestId('focus-apply-hint')).not.toBeInTheDocument(); }); it('moves the point with the keyboard', async () => { diff --git a/frontend/src/i18n/locales/en/translation.json b/frontend/src/i18n/locales/en/translation.json index 5148c9b..d807996 100644 --- a/frontend/src/i18n/locales/en/translation.json +++ b/frontend/src/i18n/locales/en/translation.json @@ -709,7 +709,6 @@ "tall": "Portrait preview" }, "apply": "Apply", - "applyHint": "The change only takes effect when you save the hero. If you leave the page without saving it is dropped.", "previewPending": "The preview of this photo is being prepared. Close this window and try again in a few seconds." }, "errors": { diff --git a/frontend/src/i18n/locales/nl/translation.json b/frontend/src/i18n/locales/nl/translation.json index 803ef1a..806730b 100644 --- a/frontend/src/i18n/locales/nl/translation.json +++ b/frontend/src/i18n/locales/nl/translation.json @@ -709,7 +709,6 @@ "tall": "Voorbeeld staand" }, "apply": "Toepassen", - "applyHint": "De wijziging geldt pas nadat je de hero opslaat. Verlaat je de pagina zonder op te slaan, dan vervalt ze.", "previewPending": "Het voorbeeld van deze foto wordt klaargezet. Sluit dit venster en probeer het over een paar seconden opnieuw." }, "errors": {