Commit Graph

741 Commits

Author SHA1 Message Date
Andrew Kingston d2cdee13ae Update automation code editors to work with new components 2024-02-29 20:18:20 +00:00
Andrew Kingston 87e8b89075 Merge branch 'master' of github.com:Budibase/budibase into cheeks-lab-day-binding-eval 2024-02-29 19:12:52 +00:00
Andrew Kingston 3d96292f26 Clean up usages of drawers everywhere 2024-02-27 14:15:03 +00:00
Andrew Kingston 010a55ea20 Improve titles in more places in automations 2024-02-27 13:37:16 +00:00
Andrew Kingston 0217bac267 Add multiple style improvements to drawers 2024-02-22 15:05:21 +00: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
Joe f417c2d8a4
Joe's lab day minor updates (#12944)
* Change default button type to CTA

- change default button type to CTA
- change ordering of types/variants

* Fix layout shift within portal

Within the portal, when navigating from screen to screen, there's a slight layout shift caused by the scrollbar. This is a small fix.

* row/column icons change

The current row/column icons for positioning components are confusing. I believe these icons are easier to understand.

* Fix for horizontal scrollbar showing

When adding/removing actions within automations, the horizontal scrollbar flashes. Fix.

* Title change for Upload data

Upload data is not wrong, but it's best to be explicit.

* Increase size of upgrade button

* small fix for the styling inconsistency

* Dianostics padding fix

* lint fix

* update account-portal

* update icons

---------

Co-authored-by: melohagan <101575380+melohagan@users.noreply.github.com>
Co-authored-by: Mel O'Hagan <mel@budibase.com>
2024-02-21 13:28:35 +00:00
melohagan 649dafba47
n8n automation action integration (#12992)
* Add n8n automation action

* Add authorization header support

* add unit tests

* Replace test.com with example.com

* Add HttpMethod enum to types

* fix unit test

* Add required field label asterisk
2024-02-15 13:05:03 +00:00
Dean ed30788fac Merge remote-tracking branch 'origin/master' into feature/monolith-js-refactor 2024-02-14 10:14:58 +00:00
Peter Clement 2660149fea move constant to shared-core 2024-02-13 15:14:03 +00:00
Peter Clement 46903e36ef fix lint 2024-02-12 16:12:52 +00:00
Peter Clement 547b1ded61 handle @reboot 2024-02-12 15:31:19 +00:00
Peter Clement 8e734b2d72 frontend valiation for crons and fix preset null issue 2024-02-12 15:25:00 +00:00
Dean a5dfbe3c89 Merge remote-tracking branch 'origin/master' into feature/monolith-js-refactor 2024-02-07 14:45:06 +00:00
Andrew Kingston 1efd5725c7 Add some new resolution aliases and simplify long nasty relative import paths 2024-02-05 12:08:45 +00:00
mike12345567 80f22fe63b PR comments. 2024-02-02 17:16:45 +00:00
mike12345567 471d2f4ae8 Remove padding from binding picker to clean up design. 2024-02-02 16:36:12 +00:00
mike12345567 137ff31289 Removing unused. 2024-02-02 15:34:56 +00:00
mike12345567 cadce52e1b Changing how optional decoding works. 2024-02-02 11:28:54 +00:00
mike12345567 32e750afd6 A small ux improvement to the automation scripting system. 2024-02-01 17:37:46 +00:00
Andrew Kingston 233df4c27c Remove legacy nested builder directory and move screen templates and utils into better locations 2024-02-01 09:55:30 +00:00
Peter Clement 9c47671032 fix issue with automation setting sync 2024-01-30 15:39:12 +00:00
Dean 1bd08b6879 Merge remote-tracking branch 'origin/master' into feature/monolith-js-refactor 2024-01-30 11:49:32 +00:00
Peter Clement 84b2a36fda fix case where trigger fields could be undefined 2024-01-26 12:10:46 +00:00
Peter Clement 3f9d1402f3 fix operand issue 2024-01-23 09:21:04 +00:00
Peter Clement 3ab791710c fix issue where readable binding wasn't working correctly with named steps 2024-01-22 09:40:56 +00:00
Peter Clement 714ac7a5a0 remove log 2024-01-19 11:09:40 +00:00
Peter Clement 7c19d18460 small automation fixes 2024-01-19 11:07:58 +00:00
Dean 3d10369518 Import fixes 2024-01-18 10:57:23 +00:00
Dean 4945a6ee99 Merge remote-tracking branch 'origin/master' into feature/monolith-js-refactor 2024-01-18 10:40:21 +00:00
Dean 1779a5ee19 Lint 2024-01-17 17:40:09 +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 c36f7c61c0 Merge remote-tracking branch 'origin/master' into feat/automation-ux 2024-01-17 09:58:59 +00:00
Peter Clement 250c54e0c3 Merge remote-tracking branch 'origin/master' into feat/trigger-binding-suggesti 2024-01-17 09:43:08 +00:00
Peter Clement 785b93e472 missed naming 2024-01-15 10:39:40 +00:00
Peter Clement 394a8c4d94 more naming updates 2024-01-15 10:11:16 +00:00
Peter Clement cc87213071 no results case 2024-01-11 14:26:25 +00:00
Peter Clement 30cbcff1b1 fix height and add null state 2024-01-11 11:57:23 +00:00
Peter Clement c01abe4c6f null check 2024-01-11 11:20:37 +00:00
Peter Clement bf12e5bc1e revert to empty array on fields object being empty 2024-01-11 11:01:23 +00:00
Peter Clement bbdd3f017f Merge remote-tracking branch 'origin/master' into feat/automation-features 2024-01-11 10:56:45 +00:00
Peter Clement c5f5932c2a Merge remote-tracking branch 'origin/master' into feat/trigger-binding-suggesti 2024-01-11 10:22:36 +00:00
Peter Clement c3f77f3b42 linting 2024-01-11 09:47:04 +00:00
Peter Clement 78ef231e03 fix issue with being able to select any automation to trigger 2024-01-10 16:34:52 +00:00
Peter Clement ce81df4d1e recommit json display work 2024-01-09 15:05:24 +00:00
Peter Clement 93c5b3721b some tweaks to fix bindings for row created / updated events 2024-01-09 11:02:51 +00:00
melohagan 59ca41d837
Support number array binding filtering in automations (#12708)
* Support number array binding filtering in automations

* Remove ts-ignore

* Fix action trigger array test input

* Unit tests

* Refactor

* lint
2024-01-09 10:25:36 +00:00
Conor Webb e53d68da43
Updated lock tags to correct plan type (#12738) 2024-01-09 10:06:17 +00:00
Peter Clement 186fd84484 remove log 2024-01-08 09:31:41 +00:00
Peter Clement e99a7672a7 test and pr comments 2024-01-05 16:12:31 +00:00
Peter Clement a6c09e25e6 recommit work for trigger binding suggestions 2024-01-04 14:30:18 +00:00
Peter Clement 1437ce2e66 some small ux updates 2024-01-03 15:28:07 +00:00
Peter Clement 6507b6ec54 remove logging 2024-01-03 12:01:13 +00:00
Peter Clement 734ad2c1ae further work for triggering automations from other automations 2024-01-03 11:59:15 +00:00
Peter Clement 49676f2cae recomitting trigger another automation work 2023-12-30 18:51:08 +00:00
melohagan 3697ff3efc
Support Barcode, BigInt and User column types in automations (#12610)
* Support barcode and bigint in automations

* Support users in LinkedRowSelector

* Fix clear relationships if empty

* Make sure clearRelationships is initialised to false

* Revert yarn lock

* Refactor

* Refactor
2023-12-19 10:26:28 +00:00
Peter Clement 442d0853d3 fix plus icon colour and hover 2023-12-05 14:37:49 +00:00
Peter Clement 96e9f46d7c pr comments 2023-12-04 14:21:35 +00:00
Peter Clement 0ddbe4483f Merge remote-tracking branch 'origin/master' into fix/pc-bug-fixes 2023-12-04 14:21:20 +00:00
Peter Clement 3192a594c7 Allow querying of users table from automation 2023-11-30 08:58:01 +00:00
Andrew Kingston b2d865458d
Merge branch 'master' into fix-modal-relationship-picker 2023-11-28 09:45:15 +00:00
Peter Clement 45ab9a54be lint 2023-11-27 10:40:20 +00:00
Peter Clement c6c0ca33d0 hover state of add icon 2023-11-27 10:20:10 +00:00
Peter Clement 4baab262d5 Merge remote-tracking branch 'origin/master' into fix/pc-bug-fixes 2023-11-27 10:16:10 +00:00
Peter Clement 77ab89e95e type 2023-11-24 12:21:48 +00:00
Peter Clement 82438ab75f adjusting automatiom side panel 2023-11-24 12:18:43 +00:00
Peter Clement 17d02af668 update run test modal 2023-11-24 11:11:59 +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
Adria Navarro db2c20e3ae eslint import/newline-after-import 2023-11-20 21:52:29 +01:00
Adria Navarro 92f411bf77 Prettier 2023-11-20 21:48:49 +01:00
Adria Navarro 4d27ff1dc0 eslint import/no-duplicates 2023-11-20 21:48:49 +01:00
Michael Drury ff8773c275
Merge branch 'master' into fix-modal-relationship-picker 2023-11-08 18:50:51 +00:00
Andrew Kingston bcf431a476 Fix a few svelte bugs with the LinkedRowSelector component to fix adding/editing relationships via a model from the data UI 2023-11-08 14:43:28 +00:00
Peter Clement f7fabf152d css fixes 2023-11-08 13:55:34 +00:00
Peter Clement b167fd08e1 Fix issues with automation layout styling 2023-11-08 13:27:25 +00:00
Peter Clement d86e943765 Automation history issue fix 2023-11-08 10:27:15 +00:00
Dean 42a6f054b7 Merged imports 2023-11-06 12:01:10 +00:00
Dean da311239bc Import fix 2023-11-06 11:50:25 +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 f1802eb41c update modal sizing for automation test data 2023-11-03 10:04:51 +00:00
Peter Clement ee9ea375f9 use constants 2023-11-02 09:18:45 +00:00
Peter Clement a9db61fdc2 remove users list option 2023-10-31 16:34:01 +00:00
Peter Clement 7cba4d3fb2 formatting found in testing 2023-10-31 16:29:43 +00:00
Peter Clement b65b601918 remove label 2023-10-31 13:52:28 +00:00
Peter Clement 81ca48a331 tidy up and issues found in testing 2023-10-31 13:05:04 +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 38fe8375ce fix bindings references being updated 2023-10-27 13:47:34 +01:00
Peter Clement b1dabe7dc5 missing binding 2023-10-27 11:22:34 +01:00
Peter Clement 8a7a2abd61 styling / pr comments 2023-10-27 10:45:58 +01:00
Peter Clement 89a242f354 fix issue with readable bindings not displayinng correctly 2023-10-27 09:13:27 +01:00
Peter Clement d864eaa9ea pr comments 2023-10-26 16:05:15 +01:00
Peter Clement 73a7b8eb50 fix formatting of selectors 2023-10-26 11:27:34 +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 edb511cbce update field styling and ux for individual blocks 2023-10-25 13:27:01 +01:00
Peter Clement 7910205807 update styling of flow items 2023-10-25 13:26:56 +01:00
Peter Clement aad6ab4fb4 update bindings to use names 2023-10-25 13:26:48 +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
melohagan b291633c79 Don't use DrawerBindableSlot in test modal (#11959) 2023-10-03 10:19:19 +01:00
melohagan 7003475caf Refactor FieldSelector to not use BindableSlot (#11942) 2023-10-02 11:42:04 +01:00
melohagan b4e0d98973 Add bindings support to meeting start / end dates (#11759)
* Deprecate zapier+make values1..5

* Allow dates in meeting invite to be bindable

* Add DrawerBindableSlot component

* Show calendar icon

* refactor

* Use cancel icon

* Disable cancel for JS bindings

* WIP

* WIP

* WIP

* Fix linkedIds svelte binding

* Label and icon update

* Handle arrays

* Support text area

* Add reactivity to text area icon

* Support boolean

* JSON support

* Remove rowControl

* Allow boolean field to have three states

* lint

* Refactor

---------

Co-authored-by: Michael Drury <me@michaeldrury.co.uk>
2023-09-29 09:15:36 +00:00
melohagan f3309a742c Add onChange to linked rows, longform text area, and multi select arrays in automations (#11874)
* Add onChange to LinkedRowSelector

* Add onChange to Multiselect array

* Add onChange to TextArea

* lint
2023-09-25 11:50:01 +01:00
Adria Navarro 5b7756936d Change api interfaces 2023-09-01 11:33:59 +02:00
Andrew Kingston 1dcc0b3d38 Updated leftover broken reference to function 2023-08-25 09:24:16 +01:00
Andrew Kingston fd71ad57da Add better support for generic DS+ into databindings and update save row to work with view V2s 2023-08-24 16:12:12 +01:00
melohagan 3097c9162f Fix for app action fields and don't clone testData (#11441) 2023-08-04 16:25:14 +01:00
andz-bb c372bb9a18 remove redundant cloneDeep 2023-08-02 09:35:42 +01:00
Andrew Thompson 5f084699d2 didn't mean to remove a line 2023-08-01 17:09:52 +01:00
andz-bb 527426ddbb fix for saving external data connector query param values 2023-08-01 16:29:04 +01:00
Martin McKeaveney 979883257e backmerge master 2023-07-19 17:11:15 +01:00
Dean 2aa68612b6 Linting 2023-07-10 09:49:00 +01:00
Dean db501fb10a Enabled collaboration behaviour in the automation section 2023-07-10 09:30:15 +01:00
Gerard Burns 808e0d1ef2 Linting improvements (#11119) 2023-07-05 18:00:50 +01:00
Michael Drury b94dab2fab Merge pull request #10640 from GitStartHQ/BUDIOSS-22
[BUDI-7013] Do not allow Webhook automations to be duplicated
2023-06-29 11:15:16 +01:00
Peter Clement 0114710332 Merge pull request #10992 from Budibase/fix/disable-looping-button
Fix duplicate loop block issue
2023-06-28 12:58:51 +01:00
Peter Clement 77f5567d3a fix duplicate loop block issue 2023-06-22 11:41:23 +01:00
Dean f04f42546a Merge remote-tracking branch 'origin/develop' into feature/app-settings-section 2023-06-20 12:33:48 +01:00
mike12345567 e0c21864b8 Merge branch 'develop' of github.com:Budibase/budibase into fix/add-automation-step 2023-06-19 18:53:36 +01:00
Peter Clement 832ee22c0a fix issue with adding automation step 2023-06-19 11:43:00 +01:00
Dean 2304032423 Added embed state, behaviours and event tracking to client app. UI/UX Refactoring 2023-06-16 12:30:08 +01:00
Jonny McCullagh 757ca6a166 Merge master develop (#10897)
* Binding drawer fixes

* Added missing headless flag for the bindable combobox

* Fix for QueryEditor width

* Fix svelte transitions in grid new row component breaking routify

* Bump version to 2.7.7

* fix REST connector failure to save

* Bump version to 2.7.8

* Bump version to 2.7.9

* Unexpected token when export data (#10721)

* Tidy ID string for JSON parse

* Display error for composite keys

* Unit test WIP

* directly assign the mock function on the datasource

* Unit tests for exportRows ID handling

---------

Co-authored-by: Martin McKeaveney <martinmckeaveney@gmail.com>

* Return all rows if oneOf value is falsey (#10638)

* Bump version to 2.7.10

* Make sure divider fields are left-most (#10627)

* Make sure divider fields are left most

* Refactor

* Bump version to 2.7.11

* Temporarily remove the focus store update as it triggers a full redraw of the component settings

* Linting

* Removed commented out code

* Bump version to 2.7.12

* Bump version to 2.7.13

* Do not show Business tag for Email action (#10867)

* Bump version to 2.7.14

* new deploy trigger (#10892)

* point the deploys at the new env

* Bump version to 2.7.15

---------

Co-authored-by: Dean <deanhannigan@gmail.com>
Co-authored-by: Andrew Kingston <andrew@kingston.dev>
Co-authored-by: Budibase Staging Release Bot <>
Co-authored-by: Martin McKeaveney <martinmckeaveney@gmail.com>
Co-authored-by: Martin McKeaveney <martin@budibase.com>
Co-authored-by: melohagan <101575380+melohagan@users.noreply.github.com>
Co-authored-by: Adria Navarro <adria@budibase.com>
2023-06-14 16:18:09 +01:00
melohagan c0578d4cc2 Send meeting invite via automation email smtp (#10787)
* Pass calendar props into sendSmtpEmail

* Add calendar event to message

* Add Checkbox and DatePicker automation field UI

* Add URL prop

* Add url to sendSmtpEmail unit test

* Refactor

* Code review comments

* Make location optional

* Add EmailInvite type

---------

Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
2023-06-08 14:25:35 +01:00
Dean 247896bdf3 Linting 2023-06-02 12:55:16 +01:00
Dean 9f2df319a2 Updated the JS Scripting modal use the new editor 2023-06-02 12:50:22 +01:00
Dean e8c6185add Refactoring and some styling updates 2023-05-29 21:19:44 +01:00
Dean 0730c15b14 Merge remote-tracking branch 'origin/develop' into feature/binding-v2-updates 2023-05-28 22:29:47 +01:00
Peter Clement 5a73b02827 update feature array to be an object 2023-05-26 11:02:47 +01:00
Dean 56bac67d49 Merge commit 2023-05-26 10:11:51 +01:00
Peter Clement d675b25676 unused import 2023-05-24 15:16:04 +01:00
Peter Clement a9bb534cdf set flag in automation orchestrator 2023-05-24 14:41:58 +01:00
Peter Clement 754b30dd5c add features property to automation defintions 2023-05-22 15:46:42 +01:00
Peter Clement d271bbdadb rename syncWebHooks to syncAutomations 2023-05-19 10:07:02 +01:00
gitstart 036e355c9b disable duplicate for webhook triggers automation
Co-authored-by: Moshood Abidemi <olalekanteeblaze@gmail.com>
2023-05-18 14:05:05 +00:00
Peter Clement 67272c28af Improve logic in add action modal for collect step 2023-05-16 16:06:37 +01:00
Peter Clement 16ace6bf27 add plan tag to collect step 2023-05-15 16:40:52 +01:00
Peter Clement 007f5ca8a9 Merge remote-tracking branch 'origin/develop' into feature/sync-automations 2023-05-15 15:19:44 +01:00
Peter Clement 27e78206c4 remove logs and copy changes 2023-05-15 14:49:05 +01:00
Peter Clement c86c2b4096 add synchronous webhook functionality 2023-05-12 15:57:34 +01:00
melohagan 395cf4a667 Add JSON payload support for Make and Zapier (#10529)
* Rename Integromat to Make. Update logo.

* Add JSON type for automations

* Support deprecated values in JSON

* Fix json query editor width bug

* Push body to schema if missing

* Support JSON body

* Add JSON payload support for Zapier

* Update packages/server/src/automations/steps/make.ts

Co-authored-by: Martin McKeaveney <martin@budibase.com>

* July -> November

* Add unit tests

---------

Co-authored-by: Martin McKeaveney <martin@budibase.com>
2023-05-11 17:49:33 +01:00
Peter Clement 1626571081 Merge remote-tracking branch 'origin/develop' into feature/sync-automations 2023-05-11 11:53:12 +01:00
Peter Clement 1539bf234b add ability to trigger synchronous automation from button action 2023-05-09 12:10:20 +01:00
mike12345567 c880282be3 Merge branch 'master' of github.com:Budibase/budibase into develop 2023-05-05 15:44:32 +01:00
melohagan 25b42f0a28 Rename Integromat to Make. Update logo. (#10492) 2023-05-05 12:41:24 +01:00
Gerard Burns 8d6c00644a Improve Automations Error Message 2023-04-27 14:09:52 +01:00
melohagan 476bf65957 Set default enum values (#10377) 2023-04-21 14:37:15 +01:00
mike12345567 22dbb8d379 Updating automation action add modal to split out plugins into their own section. 2023-04-18 16:12:08 +01:00
Michael Drury 1c7c06e983 Bulk of the automation plugin system, supporting custom plugins. 2023-04-10 23:48:54 +01:00
Michael Drury 09a48a1d21 Merge branch 'develop' of github.com:Budibase/budibase into fix/no-iterations-loop 2023-03-31 23:29:21 +01:00
Peter Clement 0a567a3302 add new status to handle no iterations during loop 2023-03-31 12:23:10 +01:00
Rory Powell d6992bbf94 Merge branch 'master' into merge-master-develop 2023-03-29 11:52:09 +01:00
melohagan eeb8e49b54 Re-add clone for App Action (#10052) 2023-03-16 11:36:47 +00:00
Peter Clement 4591bf64ee lint 2023-03-14 14:23:39 +00:00
Peter Clement 352791dd9b remove unneeded cloneDeep 2023-03-14 14:09:10 +00:00
Peter Clement b854e06b33 fix direct mutation of inputdata in rowselector 2023-03-14 13:57:36 +00:00
Peter Clement 6d6a4816a0 lint 2023-03-10 15:01:31 +00:00
Peter Clement bd7c91b1bd Fix automation saving issue 2023-03-10 14:47:26 +00:00
Mateus Badan de Pieri d8ce0713aa Merge branch 'develop' into license-key-mgmt 2023-03-10 12:29:10 +00:00
melohagan a8f873fff3 Try/catch automation Create Row relationship (#9924)
* Try/catch

* Increase height of automation test output

* Unit tests

* lint
2023-03-08 13:39:18 +00:00
Mateus Badan de Pieri 272081a31f move imports to right source 2023-02-27 17:11:53 +00:00
Mateus Badan de Pieri 057abb5351 move component to bbui 2023-02-27 15:04:30 +00: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
Peter Clement 99287b9a5a don't coerce options type to array when switching to bindings 2023-02-06 14:37:50 +00:00
Martin McKeaveney d4a0e44b31 merge 2023-02-05 22:11:37 +00:00
melohagan 919323b500 Fix/automation update deletes relationship (#9468)
* Add padding to text field input

* Apply padding to modal binding input

* Support relationships in automation bindings

* Trim automation field keys

* Trim automation field name

* Empty string check

* Add checkbox for clearing relationships update row

* Added state for automation field metadata

* clearRelationships updateRow check

* Padding tweak
2023-01-31 10:11:56 +00:00
Peter Clement 71352f1ddc add try catch to all environment variable loading 2023-01-30 16:30:51 +00:00
Peter Clement debef20af5 gate env vars in binding drawers behind license 2023-01-26 15:09:20 +00:00
Peter Clement 843649eb54 add envrionment bindings to automations 2023-01-26 14:59:29 +00:00
melohagan 31c7a122f0 Make looping arrow point in right direction (#9053) 2022-12-15 15:13:12 +00:00
Andrew Kingston c3b6afbb6f Fix SQL table `_id` filtering (#9030)
* Re-add support for filtering on _id using external SQL tables and fix filter key prefixes not working with _id field

* Remove like operator from internal tables and only allow basic operators on SQL table _id column

* Update data section filtering to respect new rules

* Update automation section filtering to respect new rules

* Update dynamic filter component to respect new rules
2022-12-15 09:22:28 +00:00
Andrew Kingston 0e9477b982 Fix filter drawer and filtering in general across data, design and automate and update to support keyed fields and 'match any' 2022-12-07 08:57:17 +00:00
Michael Drury 03a2be6740 Merge pull request #8530 from FlaminWrap/Flaminwrap-Enhancement-7138
Automation steps in the automation builder and tester #7138
2022-11-29 11:53:04 +00:00
Martin McKeaveney 41e004b18b bunch of small UX updates around row creation, borders, new buttons 2022-11-06 22:35:33 +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
Mel O'Hagan e11f4932d3 Handle multiple automation loop bindings 2022-10-25 15:19:07 +01:00
Mel O'Hagan ad7c68cbe0 Add padding 2022-10-24 15:02:56 +01:00
Mel O'Hagan 2dd06c1018 Allow automations scroll. Copy datasource class. 2022-10-24 14:56:05 +01:00
Dean 7bfd07ac6c Ensure bindings are not mutated when enriching with custom icons 2022-10-21 15:33:56 +01:00
Dean 557499a4d7 Minor update to fix padding for the json field label 2022-10-17 12:43:23 +01:00
Dean 50eee8d938 Added the json field type to the Automation field block. Also added in the automation icon to identify the automation bindings 2022-10-17 12:08:37 +01:00
Peter Clement f069ddb27e Automation fixes 2022-09-23 13:35:27 +01:00
melohagan 0823bf5d10 Merge pull request #7735 from Budibase/bug/sev2/add-js-to-edc
Allow JavaScript bindings in External Data Connector
2022-09-13 10:24:24 +01:00
Mel O'Hagan 631b08a24e Allow JS bindings in EDC 2022-09-12 11:04:34 +01:00
mike12345567 86c8618e8f Fix for #7431 - reboot didn't work at all previously which is why apps couldn't be published with it enabled, this is now a self host only feature, I've removed the ability to enable a reboot cron in the Cloud and it will not run the lookup/execution. 2022-09-07 17:05:17 +01:00
R2bEEaton 983c161139 resolving requested change 2022-09-01 07:15:25 -04:00
R2bEEaton d611e5dc78 possible fix for yarn lint 2022-09-01 06:36:39 -04:00
R2bEEaton b7dd32e7c1 import _ from 'lodash"
Missed the import for the `_` from Lodash.
2022-09-01 06:29:38 -04:00
R2bEEaton 72ff3cc957 Automation list sort alphabetically by name #7565
This commit addresses issue #7565 (mine). Automations are currently sorted by internal ID and not by name, which makes it slightly harder to find an automation from a user's point of view.
2022-09-01 06:15:34 -04:00
Martin McKeaveney 02c93071ee merge 2022-08-30 10:33:37 +01:00
Mel O'Hagan bfaf1e61e4 Null safety 2022-08-19 14:52:50 +01:00
Andrew Kingston 3caae00d38 Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-keyboard-shortcuts-develop 2022-08-17 14:20:34 +01:00
Mel O'Hagan 418937e8e5 Null safety 2022-08-10 17:09:51 +01: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
mike12345567 07f3897b55 Merge branch 'develop' of github.com:Budibase/budibase into feature/automation-error-stop 2022-07-29 14:31:18 +01:00
Andrew Kingston 4b4b6ae6b0 Fix icon colors being static grey in automation section 2022-07-29 13:33:04 +01:00
Rory Powell 1dc062a3fb Merge branch 'master' into develop 2022-07-27 16:32:36 -04:00
mike12345567 5945a432e7 Fixing an issue with test panel not updating when new test data comes in. 2022-07-27 16:47:19 +01:00
mike12345567 f4db17502a Merge branch 'develop' of github.com:Budibase/budibase into feature/automation-error-stop 2022-07-26 17:28:57 +01:00
mike12345567 d30e27d27d Merge branch 'master' of github.com:Budibase/budibase into develop 2022-07-26 17:25:55 +01:00
NEOLPAR 1b3062dfcf amended code following recommendations in PR comments 2022-07-26 17:22:42 +01:00
NEOLPAR 5bf9ee38a0 fixed automation app:trigger not mapping test modal form 2022-07-26 16:33:27 +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
mike12345567 ff1ae2f8fa Fix for permission spamming in the automation UI. 2022-07-22 18:43:35 +01:00
Dean bdc8d1e675 Fix for left positioning of the KeyValueBuilder drawers 2022-07-20 16:38:42 +01:00
mike12345567 6afdd6dcec Merge branch 'master' of github.com:Budibase/budibase into develop 2022-07-18 14:09:02 +01:00
mike12345567 c525721854 Fix for #6709 - Adding the option to set a role for app action, allowing users to set what level an automation can be accessed from. 2022-07-15 17:13:45 +01:00
mike12345567 d10e5755e7 Removing console log. 2022-07-15 14:33:34 +01:00
mike12345567 c149139253 Fix for #6501 - don't fail to publish app when cron expression is empty in any automation, just don't publish that automation. Also adding an error to automation to make it clear an expression is required. 2022-07-15 14:15:16 +01:00
mike12345567 cda958e0b7 Fix for #6702 - remove users table as an option for automation triggers. 2022-07-15 13:39:47 +01:00
mike12345567 40f8849a63 Merge branch 'master' of github.com:Budibase/budibase into develop 2022-07-14 19:35:31 +01:00
Martin McKeaveney e49a9f640b Merge pull request #6603 from mslourens/duplicate_automation
6512 - duplicate automation
2022-07-13 14:02:42 +01:00
Andrew Kingston 46f3ec8c46 Improve automation test display layout and spacing 2022-07-11 20:16:22 +01:00
Andrew Kingston 79d31702b8 Add hover effect to automation item header expand icon 2022-07-11 20:04:35 +01:00
Andrew Kingston 16116f2877 Merge branch 'develop' of github.com:Budibase/budibase into new-design-ui 2022-07-11 10:33:50 +01:00
Maurits Lourens 10e150df7f 6512 - duplicate automation 2022-07-07 23:39:16 +02: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 063540fe0a Getting notifications working correctly, linking to errors in a better way, generally improving UI, getting some final touches here and there. 2022-06-22 20:23:18 +01:00
Andrew Kingston b5d635c83f Merge branch 'develop' of github.com:Budibase/budibase into new-design-ui 2022-06-15 15:32:33 +01:00
mike12345567 c4ab4b5af8 Merge branch 'develop' of github.com:Budibase/budibase into feature/automation-logs 2022-06-15 15:08:48 +01:00
Rory Powell 6fbb5afeec Remove ui events except for component created and view published app 2022-06-06 12:51:22 +01:00
Rory Powell 33f44f6ee7 Remove todos 2022-06-06 11:11:13 +01:00
mike12345567 34759c7916 Adding real history to the history tab, getting storage to couch and retrieval + api working. 2022-06-01 16:01:06 +01:00
mike12345567 702f4057bd Progress towards using couchdb for automation logs, after testing redis and realising it won't work. 2022-05-31 19:52:35 +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
Rory Powell 857cd2d735 Merge branch 'develop' into feature/posthog-v2 2022-05-28 23:03:31 +01:00
Andrew Kingston 2f324023d9 Merge branch 'develop' of github.com:Budibase/budibase into new-design-ui 2022-05-27 13:32:07 +01:00
mike12345567 33a4c0de69 Merge branch 'develop' of github.com:Budibase/budibase into feature/automation-logs 2022-05-27 12:31:00 +01:00
mike12345567 8bc0142a37 Merge branch 'master' of github.com:Budibase/budibase into develop 2022-05-25 18:12:27 +01:00
Andrew Kingston bff49a33f0 Merge branch 'develop' of github.com:Budibase/budibase into new-design-ui 2022-05-24 09:47:00 +01:00
Peter Clement 32d0df129c Merge pull request #5795 from Budibase/feature/automation-test-sidebar
Add automation test sidebar
2022-05-23 15:07:37 +01:00
Peter Clement 6bf9346975 update Automation button placement and test details button 2022-05-23 14:11:37 +01:00
Rory Powell 70fff5c7b9 Merge branch 'develop' into feature/posthog-v2 2022-05-23 09:04:00 +01:00
Peter Clement fd5711bcd3 fix animation of test panel 2022-05-20 14:20:53 +01:00
Peter Clement 8364c95ccb ensure binding / value selection in automation persists 2022-05-19 15:58:56 +01:00
Andrew Kingston 08a98b4b95 Merge branch 'develop' of github.com:Budibase/budibase into new-design-ui 2022-05-17 12:59:15 +01:00
Rory Powell 0d9147be77 Merge branch 'master' into merge-master 2022-05-17 08:35:29 +01:00
Martin McKeaveney d41de1ca6a webhook URL paste, hiding no access role 2022-05-12 19:46:13 +01:00
mike12345567 f86f6c3b1c Shifting the title of the flow item header into separate component so that it can be used by the run history flow as well. 2022-05-12 18:14:38 +01:00
Mel O'Hagan ef2244fd20 Add limit placeholder for Automation queries 2022-05-11 11:25:53 +01:00
Peter Clement 0cb87c601e null checking selected automation 2022-05-10 15:15:34 +01:00
Peter Clement d78f170d68 fix issue with blocks not being toggled 2022-05-10 10:51:48 +01:00
Peter Clement 92ac1bb6d1 fix spacing on block arrows 2022-05-09 17:02:24 +01:00