Web IDE - Decouple templates from file name
Description
Currently in the Web IDE, the templates dropdown is only visible for certain file names:
This is problematic for custom templates (#16814). Let's figure out a way to support custom templates and decouple Web IDE template dropdowns from file names.
Context
The following discussion from !18337 (closed) should be addressed:
-
@pslaughter started a discussion: (+8 comments) the integration of the templates in the WebIDE, as there are no categories for templates selection in the second dropdown of the WebIDE contrary to the normal editor.
From what I can tell, this will take some UX input for a number of reasons:
- As you said, the Web IDE doesn't have categories in the template second dropdown.
- There's no clear way to create a file from a template that isn't one of the predefined file names (i.e.
Dockerfile
,.gitignore
, etc.)
@Dalahro, what do you think of handling the Web IDE in a follow-up issue?
@mvanremmerden what are your thoughts on this?