create-contentful-app icon indicating copy to clipboard operation
create-contentful-app copied to clipboard

feat: support setting navigationItem for page in create-app-definition [EXT-5884]

Open whitelisab opened this issue 1 year ago • 0 comments

When creating an app definition and having the page location selected, you can pass an optional navigationItem property which determines whether the page app should appear in the apps dropdown menu and what the name and path for that link should be. This is supported in the Contentful web app when creating and editing an app definition, but it is not supported in our Create App Definition script as part of the @contentful/app-scripts package. This PR adds this functionality to this script.

I have tested this locally and can confirm that the prompts appear correctly when the page location is selected and that the validations provide warnings correctly. The validations for the link name and path are using the same validations on the input fields in the web app.

Here is the experience in the web app: Screenshot 2024-10-28 at 2 30 49 PM

Here is what the new prompts look like when using the Create App Definition script: Screenshot 2024-10-28 at 2 24 44 PM

whitelisab avatar Oct 28 '24 20:10 whitelisab