Skip to content

Implement script component #1102

Open
@Skaiir

Description

@Skaiir

Is your feature request related to a problem? Please describe.

We want to allow users to build custom interactions in the form that are not available out of the box. While we have expressions that allow us some pretty nice simple interactions, we need a more complex, sandboxed environment where we can run javascript.

Describe the solution you'd like

A safe, sandboxed environment where JavaScript is simply executed. This sandbox will have a communication channel with the main form which restricts the interactions to data passing. We would use an iframe to achieve this sandboxing.

Breakdown

  • Build the basic front-end
    • Simple editor component similar to the expression one
    • Non-sandboxed JS execution viewer component
    • Properties panel impl
  • Add doNotSubmit property ?
  • Sandboxed front-end
    • iframe encapsulation + messaging system
  • Polishing front-end
    • Review text used
    • New icon
  • Update to the schema definition
  • Tests
  • Update to linting rules
  • Docs

Additional context

https://github.com/camunda/team-hto/issues/528

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions