eclipse-thingweb / playground

Browser or Node.js based tool for validating and playing with W3C Thing Descriptions
https://playground.thingweb.io/
Other
28 stars 22 forks source link

Quick Example Access #502

Open egekorkan opened 10 months ago

egekorkan commented 10 months ago

It would be good to have a quicker way to get the examples. There are multiple solutions that come to mind:

  1. Changing the current template with a useful TD example that appears in every editor
  2. Changing the "Apply" button in the example cards to always appear next to the name of the example. That way, you can use it without expanding the description
  3. Another button on the main page that puts one TD example
  4. In the tabs part, next to JSON and YAML, have one or two examples for "quick access"
  5. The + button shows a small menu instead of putting a template right away.

My opinion is to do option 2 anyway and further improve with one of the other options.

@danielpeintner what do you think?

danielpeintner commented 10 months ago

My personal preference would be option 5. Clicking "+" having a small menu which on top shows "Blank Template" or so followed by the same list/hierarchy we plan to have under "Examples"

egekorkan commented 10 months ago

Option 2 is implemented, we can add option 5 later on