Commit Graph
12 Commits
Author SHA1 Message Date
damjan_savic 790dd9c59a Merge origin/master - keep reading time feature 2026-01-25 19:50:50 +01:00
damjan_savic c10bb7da16 Merge origin/master 2026-01-25 19:45:41 +01:00
damjan_savic 7324a87385 Merge origin/master 2026-01-25 19:39:57 +01:00
Damjan SavicandGitHub 187a42cbd8 Merge pull request #4 from damjan1996/auto-claude/025-implement-blog-post-caching-and-lazy-loading
auto-claude: 025-implement-blog-post-caching-and-lazy-loading
2026-01-25 19:25:21 +01:00
damjan_savicandClaude Sonnet 4.5 54b0984348 fix: resolve test failures and add error handling (qa-requested)
Fixes applied per QA Fix Request (Session 1):
- Fix invalid toEndWith() assertion in blog.test.ts (use toMatch regex)
- Fix category expectation mismatch ('Technologie' → 'Web Development')
- Fix title expectation to include slug prefix ('001-fallback-title')
- Fix path mock issue in directory existence test
- Add error handling in getAllBlogPosts() to skip failed parses
- Document dependency installation requirement for @testing-library packages

Test fixes:
- src/lib/blog.test.ts: Fixed 4 test expectations and 1 mock assertion
- src/lib/blog.ts: Added try-catch error handling in getAllBlogPosts()

All code-level fixes complete. Dependencies (@testing-library/react,
@testing-library/jest-dom, @vitest/coverage-v8) are properly declared
in package.json and require installation from root project directory.

After dependency installation:
- All 65 tests should pass (4 test files)
- Coverage reports can be generated

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-25 12:35:19 +01:00
damjan_savic 889fbb410d auto-claude: subtask-5-1 - Add JSDoc to blog.ts 2026-01-25 12:05:28 +01:00
damjan_savic 4cc19386fe auto-claude: subtask-2-1 - Add caching to getAllBlogPosts using existing Cache 2026-01-25 06:32:09 +01:00
damjan_savicandClaude Sonnet 4.5 7fa92a04b4 auto-claude: subtask-1-3 - Display reading time on blog post detail page
- Import Clock icon from lucide-react
- Export calculateReadingTime function from blog.ts
- Calculate reading time for post content
- Display reading time in post header with Clock icon
- Format matches listing page: "X min read"

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-25 02:38:16 +01:00
damjan_savic 7bf3aa20ce auto-claude: subtask-1-1 - Add readingTime field to BlogPost interface and im 2026-01-25 02:32:33 +01:00
damjan_savicandClaude Opus 4.5 69f88a08d4 Fix: Replace ES2018 regex flag with compatible pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 23:49:46 +01:00
damjan_savicandClaude Opus 4.5 a7ee78d194 Fix: Make content optional in BlogPost type
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 23:47:42 +01:00
damjan_savicandClaude Opus 4.5 87c7ebc5e3 feat: Add professional portfolio images and Hero redesign
- Add 15 optimized WebP images for portfolio (21-53KB each)
- Redesign Hero section with full-width background image
- Add SSR support for Hero component
- Update About section with new portrait image
- Update Contact page with professional headshot
- Add images to Services/Leistungen page
- Add image optimization script (sharp)
- Update translations for gallery section

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 23:33:28 +01:00