Skip to content

Give the app three root layouts, and unmatched addresses a styled 404 - #898

Merged
richshaw merged 6 commits into
mainfrom
claude/issue-621-root-layouts
Nov 16, 2026
Merged

richshaw merged 6 commits into
mainfrom
claude/issue-621-root-layouts

Conversation

@richshaw

@richshaw richshaw commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Fixes #621.

The stack

Part of the localization work (#619), based on main. The localization stack has landed on main, and main is merged into this branch at cf0b62f. Every <html lang> still says en: #628 makes the participant root layout (src/app/s/[slug]/layout.tsx) use the signup's language, and #938 makes the organizer one use the organizer's.

The problem

src/app/layout.tsx was the only root layout and hard-coded <html lang="en">. A Swedish signup's pages will need lang="sv" (WCAG 3.1.1), but a single layout above every page can't see a signup's slug, and reading the request there would make every page dynamic, including the prerendered help and legal pages.

The fix

  • Three root layouts, in route groups, so no address changes. All say lang="en" for now.
    • src/app/(site)/layout.tsx: /, /help/**, /privacy, /terms, /cookies. The existing (help) and (legal) groups, with their force-static layouts, now sit inside (site).
    • src/app/(organizer)/layout.tsx: /app/**, /login/**, /oauth/**.
    • src/app/s/[slug]/layout.tsx: a signup's pages. It absorbs src/app/s/layout.tsx and its footer.
  • src/app/root-shell.tsx holds what they share: rootMetadata, rootViewport (theme colour), the font variable, globals.css, and RootShell, the <html>/<body> with suppressHydrationWarning. RootShell takes lang as a CatalogLocale, ready for Public signup pages always say lang="en", whatever the signup's language #628.
  • Unmatched addresses: experimental.globalNotFound (inside the next-intl plugin wrapper, which keeps it) with src/app/global-not-found.tsx, prerendered (○ /_not-found). It's the shared StateCard, centred like the participant not-found page, plus the site footer: "Sorry, we can’t find this page", "Check the address for typos. If someone sent you the link, ask them for a new one.", and Go to the home page. The copy is in src/app/not-found-message.ts so the e2e can import it. A signup's own not-found pages are unchanged.
  • Icons, manifest.ts, robots.ts and sitemap.ts stay in src/app/.
  • The share images move to public/ (opengraph-image.png, twitter-image.png and their .alt.txt), at the same two addresses. This departs from Every page is marked lang="en", and with one root layout a page can't declare its own language #621, which says the share images stay in src/app/. That assumed they would still attach to pages as metadata files, and they don't (next section): every page now names them itself. Left in src/app/, they belonged to a segment with no layout and so no metadataBase, and every pnpm build and every server start warned that the share images used http://localhost:3000, which was false and would worry anyone reading a deploy log. scripts/generate-og-image.mjs now writes them to public/ (and apple-icon.png to src/app/ as before); the Dockerfile already copies public/.
  • The home page's share image: / now names SHARE_IMAGES (new in src/lib/seo.ts, also used by pageMetadata), and the / exemption in page-metadata.test.ts is gone. That test now checks the exact images on every indexable page.

Found while building, not in the issue

  • The image files no longer reached any page. Next attaches a src/app/opengraph-image.png to the src/app segment, and each root layout's openGraph (one segment down) replaces it, so /login, /app, edit links, unsubscribe and other pages that set no openGraph would have lost their share image. rootMetadata names the image itself. One visible side effect: those pages' og:image and twitter:image are now /opengraph-image.png without Next's version query (?abc123), as help and legal already were. Served from public/, the two images now carry Cache-Control: public, max-age=0 rather than a year of immutable, so a redrawn image isn't stuck in browser and CDN caches under the unversioned address.
  • The signup page lost its site name in the tab title. Next applies a title template only below the segment that defines it, and /s/[slug]/page.tsx shares its segment with its new root layout, so "Bake Sale · OpenSignup" became "Bake Sale". The page now writes the site name into its own title (title.absolute), with a comment. The new e2e spec checks it.
  • next dev and a page outside the groups. I tried it: dev quietly writes a bare layout.tsx beside the page, with no shell and no lang. CLAUDE.md's Routes section now describes the three layouts and says this.
  • Paths moved, so imports, comments and docs that named them are updated: CLAUDE.md, the design-system READMEs, responses.spec.ts, no-hard-coded-text.test.ts (its filesAt check needs a folder that exists), and the cookies page test's relative path to src/auth/config.ts. Merging main brought Give the other formatters a language #896's connected-apps/grant-date.ts and its test into the old src/app/app/ folder; they now sit in src/app/(organizer)/app/… beside the page that imports them. Merging main at cf0b62f (the localization stack) brought 18 more files that main had added in the old folders; they now sit in (organizer) (11 under app/(chrome)/, 6 under login/, 1 under oauth/consent/[uid]/), byte for byte as on main. The TRANSLATED list in eslint.config.mjs and TRANSLATED_FILES in no-hard-coded-text.test.ts point at the new paths, and the footer's locale="en" moved into src/app/s/[slug]/layout.tsx.

What stayed the same, measured

I built main (4064146) and this branch and compared them. After the merge of main at cf0b62f, the budgets below were measured again, and the tophat found every page it compared (42 addresses, English and Swedish, at two sizes) identical to main apart from the 404s.

  • Build markers: every route's ○/●/ƒ is identical. /help, /privacy, /terms, /cookies and /_not-found stay ○, /help/[slug] stays ●. Since the share images moved, /opengraph-image.png and /twitter-image.png are static files rather than listed routes.
  • pnpm budgets: two budgets lowered, none raised. Against main at cf0b62f, /s/[slug] measures 129.1 kB instead of 129.3 and /s/[slug]/c/[id] 113.4 kB instead of 113.6 (one layout's chunk where there were two), so their budgets come down from 130.5 to 130.3 kB and from 113.7 to 113.5 kB. Every other page is unchanged.
  • Every page's <head>: I fetched 39 addresses from both builds (home, help, legal, sign-in, each organizer tab signed in, OAuth consent, a signup, an edit link, unsubscribe, the not-found cases, icons, manifest, robots, sitemap). The <html> and <body> attributes, every <meta> and <link> (icons, manifest, theme colour, robots, canonical, og/twitter), stylesheets, footers and headings are identical, apart from the image query above. The only other differences are the 404s, which now show the new page. After the move to public/, every og:* and twitter:* tag on /, /login, /help, a help article, /privacy, /no-such-page, /app, a signup page and an edit link is identical to before it, and the image bytes are the same.
  • Moving between root layouts is a full page load, as the issue expects: the participant footer's Help and Privacy, the 404's links and Sign out (a server action on /app that redirects to /) load the whole page with no console errors. Within a layout, such as /help to an article or /app to Settings, navigation stays client-side.
  • next-intl: src/i18n/request.ts is unchanged and nothing calls next-intl's request functions. precompiled-messages.spec.ts passes.
  • Known and unchanged: a notFound() from /s/[slug] still sends the __next_error__ shell before the not-found page renders, as on main; and /help/no-such-article logs Error: Internal: NoFallbackError once in the server log, as main (b8096cd) does.

Tests

  • New tests/e2e/root-layouts.spec.ts:
    • /help, /app (signed in) and a signup page each have lang="en", the right title, and icons and a manifest that answer 200. The signup page also has its footer.
    • /app, /login, an edit link and the 404 (which has its own metadata), none of which sets openGraph, have an og:image ending /opengraph-image.png and a twitter:image ending /twitter-image.png. Without the images in rootMetadata, 6 of the spec's tests fail.
    • /no-such-page, /s, /help/no-such-article and /app/no-such-page each get a 404 with lang="en", the new heading, text, home link and footer, and not Next's page.
    • Sign out from /app lands on / with no console errors, and /app then sends you to /login.
  • tests/e2e/a11y.spec.ts: an axe (WCAG A/AA) check of the 404.
  • On the current head (908e422, with main at cf0b62f merged): pnpm lint, pnpm format:check, pnpm typecheck, pnpm knip, pnpm test (3422 passed), pnpm test:db (857 passed), pnpm build && pnpm budgets (no metadataBase warning), and the full chromium e2e suite against the production build (204 passed, 2 skipped).
  • In the first round I also checked pnpm dev serves every group and the 404.

https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt

A signup's pages will need to say lang="sv" for a Swedish signup, but with
one root layout the only way to know the language would be to read the
request there, which would make every page dynamic, the prerendered help
and legal pages included.

Split the single root layout into three, in route groups so no address
changes: (site) for the home, help and legal pages, (organizer) for /app,
/login and /oauth, and s/[slug] for a signup's pages, which absorbs the old
s/layout.tsx and its footer. All say lang="en" for now. What they share
(metadata, viewport, the font, globals.css and the <html> element) lives in
src/app/root-shell.tsx.

With no layout above them, Next's built-in 404 would render in a bare
document with no lang, so turn on experimental.globalNotFound with
src/app/global-not-found.tsx: a prerendered, styled 404 built on the shared
StateCard, with the site footer.

Next applies a title template only below the segment that defines it, and
the signup page shares its segment with its new root layout, so it now
writes the site name into its own tab title. The root layouts and the home
page name the share image themselves, since the image files in src/app no
longer reach any page on their own.

Fixes #621.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
@richshaw richshaw added pipeline:tophat pipeline:ux Changes what a person using OpenSignup sees or does pipeline:working A session is working on it right now labels Nov 14, 2026 — with Claude
@richshaw
richshaw requested a balanced review from Copilot November 14, 2026 01:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copy link
Copy Markdown
Owner Author

Tophat: passed

I ran a885352 as a production build (pnpm build, next start) next to a production build of main (bf10cdd, this PR's base), against the same Postgres 16 database and the same made-up data. I checked both in Chromium at 1280×900 and 390×844 (deviceScaleFactor 2), and did a quicker desktop pass on pnpm dev. The data was one organizer, a signup in each of the open, draft, closed and archived states, two participants, an edit link and a reminder opt-out link.

Check Result What I saw
Build markers ✅ The route table from pnpm build, with sizes removed, is identical to main's (61 routes). /, /help, /privacy, /terms, /cookies and /_not-found are ○, /help/[slug] is ●, and /s/[slug], c/[id] and unsubscribe are ƒ.
pnpm budgets ✅ Passes with no budget changed. /s/[slug] drops from 125.5 to 125.3 kB and /s/[slug]/c/[id] from 110.0 to 109.8 kB. Every other row, / included, is the same as on main.
Every page renders as before ✅ I loaded 36 addresses on both builds at both sizes: home, help, a help article, privacy, terms, cookies, /login, /login/check, /login/confirm, Your signups, New signup, Build, Responses, the Settings tab, Preview, Account settings, Connected apps, and a public signup that was open (as a visitor and as its organizer), draft (as a visitor and as its organizer), closed, archived and not found. Also an edit link, a bad edit link, the unsubscribe page and an unsubscribe link with no parameters. Each pair of full-page screenshots is identical pixel for pixel, apart from the commit SHA in the footer and the port in the Build tab's link. The font (Inter variable), colours, headers, footers and headings are all the same.
<html lang="en"> ✅ It's on every page in both builds: site, organizer, participant, OAuth consent and the new 404. <html> and <body> attributes are identical.
<head>, as a link-preview bot and as a browser sees it ✅ I fetched the raw HTML with a facebookexternalhit user agent and with a browser user agent. Titles, description, og:*, twitter:*, robots, canonical, theme colour, icons and manifest are identical on every page. There are two exceptions. The first is the share image's URL: it has no ?<hash> query on the pages that used to get Next's file version, as the PR says. The second is the new 404 (see below). Signup tab titles still end with the site name, for example "Snack duty — Spring season · OpenSignup (local)", and draft and archived pages read "Sign up · …". The share image appears on every page that showed it before, /login, /app, edit, unsubscribe, OAuth consent and the not-found pages included. The image files themselves are byte-identical. Only the open and closed signup pages have no og:image, on main too, because they set their own openGraph with a summary card.
Icons, manifest, robots, sitemap ✅ /icon.svg, /apple-icon.png, /manifest.webmanifest, /robots.txt, /sitemap.xml and both share images return 200. The manifest and robots are identical to main's, and the sitemap differs only in its build-time lastmod.
New 404 for unmatched addresses ✅ /nope, /app/nope (signed in and signed out), /s, /s/<slug>/nope/deeper, /help/no-such-article and /e2e/oauth-callback return 404 with lang="en". The tab title is "Page not found · OpenSignup (local)" and the page shows the centred card ("Sorry, we can’t find this page", the typo hint, Go to the home page) and the site footer. On main these showed Next's bare "404 / This page could not be found." The head keeps the site's description, og:*/twitter:* with the share image, icons, manifest and robots: noindex. Go to the home page opens / on both sizes.
Signup not-found pages unchanged ✅ /s/no-such-slug and an edit link with a bad token are pixel-identical to main and still return 404 with the same titles. The __next_error__ shell is still sent, as on main.
Sign-up dialog, edit and cancel ✅ The dialog opens on desktop and as the phone bottom sheet, identical to main. On a participant's edit link, Cancel signup leads to "Your spot was cancelled". There were no console errors.
OAuth consent ✅ An authorize request for the e2e-client static client lands on /oauth/consent/<uid>: "Allow e2e-client to use your OpenSignup (local) account?", lang="en", title "Connect an app · …", share image, icons and manifest. It matches main on both sizes.
Moving between areas ✅ Moves between root layouts are now full page loads, and each one landed on the right page with no console errors: /app header Help → /help, signup footer Help → /help, signup brand mark → /, the organizer strip on a signup → Responses, home Organizer sign in → /login, and the 404's home link → /. Within one layout, navigation is still client-side: /help → an article, /app → Settings, /help → /. The landing Start a signup click still sends its telemetry beacon across the full load: the per-IP telemetry counter moved. Headless Chromium is counted as a bot, so no row is written for it, the same as on main.
Console and hydration ✅ No errors or hydration warnings on any page or flow, in production at both sizes or on pnpm dev. The only console lines are Chromium's "Failed to load resource: 404" for the 404 documents themselves (on main too), and Next's dev-only LCP priority hint on a help article.
e2e (production build, chromium) ✅ root-layouts, a11y (including the new 404 axe check), signup-not-found, precompiled-messages and response-headers: 24 passed. oauth-consent, edit-token, organizer-bar, login-form and draft-link: 15 passed.

For the owner: the only change people will see is the page for an address that doesn't exist. It used to be Next's bare "404 / This page could not be found." Now it's the app's own card, the same style as the signup's "no longer available" page: "Sorry, we can’t find this page", "Check the address for typos. If someone sent you the link, ask them for a new one.", a Go to the home page link and the usual footer, with the tab titled "Page not found · OpenSignup". Everything else looks the same. Two differences don't change how anything looks. Clicking between areas (organizer app ↔ help/home ↔ a signup page) now reloads the whole page instead of swapping it in place. And the share-image URL loses its ?hash cache-buster on pages that had one. The screenshots are 898-404-before-after-desktop, 898-404-desktop, 898-404-phone and 898-signup-not-found-unchanged-phone.

Screenshots are in https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt.


Generated by Claude Code

@richshaw richshaw left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: changes needed (round 1)

The PR splits the single root layout into three ((site), (organizer), s/[slug]) around a shared root-shell.tsx, and gives unmatched addresses a styled 404 through experimental.globalNotFound. The split itself is sound. Everything the old layout held (metadata, viewport, font variable, globals.css, suppressHydrationWarning, body classes) is in the shell once and reaches every page; the participant footer moved into the s/[slug] layout unchanged; no page sits outside the three groups; and no stale path is left in code, configs, docs or skills. Both metadata fixes the builder made are right. Two things need changing: a false warning the move introduces in every build and server log, and a missing test for one of those fixes.

Blocking (2):

  • src/app/root-shell.tsx lines 24–27: the build and every server start now warn that metadataBase is not set and share images use http://localhost:3000. The tags are right, the warning is false, and main doesn't print it. Moving the four share-image files to public/ removes it with no change to any tag (tried).
  • tests/e2e/root-layouts.spec.ts line 43: nothing tests og:image on a page that sets no openGraph (/app, /login, the 404), which is the regression rootMetadata's images fixes.

Optional (4):

  • src/app/(organizer)/app/(chrome)/layout.tsx line 21: Sign out is now a server-action redirect from one root layout to another (/app → /). I ran it against the production build: it lands on the home page with no console errors, and /app then redirects to /login. No e2e covers it; a short one would catch a Next upgrade breaking it.
  • src/lib/seo.ts line 34: without Next's ?hash, a preview service that has cached the image keeps the old one if the picture is ever redrawn. Help and legal were already like this, so it isn't a new kind of problem. If the image changes, rename the file or add a version query in SHARE_IMAGES, the one place that names it.
  • src/app/(organizer)/layout.tsx: the organizer and site groups have no not-found.tsx. Nothing in them calls notFound() today except /help/[slug], which gets the global 404 (the e2e checks it). A later notFound() from an organizer page would show Next's bare text inside the layout, as it would have on main.
  • src/app/s/[slug]/page.tsx line 28: tabTitle is correct, and /s/[slug]/page.tsx and (site)/page.tsx (already title.absolute) are the only two pages that share a segment with a root layout, so no other page loses the template. The e2e pins the signup title.

Earlier threads: none. Copilot answered that it couldn't review (quota).

Checks: CI is green on a885352 (lint-type-test, e2e, CodeQL). Tophat passed on this SHA and nothing has changed since. Locally, against a production build of this branch and one of main: root-layouts and a11y specs (12 passed); the route table (/help, /privacy, /terms, /cookies, /_not-found are ○, /help/[slug] is ●); every page's og:image, canonical, icons and manifest with the server on a port other than the configured origin's; the sign-out flow; and the proposed fix for the warning.

What I checked and found right:

  • Static pages and getEnv(). The shell, the 404 and SiteFooter read only site-config and build info. Nothing reads the request.
  • globalNotFound. It survives the next-intl plugin wrapper (/_not-found is prerendered and serves the new page with lang="en", 404 and noindex). The fallback named in next.config.mjs is the one the issue gives.
  • next-intl. src/i18n/request.ts is unchanged and nothing calls next-intl's server functions.
  • Ready for #628. RootShell takes lang as a CatalogLocale, and the s/[slug] layout is a server component that can take params and read the signup through the same cached loader the page uses.

For the owner (gate: owner, UX): once the two items above are fixed and this passes again, the thing to look at is the new 404 page: the tophat's screenshots 898-404-desktop, 898-404-phone and 898-404-before-after-desktop. Its wording is "Sorry, we can’t find this page", "Check the address for typos. If someone sent you the link, ask them for a new one.", and Go to the home page. The fix for the warning moves the share images to public/, which departs from the issue's "share images stay in src/app/"; their addresses don't change.

https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt


Generated by Claude Code

Comment thread src/app/root-shell.tsx Resolved
Comment thread tests/e2e/root-layouts.spec.ts Resolved
…-layouts

# Conflicts:
#	src/app/(organizer)/app/(chrome)/settings/connected-apps/grant-date.test.ts
#	src/app/(organizer)/app/(chrome)/settings/connected-apps/grant-date.ts
…eir own

The share image files were still metadata files of the src/app segment,
which no longer has a layout, so every build and server start warned that
metadataBase was unset and fell back to localhost, though every page names
the image itself through rootMetadata or pageMetadata. As plain files in
public/ they keep the same two addresses and the warning is gone. The seo
test, the comments and the image generator follow them.

The root-layouts e2e now checks og:image and twitter:image on pages that
set no openGraph of their own (/app, /login, an edit link and the 404),
which fail without the images in rootMetadata, and that Sign out from /app
lands on the home page with no console errors and leaves /app asking to
sign in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt

Copy link
Copy Markdown
Owner Author

Round 1 review addressed (96ff5e9)

Merge conflict. main (#896) added connected-apps/grant-date.ts and its test in the old src/app/app/ folder. I merged main (166f3a2) and kept them where the rename put them, src/app/(organizer)/app/(chrome)/settings/connected-apps/, beside the page that imports them. Nothing else conflicted and no logic was touched.

Blocking, both fixed and resolved:

  • False metadataBase warning: the share images and their .alt.txt now live in public/. The warning is gone from pnpm build and next start, every og:* and twitter:* tag is unchanged on nine pages, and both images answer 200 image/png with the same bytes. The PR body says this departs from Every page is marked lang="en", and with one root layout a page can't declare its own language #621 and why.
  • No test of og:image on pages without their own openGraph: root-layouts.spec.ts now checks it on /app, /login, an edit link and the four 404 addresses. With the images lines taken out of rootMetadata, 6 of its 9 tests fail.

Optional:

  • Sign out e2e: taken. A new test in root-layouts.spec.ts checks it lands on / with no console or page errors, and that /app then sends you to /login.
  • ?hash dropped from og:image: not changing the code. SHARE_IMAGES is still the one place to add a version if the picture is redrawn. Also, served from public/ the images now get Cache-Control: public, max-age=0 where Next gave the unversioned address a year of immutable, so browsers and CDNs revalidate. Link-preview services keep their own caches either way.
  • No not-found.tsx in the organizer and site groups: not changing this. Nothing in them calls notFound() except /help/[slug], which gets the global 404 (the e2e checks it), and a group-level page would be a new design choice beyond Every page is marked lang="en", and with one root layout a page can't declare its own language #621. Worth adding with the first organizer page that calls notFound().
  • tabTitle on the signup page: nothing to do. The review found it right, and the e2e pins the title.

Checks (on 96ff5e9): pnpm lint, pnpm format:check, pnpm typecheck, pnpm knip, pnpm test (2362 passed), pnpm build && pnpm budgets (passed, no warning in the log), and root-layouts.spec.ts with a11y.spec.ts against the production build (14 passed). pnpm test:db not rerun: no service, src/db, MCP, OAuth or job code changed in this round.

Routing: back to pipeline:tophat. Moving the images changes what the server sends for them. Round 2's tophat should check:

  • pnpm build and the next start log show no metadataBase warning.
  • /opengraph-image.png and /twitter-image.png answer 200 image/png and show the share picture.
  • og:image, twitter:image and their width, height, type and alt are unchanged on /, /login, /help, /app (signed in), an edit link and a 404. A link-preview check (any OG debugger pointed at the tophat's URL, if one can reach it) would show the picture.
  • Sign out from /app lands on the home page, desktop and phone.
  • Everything else should be as round 1 saw it. This round changed only the image files' place, comments and tests, and the merge of main moved two files.

https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt


Generated by Claude Code

Copy link
Copy Markdown
Owner Author

Tophat: passed (round 2)

I ran 96ff5e9 as a production build (pnpm build, then next start on :3100 with the origin set to http://localhost:3100). Next to it I ran production builds of main (b8096cd, the base) and of round 1's head (a885352). All three used the same Postgres 16 database and the same made-up data: one organizer, a signup in each of the open, draft, closed and archived states, two participants, an edit link, a reminder opt-out link and one connected app. I checked in Chromium at 1280×900 and 390×844 (deviceScaleFactor 2). I also ran this PR's standalone server the way the Dockerfile does (node server.js, with public/ and .next/static copied in) on :3101, a port other than the configured origin's.

Check Result What I saw
No metadataBase warning ✅ There's none in this PR's pnpm build log, and none in the next start or standalone logs after serving every page below. main has none either. To confirm the fix, round 1's head still prints it once in its build and once at runtime (using "http://localhost:3101"). The only startup warning left is the existing "next start does not work with output: standalone", which main prints too.
Build markers, budgets ✅ The route table, with sizes removed, matches main's except that /opengraph-image.png and /twitter-image.png are now static files rather than routes. / is ƒ on both, /help, /privacy, /terms, /cookies and /_not-found are ○, and /help/[slug] is ●. pnpm budgets passes with no budget raised: /s/[slug] is 125.3 kB and /s/[slug]/c/[id] is 109.8 kB.
Share-image tags ✅ I fetched the raw HTML of 26 addresses, once with a facebookexternalhit user agent and once with a browser's. They were the nine asked for (/, /login, /help, a help article, /privacy, /app signed in, an open signup, an edit link and /no-such-page), plus /login/check, terms, cookies, account settings, connected apps, new signup, Build, draft, closed and archived signups, a bad edit link, unsubscribe, an unknown slug, /s, /help/no-such-article and /app/no-such-page. Every head is byte-identical to round 1's head, tag order included. Each page that shows the share image has og:image http://localhost:3100/opengraph-image.png and twitter:image http://localhost:3100/twitter-image.png, each with width 1200, height 630, type image/png and alt "OpenSignup — sign-up sheets, redone. Ad-free, with no accounts for participants." Compared with main, the set of tags is the same on every page. The differences are the ?hash that round 1 already reported, the order (below), and the 404's title. The open and closed signup pages still use their own summary card with no image, as on main.
Absolute URLs on another port ✅ On the standalone server at :3101, all 26 heads are byte-identical to the heads from :3100. Every image, og:url and canonical URL stays on http://localhost:3100.
The image files ✅ Both answer 200 image/png, 49,293 bytes, with the same md5 as main's, from next start and from the standalone server. The headers are Cache-Control: public, max-age=0, an ETag and a Last-Modified. A request with If-None-Match or If-Modified-Since gets a 304. main, and round 1, sent public, immutable, no-transform, max-age=31536000. /opengraph-image.alt.txt and /twitter-image.alt.txt now answer 200 text/plain; on main they're 404s. robots.txt doesn't block the images.
Connected apps (grant-date.ts moved) ✅ I connected e2e-client through the real consent screen, which is lang="en" with the title "Connect an app · …" and no console errors. Then I exchanged the code and made one MCP list_signups call with the token. The page reads "Approved 14 Nov 2026 · last used 14 Nov 2026 · expires 12 Feb 2027 unless renewed". It's pixel-identical to main at both sizes.
Sign out ✅ On desktop and phone, Sign out on /app does a full page load of /, which shows the home heading with lang="en". The console has no errors or warnings, the session row is gone from the database, and /app then redirects to /login?callbackUrl=%2Fapp. main does the same. On a server running on a port other than the origin's, Sign out goes to the configured origin (http://localhost:3100/), on main too.
Nothing else moved ✅ I took full-page screenshots of 28 addresses at both sizes on this PR and on main: home, help, a help article, privacy, terms, cookies, /login, /login/check, /login/confirm, Your signups, New signup, Build, Responses, the Settings tab, Preview, Account settings, Connected apps, and an open signup (as a visitor and as its organizer). Also a draft signup (visitor and organizer), closed, archived, an unknown slug, an edit link, a bad edit link, unsubscribe, and unsubscribe with no parameters. All 56 pairs are identical pixel for pixel, with the footer's commit masked. Only the four 404 addresses differ, and they show the new page exactly as round 1 saw it. There were no console errors on any page. The server log has only the known NoFallbackError for /help/no-such-article, which main logs too.
e2e (production build, chromium) ✅ root-layouts (its new og:image and sign-out tests included), a11y, signup-not-found, response-headers, precompiled-messages, edit-token and organizer-bar: 34 passed.

Do the new Cache-Control and the served .alt.txt matter? No.

  • public, max-age=0. Link-preview services such as Facebook, X, LinkedIn, Slack, iMessage and Discord fetch the image when a link is first shared. They then keep their own copy under its URL, mostly regardless of the origin's cache headers, so a preview looks the same either way. A browser, or a CDN in front of an instance, now revalidates instead of keeping the image for a year, and revalidating costs a 304 with no body. The ETag and Last-Modified come from the file's modification time, so after each deploy every client downloads the 49 KB once more. That's trivial. In exchange, a redrawn image won't stay stuck in caches under an address that has no version, which is what round 1's immutable header on an unversioned address risked.
  • .alt.txt. It's the same sentence every page already sends as og:image:alt, and only seo.test.ts reads the files, so publishing them reveals nothing and costs nothing. It isn't worth another round. If the owner would rather not have them public, they could sit beside the test.

One more difference from main, not a problem: tag order. On main, pages that got Next's file-based image (/, /login, /app, edit and unsubscribe links, the 404 and the rest without an openGraph of their own) send og:image:type, :width, :height and :alt before og:image. The same goes for twitter:image. With this PR, every page sends the image URL first and its properties after it. The Open Graph protocol puts them in that order, and help and legal pages already used it. Round 1's head sends the same order.

For the owner: this round changes nothing a person sees, beyond the new 404 page round 1 showed. The share images serve the same bytes at the same addresses, and every link preview's tags are unchanged. The deploy log no longer shows the false metadataBase warning. Screenshots: 898-r2-404-desktop, 898-r2-404-phone, 898-r2-connected-apps-desktop, 898-r2-signed-out-home-phone and 898-r2-share-image-served (the image as the server sends it).

Screenshots are in https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt.


Generated by Claude Code

@richshaw richshaw left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: passed (round 2)

Since round 1 the PR has one commit of its own (96ff5e9) and a merge of main. The commit moves the four share-image files from src/app/ to public/, updates the five places that named their old path, and adds e2e checks for the share image on pages with no openGraph of their own and for Sign out. Both round 1 findings are fixed by the code, and the changes are small and correct.

Blocking (0): none.

Optional (3):

  • Dockerfile line 55: the comment on the COPY … /app/public ./public line says only the help screenshots live there. The share images now depend on that line too. The PR rightly leaves the Dockerfile alone; the comment can be widened the next time that file changes.
  • tests/e2e/root-layouts.spec.ts line 34: expectShareImage checks that the tags name the two addresses, not that the addresses answer. seo.test.ts reads both files from public/, so a deleted or misplaced file fails a unit test, and the tophat fetched both. A request.get beside the icon and manifest checks would close the gap.
  • public/opengraph-image.alt.txt, public/twitter-image.alt.txt: now served as pages. They hold the sentence every page already sends as og:image:alt, so nothing is disclosed. They could sit beside seo.test.ts, their only reader, if the owner would rather not serve them.

Earlier threads: all resolved (2 of 2).

  • False metadataBase warning (src/app/root-shell.tsx): the files are in public/ and no opengraph-image or twitter-image file is left under src/app/, so Next has no metadata file without a metadataBase. No route and no other file in the repo claims either address. The tophat's build and server logs show no warning.
  • No test of og:image on pages without openGraph (tests/e2e/root-layouts.spec.ts): expectShareImage runs on /app, /login, an edit link and the four 404 addresses. The 404's metadata spreads rootMetadata, so all six tests depend on its images lines.

What I checked in this round's changes:

  • Cache-Control: public, max-age=0 on the images: agreed, harmless. Link-preview services keep their own copy. Browsers and CDNs revalidate with a 304. It also answers round 1's optional point about a redrawn image staying cached under an address with no version.
  • Dockerfile: line 56 already copies public/ into the runner image and .dockerignore doesn't exclude it. The tophat ran the standalone server that way and both images answered 200.
  • scripts/generate-og-image.mjs: I ran it. It writes the two share images to public/ and apple-icon.png to src/app/, and the working tree was unchanged afterwards, so all three files are byte-identical to the committed ones.
  • Stale paths: none. Every mention of the image files in code, scripts, docs and skills names public/ or the public address.
  • The merge of main: the only conflict was #896's grant-date.ts and its test, now in src/app/(organizer)/app/(chrome)/settings/connected-apps/, with the same content as on main. Every file main has under src/app/ exists on this branch at its new path. src/app/app/, login/ and oauth/ are gone from the old place. grant-date.test.ts runs and passes from the new folder.
  • PR description: it says the move departs from #621's "share images stay in src/app/" and why, and the CHANGELOG entry covers the image addresses.

Checks: CI is green on 96ff5e9 (lint-type-test, e2e, CodeQL). Tophat round 2 passed on this SHA, and no runtime code has changed since (shared check prints 0). Locally: seo.test.ts, page-metadata.test.ts and grant-date.test.ts (24 passed), and the image generator as above.

For the owner (gate: owner, UX): the one thing people will see is the new page for an address that doesn't exist: "Sorry, we can’t find this page", "Check the address for typos. If someone sent you the link, ask them for a new one.", and Go to the home page. The tophat's screenshots are 898-r2-404-desktop and 898-r2-404-phone, with round 1's 898-404-before-after-desktop. Two decisions are worth a look: the share images now live in public/, which #621 said not to do (their addresses and bytes are unchanged), and moving between the organizer app, the site pages and a signup now loads the whole page. After this merges, the pipeline skill's high-risk list should name src/app/(organizer)/login/ where it says src/app/login/.

https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt


Generated by Claude Code

main moved on by 62 commits since this branch was built: the whole
localization stack (#897 to #999) plus #806, #890, #983 and #984.

Files main added in folders this branch moved now sit in the route groups:
eleven under src/app/(organizer)/app/(chrome)/, six under
src/app/(organizer)/login/ and one under src/app/(organizer)/oauth/.
main's footer `locale` on src/app/s/layout.tsx moves into
src/app/s/[slug]/layout.tsx, which absorbed it, and the global 404 passes
one too. CHANGELOG.md keeps both sides' entries, CLAUDE.md the new consent
paths and main's Languages line, and a11y.spec.ts both new tests.

The lint rule lists in eslint.config.mjs, the file list in
no-hard-coded-text.test.ts, two test imports and two comments now name the
new paths. The signup page's metadata test expects the tab title the page
writes itself (`title.absolute`), as it does on this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
A signup's page and its edit link's page now load one layout's chunk where
there were two (src/app/s/layout.tsx folded into s/[slug]/layout.tsx).
Measured on a production build with main merged, against main's own CI
run: /s/[slug] 129.3 to 129.1 kB, /s/[slug]/c/[id] 113.6 to 113.4 kB.
Their budgets come down by the same 0.2 kB, to 130.3 and 113.5, so the
saving stays saved. No other page changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt

Copy link
Copy Markdown
Owner Author

Brought up to date with main (the localization stack)

New head: 908e422. 45697ce merges main at cf0b62f into 96ff5e9. 908e422 then lowers two budgets. This was a plain merge with a plain push: no rebase or force-push.

What came from main

62 commits since this branch's base (b8096cd). That's the whole localization stack (#897 to #999: the signup's and the organizer's language, translated organizer, sign-in and participant screens, coded refusals, the Swedish catalog and its e2e) plus #806, #890, #983 (Next.js 15.5.29) and #984. About 60 files main changed in the folders this PR moves came across through git's rename detection with no conflict. Every moved file is byte-identical to main's copy, apart from this PR's own two changes (the cookies test's relative path and the home page's share image).

Conflicts and how I resolved them

File Kind Resolution
CHANGELOG.md content Kept both. This PR's entry goes first under Changed, then main's new entries.
CLAUDE.md content OAuth "Where things live": kept this PR's (organizer) paths and added main's new Languages bullet under it.
src/app/s/[slug]/page.tsx content main now titles a signup that can't load from the catalog, in the signup's language (signupLocaleForSlug). That title is now wrapped in this PR's tabTitle(): { title: tabTitle(t('title')), robots }. Everything else auto-merged: the og:locale from openGraphLocale, <main lang={locale}> and tabTitle(sig.title).
src/app/s/layout.tsx modify/delete main gave its footer locale="en" (SiteFooter's locale is now required). This PR folded that layout into src/app/s/[slug]/layout.tsx, so <SiteFooter locale="en" /> moves there, with a comment that it stays English like <html lang> until both take the signup's language (#628). src/app/global-not-found.tsx passes locale="en" too.
tests/e2e/a11y.spec.ts content Both sides added a test in the same place. Kept main's Swedish-signup test and its loop over the commit dialog in three languages, and this PR's 404 axe test.
tests/e2e/responses.spec.ts content main's new imports (cancelledPage, getTestTranslator), with removeRefusal imported from the (organizer) path.
18 files main added in folders this PR moved file location Placed in git's suggested route group, below. Each matches main's content byte for byte.

One more fix that git couldn't flag: src/app/s/[slug]/page.test.tsx (new on main) expected the plain metadata title. With this PR the page writes the site name into its own tab title (title.absolute), because it shares a segment with its root layout. Three expectations now use the same tabTitle shape, with a comment.

Files moved into the route groups (added by main in the old folders)

src/app/(organizer)/app/(chrome)/:

  • layout.test.tsx
  • page.test.tsx
  • settings/actions.ts
  • settings/actions.db.test.ts
  • settings/page.test.tsx
  • settings/connected-apps/page.test.tsx
  • settings/connected-apps/refusal-lines.ts
  • signups/[id]/build/page.test.tsx
  • signups/[id]/responses/page.test.tsx
  • signups/[id]/settings/page.test.tsx
  • signups/new/page.test.tsx

src/app/(organizer)/login/:

  • page.test.tsx
  • check/page.test.tsx
  • code-refusal.ts
  • code-refusal.test.ts
  • login-text.ts
  • login-text.test.ts

src/app/(organizer)/oauth/consent/[uid]/:

  • page.test.tsx

git ls-files lists nothing left under src/app/app/, src/app/login/, src/app/oauth/, src/app/(help)/, src/app/(legal)/, src/app/_components/, src/app/page.tsx, src/app/layout.tsx or src/app/s/layout.tsx. Addresses are unchanged: route groups don't change URLs, and the full e2e suite below loads every area.

Config and doc paths fixed

  • eslint.config.mjs: all 11 TRANSLATED entries under src/app/app/(chrome)/, src/app/login and src/app/oauth now point into (organizer). filesAt throws on a path that doesn't exist, so lint passing confirms every entry. CLIENT_SAFE_I18N lists only src/i18n modules, so it needed nothing.
  • src/i18n/no-hard-coded-text.test.ts: 24 entries in TRANSLATED_FILES. The test checks that both no-hard-coded-text rules are on for each listed file.
  • Test imports: src/lib/organizer-reasons.test.ts (3), tests/e2e/organizer-language.spec.ts (grant-date) and tests/e2e/responses.spec.ts.
  • Comments naming src/app/login/code-refusal.ts: src/lib/errors.ts and src/auth/login-code.db.test.ts.
  • CLAUDE.md: the OAuth consent and connected-apps paths, through the conflict above.
  • Checked and unchanged:
    • knip.jsonc names no app paths.
    • src/middleware.ts matches URLs (/app, /s), not files.
    • docs/, .claude/skills/ (help-pages, run-opensignup, translate), scripts/, the e2e helpers, and the Playwright and vitest configs name no moved path.
    • A repo-wide search for every old path string finds none outside CHANGELOG.md history, and none there either.

The stack's language work survived the move: <main lang> on the signup, edit and Preview pages, lang on the organizer app's frame, the footer's locale, and og:locale in the signup page's generateMetadata. Every <html lang> is still en. Making it follow the language is #938 (organizer) and #628 (participant), not this PR.

Budgets

pnpm budgets passes. Against main's own CI run on cf0b62f, only the two participant pages change: one layout chunk where there were two.

  • /s/[slug]: 129.3 → 129.1 kB.
  • /s/[slug]/c/[id]: 113.6 → 113.4 kB.

Every other page measures the same as on main. Following CLAUDE.md, 908e422 lowers both budgets by the 0.2 kB saved: /s/[slug] 130.5 → 130.3, /s/[slug]/c/[id] 113.7 → 113.5. The CHANGELOG entry says so. No budget is raised. The statement budgets (query-budget.db.test.ts) pass unchanged.

Checks (on the merged tree, 908e422)

  • pnpm lint, pnpm format:check, pnpm typecheck, pnpm knip: pass.
  • pnpm test: 239 files, 3422 passed, 1 expected fail.
  • pnpm test:db: 47 files, 857 passed.
  • pnpm build: pass, no metadataBase warning. pnpm budgets: pass, as above.
  • The full chromium e2e suite against the production build (--trace off): 204 passed, 2 skipped, 32 spec files. That includes root-layouts, a11y (404 and Swedish), organizer, organizer-language, organizer-language-story, sign-in-text, oauth-consent, swedish-signup, signup-not-found, precompiled-messages, response-headers, responses and all four help walkthroughs.

Routing: pipeline:tophat (with pipeline:ux kept). pipeline:owner is removed so the new review decides the gate again. This PR's diff has grown by the 18 moved files and the path fixes, so the tophat should look at the organizer screens and sign-in in the route groups, a Swedish signup's pages and footer, and the 404.

Note for the owner: the account pipeline skill's high-risk path list names src/app/login/. With this PR the sign-in code lives in src/app/(organizer)/login/, so that list needs the new path when this merges. The list isn't in this repo, so I couldn't change it here.

https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt


Generated by Claude Code

@richshaw richshaw added pipeline:tophat pipeline:working A session is working on it right now and removed pipeline:owner Passed; waits for the owner (UX or high-risk) labels Nov 16, 2026 — with Claude

Copy link
Copy Markdown
Owner Author

Tophat: passed (round 3, after the localization merge)

I ran 908e422 as a production build (pnpm build, next start on :3300) next to a production build of main at cf0b62f (this PR's base) on :3310. Both builds had the origin set to http://localhost:3300, so links and share-image URLs read the same. Both servers ran with E2E_UNSHIPPED_LOCALES=sv against one Postgres 16 database holding the same made-up data: the e2e seed (an organizer, open, draft, closed, archived and Swedish signups, sign-ups, edit and unsubscribe links) plus English closed, archived and open signups. I used Chromium at 1280×900 and 390×844 (deviceScaleFactor 2). For a real magic-link sign-in I also ran this PR's pnpm dev on :3300.

Check Result What I saw
Every page against main ✅ 42 addresses, each taken at both sizes on both builds: 84 pairs of full-page screenshots, with the footer's commit masked. The addresses were /, /help, a help article, /privacy, /terms, /cookies, /login, /login/check, /login/confirm, Your signups, a signup's overview, Build, Settings tab, Responses, Preview, New signup, account Settings, Connected apps, and OAuth consent through the real authorize request. Then a public signup that was open (as a visitor and as its organizer), draft (as a visitor and as its organizer), closed, archived and not found, plus an edit link, a bad edit link, unsubscribe, and unsubscribe with no parameters. Then the Swedish signup open, closed and archived, with its edit and unsubscribe pages, and the signed-out redirect. Every pair is identical pixel for pixel except the 404s. Status codes, <html lang>, <main lang>, titles, og:locale and headings match too.
Swedish organizer against main ✅ With the seeded organizer's locale set to sv, 13 organizer pages at both sizes are identical pixel for pixel to main: Your signups, Build, Settings tab, Responses, Preview, New signup, account Settings, Connected apps, OAuth consent, and the signup's organizer strip and draft banner. They're in Swedish ("Dina anmälningslistor", "Anslutna appar", "Anslut en app").
New 404 ✅ /no-such-page, /app/no-such-page (signed in, and also for the Swedish organizer), /s, /help/no-such-article and /s/<slug>/nope/deeper return 404 with lang="en". Each shows the centred card ("Sorry, we can’t find this page", the typo hint, Go to the home page) with the site footer, titled "Page not found · OpenSignup (local)". On main these are Next's bare "404 / This page could not be found." The page is English for a Swedish organizer too. That's expected: it's prerendered, and main's was English as well.
<html lang>, og:image, og:locale in the raw HTML ✅ <html lang="en"> on site, organizer, sign-in, participant, Swedish-signup and 404 pages, as on main. The Swedish signup still has og:locale="sv_SE" and <main lang="sv"> from the stack. Every page that had a share image still has one. The only change is the one already reported: /opengraph-image.png without main's ?1edf4028… query on /, /login, /app, the organizer tabs, edit, unsubscribe, draft, archived and not-found pages. Open and closed signups still have no image, with their own summary card, as on main. /opengraph-image.png answers 200 image/png, 49,293 bytes.
Footer on a signup's pages ✅ The <SiteFooter locale="en"> now in s/[slug]/layout.tsx renders the same as main's on English and Swedish signup, edit and unsubscribe pages.
Swedish story e2e ✅ organizer-language-story.spec.ts passed with E2E_UNSHIPPED_LOCALES=sv.
Sign in and sign out (pnpm dev, both sizes) ✅ Signed out, /app/settings/connected-apps?from=tophat redirects to /login?callbackUrl=%2Fapp%2Fsettings%2Fconnected-apps%3Ffrom%3Dtophat. I sent a magic link and opened it in a second tab, then pressed Sign in on /login/confirm. The second tab landed on the callback page, and the first tab moved on to it by itself. Sign out on /app then did a full load of / with lang="en". After that, /app/signups/new redirects to /login?callbackUrl=%2Fapp%2Fsignups%2Fnew. There were no console errors.
Build, budgets, logs ✅ The route table, sizes removed, matches main except that the two share images are static files. pnpm budgets passes: /s/[slug] 129.1 / 130.3 kB, /s/[slug]/c/[id] 113.4 / 113.5 kB. No metadataBase warning in the build or server log. The server log has only the known NoFallbackError for /help/no-such-article (main too) and the OAuth warnings the consent tests cause on purpose.
e2e (production build, chromium) ✅ 97 passed and 2 skipped. The specs were root-layouts (404, og:image, sign-out), a11y, organizer-language-story, organizer-language, swedish-signup, sign-in-text, login-form, login-code, signup-not-found, oauth-consent, precompiled-messages and response-headers. The two skips are the Magic Compose tests, because no LLM is configured. In a later rerun, the two "connect an AI assistant" tests failed with too_many_requests, because my screenshot runs had used up the local per-IP authorize limit. They passed once I cleared that limit from my test database.

For the owner: nothing changes for people beyond the 404 page earlier rounds showed. After the merge of the localization stack, every page I compared, English and Swedish, signed in and out, is pixel-identical to main at both sizes. Screenshots: 898-404-main-vs-pr-desktop and 898-404-main-vs-pr-phone (main on the left), 898-404-app-phone, 898-sv-organizer-app-desktop, 898-sv-signup-desktop, and the sign-in and sign-out steps (898-<size>-signed-out-redirect, -link-sent, -signed-in-callback, -signed-out-home).

Screenshots are in https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt.


Generated by Claude Code

@richshaw richshaw added pipeline:review pipeline:working A session is working on it right now and removed pipeline:tophat pipeline:working A session is working on it right now labels Nov 16, 2026 — with Claude

@richshaw richshaw left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: passed (round 3)

Since round 2 the PR has a merge of main at cf0b62f (45697ce, the whole localization stack) and one commit of its own (908e422, two budgets lowered). I reviewed the merge as if it were new code: where every file landed, whether anything from the stack was lost, and whether the lint and test path lists still cover what they covered on main. It is a clean merge. Against main, the PR is still what rounds 1 and 2 passed: three root layouts around root-shell.tsx, the global 404, and the share images in public/.

Blocking (0): none.

Optional (3):

  • The PR description is out of date. It says the PR "stands beside the localization stack, based on main", "pnpm budgets: no budget changes" with the old 125.5 → 125.3 and 110.0 → 109.8 figures, and the test counts from rounds 1 and 2. The stack is now merged in, two budgets are lowered (130.5 → 130.3, 113.7 → 113.5) and the numbers are 129.1 and 113.4 kB. The "Brought up to date" comment has it right. The description becomes the squash commit's message, so the merge step should rewrite those lines.
  • src/app/(organizer)/layout.tsx line 8 and src/app/s/[slug]/layout.tsx line 9: the comments say "English until organizers have a language of their own (#619)" and "until signups have a language of their own". With the stack merged, both already have one; what still waits is <html lang> and the footer (#938, #628). Those PRs rewrite these lines, so it isn't worth a round.
  • src/app/global-not-found.tsx: the 404's text is English from not-found-message.ts, and the file isn't in TRANSLATED. That's right while every <html lang> is en and the page is prerendered. A Swedish organizer sees it in English, as they saw Next's page on main.

Earlier threads: all resolved (2 of 2). Copilot answered in round 1 that it couldn't review (quota).

What I checked in the merge:

  • Every file landed in the right group, unchanged. git diff cf0b62f 908e422 -M has 93 renames: 91 at 100%, and the two this PR edits on purpose ((site)/page.tsx for the share image, the cookies test's relative path). All 88 files main has under src/app/app, login, oauth, (help), (legal) and _components are renamed, each to the same path under (organizer) or (site). Nothing is left in the old folders, and nothing under src/app/ sits outside a root layout except the files that belong there (icons, fonts, globals.css, manifest, robots, sitemap, the shell, the 404 and two tests).
  • No stack change was lost. Because the moved files are byte-identical to main's, lang on <main> and the organizer frame, the catalog calls and the refusal helpers are intact. s/[slug]/page.tsx differs from main only by tabTitle() on its two titles; og:locale from openGraphLocale, <main lang={locale}> and signupLocaleForSlug are there. main's root layout was still lang="en" with the same metadata, viewport, font and body classes that root-shell.tsx holds.
  • s/layout.tsx (modify/delete). main's only change to it was <SiteFooter locale="en" />, now in s/[slug]/layout.tsx with the same wrapper. That layout is above every participant page: the signup, c/[id], unsubscribe and both not-found.tsx files, so each still gets the footer. /s alone has no page and gets the global 404, which has its own footer. The tophat found all of them pixel-identical to main, English and Swedish.
  • The lint covers exactly what it did on main. I asked ESLint for its config for every .ts and .tsx file under src/ on cf0b62f and on this head. The same 151 files have react/jsx-no-literals and opensignup/no-literal-text-props on in both, plus the new s/[slug]/layout.tsx. I also added a hard-coded string and aria-label to four moved files (login/page.tsx, the consent form, Your signups, the Responses page): lint failed on both rules in all four, then I restored them.
  • Other path lists. TRANSLATED_FILES in no-hard-coded-text.test.ts has the 24 new paths and passes. CLIENT_SAFE_I18N and knip.jsonc name no app paths. The middleware matcher is URLs (/app, /s), which route groups don't change. No old path string is left in src/, tests/, docs/, scripts/, .claude/, .github/ or the configs. CLAUDE.md's Routes, OAuth and trust-docs paths are updated and main's Languages bullet is kept.
  • Budgets are measured. My build gives /s/[slug] 129.1 kB and /s/[slug]/c/[id] 113.4 kB, 0.2 kB under main's 129.3 and 113.6, and the budgets come down by the same 0.2. Nothing is raised.
  • The usual. The CHANGELOG entry is under Unreleased → Changed and names the 404, the full page loads, the image addresses and the budgets. No personal data, secrets or model names in the diff or commit messages. The branch was merged into, not rebased.

Checks: CI is green on 908e422 (lint-type-test, e2e, CodeQL). Tophat round 3 passed on this SHA, and nothing has changed since. Locally on 908e422: pnpm lint, pnpm format:check, pnpm typecheck, pnpm knip, pnpm test (239 files, 3422 passed, 1 expected fail), pnpm test:db on a fresh migrated database (47 files, 857 passed), pnpm build (no metadataBase warning; /_not-found, /help, /privacy, /terms, /cookies are ○, /help/[slug] is ●) and pnpm budgets (pass).

For the owner (gate: owner): it's UX, for the new 404 page, and it moves the sign-in pages and the OAuth consent screen (src/app/login, src/app/oauth) into (organizer), byte for byte. No owner-approval marker is on the PR for this head, so I've left it at pipeline:owner and not moved it to merge. What to look at: the tophat's 898-404-main-vs-pr-desktop and 898-404-main-vs-pr-phone. After it merges, the pipeline skill's high-risk list should say src/app/(organizer)/login/ where it says src/app/login/.

https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt


Generated by Claude Code

@richshaw richshaw added pipeline:owner Passed; waits for the owner (UX or high-risk) pipeline:working A session is working on it right now and removed pipeline:review pipeline:working A session is working on it right now labels Nov 16, 2026 — with Claude

Copy link
Copy Markdown
Owner Author

Approved by the owner at 908e422.

The owner approved merging this with the localization stack in the orchestrating session on 15 November 2026.

https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt


Generated by Claude Code

@richshaw richshaw added pipeline:merge and removed pipeline:owner Passed; waits for the owner (UX or high-risk) labels Nov 16, 2026 — with Claude
@richshaw
richshaw merged commit 5fad4c9 into main Nov 16, 2026
5 checks passed
@richshaw
richshaw deleted the claude/issue-621-root-layouts branch November 16, 2026 07:45
@richshaw richshaw removed pipeline:merge pipeline:ux Changes what a person using OpenSignup sees or does pipeline:working A session is working on it right now labels Nov 16, 2026 — with Claude
richshaw pushed a commit that referenced this pull request Nov 16, 2026
CHANGELOG.md conflicted where both sides added a line at the top of
Changed. Kept both: this PR's line first, then #898's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Every page is marked lang="en", and with one root layout a page can't declare its own language

3 participants