Hero: themagebonden Checkbox/Radio in het Hero-scherm en de focusdialoog; zoomschuif met themakleur
Continuous Integration / changes (pull_request) Successful in 13s
Continuous Integration / config-asf (pull_request) Successful in 6s
Continuous Integration / backend-build (pull_request) Skipped
Continuous Integration / compile-sites (pull_request) Skipped
Continuous Integration / backend-test (pull_request) Skipped
Continuous Integration / vulnerability-scan (pull_request) Skipped
Continuous Integration / config-sls (pull_request) Successful in 8s
Continuous Integration / frontend-prepare (pull_request) Successful in 34s
Continuous Integration / frontend-build (pull_request) Successful in 47s
Continuous Integration / frontend-lint (pull_request) Successful in 34s
Continuous Integration / frontend-test (pull_request) Successful in 2m22s
Continuous Integration / publish-sls-test (pull_request) Skipped
Continuous Integration / publish-sls-production (pull_request) Skipped
Continuous Integration / deploy-sls-test (pull_request) Skipped
Continuous Integration / deploy-sls-production (pull_request) Skipped
Continuous Integration / publish-asf-test (pull_request) Skipped
Continuous Integration / deploy-asf-test (pull_request) Skipped
Continuous Integration / smoke-sls-test (pull_request) Skipped
Continuous Integration / smoke-asf-test (pull_request) Skipped

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 13:18:13 +01:00
co-authored by Claude Sonnet 5.5
parent 4c88ea8961
commit 2fe1187abd
2 changed files with 21 additions and 28 deletions
@@ -10,6 +10,8 @@ import { SortableContext, sortableKeyboardCoordinates, verticalListSortingStrate
import { Badge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { CheckboxField } from '@/components/ui/checkbox';
import { RadioField } from '@/components/ui/radio';
import { Label } from '@/components/ui/label';
import { FieldError } from '@/components/ui/FieldError';
import { FormErrorBanner } from '@/components/ui/FormErrorBanner';
@@ -431,10 +433,7 @@ function HeroEditor({ hero }: { hero: HeroAdminDto }) {
<legend className="text-sm font-medium">{t('hero.fields.display')}</legend>
<div className="flex flex-wrap gap-4 text-sm">
{(['single', 'slideshow'] as const).map((value) => (
<label key={value} className="flex items-center gap-2">
<input type="radio" value={value} data-testid={`hero-display-${value}`} {...register('display')} />
{t(`hero.display.${value}`)}
</label>
<RadioField key={value} value={value} data-testid={`hero-display-${value}`} label={t(`hero.display.${value}`)} {...register('display')} />
))}
</div>
</fieldset>
@@ -548,10 +547,7 @@ function HeroEditor({ hero }: { hero: HeroAdminDto }) {
<Input id={`hero-slide-${index}-alt`} maxLength={300} disabled={decorative} aria-describedby={`hero-slide-${index}-alt-hint`} data-testid={`hero-slide-${index}-alt`} {...register(`slides.${index}.alt` as const)} />
<p id={`hero-slide-${index}-alt-hint`} className="text-xs text-muted-foreground">{t('hero.slides.altHint')}</p>
<FieldError message={err(heroErrors.slides?.[index]?.alt?.message)} testId={`hero-slide-${index}-alt-error`} />
<label className="flex items-center gap-2 text-sm">
<input type="checkbox" className="size-4 rounded border-input" data-testid={`hero-slide-${index}-decorative`} {...register(`slides.${index}.decorative` as const)} />
{t('hero.slides.decorative')}
</label>
<CheckboxField data-testid={`hero-slide-${index}-decorative`} label={t('hero.slides.decorative')} {...register(`slides.${index}.decorative` as const)} />
</div>
<div className="flex flex-wrap items-center gap-1">
<SlideSwitch