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: Enhance system and app prompt validations #3065

Open
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

nikmace
Copy link
Contributor

@nikmace nikmace commented Mar 31, 2025

Feat for #3015.

  • Adds validations for application and system prompts.
  • Adds additional messages for different errors.

@nikmace nikmace self-assigned this Mar 31, 2025
Copy link

changeset-bot bot commented Mar 31, 2025

🦋 Changeset detected

Latest commit: 7b7a9e5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@sap-ux/generator-adp Patch
@sap-ux/adp-tooling Patch
@sap-ux/adp-flp-config-sub-generator Patch
@sap-ux/create Patch
@sap-ux/flp-config-inquirer Patch
@sap-ux/preview-middleware Patch
@sap-ux/flp-config-sub-generator Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nikmace nikmace marked this pull request as ready for review April 1, 2025 12:48
@nikmace nikmace requested review from a team as code owners April 1, 2025 12:48
Copy link
Contributor

@lfindlaysap lfindlaysap left a comment

Choose a reason for hiding this comment

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

@nikmace, here are my suggestions.

"notDeployableNotFlexEnabledSystemError": "The system that you have selected is not an ABAP On-Premise system. Adaptation Project is supported only on such systems, so please choose ABAP On-Premise system which supports Flexibility and DTA_FOLDER deployment.",
"notDeployableSystemError": "The system that you have selected is not an ABAP On-Premise system which supports DTA_FOLDER deployment. Adaptation Project is supported only on such systems, so please choose ABAP On-Premise system which supports DTA_FOLDER deployment.",
"notFlexEnabledError": "The system that you have selected is not an ABAP On-Premise system which supports Flexibility. Adaptation Project is supported only on such systems, so please choose ABAP On-Premise system which supports Flexibility. If you continue, you will be able to create only an Extension Project.",
"manifestCouldNotBeValidated": "Manifest of the selected application could not be validated",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"manifestCouldNotBeValidated": "Manifest of the selected application could not be validated",
"manifestCouldNotBeValidated": "The manifest.json file of the selected application could not be validated.",

What should users do to try to fix this error? Try again? View the logs?

Copy link
Contributor

Choose a reason for hiding this comment

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

@nikmace, could you let me know if there is a solution to this error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks.

@nikmace
Copy link
Contributor Author

nikmace commented Apr 2, 2025

@lfindlaysap I've updated all of the texts, you can see in the changes or in this commit: f1d13f4

@nikmace nikmace requested a review from lfindlaysap April 2, 2025 08:16
Copy link
Contributor

@lfindlaysap lfindlaysap left a comment

Choose a reason for hiding this comment

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

@nikmace, thanks for making the changes. I've resolved some suggestions and commenting on the outstanding ones.

@nikmace nikmace requested a review from lfindlaysap April 2, 2025 09:01
"notDeployableNotFlexEnabledSystemError": "The system that you have selected is not an ABAP On-Premise system. Adaptation projects are only supported on those systems. Please choose an ABAP On-Premise system which supports flexibility and DTA_FOLDER deployment.",
"notDeployableSystemError": "The system that you have selected is not an ABAP On-Premise system which supports DTA_FOLDER deployment. Adaptation projects are only supported on those systems. Please choose an ABAP On-Premise system which supports DTA_FOLDER deployment.",
"notFlexEnabledError": "The system that you have selected is not an ABAP On-Premise system which supports flexibility. Adaptation projects are only supported on those systems. Please choose an ABAP On-Premise system which supports flexibility. If you continue, you will only be able to create an extension project.",
"manifestCouldNotBeValidated": "Manifest of the selected application could not be validated. Select a different application.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"manifestCouldNotBeValidated": "Manifest of the selected application could not be validated. Select a different application.",
"manifestCouldNotBeValidated": "The manifest.json file of the selected application could not be validated. Please select a different application.",

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

Successfully merging this pull request may close these issues.

2 participants