strautomator / web

Strautomator Web / API
https://strautomator.com/
MIT License
30 stars 1 forks source link

Edit Actions and Conditions #19

Closed zecanard closed 1 year ago

zecanard commented 1 year ago

Please allow us to edit Actions and Conditions. The current way, which is to delete and recreate them, is particularly cumbersome for Actions that modify the Description, since copying the Action loses any carriage returns.

igoramadas commented 1 year ago

Updating the UI to allow editing existing conditions and actions will be rather cumbersome.

As this is mostly requested by power users / techies (5 people in total so far), I will add the possibility to edit the automation JSON directly, so power users can modify and customise their automations as needed.

Hopefully will have something ready to test by the weekend.

igoramadas commented 1 year ago

Editing automations (directly via JSON) is now available for testing at https://beta.strautomator.com.

zecanard commented 1 year ago

The new JSON editor is very useful. Thank you for that!

However, it can also disable the “Save Automation” button. To reproduce:

  1. Open an automation for edit.
  2. Open the JSON Editor.
  3. Close the JSON Editor.
  4. Add New Condition.
  5. Save Condition.
  6. “Save Automation” becomes disabled.
  7. Open the JSON Editor.
  8. “Save Automation” becomes re-enabled.
igoramadas commented 1 year ago

Fixed and deployed: Live now: https://github.com/strautomator/web/releases/tag/v23.204.12240

Still having issues with the dark theme of the JSON editor, but hoping to have it sorted out within the next week.

zecanard commented 1 year ago

Looks to be working great now. Thank you!

Would it be possible to enable the JSON Editor on the New Automation screen, as well? This would be helpful when Duplicating an existing automation, without having to save it first before going back into the Edit screen.

Personally, I would like the ability to keep the light theme for the JSON editor.