-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Labels
area:uiUser interface and frontendUser interface and frontend
Milestone
Description
Overview
Replace the tenant ULID with a human-readable slug in all panel URLs for better UX and shareability.
Current Behavior
- URLs:
https://app.relaticle.test/01aryz6p69z94kvqvfpf37va39/companies - Uses ULID (26 characters) which is not user-friendly
Desired Behavior
- URLs:
https://app.relaticle.test/acme-corp/companies - Uses workspace slug (human-readable, derived from name)
Changes Required
1. Database Migration
- Add
slugcolumn toteamstable - Add unique constraint on
slug - Populate slugs for existing teams
2. Team Model
- Add
slugto$fillable - Implement slug generation (auto-generate from
name) - Override
getRouteKeyName()to return'slug'
3. Slug Generation
- Auto-generate on team creation
- Handle uniqueness (append numbers if needed)
- Consider using
spatie/laravel-sluggableor custom implementation
4. Team Creation/Update
- Generate slug when team is created
- Optionally allow slug editing (with validation)
Files Affected
app/Models/Team.phpdatabase/migrations/xxxx_add_slug_to_teams_table.phpdatabase/factories/TeamFactory.php- Team creation forms (if slug should be editable)
Success Criteria
- Slug column added to teams table
- Existing teams have slugs generated
- New teams auto-generate slugs from name
- URLs use slug instead of ULID
- Slug uniqueness enforced
- Tests updated and passing
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:uiUser interface and frontendUser interface and frontend
Type
Projects
Status
Todo