Commit Graph

32 Commits

Author SHA1 Message Date
Peter Clement 335240718c tidy up 2024-09-23 15:02:37 +01:00
Peter Clement 189caa6235 fix issue where you could have multiple steps with the same name 2024-09-23 14:59:41 +01:00
Peter Clement 7fd55fe27d
Automation trigger filtering (#14123)
* backend for triggering automation based on filters

* frontend for handling triggering automations on filter / old row

* lint and bug fix

* fix issue with test header

* make test data optional

* improve safety on trigger gate

* add support for running trigger with filter if no change happened but filter matches

* update var naming to actually make sense

* tests

* fix lint

* improve gating for shouldTrigger check

* remove unecessary cast

* unecessary tableId check

* frontend text updates

* resolving comments

* pro

* Update packages/types/src/documents/app/automation.ts

Co-authored-by: Sam Rose <hello@samwho.dev>

* link out to docs for trigger filtering

* fix pro

* more pr comments

* use getAppId

---------

Co-authored-by: Sam Rose <hello@samwho.dev>
2024-07-18 10:38:15 +01:00
Gerard Burns de0414afbe
Update Svelte Major Version to 4 (#13036)
* update svelte versions

* temporarilly disable svelte warnings

* change bbap version pointed to

* remove sub module specifying svelte version

* point at updated account-portal

* add type declaration for svelte in the server

* add svelte transformer for server jest tests

* remove svelte from bbui package.json

* get builder tests working

* linting fixes

* prettier fixes

* fix server test

* fix another server test

* fix server serverlog test

* account-portal-version

* pin master version of pro

* revert hbs doc file in server to use triple braces, ensures nothing gets escaped
2024-02-22 13:19:29 +00:00
Dean 30db237071 Merge remote-tracking branch 'origin/master' into feature/monolith-js-refactor 2024-01-17 17:17:01 +00:00
Peter Clement b1d4a572e7 small ui fixes 2023-11-24 11:11:30 +00:00
Peter Clement 7ed273e158 expand block when header is clicked 2023-11-21 10:04:49 +00:00
Peter Clement d86e943765 Automation history issue fix 2023-11-08 10:27:15 +00:00
Dean 03f90500e5 Merge remote-tracking branch 'origin/master' into feature/monolith-js-refactor 2023-11-06 11:29:10 +00:00
Dean c96fefdba7 Consolidated all stores into stores/builder. Store refactoring and added store console debug flag 2023-11-06 11:22:00 +00:00
Peter Clement 7b7b2a12ea fix issue with stepNames being undefined 2023-11-06 10:06:32 +00:00
Peter Clement 635008e173 unique name enforcement for automations 2023-11-03 11:05:05 +00:00
Peter Clement b963bd03e4 fixing undefined name and border issues 2023-10-30 12:55:24 +00:00
Dean 79da5956b8 Patch from original environment 2023-10-30 12:46:44 +00:00
Peter Clement 8a7a2abd61 styling / pr comments 2023-10-27 10:45:58 +01:00
Peter Clement d864eaa9ea pr comments 2023-10-26 16:05:15 +01:00
Peter Clement 8203139c69 fix bug in adding trigger 2023-10-26 11:27:20 +01:00
Peter Clement 3eba7990f9 fix bug with smtp name containing parentheses 2023-10-26 10:23:51 +01:00
Peter Clement 9bc94aa703 remove autocomplete 2023-10-25 14:09:59 +01:00
Peter Clement a209280daa naming automations 2023-10-25 13:26:42 +01:00
Peter Clement 5f2b4f3ef9 initial styling and input updates for naming 2023-10-25 13:26:33 +01:00
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
FlaminWrap fe135fc6d7 Afterthought
Remembered that idx === 0 is the same as isTrigger
2022-11-05 00:20:38 +00:00
FlaminWrap 41a9bf8e82 Commit for enhancement #7138
*Added automation steps
*Added steps for testing panel
*Changed a testing panel error message as it didn't seem accurate
2022-11-05 00:05:15 +00:00
Andrew Kingston 98864c9614 Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-keyboard-shortcuts-develop 2022-08-01 19:08:30 +01:00
Andrew Kingston 4b4b6ae6b0 Fix icon colors being static grey in automation section 2022-07-29 13:33:04 +01:00
mike12345567 61f24fe03f Adding UI for displaying when the CRON job has been stopped and alert the user to next steps. 2022-07-26 13:59:22 +01:00
Andrew Kingston 79d31702b8 Add hover effect to automation item header expand icon 2022-07-11 20:04:35 +01:00
mike12345567 5383b8b224 Fix for builder loading flow item header. 2022-06-29 13:34:36 +01:00
mike12345567 74261661f1 Updating filter/condition action to show a stopped status rather than error, updating everything else to be aware of this. 2022-06-28 17:02:24 +01:00
mike12345567 b5b1ae38e2 Using the test panel in the automation history tab, same experience as that of the automation flow. 2022-05-31 13:30:18 +01:00
Peter Clement 6bf9346975 update Automation button placement and test details button 2022-05-23 14:11:37 +01:00