Spike - Frontend : Use JSON Schema in the pipeline editor for auto-complete and auto-suggest
This is a frontend spike issue based on the discussion #299190 (comment 550563107)
Given the previous spike, backend should be able to auto-generate JSON schema.
The spike should answer the following JTBD:
-
When writing a pipeline I would like to know what are the available keywords I can use.
- Proposed solution - auto-complete of keywords in an accurate position (e.g. Script could only come after double spacing)
- Auto-suggested of valid values - e.g. when user writes
Stage:
we should suggest a list of available stages when a user writeswhen:
we should auto-suggest (manual, always, delay, etc...)
-
When looking at a keyword i would like to know what this keyword is doing.
- Tooltip when hovering over a keyword
- link to the keyword documentation
We should not try to validate the user pipeline using the JSON schema if the users are typing a keyword that doesn't exist in the schema we should allow them to do so, the linter will provide our users with the notification that the schema is invalid.
One idea which was raised during the previous spike is to reuse the logic that exists today in the web-ide and iterate on top of it
Edited by Dov Hershkovitch