lightning icon indicating copy to clipboard operation
lightning copied to clipboard

Update default comment in job editor to help users get started

Open christad92 opened this issue 10 months ago • 1 comments

Currently new users get lost on the editor page when they as they don't know which language to code in or how to organize their code. Templates is an expensive way of solving this so we are adopting a much simple approach of adding multiline comments to users know what to do.

// Use pure JavaScript to add operations to your
// step. Click Docs to see list of operations or visit
// https://bit.ly/OFNJWG for adaptor documentation
// and example job codes.

christad92 avatar Apr 22 '24 13:04 christad92

would add also this snippet:

fn(state => {
  return state
})

It's elegant but I was forgetting the syntax in the beginning once it's not exactly the same as JS arrow functions:

const fn = (state) => {
  return state
}

jyeshe avatar Apr 23 '24 14:04 jyeshe