|
8 | 8 | - **ALWAYS** refer to parameters using correct syntax - `{parameters>/parameterKey/value}`. |
9 | 9 | - **ALWAYS** perform validation of the integration card as described in [2. Validation](#2-validation). |
10 | 10 | - **ALWAYS** show a preview of the generated card following the [4. Preview Instructions](#4-preview-instructions). |
| 11 | +- **ALWAYS** generate new declarative integration cards using the `create_integration_card` tool. |
11 | 12 |
|
12 | 13 | ### 1.1 Data |
13 | 14 | - **NEVER** modify the given data under any circumstances |
|
49 | 50 | - can be found at https://ui5.sap.com/test-resources/sap/ui/integration/demokit/cardExplorer/webapp/index.html |
50 | 51 |
|
51 | 52 | ## 4. Preview Instructions |
52 | | -- To show a preview of the card, you need an html page, that contains a `ui-integration` card element that uses the card manifest. |
53 | | -- **ALWAYS** search the existing card folder for preview file and instructions and use them, if available. |
| 53 | +- **ALWAYS** search the existing card folder for preview instructions or scripts and use them, if available. |
| 54 | + * for example, in NodeJS-based projects, search the `package.json` file for `start` or similar script. If such is available, use it |
| 55 | + * also search in the `README.md` file. |
| 56 | +- If preview instructions are not available, you have to create an html page, that contains a `ui-integration` card element that uses the card manifest. Then serve the html page using `http` server. |
54 | 57 |
|
55 | 58 | ## 5. Configuration Editor |
56 | 59 | - When there is Configuration Editor, always try to make most of the integration card fields editable. |
57 | 60 |
|
58 | | - |
59 | 61 | ## 6. Analytical Cards Coding Guidelines |
60 | 62 | - **ALWAYS** set `sap.card/content/chartType` property. |
61 | 63 | - **ALWAYS** adjust `sap.card/content/measures`, `sap.card/content/dimensions` and `sap.card/content/feeds` based on the `sap.card/content/chartType` property and data structure. This is critical for proper data display. |
|
0 commit comments