Commit Graph

41 Commits

Author SHA1 Message Date
Dean 5269258532 Ensure the builder is functional if an app automation does not contain a trigger 2024-07-30 11:37:47 +01:00
Dean 3f35a41046 Fix binding modal z-index and removing double border in automation header 2024-06-11 09:07:55 +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
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
Dean 30db237071 Merge remote-tracking branch 'origin/master' into feature/monolith-js-refactor 2024-01-17 17:17:01 +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 b1d4a572e7 small ui fixes 2023-11-24 11:11:30 +00: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
Peter Clement f7fabf152d css fixes 2023-11-08 13:55:34 +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 81ca48a331 tidy up and issues found in testing 2023-10-31 13:05:04 +00:00
Dean 79da5956b8 Patch from original environment 2023-10-30 12:46:44 +00:00
Peter Clement d864eaa9ea pr comments 2023-10-26 16:05:15 +01:00
Peter Clement 7910205807 update styling of flow items 2023-10-25 13:26:56 +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 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
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 34759c7916 Adding real history to the history tab, getting storage to couch and retrieval + api working. 2022-06-01 16:01:06 +01:00
Peter Clement 6bf9346975 update Automation button placement and test details button 2022-05-23 14:11:37 +01:00
Peter Clement d78f170d68 fix issue with blocks not being toggled 2022-05-10 10:51:48 +01:00
Peter Clement 73151722ec update bindings to support looping 2022-03-28 10:01:56 +01:00
Peter Clement ca53ee4069 Merge remote-tracking branch 'origin/develop' into feature/automation-data-types 2022-02-15 14:14:27 +00:00
Peter Clement 7718f5cd89 uneeded import 2022-02-15 14:11:04 +00:00
Peter Clement c0d929fd2f update automation type coercion 2022-02-15 13:03:24 +00:00
Peter Clement f44471d9d0 fix js 2022-02-11 14:38:34 +00:00
Peter Clement d4b98095c2 update how we handle coercion of types 2022-02-11 14:20:25 +00:00
Peter Clement ca821f2a47 allow use of plain inputs for automations enabling use of bindings in all types 2022-02-08 14:52:08 +00:00
Andrew Kingston 9d52841219 Refactor automation store to properly handle errors 2022-01-25 15:44:08 +00:00
Andrew Kingston 59349f2451 Add lots more work on refactoring builder to use core API 2022-01-21 15:09:27 +00:00
Peter Clement f237cd891e fix animation issue with automation blocks 2021-11-17 14:28:14 +00:00
Peter Clement e2c9415e1d update icon padding and block background-color 2021-10-06 15:07:51 +01:00
Peter Clement 1d9fccb666 update icon to use hoverable 2021-09-21 20:30:58 +01:00
Peter Clement 053ea4e499 add multiselect / date / boolean types to automations 2021-09-20 16:23:33 +01:00
Maurits Lourens 931ec7bfd9 fix merge conflicts, make arguments more consistent 2021-09-16 23:20:31 +02:00
Maurits Lourens 518f8fd55e merge develop into branch 2021-09-16 22:15:09 +02:00
Andrew Kingston c010eeb314 Fix prettier and fix crash when using certain views as data sources 2021-05-04 11:04:42 +01:00
Andrew Kingston 2114822c90 Fix automation component paths 2020-10-26 12:25:26 +00:00
Andrew Kingston 4ff7499d26 Update styles across entire automations page 2020-10-26 12:18:34 +00:00