Give finished Rules a print path, folded launch counts, and a two-day follow-up.

Export is PDF, RULE.md, and Print on US Letter, with every shared term, no member names, and a takeaway that points at Ask an organizer. Finished Rules keep type and place so the team can read folded counts without a database, Umami can sit beside the app with no cookies, and the person who holds the pen gets working PDF and RULE.md links 48 hours later.
This commit is contained in:
adilallo committed 2026-11-10 18:32:33 -07:00
1 parent 0efc907633
commit d9c475a967
74 files changed
+2401 -630

No files matched your search

+23 -6
View File
@@ -2,6 +2,7 @@ import { Inter, Bricolage_Grotesque } from "next/font/google";
import type { Metadata, Viewport } from "next";
import type { ReactNode } from "react";
import { headers } from "next/headers";
import Script from "next/script";
import messages from "../messages/en/index";
import { ASSETS, getAssetPath } from "../lib/assetUtils";
import {
@@ -9,6 +10,7 @@ import {
originFromHost,
resolveRequestHost,
} from "../lib/siteMetadata";
import { umamiTracker } from "../lib/umami";
import "./globals.css";
// Session chrome (`ConditionalNavigation`) lives in `(marketing)`, `(app)`, and
@@ -124,7 +126,7 @@ export async function generateMetadata(): Promise<Metadata> {
}
export default function RootLayout({ children }: { children: ReactNode }) {
// Load messages for the default locale (single locale setup)
const umami = umamiTracker();
return (
<html lang="en" className="font-sans">
@@ -148,11 +150,26 @@ export default function RootLayout({ children }: { children: ReactNode }) {
type="image/png"
/>
</head>
<body className={`${inter.variable} ${bricolageGrotesque.variable}`}>
<div className="mx-auto flex min-h-screen w-full max-w-[1920px] flex-col">
{children}
</div>
</body>
{umami ? (
<body className={`${inter.variable} ${bricolageGrotesque.variable}`}>
<Script
src={umami.src}
strategy="afterInteractive"
data-website-id={umami.websiteId}
data-do-not-track="true"
data-exclude-search="true"
/>
<div className="mx-auto flex min-h-screen w-full max-w-[1920px] flex-col">
{children}
</div>
</body>
) : (
<body className={`${inter.variable} ${bricolageGrotesque.variable}`}>
<div className="mx-auto flex min-h-screen w-full max-w-[1920px] flex-col">
{children}
</div>
</body>
)}
</html>
);
}