From ead6c8f7169b2d4b037d2ecaab7d13215f8fa992 Mon Sep 17 00:00:00 2001 From: adilallo <39313955+adilallo@users.noreply.github.com> Date: Fri, 20 Nov 2026 13:21:44 -0700 Subject: [PATCH] Hold the press kit at /press in its embargoed form until the February launch. --- .../_components/LegalDocumentPage.tsx | 2 +- app/(marketing)/press/page.tsx | 30 ++++++++ lib/legalSyntheticPost.ts | 3 +- lib/publicSitemap.ts | 1 + messages/en/index.ts | 2 + messages/en/marketing.ts | 2 + messages/en/metadata.json | 5 ++ messages/en/pages/press.json | 67 ++++++++++++++++++ tests/pages/press.test.tsx | 70 +++++++++++++++++++ tests/unit/legalSyntheticPost.test.ts | 1 + tests/unit/publicSitemap.test.ts | 1 + 11 files changed, 182 insertions(+), 2 deletions(-) create mode 100644 app/(marketing)/press/page.tsx create mode 100644 messages/en/pages/press.json create mode 100644 tests/pages/press.test.tsx diff --git a/app/(marketing)/_components/LegalDocumentPage.tsx b/app/(marketing)/_components/LegalDocumentPage.tsx index ff42028..1fef0cc 100644 --- a/app/(marketing)/_components/LegalDocumentPage.tsx +++ b/app/(marketing)/_components/LegalDocumentPage.tsx @@ -91,7 +91,7 @@ export function legalPageMetadata( } /** - * Public Content page Template documents (`/privacy`, `/terms`, `/cookies`, `/kit`). + * Public Content page Template documents (`/privacy`, `/terms`, `/cookies`, `/kit`, `/press`). * * Figma: "Content page Template" (19003:23305) — ContentBanner guide * (22078:806964) + article column (19003:23574). Body stacks follow diff --git a/app/(marketing)/press/page.tsx b/app/(marketing)/press/page.tsx new file mode 100644 index 0000000..b8b9fd3 --- /dev/null +++ b/app/(marketing)/press/page.tsx @@ -0,0 +1,30 @@ +/** + * Figma: "Press / Breakpoint=1024+, State=Embargoed" (24810:39764) + * https://www.figma.com/design/agv0VBLiBlcnSAaiAORgPR/Community-Rule-System?node-id=24810-39764 + * + * Holds the press kit on the Content page Template until the embargo lifts. + * Live Figma (24810:39765) adds the release, screenshots and Boulder count. + */ +import type { Metadata } from "next"; +import messages from "../../../messages/en/index"; +import { legalPathForSlug } from "../../../lib/legalSyntheticPost"; +import { routeMetadata } from "../../../lib/siteMetadata"; +import LegalDocumentPage, { + legalPageMetadata, +} from "../_components/LegalDocumentPage"; + +const SLUG = "press" as const; +const PATH = legalPathForSlug(SLUG); + +export function generateMetadata(): Metadata { + return routeMetadata( + PATH, + legalPageMetadata(messages.metadata.press, messages.pages.press), + ); +} + +export default function PressPage() { + return ( + + ); +} diff --git a/lib/legalSyntheticPost.ts b/lib/legalSyntheticPost.ts index b5a8b3e..8985975 100644 --- a/lib/legalSyntheticPost.ts +++ b/lib/legalSyntheticPost.ts @@ -1,6 +1,6 @@ import type { BlogPost } from "./content"; -export type LegalDocumentSlug = "privacy" | "terms" | "cookies" | "kit"; +export type LegalDocumentSlug = "privacy" | "terms" | "cookies" | "kit" | "press"; export type LegalDocumentSection = { heading: string; @@ -24,6 +24,7 @@ const PATH_BY_SLUG: Record = { terms: "/terms", cookies: "/cookies", kit: "/kit", + press: "/press", }; export function legalPathForSlug(slug: LegalDocumentSlug): string { diff --git a/lib/publicSitemap.ts b/lib/publicSitemap.ts index ef8bd38..ee1aa61 100644 --- a/lib/publicSitemap.ts +++ b/lib/publicSitemap.ts @@ -12,6 +12,7 @@ const STATIC_PUBLIC_PATHS = [ "/blog", "/how-it-works", "/kit", + "/press", "/privacy", "/terms", "/cookies", diff --git a/messages/en/index.ts b/messages/en/index.ts index 765ddcd..65dda66 100644 --- a/messages/en/index.ts +++ b/messages/en/index.ts @@ -28,6 +28,7 @@ import useCasesCompletedRules from "./pages/useCasesCompletedRules.json"; import useCasesCompletedRule from "./pages/useCasesCompletedRule.json"; import howItWorks from "./pages/howItWorks.json"; import kit from "./pages/kit.json"; +import press from "./pages/press.json"; import privacy from "./pages/privacy.json"; import terms from "./pages/terms.json"; import cookies from "./pages/cookies.json"; @@ -114,6 +115,7 @@ export default { useCasesCompletedRule, howItWorks, kit, + press, privacy, terms, cookies, diff --git a/messages/en/marketing.ts b/messages/en/marketing.ts index 29f9dbc..31e55fc 100644 --- a/messages/en/marketing.ts +++ b/messages/en/marketing.ts @@ -40,6 +40,7 @@ import useCasesCompletedRules from "./pages/useCasesCompletedRules.json"; import useCasesCompletedRule from "./pages/useCasesCompletedRule.json"; import howItWorks from "./pages/howItWorks.json"; import kit from "./pages/kit.json"; +import press from "./pages/press.json"; import privacy from "./pages/privacy.json"; import terms from "./pages/terms.json"; import cookies from "./pages/cookies.json"; @@ -86,6 +87,7 @@ const marketingMessages = { useCasesCompletedRule, howItWorks, kit, + press, privacy, terms, cookies, diff --git a/messages/en/metadata.json b/messages/en/metadata.json index 773a6ea..68b3a5b 100644 --- a/messages/en/metadata.json +++ b/messages/en/metadata.json @@ -152,6 +152,11 @@ "description": "Everything your community needs to write its Rule together over five short meetings you already hold. Free for volunteer-run groups.", "keywords": ["kit", "facilitator guide", "office hours", "communityrule"] }, + "press": { + "title": "Press", + "description": "Press materials for CommunityRule, licensed CC BY-SA 4.0. Contact, embargo dates, and the story behind the tool.", + "keywords": ["press", "press kit", "communityrule", "media"] + }, "howItWorks": { "title": "When your community sits down to write its Rule", "description": "Sketch your Rule in CommunityRule, then make it your community's own over five short meetings.", diff --git a/messages/en/pages/press.json b/messages/en/pages/press.json new file mode 100644 index 0000000..f0742ca --- /dev/null +++ b/messages/en/pages/press.json @@ -0,0 +1,67 @@ +{ + "_comment": "Press page at /press. Figma Press / Embargoed (24810:39764). The release and Boulder count join this page when the embargo lifts at 6am Mountain time on 18 February 2027. Downloadable kit files are named without links until those files exist.", + "banner": { + "title": "Press", + "description": "Everything on this page is licensed CC BY-SA 4.0. Use it.", + "author": "Media Economies Design Lab", + "date": "2027-02-05" + }, + "updated": "Last updated February 5, 2027. Embargoed until 6am Mountain time on Thursday, February 18, 2027.", + "intro": [ + "The release and the Boulder count join this page when the embargo lifts. Until then they go only to journalists who have agreed to the embargo.", + "CU Boulder's news office sends the release to journalists under embargo on Tuesday, February 16. It goes public here at 6am Mountain time on Thursday, February 18, with the Boulder count of Rules written by kind of group." + ], + "sections": [ + { + "heading": "Contact", + "paragraphs": [ + "One contact for press is Nathan Schneider at [medlab@colorado.edu](mailto:medlab@colorado.edu).", + "Writing about CommunityRule? We can put you in touch with a pilot group. [Email the press contact](mailto:medlab@colorado.edu)." + ] + }, + { + "heading": "The story", + "paragraphs": [ + "We asked organizers from co-ops, mutual aid groups and open source projects around the world how their groups really work. The ones that lasted had settled four things early: how they decide, who belongs, how they talk, and what happens when they disagree. CommunityRule turns that finding into a Rule a group writes together, from one of 13 tested templates, with signals that show when a value is slipping. It is free and open source, built at the Media Economies Design Lab at CU Boulder. Volunteer-run groups can run a Rule-writing session for free. Larger organizations bring a facilitator, which keeps it free for everyone else." + ] + }, + { + "heading": "Dates", + "paragraphs": [ + "Launch: Thursday, February 18, 2027.", + "Boulder launch party: Saturday, February 20, 2027. Snow date Saturday, February 27.", + "Seminar: an online seminar with Metagov from January 11 to February 14, with a live capstone on February 17." + ] + }, + { + "heading": "Where does the finding come from?", + "paragraphs": [ + "From a UX research and service design study run inside the Media Economies Design Lab at the University of Colorado Boulder. We asked organizers from co-ops, mutual aid groups and open source projects how their groups really work. The groups that lasted had settled four things early. How they decide, who belongs, how they talk and what happens when they disagree." + ] + }, + { + "heading": "Who makes CommunityRule and what does it cost?", + "paragraphs": [ + "CommunityRule is made at the Media Economies Design Lab at the University of Colorado Boulder. It is free and open source. Volunteer-run groups run their own session with the kit. Larger organizations bring a facilitator, and that is what keeps the kit free." + ] + }, + { + "heading": "Who can see a group's Rule?", + "paragraphs": [ + "Only the people you share it with. Rules are private by default. A Rule is public and featured only when a community asks us in writing." + ] + }, + { + "heading": "Does CommunityRule use AI?", + "paragraphs": [ + "No. When you choose community details such as size or organization type, we use those answers to reorder templates and methods. Ranking is a matching table we maintain. It is not an AI or machine-learning model, it does not train on your drafts, and we do not send your data to an AI service." + ] + }, + { + "heading": "Who can we interview?", + "paragraphs": [ + "Write to [medlab@colorado.edu](mailto:medlab@colorado.edu). We can put you in touch with a pilot group." + ] + } + ] +} diff --git a/tests/pages/press.test.tsx b/tests/pages/press.test.tsx new file mode 100644 index 0000000..60ccc39 --- /dev/null +++ b/tests/pages/press.test.tsx @@ -0,0 +1,70 @@ +import { describe, expect, test, vi } from "vitest"; +import { screen } from "@testing-library/react"; +import { renderWithProviders as render } from "../utils/test-utils"; +import LegalDocumentPage from "../../app/(marketing)/_components/LegalDocumentPage"; +import { legalPathForSlug } from "../../lib/legalSyntheticPost"; +import messages from "../../messages/en/index"; + +vi.mock("../../lib/requestSiteOrigin", () => ({ + getRequestSiteOrigin: async () => "https://communityrule.info", +})); + +vi.mock("../../app/components/sections/ContentBanner", () => ({ + default: ({ post, variant, updatedLabel }) => ( +
+

{post.frontmatter.title}

+

{post.frontmatter.description}

+ {updatedLabel ? ( +
+ {post.frontmatter.author} + {updatedLabel} +
+ ) : null} +
+ ), +})); + +async function renderPressPage() { + const page = messages.pages.press; + const ui = await LegalDocumentPage({ + slug: "press", + path: legalPathForSlug("press"), + page, + }); + return render(ui); +} + +describe("press page", () => { + test("holds embargoed press materials, a contact, and the story", async () => { + await renderPressPage(); + const page = messages.pages.press; + + expect(screen.getByTestId("content-banner")).toHaveAttribute( + "data-variant", + "guide", + ); + expect( + screen.getByRole("heading", { level: 1, name: page.banner.title }), + ).toBeInTheDocument(); + expect(screen.getByText(page.banner.description)).toBeInTheDocument(); + expect( + screen.getByText(/when the embargo lifts/), + ).toBeInTheDocument(); + expect( + screen.getByRole("heading", { level: 2, name: "Contact" }), + ).toBeInTheDocument(); + expect( + screen.getByRole("heading", { level: 2, name: "The story" }), + ).toBeInTheDocument(); + expect( + screen.getByRole("heading", { level: 2, name: "Does CommunityRule use AI?" }), + ).toBeInTheDocument(); + expect( + screen.getAllByRole("link", { name: "medlab@colorado.edu" })[0], + ).toHaveAttribute("href", "mailto:medlab@colorado.edu"); + expect( + screen.getByRole("link", { name: "Email the press contact" }), + ).toHaveAttribute("href", "mailto:medlab@colorado.edu"); + expect(screen.getByText(/CC BY-SA 4.0/)).toBeInTheDocument(); + }); +}); diff --git a/tests/unit/legalSyntheticPost.test.ts b/tests/unit/legalSyntheticPost.test.ts index 87a0036..3f7787f 100644 --- a/tests/unit/legalSyntheticPost.test.ts +++ b/tests/unit/legalSyntheticPost.test.ts @@ -10,6 +10,7 @@ describe("legalSyntheticPost", () => { expect(legalPathForSlug("terms")).toBe("/terms"); expect(legalPathForSlug("cookies")).toBe("/cookies"); expect(legalPathForSlug("kit")).toBe("/kit"); + expect(legalPathForSlug("press")).toBe("/press"); }); it("builds a guide-shaped post from page messages", () => { diff --git a/tests/unit/publicSitemap.test.ts b/tests/unit/publicSitemap.test.ts index 21b254b..6e1da48 100644 --- a/tests/unit/publicSitemap.test.ts +++ b/tests/unit/publicSitemap.test.ts @@ -17,6 +17,7 @@ describe("buildPublicSitemap", () => { expect(urls).not.toContain(sitemapUrl("/use-cases")); expect(urls).toContain(sitemapUrl("/how-it-works")); expect(urls).toContain(sitemapUrl("/kit")); + expect(urls).toContain(sitemapUrl("/press")); expect(urls).toContain(sitemapUrl("/privacy")); expect(urls).toContain(sitemapUrl("/terms")); expect(urls).toContain(sitemapUrl("/cookies"));