Commit Graph

319 Commits

Author SHA1 Message Date
denshooter
098e7ab6f4 fix: Update Gitea workflows to use ubuntu-latest runner
Some checks failed
Dev Deployment (Zero Downtime) / deploy-dev (push) Failing after 8m34s
2026-01-15 15:28:09 +01:00
denshooter
24608045fb feat: pushing to both remotes 2026-01-15 15:23:35 +01:00
denshooter
38a98a9ea2 feat: Add Hardcover currently reading integration with i18n support
- Add CurrentlyReading component with beautiful design
- Integrate into About section
- Add German and English translations
- Add n8n API route for Hardcover integration
- Add comprehensive documentation for n8n setup
2026-01-15 14:58:34 +01:00
Cursor Agent
b90a3d589c seo: always serve sitemap.xml even if DB unavailable
Co-authored-by: dennis <dennis@konkol.net>
2026-01-15 10:12:38 +00:00
Cursor Agent
d60f875793 seo: improve metadata base and sitemap resilience
Co-authored-by: dennis <dennis@konkol.net>
2026-01-15 10:11:02 +00:00
Cursor Agent
5b67c457d7 docs: remove duplicated setup guides
Co-authored-by: dennis <dennis@konkol.net>
2026-01-15 10:09:06 +00:00
Cursor Agent
6c60415b8c docs: add consolidated operations guide
Co-authored-by: dennis <dennis@konkol.net>
2026-01-15 10:08:27 +00:00
Cursor Agent
6d5617cd08 fix(ui): reduce framer-motion flicker by narrowing CSS transitions
Co-authored-by: dennis <dennis@konkol.net>
2026-01-15 10:06:23 +00:00
Cursor Agent
a617f6eb92 feat(i18n): centralize more UI texts in messages
Move hardcoded labels/strings in About, Projects, Contact form, Footer and Consent banner into next-intl message files (en/de) so content is maintained in one place.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-15 10:03:32 +00:00
Cursor Agent
faf41a511b fix: remove invalid iframe allowTransparency prop
Co-authored-by: dennis <dennis@konkol.net>
2026-01-15 09:50:40 +00:00
Cursor Agent
63fc45488a test(e2e): click first visible interactive element
Avoid failing on mobile-only hidden buttons in desktop viewport.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 22:00:39 +00:00
Cursor Agent
721bdfaf53 test(e2e): avoid networkidle in hydration checks
The app performs background polling/analytics, so networkidle can hang. Use domcontentloaded + short waits to reliably catch hydration errors.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 21:59:23 +00:00
Cursor Agent
a56ec97ef9 fix(consent): prevent hydration mismatch + banner flash
Do not decide consent during SSR. Read consent cookie after mount and only render the banner once consent is loaded, avoiding both hydration errors and the brief banner flash on reload.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 21:55:35 +00:00
Cursor Agent
b1a314b8a8 Merge dev_test into dev
Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 21:53:24 +00:00
Cursor Agent
08d24735af Merge branch 'cursor/aktivit-ts-feed-neulade-anzeige-00e6' into dev_test
Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 21:52:32 +00:00
Cursor Agent
fbce838d3f fix(consent): avoid banner flashing on reload
Initialize consent state from cookie synchronously so the banner only shows when no choice was made.

fix(api): fail-soft when DB schema missing

Return null/empty content for CMS endpoints when migrations are not applied instead of crashing with Prisma P2021/P2022.

fix(n8n): parse status response defensively

Handle empty/invalid JSON bodies from n8n to prevent activity feed from getting stuck.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 21:47:31 +00:00
Cursor Agent
73ed89c15a test(e2e): verify activity feed stays visible after reload
Adds a browser-level regression test ensuring the feed renders with the dark container and remains visible after a full reload.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 16:32:35 +00:00
Cursor Agent
2cd4600063 fix(i18n): load messages by route locale
Import locale JSON messages directly in the [locale] layout to ensure DE pages render DE strings instead of falling back to EN.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 16:31:27 +00:00
Cursor Agent
f2b3f1edfd fix(i18n): render locale switch as links
Use locale-prefixed <Link> elements for EN/DE so language switching works even when client-side hydration is broken.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 16:29:55 +00:00
Cursor Agent
411806d5ce fix(i18n): use hard navigation for language switch
Switch locales via window.location.assign to guarantee the URL and messages update even if client-side router navigation is blocked.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 16:27:20 +00:00
Cursor Agent
b219cc51a0 test(e2e): wait for locale navigation to complete
Locale switch can take longer in dev; wait explicitly for /de URL after click.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 16:25:48 +00:00
Cursor Agent
dce6b6f567 test(e2e): click locale switcher by aria-label
Use the actual accessible name of the DE button to ensure Playwright clicks the correct element.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 16:24:00 +00:00
Cursor Agent
c150cd82d9 fix(i18n): make locale switch always navigate
Stop setting NEXT_LOCALE cookie client-side and refresh after navigation, avoiding swallowed cookie errors that can prevent router.push from switching languages.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 16:21:18 +00:00
Cursor Agent
355c9a13fa test(e2e): force NODE_ENV=development for webServer
Prevents middleware Edge runtime from failing on eval-based dev bundles when NODE_ENV is set to a non-standard value in the environment.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 16:14:18 +00:00
Cursor Agent
9364b44196 fix(i18n): render consent banner inside NextIntl provider
Move ConsentBanner rendering into the locale layout so next-intl context is always available (prevents missing provider errors).

fix(activity-feed): use dark styling for disabled state

Avoid white disabled cards so the feed never appears as a white/transparent block after reload.

test(e2e): assert nav text changes on locale switch

Strengthen i18n test to verify translated labels.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 16:09:22 +00:00
Cursor Agent
9082bd256a fix(i18n): update consent banner on locale switch
Use next-intl translations instead of reading NEXT_LOCALE cookie once, so banner text updates immediately when switching languages.

fix(activity-feed): make loading UI match dark theme

Avoid the white loading card on hard reload by using the same dark styling as the normal feed.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 16:00:05 +00:00
Cursor Agent
e115a23485 fix(activity-feed): prevent framer-motion initial-state stuck on reload
Disable initial animations for the feed's fallback UIs so a hard reload can't leave the component stuck small/transparent before any state updates.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 11:11:23 +00:00
Cursor Agent
a19293eda4 fix(activity-feed): avoid hydration mismatch from localStorage
Read tracking preference after mount instead of during initial render to prevent SSR/client divergence that can leave the feed stuck in its initial (small/transparent) styles after page reload.

Co-authored-by: dennis <dennis@konkol.net>
2026-01-14 11:03:59 +00:00
Cursor Agent
1d2c8cee09 Fix: eliminate reload-only hydration mismatches on home
Make HomePage a server component and mount ActivityFeed via a client-only wrapper to avoid Suspense/dynamic boundary differences between SSR and hydration.
2026-01-14 10:45:34 +00:00
Cursor Agent
4f344ff1de Fix: stabilize ActivityFeed UI on reload
Avoid shared dev rate-limit bucket for n8n status and fall back to a stable offline state when the status call fails, preventing the widget from getting stuck in the small translucent loading UI.
2026-01-14 02:47:01 +00:00
Cursor Agent
80077ea1af Merge cursor/umfassende-plattform-berarbeitung-d0f0 into dev_test
Resolve email API TLS/env var merge conflicts and bring latest platform changes into dev_test.
2026-01-14 02:11:17 +00:00
Cursor Agent
abfb710c4b Fix: guard Umami tracking and web vitals performance APIs
Avoid calling undefined umami.track, add safe checks for Performance APIs, and clean up load listeners to prevent .call() crashes in Chrome.
2026-01-14 02:09:22 +00:00
denshooter
c8db7ea78c refactor: rename project from my_portfolio to portfolio 2026-01-14 02:47:57 +01:00
denshooter
7adcda61c9 Merge branches 'dev_test' and 'dev_test' of https://github.com/denshooter/my_portfolio into dev_test 2026-01-14 02:03:01 +01:00
Cursor Agent
ba99889782 Refactor activity feed disabled UI; use plain img for hero image fix
Co-authored-by: dennis <dennis@konkol.net>
2026-01-12 16:47:14 +00:00
Cursor Agent
e2616ae0f7 Fix next-intl locale, remove wave animations, and unoptimize hero image
Co-authored-by: dennis <dennis@konkol.net>
2026-01-12 16:18:03 +00:00
Cursor Agent
6f1ad8eb4d Refine CMS i18n fallback, refresh UI, add consent minimize, seed i18n content
Co-authored-by: dennis <dennis@konkol.net>
2026-01-12 16:10:22 +00:00
Cursor Agent
683735cc63 Add i18n to home sections, improve consent management and middleware asset handling
Co-authored-by: dennis <dennis@konkol.net>
2026-01-12 15:57:28 +00:00
Cursor Agent
6a4055500b Exclude static assets (paths with dots) from middleware matcher.
Co-authored-by: dennis <dennis@konkol.net>
2026-01-12 15:47:53 +00:00
Cursor Agent
d7dcb17769 Automate dev DB setup with migrations and relax API rate limits in development
Co-authored-by: dennis <dennis@konkol.net>
2026-01-12 15:37:22 +00:00
Cursor Agent
423a2af938 Integrate Prisma for content; enhance SEO, i18n, and deployment workflows
Co-authored-by: dennis <dennis@konkol.net>
2026-01-12 15:27:35 +00:00
Cursor Agent
f1cc398248 Refactor Docker entrypoint to run Prisma migrations; update schema
Co-authored-by: dennis <dennis@konkol.net>
2026-01-12 15:08:23 +00:00
Cursor Agent
80f57184c7 Disable aggressive static asset caching in development to fix HMR.
Co-authored-by: dennis <dennis@konkol.net>
2026-01-12 14:51:56 +00:00
Cursor Agent
9839d1ba7c Checkpoint before follow-up message
Co-authored-by: dennis <dennis@konkol.net>
2026-01-12 14:49:44 +00:00
Cursor Agent
12245eec8e Refactor for i18n, CMS integration, and project slugs; enhance admin & analytics
Co-authored-by: dennis <dennis@konkol.net>
2026-01-12 14:36:10 +00:00
denshooter
0349c686fa feat(auth): implement session token creation and verification for enhanced security
feat(api): require session authentication for admin routes and improve error handling

fix(api): streamline project image generation by fetching data directly from the database

fix(api): optimize project import/export functionality with session validation and improved error handling

fix(api): enhance analytics dashboard and email manager with session token for admin requests

fix(components): improve loading states and dynamic imports for better user experience

chore(security): update Content Security Policy to avoid unsafe-eval in production

chore(deps): update package.json scripts for consistent environment handling in linting and testing
2026-01-12 00:27:03 +01:00
denshooter
9072faae43 refactor: enhance security and performance in configuration and API routes
- Update Content Security Policy (CSP) in next.config.ts to avoid `unsafe-eval` in production, improving security against XSS attacks.
- Refactor API routes to enforce admin authentication and session validation, ensuring secure access to sensitive endpoints.
- Optimize analytics data retrieval by using database aggregation instead of loading all records into memory, improving performance and reducing memory usage.
- Implement session token creation and verification for better session management and security across the application.
- Enhance error handling and input validation in various API routes to ensure robustness and prevent potential issues.
2026-01-11 22:44:26 +01:00
denshooter
9cc03bc475 Prevent white screen: wrap ActivityFeed in error boundary and improve ClientProviders error handling
All checks were successful
Dev Deployment (Zero Downtime) / deploy-dev (push) Successful in 13m10s
Production Deployment (Zero Downtime) / deploy-production (push) Successful in 11m4s
2026-01-10 17:08:16 +01:00
denshooter
832b468ea7 Fix white screen: add error boundaries and improve error handling in AnalyticsProvider and useWebVitals 2026-01-10 17:07:00 +01:00
denshooter
2a260abe0a Fix ActivityFeed fetch TypeError: add proper error handling and type safety 2026-01-10 17:03:07 +01:00