From 3f9c5adb3ff075f57a9fd9d40de9a176026a965c Mon Sep 17 00:00:00 2001 From: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Date: Fri, 28 Aug 2026 18:54:07 +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 --- frontend/src/app/layout.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/src/app/layout.tsx b/frontend/src/app/layout.tsx index d8d81c3e..c3a01d51 100644 --- a/frontend/src/app/layout.tsx +++ b/frontend/src/app/layout.tsx @@ -1,4 +1,5 @@ import type { Metadata } from "next"; +import Script from "next/script"; // Bundled fonts from the `geist` package — next/font/google fetched these at // build time, which fails on the self-host build machine without Google access. import { GeistSans } from "geist/font/sans"; @@ -55,6 +56,15 @@ export default function RootLayout({ + + {/* FleetCrown feedback widget — env-gated, see docs/architecture/feedback-widget.md */} + {process.env.NEXT_PUBLIC_FC_WIDGET_TOKEN && ( +