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

feat: enable project creation through new form #6961

Merged
merged 20 commits into from
Apr 30, 2024

Conversation

thomasheartman
Copy link
Contributor

@thomasheartman thomasheartman commented Apr 29, 2024

This PR allows very simple project creation. You can add a name and description. The ID is generated for you at the moment (we'll fix this later). Nothing else works, but the project is created successfully.

Copy link

vercel bot commented Apr 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 30, 2024 10:51am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Apr 30, 2024 10:51am

@thomasheartman thomasheartman changed the base branch from main to feat/new-project-creation-form-layout April 29, 2024 12:49
Base automatically changed from feat/new-project-creation-form-layout to main April 30, 2024 06:09
@thomasheartman thomasheartman changed the title wip: enable project creation through new form feat: enable project creation through new form Apr 30, 2024
Comment on lines +75 to +94
type FormProps = {
projectId: string;
projectName: string;
projectDesc: string;
projectStickiness?: string;
featureLimit?: string;
featureCount?: number;
projectMode?: string;
setProjectStickiness?: React.Dispatch<React.SetStateAction<string>>;
setProjectId: React.Dispatch<React.SetStateAction<string>>;
setProjectName: React.Dispatch<React.SetStateAction<string>>;
setProjectDesc: React.Dispatch<React.SetStateAction<string>>;
setFeatureLimit?: React.Dispatch<React.SetStateAction<string>>;
setProjectMode?: React.Dispatch<React.SetStateAction<ProjectMode>>;
handleSubmit: (e: any) => void;
errors: { [key: string]: string };
mode: 'Create' | 'Edit';
clearErrors: () => void;
validateProjectId: () => void;
};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are all the props from the old form. I've put them here as a template. We'll use the ones we need and remove the ones we don't as we go.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just shove in all the props that we send to the existing form for now, so that we have all the stuff we need.

Because their styles don't get propagated to the top-level component,
but instead to the wrapped input.
@thomasheartman thomasheartman merged commit cdbe263 into main Apr 30, 2024
12 of 13 checks passed
@thomasheartman thomasheartman deleted the feat/new-project-form-submit branch April 30, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants