Commit Graph

12 Commits

Author SHA1 Message Date
Andrew Kingston f3a28e556b
Undo/Redo for Design and Automate sections + automations refactor (#9714)
* Add full undo/redo support for screens

* Add loading states to disable spamming undo/redo

* Add keyboard shortcuts for undo and redo

* Fix modals not closing in design section when escape is pressed

* Remove log

* Add smart metadata saving to undo/redo

* Add error handling to undo/redo

* Add active state to hoverable icons

* Fix screen deletion

* Always attempt to get latest doc version before deleting in case rev has changed

* Move undo listener top level, hide controls when on certain tabs, and improve selection state

* Add tooltips to undo/redo control

* Update automation section nav to match other sections

* Fix automation list padding

* Fix some styles in create automation modal

* Improve automation section styles and add undo/redo

* Update styles in add action modal

* Fix button size when creating admin user

* Fix styles in add automation step modal

* Fix issue selecting disabled automation steps

* Reset automation history store when changing app

* Reduce spammy unnecessary API calls when editing cron trigger

* WIP automation refactor

* Rewrite most automation state

* Rewrite most of the rest of automation state

* Finish refactor of automation state

* Fix selection state when selecting new doc after history recreates it

* Prune nullish or empty block inputs from automations and avoid sending API requests when no changes have been made

* Fix animation issues with automations

* Sort automations and refetch list when adding or deleting

* Fix formatting

* Add back in ability to swap between values and bindings for block inputs

* Lint

* Format

* Fix potential issue in design section when selected screen is unset

* Fix automation arrow directions everywhere, tidy up logic and fix crash when using invalid looping

* Lint

* Fix more cases of automation errors

* Fix implicity any TS error

* Respect _id specified when creating automations

* Fix crash in history store when reverting a change on a doc whose ID has changed

* Lint

* Ensure cloneDeep helper doesn't crash when a nullish value is passed in

* Remove deprecated frontend automation test

---------

Co-authored-by: Rory Powell <rory.codes@gmail.com>
2023-02-23 13:55:18 +00:00
Peter Clement 77822bbca3 update automation type coercion 2022-02-15 13:03:24 +00:00
Peter Clement e6e40f1225 Improve test automation modal and handling of data 2021-09-15 00:46:50 +01:00
Peter Clement e00e9f970f Update flow chart styling and event handling 2021-09-15 00:45:07 +01:00
Keviin Åberg Kultalahti de4f77fcb5 adds routing to the automation tab 2021-03-15 15:00:34 +01:00
Andrew Kingston e42543941b Add slight margin to perfectly align empty state text 2020-10-28 17:09:10 +00:00
Andrew Kingston ced34d9672 Format with prettier 2020-10-27 15:28:13 +00:00
Andrew Kingston 309cc56674 Fix automation component paths 2020-10-26 12:25:26 +00:00
Andrew Kingston 0553da5a03 Update styles across entire automations page 2020-10-26 12:18:34 +00:00
Andrew Kingston c7cb8e4c68 Add empty state text to automate page and consistently style empty states 2020-09-30 15:06:47 +01:00
Andrew Kingston e3fdd1ee46 Improve responsiveness, handle scrolling and tidy up CSS in automations page 2020-09-23 12:24:57 +01:00
mike12345567 88d22baf1a Renaming workflows -> automate/automations, throughout the API and the builder itself. 2020-09-21 13:49:34 +01:00