Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(frontend): Replace white spaces in branch name proposition and allow dashes in owner name #466

Merged
merged 10 commits into from
Apr 10, 2024

Conversation

Piv94165
Copy link
Contributor

@Piv94165 Piv94165 commented Mar 27, 2024

What

There are some issues on the create project page:

  • The owner's name allows for the inclusion of white spaces, while the branch name cannot accommodate them.
    However, the proposed branch name includes the owner's name, potentially containing white spaces.
    Therefore, to ensure compatibility, any white spaces within the branch name need to be replaced.

  • While GitHub names can include dashes "-", the current text input field for the owner's name doesn't permit dashes, though it should.

Screenshot

image

@Piv94165 Piv94165 requested a review from a team as a code owner March 27, 2024 08:40
@Piv94165 Piv94165 marked this pull request as draft March 27, 2024 08:43
@Piv94165 Piv94165 changed the title fix(frontend): Replace white spaces in branch name proposition fix(frontend): Replace white spaces in branch name proposition and allow dashes in owner name Mar 27, 2024
Copy link
Contributor

@perierc perierc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does the job, but maybe this could also be an opportunity to refactor other things around this default branch name 👀

taxonomy-editor-frontend/src/pages/startproject/index.tsx Outdated Show resolved Hide resolved
taxonomy-editor-frontend/src/pages/startproject/index.tsx Outdated Show resolved Hide resolved
@alexgarel
Copy link
Member

@perierc maybe we can merge this PR as currently it's more like a bug and do enhancement in a latter PR ?

Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ok !

Copy link
Contributor

@perierc perierc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few nits 😅

taxonomy-editor-frontend/src/pages/startproject/index.tsx Outdated Show resolved Hide resolved
taxonomy-editor-frontend/src/pages/startproject/index.tsx Outdated Show resolved Hide resolved
taxonomy-editor-frontend/src/pages/startproject/index.tsx Outdated Show resolved Hide resolved
@Piv94165 Piv94165 marked this pull request as ready for review March 28, 2024 07:35
Copy link
Contributor

@eric-nguyen-cs eric-nguyen-cs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another small comment

@eric-nguyen-cs eric-nguyen-cs merged commit 7170d84 into main Apr 10, 2024
7 checks passed
@eric-nguyen-cs eric-nguyen-cs deleted the piv94165/fix-branch-name-whitespace-replacement branch April 10, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
4 participants