Commit Graph

30 Commits

Author SHA1 Message Date
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
Andrew Kingston 6d53b06762 Fix typo in automations placeholder 2024-03-13 13:23:48 +00:00
Dean 3d10369518 Import fixes 2024-01-18 10:57:23 +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 ce81df4d1e recommit json display work 2024-01-09 15:05:24 +00:00
Peter Clement 442d0853d3 fix plus icon colour and hover 2023-12-05 14:37:49 +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 82438ab75f adjusting automatiom side panel 2023-11-24 12:18:43 +00:00
Dean db501fb10a Enabled collaboration behaviour in the automation section 2023-07-10 09:30:15 +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
Martin McKeaveney 41e004b18b bunch of small UX updates around row creation, borders, new buttons 2022-11-06 22:35:33 +00: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 24a9656cbc Test fixes and code review refactoring 2022-04-26 12:04:07 +01:00
Andrew Kingston 7882d577bb Update automation navigation to use new full width nav items 2022-03-21 15:48:00 +00:00
Peter Clement fd4c1c9929 Add triggers to setup modal 2021-09-15 00:43:25 +01:00
Peter Clement 4869ecbf3a add splash screen to automation 2021-09-15 00:43:25 +01:00
Andrew Kingston a1c01bb905 Update other cypress helpers to work with spectrum 2021-04-28 15:08:43 +01:00
Keviin Åberg Kultalahti 311d4f9d65 Merge branch 'spectrum-bbui' into spectrum/kevins-bits-and-bobs 2021-04-23 12:52:05 +02:00
Andrew Kingston f859ad5210 Update lots of font sizes, padding and other UI improvements 2021-04-23 10:48:19 +01:00
Keviin Åberg Kultalahti 3d369d50a2 switch remix icons to spectrum in panels 2021-04-23 10:07:50 +02:00
Keviin Åberg Kultalahti 3ccc0a39ff Automations panel now uses the tabs component 2021-04-16 11:49:08 +02:00
Keviin Åberg Kultalahti a08684cd14 removes unused code in automation and backend sections 2021-03-01 17:34:27 +01:00
Andrew Kingston a93757a8d9 Fix cypress tests 2020-10-27 15:26:07 +00:00
Andrew Kingston 4ff7499d26 Update styles across entire automations page 2020-10-26 12:18:34 +00:00
Joe 620134132e Page titles and primary cta alignment and styling consistent
Data and automations page titles now use BBUI Heading component and Spacer component. They are not consistent in styling and spacing.

Welcome screen app cards buttons changed to text buttons. I made this change as there were too many buttons on the page. We want one primary button - create new app.

Early changes mage to binding popover. More to come.
2020-09-26 00:45:56 +01:00
Andrew Kingston c728329d51 Improve responsiveness, handle scrolling and tidy up CSS in automations page 2020-09-23 12:24:57 +01:00
mike12345567 5f064ade9d Renaming workflows -> automate/automations, throughout the API and the builder itself. 2020-09-21 13:49:34 +01:00