Skip to content

Conversation

manolo
Copy link
Member

@manolo manolo commented Sep 10, 2025

Summary of Modifications

  • Feature:

    • HelloWorldProjectModel: Fixed the groupId handling in getDownloadUrl() by replacing the hardcoded value with the value set via the model's setter. The groupId in the generated URL now correctly reflects user input from the wizard.
  • Tests:

    • HelloWorldProjectModelTest: Added testCustomGroupIdInUrl to verify that setting a custom groupId is properly reflected and URL-encoded in the generated download URL.
    • StarterProjectModelTest: Added testCustomGroupIdInUrl to ensure the same groupId handling is tested for starter projects.
  • Other changes:
    - Align defaults with other plugins by setting them to NewProject and com.example.application
    - Align validations with other plugins

related to: vaadin/copilot#96

@manolo manolo force-pushed the feat/groupId branch 2 times, most recently from e090b30 to 2f7d5e8 Compare September 13, 2025 09:22
@manolo manolo marked this pull request as ready for review September 13, 2025 10:16
@manolo manolo requested a review from MarcinVaadin September 13, 2025 10:17
Summary of Modifications

	-  HelloWorldProjectModel:
	-  Fixed the groupId handling in getDownloadUrl() by replacing the hardcoded value with the value set via the model's setter. The groupId in the generated URL now correctly reflects user input from the wizard.
	-  Tests for groupId handling:
	-  HelloWorldProjectModelTest: Added testCustomGroupIdInUrl to verify that setting a custom groupId is properly reflected and URL-encoded in the generated download URL.
	-  StarterProjectModelTest: Added testCustomGroupIdInUrl to ensure the same groupId handling is tested for starter projects.

related to: vaadin/copilot#96
Copy link

Artifact build on last commit: repository.zip.

@MarcinVaadin
Copy link
Member

Group id setting works, but again same remark as in case of vs code - why project name has been limited not to contain spaces?

image

@MarcinVaadin MarcinVaadin merged commit 3850fa0 into main Sep 16, 2025
3 checks passed
@MarcinVaadin MarcinVaadin deleted the feat/groupId branch September 16, 2025 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants