Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 40 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions suite/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Metadata } from "next";
import { Lato, Marcellus } from "next/font/google";
import { PageCounts } from "@/components/shell/PageCounts";
import { ReportUnhandled } from "@/components/shell/ReportUnhandled";
import { Speed } from "@/components/shell/Speed";
import { onVercel, siteUrl } from "@/lib/env";
import "./globals.css";
// Before any tool's own stylesheet: each of those maps its vocabulary onto the
Expand Down Expand Up @@ -62,6 +63,7 @@ export default function RootLayout({
{/* Cookieless page counts on the hosted instance. Vercel serves the
endpoint, so a copy hosted anywhere else sends nothing. */}
{onVercel() ? <PageCounts /> : null}
{onVercel() ? <Speed /> : null}
</body>
</html>
);
Expand Down
9 changes: 9 additions & 0 deletions suite/components/shell/Speed.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"use client";

import { SpeedInsights } from "@vercel/speed-insights/next";
import { countedUrl } from "@/lib/pageCounts";

/** Hosted performance telemetry, with each address cut to its route first. */
export function Speed() {
return <SpeedInsights beforeSend={(event) => ({ ...event, url: countedUrl(event.url) })} />;
}
2 changes: 2 additions & 0 deletions suite/lib/legal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ test("the visit counting the policy describes is the one the site runs", () => {
const layout = readFileSync(join(process.cwd(), "app", "layout.tsx"), "utf8");
const text = policyText(PRIVACY).toLowerCase();
const counts = layout.includes("<PageCounts");
const speed = layout.includes("<Speed");
expect(text.includes("vercel web analytics")).toBe(counts);
expect(text.includes("vercel speed insights")).toBe(speed);
expect(text).not.toContain("no analytics");
expect(text).not.toContain("the only third party");
});
Expand Down
5 changes: 3 additions & 2 deletions suite/lib/legal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export const RETENTION_MONTHS = 24;

export const PRIVACY: Policy = {
title: "Privacy",
updated: "2026-09-29",
digest: "7694e81f01ae6858",
updated: "2026-10-02",
digest: "6ba65e2bbbcef751",
intro:
"Trousseau is a wedding planning tool that keeps your wedding in your own browser. This page says exactly what is stored, where, for how long, and what I can and cannot see.",
sections: [
Expand Down Expand Up @@ -106,6 +106,7 @@ export const PRIVACY: Policy = {
paragraphs: [
"No advertising, no tracking pixels, and nothing that follows you from one website to another.",
"On the hosted site — this one, not a copy somebody runs elsewhere — visits to each page are counted with Vercel Web Analytics, the host's own counter. For each page it records the page's address, the site the visit came from, the country, and the kind of browser, system and device. Before an address is sent, anything in it that is not simply the page is cut out: the token in a guest link, a supplier's link or an invitation, the id of a wedding, and everything after a ? or a #. Nothing from your wedding is in it — no guest, no name, no table.",
"The hosted site also sends the page's address to Vercel Speed Insights, to measure how quickly pages load. That address is cut the same way first.",
"It sets no cookie and stores nothing on your device. It tells one visit from another by a code worked out from the request, which changes every day, so a visit cannot be linked to one on another day or on another website. It is done on the basis of legitimate interest: knowing which parts of the site are used.",
"One cookie exists, and only if you sign in: it holds your session, which is what keeps you signed in between visits. It is not used to track you and there is nothing to opt into, because without an account no cookie is set at all.",
"The browser storage that is used — IndexedDB — holds your wedding, which is the thing you came here to work on. Nothing about you is stored for any other purpose.",
Expand Down
1 change: 1 addition & 0 deletions suite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@supabase/ssr": "^0.12.7",
"@supabase/supabase-js": "^2.45.0",
"@vercel/analytics": "^2.0.1",
"@vercel/speed-insights": "^2.0.0",
"clsx": "^2.1.1",
"fontkit": "^2.0.4",
"framer-motion": "^13.4.0",
Expand Down
Loading