Commit Graph

18 Commits

Author SHA1 Message Date
f66334290a refactor: complete Svelte 5 migration to eliminate all deprecation warnings
All checks were successful
CI / update (push) Successful in 1m35s
Migrated all components and routes to Svelte 5 syntax standards:

Event Handlers:
- Updated all deprecated on:* directives to new on* attribute syntax
- Changed on:click → onclick, on:keydown → onkeydown, on:input → oninput
- Updated on:blur, on:focus, on:load, on:submit, on:cancel handlers

Reactive State:
- Added $state() declarations for all reactive variables
- Fixed non-reactive update warnings in layout and component files

Component API:
- Replaced <slot /> with {@render children()} pattern
- Added children prop to components using slots

Accessibility:
- Added id attributes to inputs and for attributes to labels
- Fixed label-control associations across forms
- Removed event listeners from non-interactive elements

HTML Fixes:
- Fixed self-closing textarea tags
- Corrected implicitly closed elements
- Proper element nesting

CSS Cleanup:
- Removed 20+ unused CSS selectors across components
- Cleaned up orphaned styles from refactoring

All vite-plugin-svelte warnings resolved. Codebase now fully compliant with Svelte 5.
2026-01-05 23:39:44 +01:00
4ffc0940ef feat: add AI-powered alt text generation for recipe images
All checks were successful
CI / update (push) Successful in 1m10s
- Implement local Ollama integration for bilingual (DE/EN) alt text generation
- Add image management UI to German edit page and English translation section
- Update Card and recipe detail pages to display alt text from images array
- Include GenerateAltTextButton component for manual alt text generation
- Add bulk processing admin page for batch alt text generation
- Optimize images to 1024x1024 before AI processing for 75% faster generation
- Store alt text in recipe.images[].alt and translations.en.images[].alt
2026-01-05 17:28:19 +01:00
8a7d50ceb7 fix duplicate image IDs and migrate TitleImgParallax to Svelte 5 runes
Replace id="image" with class="image" in both Card and TitleImgParallax
components to prevent duplicate IDs when multiple instances appear on the
same page. Update TitleImgParallax to use Svelte 5 $props() and $state()
runes instead of legacy export let syntax, and modernize event handlers
to use onload/onclick attributes.
2025-12-31 17:53:03 +01:00
f2544a1413 Improve accessibility and fix ARIA warnings
- Add proper aria-labels to all interactive buttons
- Convert div click handlers to semantic button elements with proper styling
- Add ARIA roles to SVG circle elements in rosenkranz interface
- Add role="button" and aria-label to tag removal elements
- Suppress inappropriate accessibility warning for image zoom functionality

All build accessibility warnings have been resolved.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-04 19:39:55 +02:00
8d62bc4213 simplify boolean assignemnt 2024-02-19 23:22:29 +01:00
5eede48406 first attempt in disabling image coursel on redirect 2024-02-18 19:53:47 +01:00
df4a3763c1 no blurred image if JS disabled 2024-01-22 14:43:52 +01:00
2da2218520 actually render correctly for FF 2023-10-19 13:45:12 +02:00
4b5ad61aac title image correctly aligned on firefox 2023-10-19 13:31:16 +02:00
7d8aa92d14 fix modal image screen overflow 2023-07-13 18:57:29 +02:00
973f5d305c show zoom-in pointe only when ready 2023-07-13 17:30:36 +02:00
468baf7c20 click on title image for full image 2023-07-13 15:26:16 +02:00
9ccd8418e5 smoother transition 2023-07-12 12:46:33 +02:00
950506dc10 reliably unblur, only use unblur if image not already loaded 2023-07-12 12:44:44 +02:00
511c18ad1b do not show progress of downloading full image 2023-07-11 19:36:59 +02:00
800ca29531 initial implementation of placeholder images, thumbnails and blurring between using sharp 2023-07-11 18:47:29 +02:00
a48b9686e7 Remove unnecessary a11y warnings 2023-07-03 00:09:00 +02:00
5d2304e159 Image parallax on recipes 2023-06-25 12:15:20 +02:00