From 9364b44196d62ff04fed132c3ce6b0154229a206 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 14 Jan 2026 16:09:22 +0000 Subject: [PATCH] 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 --- app/[locale]/layout.tsx | 2 ++ app/components/ActivityFeed.tsx | 20 ++++++++++---------- app/components/ClientProviders.tsx | 2 -- e2e/i18n.spec.ts | 6 ++++++ playwright.config.ts | 3 ++- 5 files changed, 20 insertions(+), 13 deletions(-) diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index 24b1905..d6330b6 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -1,6 +1,7 @@ import { NextIntlClientProvider } from "next-intl"; import { getMessages, setRequestLocale } from "next-intl/server"; import React from "react"; +import ConsentBanner from "../components/ConsentBanner"; export default async function LocaleLayout({ children, @@ -17,6 +18,7 @@ export default async function LocaleLayout({ return ( {children} + ); } diff --git a/app/components/ActivityFeed.tsx b/app/components/ActivityFeed.tsx index bc9ea79..103cbc7 100644 --- a/app/components/ActivityFeed.tsx +++ b/app/components/ActivityFeed.tsx @@ -1490,20 +1490,20 @@ export default function ActivityFeed() {
- +
-

Live Activity

-

Tracking disabled

+

Live Activity

+

Tracking disabled