Commit Graph

489 Commits

Author SHA1 Message Date
denshooter 79036a3607 Merge branch 'dev' into production
CI / CD / test-build (push) Successful in 10m22s
CI / CD / deploy-dev (push) Has been skipped
CI / CD / deploy-production (push) Successful in 23s
2026-05-14 18:56:06 +02:00
denshooter 8c3c4ec1d0 fix: replace ES2018 regex flags in pre-push test for TS compat
CI / CD / test-build (push) Successful in 10m20s
CI / CD / deploy-dev (push) Successful in 1m26s
CI / CD / deploy-production (push) Has been skipped
2026-05-14 18:55:59 +02:00
denshooter 91df78b533 Merge branch 'dev' into production
CI / CD / test-build (push) Failing after 5m39s
CI / CD / deploy-dev (push) Has been skipped
CI / CD / deploy-production (push) Has been skipped
2026-05-14 16:05:25 +02:00
denshooter 31560a712f feat: comprehensive UI/a11y/i18n fixes and pre-push quality test
CI / CD / test-build (push) Failing after 5m43s
CI / CD / deploy-dev (push) Has been skipped
CI / CD / deploy-production (push) Has been skipped
- Fix ClientWrappers missing 'about' namespace (MISSING_MESSAGE error)
- Add system/light/dark theme toggle with prefers-color-scheme detection
- Rewrite 404 page with i18n, accessibility, and proper navigation
- Rewrite books page with Header/Footer, i18n, and semantic HTML
- Add i18n keys to About, Footer, and both locale files
- Fix dark mode contrast: text-stone-300/600 -> text-stone-400
- Replace raw hex bg-[#fdfcf8] with bg-stone-50 across all components
- Guard console.error in ChatWidget and manage/page behind NODE_ENV
- Add aria-label to admin login form
- Remove emoji from manage page password toggle
- Update stale dates in privacy-policy and legal-notice
- Fix ScrollFadeIn index->delay prop type error in books page
- Fix privacy-policy and legal-notice landmark structure
- Add pre-push-check.test.ts: 13-category static analysis
  (i18n parity, namespace coverage, key resolution, accessibility,
   email validation, hex colors, emojis, console guards, env docs, types)
- Add explicit i18n check step to CI workflow
2026-05-14 15:42:52 +02:00
denshooter c6e63e8250 Merge branch 'dev' into production
CI / CD / test-build (push) Successful in 10m21s
CI / CD / deploy-dev (push) Has been skipped
CI / CD / deploy-production (push) Successful in 24s
2026-05-14 02:06:15 +02:00
denshooter 462fde15c7 chore: trigger production deploy with correct secrets 2026-05-14 02:06:11 +02:00
denshooter 4a8c86b320 Merge branch 'dev' into production
CI / CD / test-build (push) Successful in 10m19s
CI / CD / deploy-dev (push) Has been skipped
CI / CD / deploy-production (push) Successful in 26s
2026-04-23 23:33:52 +02:00
denshooter e0acf31677 fix: use native img tag for game covers, add fallback icon, improve text contrast
CI / CD / test-build (push) Successful in 11m25s
CI / CD / deploy-dev (push) Successful in 2m53s
CI / CD / deploy-production (push) Has been skipped
2026-04-23 23:33:48 +02:00
denshooter 0ca14230f2 Merge branch 'dev' into production 2026-04-23 23:11:02 +02:00
denshooter 38ae39440e feat: resolve game covers from Steam API when Discord has no image 2026-04-23 23:10:59 +02:00
denshooter 2c88b284c1 Merge branch 'dev' into production 2026-04-23 23:06:31 +02:00
denshooter ff58d1f849 fix: no broken game cover URLs for auto-detected games, improve gaming card contrast 2026-04-23 23:06:27 +02:00
denshooter 890b8c79c7 Merge branch 'dev' into production 2026-04-23 22:40:22 +02:00
denshooter 037e75828f fix: add game cover image URLs and connect bot to proxy network 2026-04-23 22:40:18 +02:00
denshooter 3494b361d6 Merge branch 'dev' into production 2026-04-23 20:20:37 +02:00
denshooter 20bba47cbd fix: add GuildMembers intent and force-fetch target user 2026-04-23 20:20:33 +02:00
denshooter c9153d2660 Merge branch 'dev' into production 2026-04-23 20:18:46 +02:00
denshooter 5116040274 fix: use clientReady event instead of deprecated ready 2026-04-23 20:18:42 +02:00
denshooter 52586ef28a Merge branch 'dev' into production 2026-04-22 11:50:28 +02:00
denshooter 8c4975481d chore: exclude discord-presence-bot from eslint 2026-04-22 11:50:21 +02:00
denshooter a44a90c69d Merge branch 'dev' into production 2026-04-22 11:43:52 +02:00
denshooter 3a9f8f4cc5 feat: replace Lanyard with dk0 Sentinel Discord bot, make music link clickable 2026-04-22 11:43:44 +02:00
denshooter 258143b362 Merge branch 'dev' into production 2026-04-19 15:47:39 +02:00
denshooter 049dda8dc5 feat: improve SEO with locale-specific metadata, structured data, and keywords
- Add locale-specific title/description for DE and EN homepage
- Expand keywords with local SEO terms (Webentwicklung Osnabrück, Informatik, etc.)
- Add WebSite schema and enhance Person schema with knowsAbout, alternateName
- Add hreflang alternates for DE/EN
- Update projects page with locale-specific metadata
- Keep visible titles short, move SEO terms to description/structured data
2026-04-19 15:47:22 +02:00
denshooter edd8dc58ab Merge branch 'dev' into production 2026-04-17 09:50:38 +02:00
denshooter 2c2c1f5d2d fix: SEO canonical URLs, LCP performance, remove unused dependencies
- Remove duplicate app/projects/ route (was causing 5xx and soft 404)
- Fix nginx: redirect www.dk0.dev → dk0.dev (non-www canonical)
- Fix not-found.tsx: locale-prefixed links, remove framer-motion dependency
- Add fetchPriority='high' and will-change to Hero LCP image
- Add preconnect hints for hardcover.app and cms.dk0.dev
- Reduce background blur from 100px to 80px (LCP rendering delay)
- Remove boneyard-js (~20 KiB), replace with custom Skeleton component
- Remove react-icons (~10 KiB), replace with inline SVGs
- Conditionally render mobile menu (saves ~20 DOM nodes)
- Add /books to sitemap
- Optimize image config with explicit deviceSizes/imageSizes
2026-04-17 09:50:31 +02:00
denshooter f17f0031a1 Merge branch 'dev' into production 2026-04-16 14:39:54 +02:00
denshooter dd46bcddc7 fix: i18n for project section strings, unique SVG pattern IDs, remove hardcoded text
- Projects.tsx: use t() for title, subtitle, viewAll, noProjects
- ProjectsPageClient.tsx: use tList('title') instead of hardcoded 'Archive'
- ProjectThumbnail.tsx: useId() for unique SVG pattern IDs to avoid collisions
- Remove unused sizeClasses variable
- en.json: update project subtitle and add noProjects key
- de.json: update German translations for project section
2026-04-16 14:39:17 +02:00
denshooter c442aa447b feat: add ProjectThumbnail component with category-themed visuals for projects without images 2026-04-16 13:46:10 +02:00
denshooter 4d5dc1f8f9 Merge branch 'dev' into production 2026-04-15 15:53:22 +02:00
denshooter 32abc7f3ef fix: update tests for dk0 logo and boneyard-js mock, add jest moduleNameMapper 2026-04-15 14:37:50 +02:00
denshooter 87e337a3a0 feat: improve book reviews, restore detailed privacy policy, fix header logo, add theme toggle, integrate boneyard-js
- Book reviews: add line-clamp for longer review text with expand/collapse per review
- Privacy policy: restore full detailed DSGVO-compliant fallback content
- Header (legal pages): change logo from 'dk' to 'dk0' in circle
- Header (main page): add ThemeToggle for dark/light mode switching
- Skeleton loading: integrate boneyard-js for ReadBooks, CurrentlyReading, Projects
- Add boneyard.config.json and bones/registry.ts placeholder
2026-04-15 14:26:08 +02:00
denshooter 8397e5acf2 Merge dev into production 2026-04-09 18:02:37 +02:00
denshooter 7b5fdbd611 refactor: remove snippets feature and n8n project detection
- Remove snippets page, component, API route, Directus types, and setup script
- Remove snippets section from About.tsx (card, modal, state)
- Remove snippets link from 404 page, simplify layout
- Remove n8n Docker event and callback handler workflows (auto project detection)
- Remove Gitea runner setup and deploy scripts
2026-04-09 18:02:21 +02:00
denshooter 5bcaade558 Merge dev into production 2026-04-09 17:23:29 +02:00
denshooter 8ff17c552b chore: update workflows, messages, and footer 2026-04-09 17:22:56 +02:00
denshooter a958008add fix: remove review truncation and show full reviews; fix telegram-cms workflow bugs
- ReadBooks.tsx: remove line-clamp-3, readMore button, and review modal
- Show full review text inline instead of truncated snippets
- Remove unused AnimatePresence, X import, selectedReview state
- Fix  typo in 6 handler nodes
- Fix Markdown/HTML mix (*text*</b> → <b>text</b>)
- Fix Switch condition syntax (.action → .action)
- Fix position collision (Review Info Handler)
- Hardcode Telegram bot token, fix response handling in Publish Handler
- Add AI-generated questions for .review flow (was .review HC_ID TEXT)
- New .answer command for submitting review answers
- Create/Refine Review: POST new translations if missing instead of skipping
- Remove all substring truncations from Telegram messages
2026-04-09 17:22:23 +02:00
denshooter a36268302c feat: complete telegram cms system with workflows and deployment guide
- Add ULTIMATE-Telegram-CMS-COMPLETE.json with all commands
- Add Docker Event workflows with Gitea integration
- Add comprehensive deployment guide for fresh installs
- Add quick reference and testing checklist
- Include all n8n workflow exports

Commands:
/start, /list, /search, /stats, /preview, /publish, /delete, .review

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-02 12:10:07 +02:00
denshooter 9d3e7ad44a feat: add modal for full book reviews with responsive design
- Add modal popup to view complete book reviews
- Click 'Read full review' opens animated modal
- Responsive design optimized for mobile and desktop
- Liquid design system styling with gradients and blur effects
- Modal includes book cover, rating, and full review text
- Close via X button or backdrop click
- Smooth Framer Motion animations
- Clean up old n8n workflow temporary files

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-02 01:12:22 +02:00
Copilot d297776c9f feat: Snippets "The Lab" — category filters, search, language badges, code preview, modal keyboard nav (#72)
* fix: pass locale explicitly to Hero and force-dynamic on locale-sensitive API routes

- Hero.tsx: pass locale prop directly to getTranslations instead of
  relying on setRequestLocale async storage, which can be lost during
  Next.js RSC streaming
- book-reviews route: replace revalidate=300 with force-dynamic to
  prevent cached English responses being served to German locale requests
- content/page route: add runtime=nodejs and force-dynamic (was missing
  both, violating CLAUDE.md API route conventions)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: scroll to top on locale switch and remove dashes from hero text

- HeaderClient: track locale prop changes with useRef and call
  window.scrollTo on switch to reliably reset scroll position
- messages/en.json + de.json: replace em dash with comma and remove
  hyphens from Self-Hoster/Full-Stack in hero description

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Initial plan

* feat: improve Snippets/The Lab UI with category filters, search, language badges and code preview

Agent-Logs-Url: https://github.com/denshooter/portfolio/sessions/4a562022-cad7-4b4f-8bc4-1be022ecbf1e

Co-authored-by: denshooter <44590296+denshooter@users.noreply.github.com>

---------

Co-authored-by: denshooter <dennis@konkol.net>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: denshooter <44590296+denshooter@users.noreply.github.com>
2026-04-01 14:45:16 +02:00
denshooter aee811309b fix: scroll to top on locale switch and remove dashes from hero text
- HeaderClient: track locale prop changes with useRef and call
  window.scrollTo on switch to reliably reset scroll position
- messages/en.json + de.json: replace em dash with comma and remove
  hyphens from Self-Hoster/Full-Stack in hero description

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-08 14:37:56 +01:00
denshooter 48a29cd872 fix: pass locale explicitly to Hero and force-dynamic on locale-sensitive API routes
- Hero.tsx: pass locale prop directly to getTranslations instead of
  relying on setRequestLocale async storage, which can be lost during
  Next.js RSC streaming
- book-reviews route: replace revalidate=300 with force-dynamic to
  prevent cached English responses being served to German locale requests
- content/page route: add runtime=nodejs and force-dynamic (was missing
  both, violating CLAUDE.md API route conventions)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-08 13:43:26 +01:00
denshooter c95fc3101b chore: merge branch 'dev' into 'production' (Release: Design Overhaul & Admin Redesign) 2026-03-08 13:18:26 +01:00
denshooter 07b155369d feat: redesign admin panel to match Liquid Editorial Bento design system
- Login page: stone/dark palette, liquid ambient blobs, dk0.dev branding,
  gradient accent bar, large rounded card, site-matching button/input styles
- Lockout/loading states: dark mode support, emerald spinner, red gradient bar
- Dashboard navbar: gradient accent bar, monospace branding, pill-style tab buttons
  with dark/light active state, improved mobile menu grid layout
- Stats cards: liquid-* gradient backgrounds per metric (emerald, sky, purple,
  amber, pink, teal) with matching icon colors and rounded-3xl corners
- Section headings: uppercase tracking-tighter font-black with emerald accent dot
- Activity/settings cards: white/dark-stone background, rounded-3xl, dark mode
- Removed framer-motion from manage/page.tsx; replaced admin-glass* CSS classes
  with proper Tailwind throughout

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 00:37:03 +01:00
denshooter dda996f0f8 chore: remove Telegram notification from contact form
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 00:19:52 +01:00
denshooter 63960f7581 feat: dark email design + Telegram notification for contact form
Notification email (to Dennis):
- Complete dark-theme redesign: #0c0c0c bg, #141414 card, gradient top bar
- Sender avatar with liquid-mint/sky gradient + initial letter
- Subject displayed as pill badge
- Message in styled blockquote with mint left border
- Gradient "Direkt antworten" CTA button
- replyTo header already set so email Reply goes directly to sender

Telegram notification:
- sendTelegramNotification() fires after successful email send (fire-and-forget)
- Uses TELEGRAM_BOT_TOKEN + TELEGRAM_CHAT_ID env vars (silently skips if absent)
- HTML-formatted message with emojis, name/email/subject/message preview
- Inline keyboard button "Per E-Mail antworten" with pre-filled mailto link
- Never blocks the contact form response if Telegram fails

Reply email templates (respond/route.tsx):
- Same dark design system as notification email
- baseEmail() generates consistent header + footer
- messageCard() helper for styled message blocks with colored left border
- ctaButton() helper for gradient CTA buttons
- Templates: welcome, project, quick, reply — all updated to dark theme

Required new env vars:
  TELEGRAM_BOT_TOKEN=<from @BotFather>
  TELEGRAM_CHAT_ID=<your chat/user ID>

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 00:17:39 +01:00
denshooter bdf02b2a3a fix: eliminate 2s LCP rendering delay from Directus timeout on Hero
The Hero server component awaited getMessages(locale) which called Directus
with a 2-second timeout. On testing.dk0.dev (or when Directus is unreachable),
this blocked the entire Hero render for ~2s → LCP 3.0s / 2320ms rendering delay.

Changes:
- Hero.tsx: remove getMessages() call entirely; use t() for all strings
- messages/en.json + de.json: add hero.badge, hero.line1, hero.line2 keys
- lib/i18n-loader.ts: invert lookup order — JSON first, Directus only as
  override for keys absent from JSON. Previously Directus was tried first
  for every key, causing ~49 parallel network requests per page load in
  HomePageServer (aboutT + projectsT + contactT + footerT translations).
  Now all JSON-backed keys return instantly without any network I/O.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-06 22:36:03 +01:00
denshooter dacec18956 perf: eliminate next-themes and framer-motion from initial JS bundle
- Replace next-themes (38 KiB) with a tiny custom ThemeProvider (~< 1 KiB)
  using localStorage + classList.toggle for theme management
- Add FOUC-prevention inline script in layout.tsx to apply saved theme
  before React hydrates
- Remove framer-motion from Header.tsx: nav entry now uses CSS slideDown
  keyframe, mobile menu uses CSS opacity/translate transitions
- Remove framer-motion from ThemeToggle.tsx: use Tailwind hover/active scale
- Remove framer-motion from legal-notice and privacy-policy pages
- Update useTheme import in ThemeToggle to use custom ThemeProvider
- Add slideDown keyframe to tailwind.config.ts
- Update tests to mock custom ThemeProvider instead of next-themes

Result: framer-motion moves from "First Load JS shared by all" to lazy
chunks; next-themes chunk eliminated entirely; -38 KiB from initial bundle

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-06 17:39:29 +01:00
denshooter 7f7ed39b0e fix: prevent image/badge cutoff on iPad in Hero section
overflow-hidden on the <section> was clipping the -bottom-6 badge
and the image bottom on iPad viewports where content sits near the
section edge. Move overflow-hidden to the blobs container (absolute
inset-0) so the blobs are still clipped but the image and badge can
render freely. Add pb-10 sm:pb-16 bottom padding so the badge always
has clearance.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-06 15:14:30 +01:00
denshooter 1c49289386 perf: remove TipTap/ProseMirror from client bundle, lazy-load below-fold sections
TipTap (ProseMirror) was causing:
- chunks 1007 (85 KiB) and 3207 (58 KiB) in the initial bundle
- Array.prototype.at/flat/flatMap, Object.fromEntries/hasOwn polyfills
  (ProseMirror bundles core-js for these — the 12 KiB legacy JS flag)
- 2+ seconds of main thread blocking on mobile

Fix: move HTML conversion to the server (API route) and pass the
resulting HTML string to the client, eliminating the need to import
richTextToSafeHtml (and transitively TipTap) in any client component.

Changes:
- app/api/content/page/route.ts: call richTextToSafeHtml server-side,
  add html: string to response alongside existing content
- app/components/RichTextClient.tsx: accept html string, remove all
  TipTap imports — TipTap/ProseMirror now has zero client bundle cost
- app/components/About.tsx, Contact.tsx: use cmsHtml from API
- app/legal-notice/page.tsx, privacy-policy/page.tsx: same
- app/components/ClientWrappers.tsx: change static imports of About,
  Projects, Contact, Footer to next/dynamic so their JS is in
  separate lazy-loaded chunks, not in the initial bundle

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-06 14:57:36 +01:00