From 3d784f795a8b816caed764d9da8931c83f972311 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/app/layout.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/app/layout.tsx b/frontend/app/layout.tsx index 5a25d02..56de94c 100644 --- a/frontend/app/layout.tsx +++ b/frontend/app/layout.tsx @@ -1,4 +1,5 @@ import type { Metadata, Viewport } from 'next'; +import Script from 'next/script'; import { AppProvider } from '@/components/providers/AppProvider'; import { ConceptNotice } from '@/components/ui/ConceptNotice'; import { tenant } from '@/lib/tenant'; @@ -63,6 +64,15 @@ export default function RootLayout({ {children} + + {/* FleetCrown feedback widget — env-gated, see docs/architecture/feedback-widget.md */} + {process.env.NEXT_PUBLIC_FC_WIDGET_TOKEN && ( +