1
0
Fork 0
mirror of synced 2024-09-11 06:56:23 +12:00
budibase/packages/server
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
..
.vscode
__mocks__ Merge branch 'develop' into feature/dependencies-image 2023-01-30 18:54:05 +00:00
build
scripts Use --runInBand in CI only (#9771) 2023-02-22 13:04:16 +00:00
specs Run CI steps in parallel (#9760) 2023-02-21 17:13:24 +00:00
src Undo/Redo for Design and Automate sections + automations refactor (#9714) 2023-02-23 13:55:18 +00:00
.dockerignore
.gitignore
.npmignore
.yarnrc
babel.config.js
docker_run.sh
Dockerfile Updated default feature flags to include onboarding by default. Added tenant overrides to allow exclusion from global features 2023-02-01 14:12:43 +00:00
jest-testcontainers-config.js Spin up postgres only on the postgres test 2023-02-06 19:43:08 +00:00
jest.config.ts Run CI steps in parallel (#9760) 2023-02-21 17:13:24 +00:00
LICENSE
nodemon.json
package.json Update pro version to 2.3.18-alpha.7 2023-02-23 12:17:13 +00:00
pm2.config.js
tsconfig.build.json Fix server docker build (#9718) 2023-02-16 16:44:50 +00:00
tsconfig.json Use swc option with ts-node (#9447) 2023-01-27 09:33:04 +00:00
yarn.lock Update pro version to 2.3.18-alpha.7 2023-02-23 12:17:13 +00:00