From efb457872316e06c7afc684e316c991872918d1a Mon Sep 17 00:00:00 2001 From: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Date: Fri, 28 Aug 2026 18:54:06 +0200 Subject: [PATCH] feat(feedback): wire up the FleetCrown feedback widget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Env-gated (NEXT_PUBLIC_FC_WIDGET_TOKEN) script tag added to the root layout, matching the pattern every new site gets from scripts/site-template. This site predates the template and never got it. The widget is how the owner reports what they want changed without emailing anyone — see bitbaum/fleetcrown docs/architecture/feedback-widget.md. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Y9rKLxddothnXEtY6KDziN --- app/layout.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/layout.tsx b/app/layout.tsx index cda1657..f736534 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,4 +1,5 @@ import type { Metadata } from "next"; +import Script from "next/script"; import { SessionProvider } from "next-auth/react"; import { APP, APP_URL } from "@/lib/config/app"; import { fontVariables } from "@/lib/fonts"; @@ -37,6 +38,15 @@ export default function RootLayout({ {children} + + {/* FleetCrown feedback widget — env-gated, see docs/architecture/feedback-widget.md */} + {process.env.NEXT_PUBLIC_FC_WIDGET_TOKEN && ( +