bug: if to add dot when creating a new project, it is not added to the actual project name
Is there an existing issue for this?
- [X] I have searched the existing issues.
CLI Version
N/A
Project ID
N/A
Description
When creating a new project it is allowed to put a dot (.) to the name of the project. UI will allow it, but when the project is actually created there is no dot in the name
Steps to reproduce
- Go to globe.dev and press 'create project'
- Import any project repo from GitHub
- Edit the project name to contain a dot (i.e. api.my-test-project)GitHub
Expected behavior
Either not allow it on UI, or use it in the name (and domain?)
Screenshots
No response
Additional context and comments
Note: Github allows to create repositories with dot in the name
This isn't technically a bug. We slugify the name to become the project url, which we use for the dashboard, urls etc.
Probably need to change the wording here
I'd also expect whatever name was used initially to match the one in created project. It shouldn't be very hard to validate project name upon creation.
The idea was that it add less friction into the CLI flow, rather than trying to describe what is allowed/disallowed in the setup flow.
Sorry, it seems that I was not clear. The issue is with globe.dev UI, not CLI. I never checked if this (or similar) is actual for CLI.
Yeah that's my bad. Will add some validation on the frontend