Commit Graph

741 Commits

Author SHA1 Message Date
Peter Clement 7d4aa25244 fix issue with loop bindings showing for non loop steps 2024-09-20 11:53:48 +01:00
Dean fa1a2b42da Merge remote-tracking branch 'origin/v3-ui' into feature/automation-branching-ux 2024-09-19 17:24:59 +01:00
Dean 8837cb932f Merge commit 2024-09-19 17:21:45 +01:00
Dean d792adbaba Merge remote-tracking branch 'origin/v3-ui' into feature/builder-filtering-update 2024-09-17 12:42:59 +01:00
Dean 77b282ab77 Merge remote-tracking branch 'origin/master' into v3-ui 2024-09-17 09:41:17 +01:00
Peter Clement 70b9d08516 lint 2024-09-13 16:10:38 +01:00
Peter Clement 59549b74b5 js scripting edge case 2024-09-13 16:04:13 +01:00
Peter Clement 04daa423cf small fix for edge case 2024-09-13 16:03:37 +01:00
Peter Clement 7d6cce20e9 fix getAvailableBindings again, aka my personal hell 2024-09-12 21:02:50 +01:00
Dean ae8bd22253 Merge remote-tracking branch 'origin/v3-ui' into feature/builder-filtering-update 2024-09-11 12:46:47 +01:00
Peter Clement bf98d61ea6 add tests for new binding update code 2024-09-11 11:35:46 +01:00
Peter Clement abaa40a272 automation steps using names 2024-09-10 17:09:42 +01:00
Dean 11b146fcbf Updates to filter UI and API requests across budibase 2024-09-09 16:36:31 +01:00
Andrew Kingston db9822fa64
Lint 2024-09-04 09:51:26 +01:00
Andrew Kingston 872446e524
Replace other usages of manual row actions API calls with store usage 2024-09-03 19:47:12 +01:00
Andrew Kingston 789df301cb
Enable renaming row actions and improve row actions in grids 2024-09-03 15:05:13 +01:00
Andrew Kingston d8b6d10dce
Merge branch 'master' of github.com:Budibase/budibase into new-data-ui 2024-09-02 10:17:56 +01:00
Dean 3c2cb3dda1 Simplify the approach to leave change behaviour as it is and leave persistence to the close behaviour 2024-08-23 12:24:22 +01:00
Dean b9c685b83b Changed the CodeEditorModal to trigger a change when closing. This will accommodate any state updates to the editor 2024-08-23 10:15:46 +01:00
Dean f44d09b344 Switched the CodeEditor update event from change to blur. 2024-08-23 09:27:46 +01:00
Andrew Kingston 1adddba3c3
Prevent disabling row actions 2024-08-22 18:40:29 +01:00
Andrew Kingston cc20e7dd52
Fix icon colours in automation list 2024-08-22 17:09:37 +01:00
Andrew Kingston 2a67c0e09e
Allow deleting row actions from automations 2024-08-22 16:58:12 +01:00
Andrew Kingston c7a4fddd11
Update automation grouping to group by datasource first 2024-08-22 16:44:57 +01:00
Andrew Kingston c810f023de
Improve styles of automation group headers 2024-08-22 14:43:39 +01:00
Dean 3d6acb5efd Removed erroneous param 2024-08-13 12:09:01 +01:00
Dean 8a31cc2ff7 Bug fixes for bindings panel and code editor 2024-08-13 11:07:00 +01:00
Dean 849f5f21f9 Fix for environment bindings race condition. 2024-08-09 12:44:10 +01:00
Dean 853e891664 Fixes for Single select and Single user pickers. Now displaying binding status correctly 2024-08-06 11:58:12 +01:00
mike12345567 8f7a88ce86 Moving logic to frontend - definitions are returned unless they are deprecated, frontend decides which it can use to create. 2024-07-30 16:04:33 +01:00
Michael Drury 2486497a6c
Merge branch 'master' into fix/hide-row-actions 2024-07-30 15:20:21 +01:00
mike12345567 76652ddab5 Fixes some issues with row actions which were allowing them to be added from the automation section (which is not allowed) as well as breaking app access once they were added - this hides them properly so they can't be added as well as fixing the issue when they exist. 2024-07-30 15:07:34 +01:00
Dean 5269258532 Ensure the builder is functional if an app automation does not contain a trigger 2024-07-30 11:37:47 +01:00
Adria Navarro aafe7a2831
Merge branch 'master' into feat/row-actions 2024-07-25 11:13:18 +02:00
Peter Clement 5ab81543e3
Fix issue with trigger filters not saving (#14231)
* Fix issue with trigger filters not saving

* use enum instead of nasty string

---------

Co-authored-by: Michael Drury <me@michaeldrury.co.uk>
2024-07-25 09:30:38 +01:00
Adria Navarro af0b69e8b6 Reuse 2024-07-23 12:09:53 +02:00
Adria Navarro d601400871 Don't allow edit or delete actions for row actions 2024-07-23 10:21:09 +02:00
Adria Navarro 9428172482 Prevent duplicate 2024-07-23 10:16:02 +02:00
Adria Navarro d01bd54fd1 Use name (not display name) on saving 2024-07-23 10:15:25 +02:00
Adria Navarro 3bb3376a82 Format on frontend 2024-07-22 14:31:59 +02:00
Adria Navarro b7a969280f Display data 2024-07-22 14:31:42 +02:00
Adria Navarro 1b2182a690 Run without required 2024-07-22 14:30:38 +02:00
Adria Navarro e0d3855945 Display row action trigger info 2024-07-22 14:30:38 +02:00
Adria Navarro b75c8b32e3 Field readonly 2024-07-22 14:23:17 +02:00
Gerard Burns f1a56b3831
Fix Automations Breaking When Their Datasource is Deleted (#14195) 2024-07-22 08:56:04 +00:00
Gerard Burns 7548b48f9e
Allow Opening Certain Context Menus With Right Click (#14169)
* Allow Opening NavItem Context Menus With Right Click

* dean pr feedback

* PR Feedback 1

* Fix pasting into a component issue

* Remove animation

* Move ContextMenu Into Routify Router Scope
2024-07-22 09:27:44 +01:00
Adria Navarro bb4fd4c14c Fix possible undefined reference 2024-07-18 17:19:34 +02:00
Adria Navarro 19d614b329 Remove save button on add action step 2024-07-18 17:17:27 +02: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
Dean 8e0f422ffe PR feedback 2024-07-11 09:34:11 +01:00
deanhannigan de76c61db2
Merge branch 'master' into feature/automation-grouping 2024-07-11 09:06:32 +01:00
Dean c12a8f03e9 Removed placeholder from row data picker, fix for stuck row selector in testmodal and old field test config fixes 2024-07-05 15:33:08 +01:00
deanhannigan f44c401686
Merge branch 'master' into feature/automation-grouping 2024-07-05 11:43:10 +01:00
Dean 6ecaaba146 PR feedback. Fix for the popover menu not sticking to the add fields button 2024-07-03 16:56:37 +01:00
Dean 8f3f03ef7d PR feedback changes 2024-07-03 16:33:01 +01:00
Dean b36311fc2c Added fix for Update step table select. The fix for the oldRow behaviour broke the picker 2024-07-03 10:25:46 +01:00
Dean 3c83940728 Added back in the oldRow functionality to updateRow 2024-07-03 09:04:18 +01:00
Dean 3990387c1d Lint and minor change to trigger name configuration 2024-07-02 11:59:11 +01:00
Dean b6f8649c05 Removed debugging line 2024-07-02 11:36:23 +01:00
Dean 199d597786 Added basic grouping to automations side panel 2024-07-02 11:05:35 +01:00
Dean 52893e4004 Move file type handling to a separate function and remove nested ternary 2024-07-01 21:25:56 +01:00
Dean aae357f50d Refactor RowSelector initialisation into a function 2024-07-01 16:48:25 +01:00
Dean 7582e656ba Use correct width flag for button width 2024-07-01 15:23:02 +01:00
Dean 91df945250 Sort fields by name in the picker 2024-07-01 15:07:30 +01:00
Dean 1e4563f1e0 Added the selected class back in as it was required for the ticks 2024-07-01 14:54:50 +01:00
Dean 1b2414e2c0 Remove disabled state from field picker 2024-07-01 14:42:29 +01:00
Dean c2b54f118f Review fixes. Populated Row fields clearing, test data parsing to ensure tableId is present and correct. Also added some initial JSON test data parsing. 2024-07-01 12:59:43 +01:00
Dean 37bfde9c93 Ensure removing a field from the update flow clears any row value. If not cleared, the field will remain in place. 2024-06-28 16:23:00 +01:00
Dean fdbf1b3469 Added back in binding icon positioning override for JSON field 2024-06-28 09:48:33 +01:00
Dean 16061765ee PR Feeback. Remove X icons in form. 2024-06-28 09:12:45 +01:00
Dean 82f50b565d Merge remote-tracking branch 'origin/master' into feature/automation-row-ux-update 2024-06-28 09:03:02 +01:00
Dean 933e17e945 Add min height for JSON picker in row steps. Fix for JSON onchange 2024-06-27 12:49:11 +01:00
Dean 21c335caab Lint and tidying up 2024-06-26 14:29:42 +01:00
Dean ed0f60d5d7 Added an app trigger update parser that will clean the testdata for the automation on save. Old values were not cleaned out. Added some padding to the PropField labels. General fixes 2024-06-26 11:10:15 +01:00
Dean 5ff8b03378 Merge remote-tracking branch 'origin/master' into feature/automation-row-ux-update 2024-06-25 12:05:31 +01:00
Dean e9985adcd4 Updates and refactoring of Automation flows 2024-06-25 11:52:11 +01:00
Andrew Kingston 62da97814a
Fix relationship filtering in automations 2024-06-24 16:44:28 +01:00
Dean d50a8e0746 Merge remote-tracking branch 'origin/master' into feature/automation-row-ux-update 2024-06-20 10:43:33 +01:00
Peter Clement 2b96cbcad7
Expose old row binding in automations (#13931)
* expose old row through the emitter

* accidentally added oldRow to step

* fix row fetch in external datasources

* add test for new / old row comparison

* add testing for old row update event

* allow function overloading in test files

* update tests per comments

* handle event race condition

* update test data modal to account for old row output

* switch icon positioning
2024-06-18 13:45:58 +01:00
Dean 3a10c57651 Merge commit 2024-06-13 16:56:25 +01:00
Sam Rose 6363965a8b
Also rename LuceneUtils -> QueryUtils 2024-06-12 15:04:56 +01:00
Sam Rose bc8791e91e
Remove the word 'lucene' from runLuceneQuery and buildLuceneQuery. 2024-06-12 14:44:20 +01:00
Dean 3f35a41046 Fix binding modal z-index and removing double border in automation header 2024-06-11 09:07:55 +01:00
Peter Clement 9a2de11203
Allow users to only specify a binding when adding attachments (#13819)
* add ability for user to toggle bindable input for attachment

* error handling for missing keys

* improve error handling for smtp attachments

* remove log

* add test

* fixing some pr comments

* update test
2024-06-07 08:35:18 +00:00
Dean 789b789c3e Added support for single user column type in automation block 2024-05-21 14:59:27 +01:00
Conor Webb 3c74d29cf6
Added the ability to disable automations (#13667)
* Added disabling functionality for automations

* Removed external trigger automations that are disabled from selectable bindings

* Added new popover option for disabling automations

* Added toggle UI Inside automation screen

* Added subtle styling to automation list for disabled functionality.

* Fixed linting error

* Removed duplicate bbui import

* Fixed store function spacing

* Fixed linting issues.

* Added the requested changes to how disable is handled.

* Fixed linting issues.

* Minor UI tweaks based on feedback.

* Added logic to prevent crons type automations from running when disabled.

* Removing webhook disable, causes trigger url to be re-generated.

* Add unit test to ensure disabled automations are filtered out of the active queue

* Fixed lint issues

* Reverted disabled unit test

* Added error throw for disabled automations

* Add test for when a disabled automation gets triggered

* Added try, catch for trigger function - error handling

* Fixed linting issues
2024-05-20 15:13:08 +01:00
Dean 37dd75823f PR feedback, signature to signature single 2024-05-17 17:04:15 +01:00
Dean 55e7ea55f7 Merge remote-tracking branch 'origin/master' into feature/signature-field-and-component 2024-05-14 14:48:09 +01:00
mike12345567 5b5e7e47a2 Fixing some issues with updating rows with attachments, there were some UI bugs that had been raised (undefined being displayed) and the uploading from a URL was not working as expected, due to the stream not matching the expected format of the S3 SDK - this has been fixed by converting the stream to a true readable stream with . 2024-05-13 18:11:40 +01:00
Dean b0a65b4699 Merge remote-tracking branch 'origin/master' into feature/signature-field-and-component 2024-05-13 16:22:19 +01:00
Dean 0589a6a730 Refactored signature from previous array implementation to the new single approach. Added support for automations 2024-05-13 16:19:02 +01:00
Adria Navarro d83e5e21f2
Merge branch 'master' into feat/budi-8123-single-user 2024-05-09 18:05:16 +02:00
Peter Clement db273bcd36
Support attachment columns in Automations (#13567)
* base work to support attachments in create / update row

* handle single attachment column

* fix tests

* pro

* fix some types

* handle case where file exists in storage

* improve attacment processing

* refactor slightly and ensure correct url is used for existing attachments

* add test

* Fixing a build issue.

* update tests

* some lint

* remove cursed backend-core test util

* addressing pr comments

* refactoring nasty automationUtils upload code

* remove uneeded check

* use basneeame for fallback filename

* add a test to ensure coverage of single attachment column type

* fail early when fetching object metadata

---------

Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
2024-05-09 14:30:56 +01:00
Adria Navarro 9f3e01ef78 Fix binding display types 2024-04-26 11:13:56 +02:00
Peter Clement a4c0328c53
REST file handling and SMTP automation block attachments (#13403)
* handle files in rest connector

* fetch presigned url and return

* further updates to handle files in rest connector

* remove unused important and fix extension bug

* wrong expiry param

* tests

* add const for temp bucket

* handle ttl on bucket

* more bucket ttl work

* split out fileresponse and xmlresponse into utils

* lint

* remove log

* fix tests

* some pr comments

* update function naming and lint

* adding back needed response for frontend

* use fsp

* handle different content-disposition and potential path traversal

* add test container for s3 / minio

* add test case for filename* and ascii filenames

* move tests into separate describe

* remove log

* up timeout

* switch to minio image instead of localstack

* use minio image instead of s3 for testing

* stream file upload instead

* use streamUpload and update signatures

* update bucketcreate return

* throw real error

* tidy up

* pro

* pro ref fix?

* pro fix

* pro fix?

* move minio test provider to backend-core

* update email builder to allow attachments

* testing for sending files via smtp

* use backend-core minio test container in server

* handle different types of url

* fix minio test provider

* test with container host

* lint

* try different hostname?

* Revert "try different hostname?"

This reverts commit cfefdb8ded.

* fix issue with fetching of signed url with test minio

* update autoamtion attachments to take filename and url

* fix tests

* pro ref

* fix parsing of url object

* pr comments and linting

* pro ref

* fix pro again

* fix pro

* account-portal

* fix null issue

* fix ref

* ref

* When sending a file attachment in email fetch it directly from our object store

* add more checks to ensure we're working with a signed url

* update test to account for direct object store read

* formatting

* fix time issues within test

* update bucket and path extraction to regex

* use const in regex

* pro

* Updating TTL handling in upload functions (#13539)

* Updating TTL handling in upload functions

* describe ttl type

* account for ttl creation in existing buckets and update types

* fix tests

* pro

* pro
2024-04-22 15:30:57 +00:00
Adria Navarro 1524780982 UI fixes 2024-04-12 10:26:46 +02:00
Adria Navarro 1f77b09eed Handle drawers 2024-04-11 16:22:16 +02:00
Dean 9b4c22727f Fix to ensure runtimeTime binding is used is automation js modal 2024-03-25 12:36:56 +00:00
Andrew Kingston 6d53b06762 Fix typo in automations placeholder 2024-03-13 13:23:48 +00:00
Andrew Kingston 245670f585 Ignore more svelte 4 warnings 2024-02-29 20:22:48 +00:00
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