Repository navigation
Description
Problem
The create-organization wizard (/dashboard/create-organization, also the first run after sign-up) refuses ordinary company names with umlauts, accents or common punctuation: "Müller AG", "Société Générale", "Zürcher Bau GmbH", "Smith & Co." and "Acme Inc." are all rejected. Its error then tells the person to use "letters", which they did. Paths at main c94f1fd84, under services/platform/.
-
The rule:
app/features/organization/components/onboarding/steps/workspace-step.tsx:34setsconst NAME_PATTERN = /^[A-Za-z0-9][A-Za-z0-9 _-]*$/;, which is ASCII only.nameValidandnameErroruse it (:110-123), and Next stays disabled (valid={nameValid && …},:199). -
The message contradicts it (
settings.organization.companyNameCharacterError):- en: "Use letters, digits, spaces, hyphens, and underscores only, starting with a letter or digit." (
messages/en/settings.yml:247-249) - de: "Verwende nur Buchstaben, Ziffern, Leerzeichen, Bindestriche und Unterstriche …" (
de/settings.yml:255-257) - fr: "Utilise uniquement des lettres, chiffres, espaces, tirets et tirets bas …" (
fr/settings.yml:259-261)
To a German or French speaker, "ü" and "é" are letters.
- en: "Use letters, digits, spaces, hyphens, and underscores only, starting with a letter or digit." (
-
Nothing else needs the restriction.
- The slug is derived separately (
deriveOrgSlug,:25-32). - The shared organization-name rule, which the settings form and the server hook enforce, only requires a non-empty name (
lib/shared/schemas/organizations.ts:21-22). - So the same name is accepted once the organization exists and is renamed in Settings. The wizard is the only place that refuses it, and it is the first thing a new customer does.
- The slug is derived separately (
-
Tests pin the current rule: manual case
AUTH-B5(tests/manual/suites/auth.md:321-325,@@@bad@@@) andtests/e2e/specs/onboarding.spec.ts:57-63(Acme!). Neither covers a non-ASCII or punctuated real name.
Expected
- Accept what the shared schema accepts: Unicode letters and digits plus common punctuation, for example
/^[\p{L}\p{N}][\p{L}\p{N} _.,&'’()-]*$/u, or simply the sharedorganizationNameSchema. Keep refusing names whose derived slug is empty or reserved, with a message that says that. - If a restriction remains, make the message list exactly what is refused.
- Regression: the wizard accepts "Müller AG" and "Société Générale" and derives a valid slug, while
@@@stays refused. UpdateAUTH-B5and the e2e case accordingly. Onc94f1fd84both names keep Next disabled.
Severity and owner
- Severity: medium. It blocks the natural company name at first run for the platform's German- and French-speaking customers (de-CH is a shipped locale). The workaround, an ASCII name now and a rename later, is invisible.
- Owner: platform (onboarding, organizations).
- Found by: Review A (TALE-358), 2026-10-12 20:15 Zurich occurrence, oldest-due
onboarding.create-orgUX-CLARITY slice. This is static reading atc94f1fd84, verified at the cited lines. I didn't run it, because Review A's stack is BLOCKED.
Activity
fix(platform): accept accented and punctuated names in the org wizard