Mediabibliotheek fase 2/3a/3b: write-through, uitsnede per slide, leesschakelaar, hero-foto's in de bibliotheek #27

Merged
Sluijsens merged 14 commits from feature/media-library-phase2 into master 2026-11-18 08:24:41 +01:00
4 changed files with 2 additions and 4 deletions
Showing only changes of commit 1e6534d2ea - Show all commits
@@ -100,7 +100,6 @@ function FocusEditor({ image, onApply, onClose, onReset }: { image: HeroImageDto
return (
<div className="space-y-4" data-testid="focus-dialog">
<p className="text-sm text-muted-foreground">{t('hero.focus.intro')}</p>
<p className="text-sm font-medium" data-testid="focus-apply-hint">{t('hero.focus.applyHint')}</p>
<fieldset className="flex flex-wrap gap-4">
<legend className="sr-only">{t('hero.focus.targetLegend')}</legend>
@@ -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 () => {
@@ -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.",
"reset": "Use the photo’s crop again"
},
@@ -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.",
"reset": "Terug naar de uitsnede van de foto"
},