-
Notifications
You must be signed in to change notification settings - Fork 2
feat(UI-1541): improve project creation from template #1199
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
base: main
Are you sure you want to change the base?
Conversation
src/store/useProjectStore.ts
Outdated
return state; | ||
}); | ||
try { | ||
await ProjectsService.createFromManifest(projectManifest, currentOrganization?.id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename the function in ProjectsService
to applyManifest
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
src/store/useProjectStore.ts
Outdated
await ProjectsService.delete(projectData.projectId); | ||
return { data: undefined, error }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we shouldn't add Logger, because already have inside ProjectsService
src/store/useProjectStore.ts
Outdated
} | ||
|
||
projectName = project.name; | ||
return { data: undefined, error: new Error("Project name is required in manifest") }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
Description
For check limit request to server, instead of creating project by applyManifest,using projectClient.create
Linear Ticket
https://linear.app/autokitteh/issue/UI-1541/webui-templates-vscode-extension
What type of PR is this? (check all applicable)