[bug][spaces] Space slug auto-generation produces uppercase initials for multi-word names #125

Closed
opened 2026-06-22 06:27:47 +03:00 by Ghost · 0 comments

Severity: medium

In the Create Space modal, the slug auto-derived from the name is wrong for any multi-word name: it emits the uppercase first letter of each word (initials) instead of a kebab slug.

Where: apps/client/src/lib/utils.tsx:25computeSpaceSlug maps each word to word.charAt(0).toUpperCase() and joins (looks like the avatar-initials helper is reused).

Repro (live, Create Space → type into Name, read Slug):

Name Slug generated Expected
Product Team PT product-team
Hello World HW hello-world
SingleWord singleword singleword

Single-word names slug correctly; any name with a space collapses to uppercase initials. The placeholder hints e.g product, so the suggestion clearly should be a lowercase kebab slug. (A user can still type a slug manually, and the server accepts the bad value.)


Filed from an automated full-product QA pass on develop @ v0.93.0-64-gb60190ff, fresh DB. Each item below was reproduced live in a clean browser session unless noted.

Screenshot

Issue 125: Space name 'Product Team' auto-fills slug 'PT'
Issue 125: Space name 'Hello World' auto-fills slug 'HW'

**Severity:** medium In the Create Space modal, the slug auto-derived from the **name** is wrong for any multi-word name: it emits the uppercase first letter of each word (initials) instead of a kebab slug. **Where:** `apps/client/src/lib/utils.tsx:25` — `computeSpaceSlug` maps each word to `word.charAt(0).toUpperCase()` and joins (looks like the avatar-initials helper is reused). **Repro (live, Create Space → type into Name, read Slug):** | Name | Slug generated | Expected | |---|---|---| | `Product Team` | `PT` | `product-team` | | `Hello World` | `HW` | `hello-world` | | `SingleWord` | `singleword` | `singleword` ✓ | Single-word names slug correctly; any name with a space collapses to uppercase initials. The placeholder hints `e.g product`, so the suggestion clearly should be a lowercase kebab slug. (A user can still type a slug manually, and the server accepts the bad value.) --- _Filed from an automated full-product QA pass on `develop` @ `v0.93.0-64-gb60190ff`, fresh DB. Each item below was reproduced live in a clean browser session unless noted._ ### Screenshot ![Issue 125: Space name 'Product Team' auto-fills slug 'PT'](https://gitea.vvzvlad.xyz/attachments/c8b798b4-9e23-4abf-a7ce-21d816956a3e) ![Issue 125: Space name 'Hello World' auto-fills slug 'HW'](https://gitea.vvzvlad.xyz/attachments/8e2faf3f-e66c-4fc0-b007-2db150e7975c)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vvzvlad/gitmost#125