Repository navigation
Description
What happens
NEXT_PUBLIC_INSTANCE_NAME is documented as "the name of your site" (README, .env.example), and most pages show it through INSTANCE_NAME from src/lib/site-config.ts: the site header, the root layout's title and link preview, the home page, /s/[slug], the consent page, help, legal and the web manifest. A few pages type the literal "OpenSignup" instead:
- Organizer breadcrumb:
src/app/app/(chrome)/layout.tsx, the root link of the breadcrumb on every organizer page. The same file already importsINSTANCE_NAMEfor its tab-title template, so a self-hosted site called "Acme Signups" shows "Acme Signups" in the tab and "OpenSignup" in the breadcrumb. - No-workspace card:
src/app/app/(chrome)/page.tsx, "Welcome to OpenSignup". - Sign-in pages:
src/app/login/page.tsxandsrc/app/login/confirm/page.tsx, both with the heading "Sign in to OpenSignup". - Signup layout metadata fallback:
src/app/app/(chrome)/signups/[id]/layout.tsx,generateMetadatareturns{ title: 'OpenSignup' }when there's no session. Nobody sees it, becauserequireOrganizerSessionredirects first. If it did show, the parent template would make it "OpenSignup · ".
On opensignup.org nothing looks different, because the site name there is "OpenSignup". Every self-hosted instance with its own name shows someone else's brand on every organizer page and on sign-in.
Fix, in outline
- Render
{INSTANCE_NAME}in the breadcrumb, the welcome heading and both sign-in headings. All four are server components, andsite-configreads onlyNEXT_PUBLIC_*values, so importing it is safe on static pages. - Change the metadata fallback to a neutral title such as
'Signup', aspreview/page.tsxalready does with'Preview', so the brand isn't typed twice.
Watch for
- Leave the legal pages' "OpenSignup" alone. Phrases like "{INSTANCE_NAME} is a deployment of the OpenSignup project" name the upstream project on purpose.
- Emails are out of scope. The sign-in email's header (
src/email/templates/layout.tsx), its body and preview (magic-link.tsx), its subject (src/auth/config.ts), and the OAuthresourceName(src/oauth/resource-metadata.ts) also type "OpenSignup". Nothing undersrc/email,src/auth,src/jobsorsrc/oauthimportssite-configyet, and the worker process would then needNEXT_PUBLIC_INSTANCE_NAMEset too. Leave those for a separate change and don't touch them here. - Help pages. If a help article quotes "Sign in to OpenSignup", update the article, its
.ui.tslist and its walkthrough (see thehelp-pagesskill). Underpnpm devthe name reads "OpenSignup (dev)", so any e2e or help walkthrough that matches the heading text exactly needs to match the instance name instead. - Overlap. The sign-in redirect URL is built by hand in five places #816 (the sign-in redirect URL) and Epic: OpenSignup in Swedish, and other languages after it #619 (translations) touch the same login files. Whichever lands second has a small merge.
Done when
- None of the five places above types "OpenSignup":
grep -rn "OpenSignup" src/app/app src/app/login, excluding tests and comments, finds nothing. - A unit test renders the organizer layout (or the dashboard's no-workspace card) with
@/lib/site-configmocked to another name and checks that name appears and "OpenSignup" doesn't. pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm testpass, andpnpm buildsucceeds.
Found by the pipeline's refactor scout in the organizer pages (src/app/app) and sign-in (src/app/login), at 001a284. Checked by an independent verify agent: it grepped every rendered "OpenSignup" in src, and a scratch vitest rendering the real OrganizerLayout and DashboardPage with INSTANCE_NAME mocked to "Acme Signups" still showed "OpenSignup". https://claude.ai/code/session_016YZ9STKE7qmnEctzqxYG4q
Activity