From db324085daa746d4d4fb75f88c00bb263968233e 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 | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/layout.tsx b/app/layout.tsx index 06dd23a..29daeee 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,4 +1,5 @@ import type { Metadata } from "next"; +import Script from "next/script"; import localFont from "next/font/local"; import { COMPANY, SITE_URL } from "@/lib/config/company"; import { SessionProvider } from "@/components/portal/SessionProvider"; @@ -118,7 +119,18 @@ export default async function RootLayout({ dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }} /> - {children} + + {children} + + {/* FleetCrown feedback widget — env-gated, see docs/architecture/feedback-widget.md */} + {process.env.NEXT_PUBLIC_FC_WIDGET_TOKEN && ( +