Skip to content

Move the Build tab's text into the catalog - #962

Merged
richshaw merged 200 commits into
mainfrom
claude/issue-944-build-tab-text
Nov 16, 2026
Merged

richshaw merged 200 commits into
mainfrom
claude/issue-944-build-tab-text

Conversation

@richshaw

@richshaw richshaw commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Fixes #944.

Merge after #960.

The stack

Phase 2 of the localization stack (#619), track A. Based on #960 (claude/issue-943-settings-tab-text); review against that branch.

The problem

The Build tab is all client code, and every word in it was English written into its components: the rail, the sheet, group headings, slot rows and their editor, the list picker, the Fields dialog and its field form, and the rail's refusal lines. Some was glued from pieces ("slot — " plus a value, "Edit " plus that, "1 person is" / "N people are", " · max"). So it couldn't follow the organizer's language.

The fix

81 messages under organizer.build, English byte for byte as it read.

  • One ClientMessages at the tab's root (build/page.tsx), in the organizer's language (getOrganizerAppLocale, Show organizer text in the organizer's own language #954). It gets BUILD_TAB_NAMESPACES (src/components/build-wysiwyg/client-namespaces.ts): organizer.build, plus two shared sections the tab shows word for word:

    The issue says "only organizer.build". I read that as "not the whole organizer namespace": copying "Saved" and the ten code lines into organizer.build would make two messages that every translation must keep equal. Say if you'd rather have the copies.

  • Every component reads its words with useTranslations: BuildWysiwyg, EditingRail, EnumPicker, FieldsPopover, InlineFieldForm, SlotEditor, WysiwygGroup, WysiwygSlot, SaveStatus. Editable and PickerOption hold no words of their own.

  • The helpers take a translator: slotActionLabels, slotRowLabel, takenText (slotRow.ts), prettyHeader and emptyHeaderCopy, and saveErrorMessage. The last takes { build, errors } and no longer imports SAVE_ERROR_MESSAGE.

  • Glued English is one message each:

    • a slot's name is a select on its kind inside each of its five messages ("Edit {kind, select, time {slot at {name}} named {slot — {name}} other {slot}}");
    • the signed-up note is one message, with a plural for the count and a select for whether reminders are on;
    • the list's length count is one message, with " · max" as a select;
    • the reminder lead is the participant email's =24 {the day before} plural, fed REMINDER_LEAD_HOURS.
    • Counts use ::group-off, so 1234 prints as before.
  • The field types' names and the value boxes' placeholders moved from FIELD_TYPE_META and FIELD_VALUE_INPUTS into the catalog. Those tables keep only icons and input attributes.

  • TimeSelect takes its "No time" as a prop (noTimeLabel). Magic Compose's questions use it too and have no messages yet (The New signup page and the Magic Compose start screen are English-only #946, Magic Compose's questions and warnings are English-only #947), so they pass the English.

  • The Fields dialog says lang (useLocale()): it renders in a portal at the end of <body>, outside the organizer app's lang mark.

  • slot_has_signups is no longer worded by the Build tab (from Word organizer refusals by code and reason, never the server's English #959's code review). It refuses deleting a slot people hold unless the caller forces it, and the tab's Delete always forces (DELETE /api/slots/[id]), so only the AI connector's delete_slot meets it. The rail's case for it and its catalog message are gone; it would get its code's line, like any reason the tab doesn't word. organizer-reasons.test.ts lists it as a reason only API callers get (API_ONLY_REASONS) and checks that. The API keeps the reason.

  • What the signup holds stays the signup's: its group order and the names a new field gets (props, New signups get English column names ("What", "Date") whatever their language #634), and its values.

  • TRANSLATED gains the page's folder, build-wysiwyg and build-shared. no-hard-coded-text.test.ts lists their files.

  • Docs: docs/translating.md (namespace table, where the Build tab's sections are listed), the CHANGELOG's The organizer app ignores the organizer's language #937 line, and save-errors.ts's comment.

Where the issue was out of date:

What people see

Nothing changes in English. The existing e2e and help walkthrough specs pass with no expected text edited. One unit test's fixture changed: SaveStatus.test.tsx showed "words a refusal by its reason" with slot_has_signups, which the tab no longer words, so it now uses slot_ids_mismatch and that line's English.

Budget: /app/signups/[id]/build raised from 149 to 151.1 kB

Measured on this machine with pnpm build && pnpm budgets, gzipped first-load JavaScript as scripts/check-budgets.mjs counts it, #960's head (5edc588) against this branch:

Page #960 This PR Change Budget
/app/signups/[id]/build 148,077 B 151,058 B +2,981 B 149 → 151.1 kB
/app/signups/new 117,491 B 117,451 B −40 B 118 (unchanged)
/s/[slug], /s/[slug]/c/[id], /, Preview +35 to +36 B unchanged
every other page −3 B unchanged
  • Why: next-intl's client runtime (provider, useTranslations, the precompiled formatter), now on this page for the first time. The tab's English left its JavaScript for the messages, which offsets part of it.
  • The new budget is the measured size rounded up to the next 0.1 kB (42 B of room), as the issue asks: "Set the budget to the real figure, no higher."
  • The other pages: the build has one more chunk (83 → 84), 4.9 kB gzipped, which holds the Build tab's copy of the runtime; the participant pages keep theirs. The pages that already load the runtime (/s/[slug], the edit page, /, Preview) grew 35 to 36 B each, which I didn't trace further; each stays well within its budget. New signup is 40 B smaller because "No time" left TimeSelect, and every other page is 3 B smaller (the webpack runtime's hashes).
  • The messages travel in the page (pnpm budgets counts JavaScript only): the three sections are about 5.9 kB of escaped, precompiled JSON in the Build tab's RSC payload. The page's HTML is 46.6 kB (10.0 kB gzipped).

Tests

  • build-tab-text.test.tsx (new). It renders the tab with a field of each type, grouped by date, a slot with signups, an empty slot and a blank one, then opens a slot's editor, its list's menu and a new item long enough to count, the Fields dialog, a new field, the reminder field and the date field it blocks, and the group-by menu.
    • With stand-in messages: every word on the page (text, aria-label, placeholder, title) is a catalog message in that language, or the signup's own content. 46 named messages are each met at least once. Putting back a hard-coded "Editing" fails it.
    • The Fields dialog has lang set to the organizer's language.
    • In each catalog language: no message the tab reads is missing from what its page passes (no key path, no console.error).
  • Build page test: the page gives ClientMessages exactly messagesFor(locale, BUILD_TAB_NAMESPACES) in the organizer's language. An organizer and a signup in different languages each keep their own.
  • Helpers: slotRow, prettyHeader and save-error-message read each line from the catalog in the translator's language (stand-in Swedish). A code the catalog doesn't know gets the internal line. 1234 of 2000 prints without a separator.
  • SaveStatus: Saving… and Saved in English; each state from the catalog in a stand-in language.
  • Existing tests: renders are wrapped in the tab's English messages (englishMessages(BUILD_TAB_NAMESPACES)), and the helpers' calls pass a translator (useBuildState, organizer-reasons, save-error-message, prettyHeader, slotRow, PublishButton). getStandInTranslator now answers has. Expected text changed only for slot_has_signups: its two "N people have signed up" rows in save-error-message.test.ts and its case in organizer-reasons.test.ts are gone, and SaveStatus.test.tsx uses another reason (above).
  • tests/e2e/build-tab-language.spec.ts:
    • the Swedish signup's checks also say the tab's own words are in English (lang) for an organizer who stores none;
    • new: for each catalog language but English, an organizer who stores it opens the Build tab of their signup, which is in English. It hydrates with no mismatch, the rail, a slot row and the Fields dialog say that language's words (English where its catalog has none yet), the dialog and the rail are marked with it, and the signup's "Cookies" stays as written.

Run in this session, all passing:

  • On 637d4e6:
    • pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test: 3139 passed, 1 expected fail.
    • e2e, chromium, production build, the container config, port 3000: 93 passed. That's every spec that opens the Build tab or names its controls (build-tab-language, organizer, enum-picker, reminder-field, time-format, organizer-language, tabs-focus-ring, draft-link, organizer-bar, public-link-chip), slot-row-layout, new-signup-form (it uses TimeSelect), precompiled-messages, and every help walkthrough (tests/e2e/help). The first run passed 92 and failed the new e2e test on a wrong field count (a new signup starts with two columns); fixed, and its spec rerun: 6 passed.
  • On bab513a (the slot_has_signups change):
    • pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test: 3137 passed, 1 expected fail. used-keys.test.ts's TypeScript check timed out once at 5.6 s against its 5 s limit while other agents loaded the machine, and passed alone (10 of 10), as it did in the first run.
    • pnpm build && pnpm budgets: pass, with the numbers above.
    • e2e on that build: build-tab-language, organizer, reminder-field, enum-picker and the "Create and publish" walkthrough, 46 passed.
  • pnpm test:db not run: no service, action, src/db, src/mcp or src/oauth file changed.

Overlaps

For the owner

Owner-gated for the budget raise.

  1. The budget raise above: 149 → 151.1 kB, from next-intl's runtime, inside the 3.5 kB you allowed.

  2. Dates and times on the Build tab stay English in every language. The issue assumed they followed the signup's language. Making them do so means formatting them in the browser in that language, and New signups get English column names ("What", "Date") whatever their language #634 chose not to, to avoid hydration mismatches between Node's and the browser's ICU. A follow-up issue could format them in the signup's language and test hydration per browser. Say if you want one. Signup content in the organizer app isn't marked with the signup's language #951 now formats them in the signup's language, and must land before the launch (revised 15 November 2026).

  3. Three Build tab lines are worded for developers. They're catalog messages now, English byte for byte as today. Word organizer refusals by code and reason, never the server's English #959's code review suggested new wording. You decide; each is one catalog edit:

    Message Today Suggested
    refusal.capacityBelowTaken, a slot's spots set below those taken capacity (1) is less than active quantity (2) 2 spots are already taken. Set this slot to 2 or more.
    refusal.invalidatesSlotValues, a field change its slots' values don't fit change would invalidate existing slot values Some slots have values that don’t fit this change. Change those first.
    refusal.dateTooEarly, a date before 1900 (prints the field's ref in quotes) "date" must be a date in 1900 or later Dates must be in 1900 or later.

    An e2e spec (organizer.spec.ts, the Build tab's 1900 floor) pins today's third line, so rewording it changes that spec too.

🤖 Generated with Claude Code

https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt

claude and others added 30 commits November 13, 2026 22:31
Part of #620: the core. next-intl and use-intl 4.14.9, pinned together
(icu-minify too, through an override), with next.config.mjs wrapped in
next-intl's plugin. src/messages/en.json is the English catalog, and
next-intl's AppConfig is typed from it, through the declaration the
plugin writes, so a missing key or a wrong argument fails typecheck.

src/i18n holds the pure locale config (CATALOG_LOCALES, SHIPPED), a
synchronous translator on use-intl/core with English filled in under
any other language, the server wrapper that logs what goes wrong, the
request config the plugin needs, and an English translator for tests
that throws.

The site footer's labels are the first text in the catalog, so the
translator is proven in a server component, on static and dynamic
pages. A new check runs it under the worker's toolchain. No page's
first-load JavaScript changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
A local ESLint plugin in eslint.config.mjs, with one rule so far:
opensignup/no-catalogs-in-client. In a file that opens with a 'use client'
directive, it reports any import of a catalog in src/messages, or of the
translators that load every catalog (src/i18n/translator.ts, server.ts and
testing/translator.ts), since either would put that text in the browser's
JavaScript. It reads the directive rather than matching paths, follows
@/ and relative paths, re-exports, import(), require() and import paths
built from a template, and lets type-only imports through, since those are
compiled away. The message says why and what to do instead.

The tests lint fixtures through the repo's own config, so they also prove
the rule is on for the app's files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
A unit test over src/messages/ checks every catalog against en.json:
completeness per namespace, enforced for each language in SHIPPED for the
namespaces its audience reads; every message compiles with icu-minify;
placeholders, tags and select branches match English, and each placeholder
takes the value English is passed; no key English lacks; and no English
message the app doesn't use.

Which keys the app uses comes from the type checker: a call whose signature
is use-intl's Translator, its namespace from the keys it accepts, its key
from the type of its argument, so helpers, props, aliases and typed tables
are all seen, and a key or namespace it can't read fails the check.

The audience namespaces move from a comment to AUDIENCE_NAMESPACES in
src/i18n/config.ts. src/types/next-intl.d.ts imports next-intl, because an
augmentation alone doesn't load its module: without it, code with no test
importing next-intl typed every message key as a plain string.

icu-minify is a devDependency at exactly 4.14.9, the version next-intl and
use-intl resolve, and the pnpm override now points at it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Two rules, on only for the files and folders listed in TRANSLATED in
eslint.config.mjs, which so far is the site footer:

- react/jsx-no-literals with noStrings and ignoreProps, for JSX text;
- opensignup/no-literal-text-props, a local rule for a string on
  aria-label, aria-description, title, placeholder, alt or label.
  noAttributeStrings would also flag every className and href.

TRANSLATED takes paths as they are on disk. filesAt escapes them for
the config's globs, since an unescaped src/app/s/[slug]/** matches
src/app/s/s/ and not the [slug] folder, and stops lint when a path
doesn't exist. The footer's license line is exempt with a comment.

Also, from #891's review: no-catalogs-in-client follows a + chain that
starts with a string, as it does a template, and denies every module in
src/i18n/ to client files except those in CLIENT_SAFE_I18N (config),
rather than listing the modules that load catalogs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
A translation that kept a select's argument but dropped the select
(`Status: {status}` for English's `{status, select, open {Open} ...}`)
passed, and would show participants the code's value. The check now
reports `{status} isn't a select here, but is in English`.

From the same review:
- The check's program types translators against the en.json it just
  loaded, written over src/messages/en.d.json.ts, so a stale declaration
  no longer gives misleading lines. findUsedKeys now builds the program
  itself, and the fallback for a stale declaration is gone, with its edge
  case that could pick the wrong section. messages-declaration.test.ts
  still fails on a stale file.
- Code in any `testing` folder and in src/mcp/evals doesn't count as a use.
- `t?.('key')` is seen.
- A test for the dot-in-key check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Turn on next-intl's experimental message precompiling, so the first
client component with translated text ships a small formatter instead of
use-intl's ICU parser: measured here at 3,470 bytes gzipped against
12,353 without it.

Under precompile the plugin's loader compiles every catalog the Next
build imports, the server's too, and a message with an argument, plural
or tag becomes an array. withEnglishUnder treated every object as a
section and went into those arrays, so each such message would have
rendered as its key path in the web process while vitest and the worker,
which read the raw JSON, stayed green. A message is now a string or an
array, and only a section is merged into.

The footer's "{INSTANCE_NAME} · AGPL-3.0" line becomes a message with an
argument, the first the app has, and a production-build e2e checks it on
a prerendered page, a page rendered per request and the public signup
page. A unit test runs next-intl's own loader over every catalog and
checks each message formats the same precompiled as from the raw JSON.

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

Brings in #892's review fixes (a7a10ed) so this PR stays on top of #892's final state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
formatSlotDate and formatSlotTime now take the reader's language as a
required `locale`, and so does everything that prints a slot's values:
renderFieldValue, slotDetails, summarizeSlotValues, formatGroupLabel,
buildMetaSegments, prettyHeader, and the two commitment services that name a
slot for the edit and cancelled pages. Every caller passes 'en' for now, so
nothing anyone sees changes.

A date is built from its parts as a UTC moment and formatted in UTC, so no
zone can move it to another day. English keeps today's output exactly,
including the hand-written 12-hour clock with its no-break space before
AM/PM; other languages get Intl's own ("lör 3 maj", "18:30" in Swedish).

formatSlotDate now formats only a stored YYYY-MM-DD. It used to fall back to
`new Date()` for any other string, in the host's zone; no caller relied on
that, as both checked isRealDate first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
filesAt escaped the characters a glob reads specially but not the
backslash it escapes them with, so a listed folder named `a\b` became
the glob `a\b/**`, which matches `ab/` and not `a\b/`. The backslash is
now escaped in the same pass as the rest.

filesAt takes an optional root so a test can list a real folder with a
backslash in its name, made in a temporary directory, and check the glob
with ESLint's own matcher.

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

Brings in #893's later commits (#892's final code, main, and the filesAt escaping fix) so this PR stays on top of #893.

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

Keeps this PR on top of #894's current branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
main now holds #893 (7a9fada), whose final code this branch already had. The only conflict was the footer line #893 exempted from lint and this PR turns into a message; this branch's version is kept.

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

Keeps this PR on top of #894's current branch, which now has main (#893) merged in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Every formatter that named a language now takes the reader's as `locale`,
and every caller passes 'en' for now, so English reads exactly as before:

- format-duration: `formatDuration` and `waitInMinutes` write each amount
  with Intl (number, unit and plural), so "1 minute" and "2 timmar" both
  come out right. `locale` defaults to English, since some callers are
  sign-in and OAuth code that gets a language with its own text.
- fit-text: Magic Compose's cut-off warning writes its limit with
  Intl.NumberFormat.
- connected apps: the approval, last-use and expiry dates go through
  `formatGrantDate`, which keeps English in the day-first order the page
  has always shown.
- Magic Compose: `formatOneDay`, `appendAnswers` and `timeLength` take a
  locale, and `MagicComposeRoot` passes one down to Compose (the character
  count), Questions, Drafting and DraftingFrom. English times keep "9am";
  other languages get Intl's short time, as slot times do.

The participant rate-limit message now writes its plural in its own
sentence from `waitMinutes`, as Magic Compose's hourly-limit message does,
so the plural moves into the catalog with the sentence and Intl's unit
code stays out of the participant pages, which had 5 bytes of budget left.

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

Keeps this PR on top of #895's current branch, which now has main (#893, #894) merged in.

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

Part of #625. A signup can now hold a language in settings.locale, and an
operator can set DEFAULT_LOCALE. Nothing reads either yet, so pages, emails
and the AI connector's tools are unchanged.

- settings.locale is a lenient string, so a stored language that has left
  the list still parses. createSignup and updateSignup refuse a language the
  caller sends unless it has shipped to participants; updateSignup checks
  only a sent one, as it does for groupByFieldRefs, because it merges the
  stored settings under the patch before parsing.
- resolveLocale and defaultFor in src/i18n/config.ts, pure, with isShipped.
- DEFAULT_LOCALE in src/lib/env.ts, an optional enum of the catalog
  languages.
- locale joins UNREAD_SETTINGS, so update_signup refuses it and get_signup
  hides it until something reads it.
- .env.example, fly.example.toml, the README and the CHANGELOG say what it
  does, that it changes nothing until a second language ships, and where a
  runtime variable goes on each platform.

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

The Settings tab gets a "Signup language" form, a plain form like "Ask for
an email address" with no script of its own. It renders only once a second
language has shipped to participants, so nothing shows yet. Each language is
named in itself (English, Svenska), through Intl.DisplayNames. Saving sends
only `locale` through updateSignup, which refuses a language that hasn't
shipped; a refusal shows the tab's usual error.

A signup with no language of its own shows the instance's, so
instanceDefaultLocale() comes in here with its first caller.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
TIME_ZONE moves from src/i18n/config.ts to its own src/i18n/time-zone.ts.
Browser code reaches it through src/lib/slot-label.ts (the Build tab's
time picker and Magic Compose), which made config.ts part of the code
those two share. Webpack counts a module's unused code when it decides
whether shared code gets a chunk of its own, so the language rules this
branch added to config.ts tipped it into making one. That chunk's entry
in the webpack runtime added 29 to 47 bytes to every page and pushed
/s/[slug]/c/[id] over its 110 kB budget. With config.ts out of the
browser's graph, every page's JavaScript is byte-for-byte the size it
was on the base branch.

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

A settings.locale longer than 35 characters (or not a string), written
straight into the database, failed the whole settings parse: the signup
asked for an email the organizer had turned off, and every settings save
failed on a field nobody sent. The schema now reads such a value as no
language (.catch(undefined)), so a stored value can never break the row,
and an unrelated save drops it.

createSignup and updateSignup check the raw value the caller sends
instead of the parsed one, so a too-long, non-string or unknown language
is still refused with invalid_input on settings.locale (now with the
service's own message, where a too-long one used to get zod's).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
The README, .env.example and CHANGELOG said a language "takes effect
only once OpenSignup ships it", with a Swedish school as the example,
which reads as "set sv now and it will start working later". In fact any
value but en stops the app: the worker exits at startup and every page
that needs the database fails with an "Invalid environment" error. They
now say that, tell operators to leave it unset for now, drop the
example, and put what an unset value means in the future tense, since
nothing reads an organizer's browser language yet. fly.example.toml
says the same in one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
In a file of its own, the form was a second server module importing
AsyncSubmitButton, and webpack then added a few bytes to that button's
module on every page that loads it. Inline in page.tsx, every page's
first-load JavaScript is byte-identical to the base. The test now renders
the Settings tab itself, so it also checks the page shows the form, and
that "Saved" appears only by the form that saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
#896 merged, so main now holds this branch's base. The one conflict,
src/lib/slot-label.ts, is between #895 and #896 as squashed on main and
the same commits in this branch's history; main's copy equals #896's
head, so the branch's copy (with TIME_ZONE from its new module) stands.
The merged tree is identical to the branch's before the merge.

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

Takes #897's address round: TIME_ZONE out of config.ts, the lenient read of
a stored locale, and the docs on DEFAULT_LOCALE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
chooseOrganizerLocale takes the organizer's saved language, the instance's
DEFAULT_LOCALE and the browser's Accept-Language header (null where there is
no browser, as for MCP) and returns the first that has shipped to the
audience asked about, else English, with the step that chose it. Only the
browser's top-ranked range counts, so "sv,en;q=0.8" gives English until
Swedish ships rather than settling for the second choice.

It lives in its own file, away from server.ts (which the worker imports) and
from next/headers. The column, the session field and the request wrapper
come later.

Part of #626.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
getSignupRowBySlug reads the live signup at a slug in one statement,
skipping deleted rows and keeping drafts and archived ones, so the page can
still say which. getPublicSignup takes that row, or a slug as before for the
public API, and loadPublicSignup now gets its row from the new cached
loadSignupRowBySlug. A layout that reads the row too (a later part of #628)
then adds no statement to GET /s/[slug].

A unit test stands a per-request cache in for React's and checks the page's
read goes through loadSignupRowBySlug and hands getPublicSignup the row, not
the slug. The query-budget test says why it counts the page alone. Both page
budgets stay at 5 and 6.

Part of #628.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
@richshaw richshaw added the pipeline:working A session is working on it right now label Nov 16, 2026 — with Claude
Base automatically changed from claude/issue-943-settings-tab-text to main November 16, 2026 03:45

richshaw commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner Author

Approved by the owner at f8a108c.

The owner approved merging the localization stack (#897 up to #998) in the orchestrating session on 16 November 2026: "Stop before launch: merge everything up to and including the simplification".

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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Next.js 15.5.29 on main adds about 0.1 kB to the page. Measured after
pnpm build on this branch: 151.201 kB, so 151.1 → 151.3.

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

Copy link
Copy Markdown
Owner Author

catch-up after #960: merges only, own diff unchanged, markers stand.

One budgets-only commit on top (023c3e3, owner pre-approved): with Next.js 15.5.29 on main, pnpm build && pnpm budgets on the caught-up tree measured the Build tab at 151.201 kB, over its 151.1 kB budget. budgets.json /app/signups/[id]/build: 151.1 → 151.3. The commit touches only budgets.json, so the review and tophat on bab513a still stand.

https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt


Generated by Claude Code

@richshaw
richshaw merged commit fd555a4 into main Nov 16, 2026
5 checks passed
@richshaw
richshaw deleted the claude/issue-944-build-tab-text branch November 16, 2026 03:53
@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
richshaw pushed a commit that referenced this pull request Nov 16, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
richshaw pushed a commit that referenced this pull request Nov 16, 2026
budgets.json conflicted on the Build tab line (this branch 151, #967's
151.3 after #962's Next.js 15.5.29 raise). Took 151.3 here; re-measured
below.

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.

The Build tab is English-only

3 participants