When you want to introduce a new action in Demo Time, you will have to perform the following steps:
- Add the new action in the Action.ts file
- Register the action in the DemoRunner.ts
file
- Implement the action logic
- Create the action template in the getActionTemplate.ts
- Create the action option in the getActionOptions.ts
- Add the demo in the
CATEGORIZED_ACTIONSarray of the demo.ts file- Register the action icon in the actionsHelper.ts
- Register the required fields in the actionHelpers.ts
- Register the optional fields in the actionHelpers.ts
- If the fields need a custom rendering, you can do this in the StepEditor.tsx file
- Add the action in the demo-time.schema.json file
- If the action has required or optional properties, they need to be registered in the allOf section
Make sure to document the new action in the documentation project actions section