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

Refactor(client): UX of create public-private repo #6041

Merged
merged 3 commits into from
May 18, 2023

Conversation

abrl91
Copy link
Member

@abrl91 abrl91 commented May 18, 2023

Close: #5994

PR Details

  • change the property to isPublic for the client and set it to true, so the toggle will be checked by default
  • handle the conversion (negate the value of isPublic) in the server

PR Checklist

  • Tests for the changes have been added
  • npm test doesn't throw any error

IMPORTANT: Please review the CONTRIBUTING.md file for detailed contributing guidelines.

@nx-cloud
Copy link

nx-cloud bot commented May 18, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 7d98582. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 7 targets

Sent with 💌 from NxCloud.

@abrl91 abrl91 merged commit b3b56ad into next May 18, 2023
10 checks passed
@abrl91 abrl91 deleted the refactor/5994-ux-public-private-repo branch May 18, 2023 08:49
@@ -4,5 +4,5 @@ export const CreateGitFormSchema = object().shape({
name: string()
.min(2, "Git repository name require minimum of 2 characters")
.required("Repository name is missing"),
isPrivate: bool().required("Must select if repo is private"),
isPublic: bool().required("Must select if repo is private"),
});
Copy link
Member

Choose a reason for hiding this comment

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

"Must select if repo is public" (low priority change)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants