1
0
Fork 0
mirror of synced 2024-08-15 18:11:40 +12:00
budibase/packages/server/src
Andrew Kingston 8cd7ba1fdf 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
..
api Undo/Redo for Design and Automate sections + automations refactor (#9714) 2023-02-23 13:55:18 +00:00
automations Merge branch 'master' of github.com:Budibase/budibase into develop 2023-02-21 16:53:28 +00:00
constants Fix old tests 2023-01-20 10:12:52 +00:00
db Merge remote-tracking branch 'origin/develop' into test/9339-sqlpostgres-row-api-test-suite 2023-02-06 09:12:13 +00:00
definitions Update to cover the authentication for REST, replacing it with secret value and converting to password field, as well as minor update to env dropdown to only be a password field when not containing an environment variable - #9480. 2023-01-30 18:50:35 +00:00
events Replace ts-jest with swc/jest (#9289) 2023-01-11 09:37:37 +00:00
integration-test Add explicit check for the foreign field 2023-02-21 09:51:07 +00:00
integrations Prevent SSO users from setting / resetting a password (#9672) 2023-02-21 08:23:53 +00:00
middleware Update builder and authorized middleware to be more strict towards unauthenticated (#9774) 2023-02-22 13:39:31 +00:00
migrations Updating test case which has been occasionally throwing 409 issues. 2023-02-10 18:29:29 +00:00
sdk Merge branch 'master' of github.com:Budibase/budibase into develop 2023-02-10 17:42:56 +00:00
tests Merge branch 'develop' into rory/february 2023-02-20 09:57:17 +00:00
threads Minor fix for automations, the wrong function had the environment variables being added to environment, this is very minor, it simply makes sure that environment variables are in context for the whole of the automation runner - e.g. if utilising many datasources each of them doesn't need to re-retrieve the environment variables, instead they will be available based on the env vars retrieved at the start of the execution. 2023-02-10 14:14:43 +00:00
utilities Run CI steps in parallel (#9760) 2023-02-21 17:13:24 +00:00
app.ts add datadog apm (#9693) 2023-02-15 16:28:20 +00:00
ddApm.ts add datadog apm (#9693) 2023-02-15 16:28:20 +00:00
elasticApm.ts add datadog apm (#9693) 2023-02-15 16:28:20 +00:00
environment.ts Merge master into develop 2023-02-15 15:10:02 +00:00
index.ts Replacing some require statements with imports. 2023-01-11 19:07:01 +00:00
startup.ts Replace ts-jest with swc/jest (#9289) 2023-01-11 09:37:37 +00:00
watch.ts Replace ts-jest with swc/jest (#9289) 2023-01-11 09:37:37 +00:00
websocket.ts Merge develop 2022-09-28 08:56:45 +01:00