From 09c3653e588b42ff258774b65b02ab67bbd572cb 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/src/app/layout.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/src/app/layout.tsx b/app/src/app/layout.tsx index 08771f7..a73304a 100644 --- a/app/src/app/layout.tsx +++ b/app/src/app/layout.tsx @@ -1,4 +1,5 @@ import type { Metadata } from "next" +import Script from "next/script" import { Geist, Geist_Mono } from "next/font/google" import { Toaster } from "sonner" import { AuthProvider } from "@/components/providers/AuthProvider" @@ -56,6 +57,15 @@ export default function RootLayout({ + + {/* FleetCrown feedback widget — env-gated, see docs/architecture/feedback-widget.md */} + {process.env.NEXT_PUBLIC_FC_WIDGET_TOKEN && ( +