Skip to content

feat(UI-1541): improve project creation from template#1199

Merged
RonenMars merged 10 commits intomainfrom
vitaly/feat/improve-create-project-from-template
Jun 10, 2025
Merged

feat(UI-1541): improve project creation from template#1199
RonenMars merged 10 commits intomainfrom
vitaly/feat/improve-create-project-from-template

Conversation

@J1za
Copy link
Contributor

@J1za J1za commented May 19, 2025

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)

  • 💡 (feat) - A new feature (non-breaking change which adds functionality)
  • 🔄 (refactor) - Code Refactoring - A code change that neither fixes a bug nor adds a feature
  • 🐞 (fix) - Bug Fix (non-breaking change which fixes an issue)
  • 🏎 (perf) - Optimization
  • 📄 (docs) - Documentation - Documentation only changes
  • 📄 (test) - Tests - Adding missing tests or correcting existing tests
  • 🎨 (style) - Styles - Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • ⚙️ (ci) - Continuous Integrations - Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • ☑️ (chore) - Chores - Other changes that don't modify src or test files
  • ↩️ (revert) - Reverts - Reverts a previous commit(s).

@J1za J1za changed the title feat(UI-1541): improve project creation logic in useProjectStore feat(UI-1541): improve project creation from template May 20, 2025
@J1za J1za requested a review from RonenMars May 28, 2025 09:51
@J1za J1za force-pushed the vitaly/feat/improve-create-project-from-template branch from 3818b25 to 88e4756 Compare June 2, 2025 18:19
}

projectName = project.name;
return { data: undefined, error: new Error(t("projectNameRequiredManifest", { ns: "errors" })) };
Copy link
Contributor

@RonenMars RonenMars Jun 3, 2025

Choose a reason for hiding this comment

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

Nit: Could you please move this translation from the "errors" namespace to either "stores.projects", "stores.templates", or another namespace you find more appropriate?

Copy link
Contributor Author

@J1za J1za Jun 4, 2025

Choose a reason for hiding this comment

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

Moved to stores.projects, that's a good idea

@RonenMars RonenMars force-pushed the vitaly/feat/improve-create-project-from-template branch from 4ad62ca to c530b4c Compare June 8, 2025 05:19
<ContinueTourModal onCancel={cancelTour} onContinue={continueTour} />
<RateLimitModal isRetrying={isRetrying} onRetryClick={onRetryClick} />
<QuotaLimitModal onContactSupportClick={onContactSupportClick} />
<RateLimitModal isRetrying={isRetrying} onClose={hideRateLimitModal} onRetryClick={onRetryClick} />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't understand why you add prop onClose, if we close the modal from ModalStore

}: CustomEvent<{ limit: string; resourceName: string; used: string }>) => {
if (!quotaLimitModalDisplayed) {
closeAllModals();
setTimeout(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

setTimeout revert to guarantee opening modal

Copy link
Contributor

Choose a reason for hiding this comment

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

added

@J1za
Copy link
Contributor Author

J1za commented Jun 10, 2025

Reviewed

@RonenMars
Copy link
Contributor

Reviewed changes & approved

@RonenMars RonenMars enabled auto-merge (squash) June 10, 2025 12:26
@RonenMars RonenMars force-pushed the vitaly/feat/improve-create-project-from-template branch from df13be1 to 1e3554f Compare June 10, 2025 12:26
@RonenMars RonenMars merged commit 9010714 into main Jun 10, 2025
11 checks passed
@RonenMars RonenMars deleted the vitaly/feat/improve-create-project-from-template branch June 10, 2025 12:33
@github-actions
Copy link

🎉 This PR is included in version 2.200.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

RonenMars added a commit that referenced this pull request Jul 1, 2025
Co-authored-by: Ronen Mars <ronen@autokitteh.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants