@sap-ux/repo-app-import-sub-generator 0.2.11 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,7 +59,7 @@ const formatAppChoices = (appList) => {
59
59
  .filter((app) => {
60
60
  const hasRequiredFields = app['sap.app/id'] && app['sap.app/title'] && app['repoName'] && app['url'];
61
61
  if (!hasRequiredFields) {
62
- logger_1.default.logger?.error((0, i18n_1.t)('error.requiredFieldsMissing', { app: JSON.stringify(app) }));
62
+ logger_1.default.logger?.warn((0, i18n_1.t)('warn.requiredFieldsMissing', { app: app.appId }));
63
63
  }
64
64
  return hasRequiredFields;
65
65
  })
@@ -73,7 +73,8 @@ async function getPrompts(appRootPath, quickDeployedAppConfig, appWizard) {
73
73
  default: () => (quickDeployedAppConfig?.appId ? 0 : undefined),
74
74
  guiOptions: {
75
75
  mandatory: !!appList.length,
76
- breadcrumb: (0, i18n_1.t)('prompts.appSelection.breadcrumb')
76
+ breadcrumb: (0, i18n_1.t)('prompts.appSelection.breadcrumb'),
77
+ applyDefaultWhenDirty: true
77
78
  },
78
79
  message: (0, i18n_1.t)('prompts.appSelection.message'),
79
80
  choices: () => (appList.length ? (0, prompt_helpers_1.formatAppChoices)(appList) : []),
@@ -3,7 +3,6 @@
3
3
  "telemetry": "Failed to send telemetry data after downloading the application from the SAPUI5 ABAP Repository. {{- error}}",
4
4
  "qfaJsonNotFound": "{{- jsonFileName }} not found in the downloaded application. Ensure the downloaded application is properly deployed to the ABAP repository.",
5
5
  "replaceWebappFilesError": "An error occurred when replacing files in the downloaded application: {{- error}}. For more information, view the logs.",
6
- "requiredFieldsMissing": "Required fields are missing for the {{- app }} application. Check if the application is deployed correctly.",
7
6
  "applicationListFetchError": "An error occurred when fetching the application list: {{- error}}. Check if your application is available in the system.",
8
7
  "metadataFetchError": "An error occurred when fetching metadata: {{- error}}. For more information, view the logs.",
9
8
  "appConfigGenError": "An error occurred when generating the application configuration: {{- error}}. For more information, view the logs.",
@@ -44,7 +43,8 @@
44
43
  }
45
44
  },
46
45
  "warn": {
47
- "extractedFileNotFound": "Extracted file not found - {{- extractedFilePath}}. For more information, view the logs."
46
+ "extractedFileNotFound": "Extracted file not found - {{- extractedFilePath}}. For more information, view the logs.",
47
+ "requiredFieldsMissing": "Required fields are missing for the {{- appId }} application. Check if the application is deployed correctly."
48
48
  },
49
49
  "prompts": {
50
50
  "appSelection": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/repo-app-import-sub-generator",
3
3
  "description": "Generator to download LROP Fiori applications deployed from an ABAP repository.",
4
- "version": "0.2.11",
4
+ "version": "0.2.13",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -28,7 +28,7 @@
28
28
  "@sap-ux/fiori-generator-shared": "0.11.2",
29
29
  "@sap-ux/inquirer-common": "0.6.40",
30
30
  "@sap-ux/project-access": "1.29.21",
31
- "@sap-ux/odata-service-inquirer": "2.3.5",
31
+ "@sap-ux/odata-service-inquirer": "2.3.6",
32
32
  "@sap-ux/fiori-elements-writer": "2.3.4",
33
33
  "@sap-ux/logger": "0.6.0",
34
34
  "@sap-ux/project-input-validator": "0.5.4",