Commit Graph

1197 Commits

Author SHA1 Message Date
Dean 32619fbfa3 Merge commit 2023-02-27 09:11:32 +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
Andrew Kingston c81ef6f128 Attempt to fix flakey 409s when deleting screens that are linked in the nav (#9700) 2023-02-16 13:33:53 +00:00
Andrew Kingston 91a3707527 Generate bindings for unsaved "Update State" actions (#9508)
* Ensure update state actions have a binding for their own key

* Make own binding generation more futureproof

* Refactor array.find to array.some

* Move state binding generation up a level to account for all actions needing to be able to reference newly created state bindings
2023-02-01 17:53:50 +00:00
deanhannigan ee288c1f2d Merge pull request #9409 from Budibase/feature/user-onboarding-overlays
Feature/user onboarding overlays
2023-01-31 16:37:18 +00:00
Rory Powell da2c809a09 Merge branch 'develop' into feature/environment-variables 2023-01-27 11:27:11 +00:00
Peter Clement c68b5ccb84 fix license check 2023-01-26 16:16:56 +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
Peter Clement fc6d20c0b2 add environment bindings to rest query binding drawer 2023-01-25 11:39:13 +00:00
Dean a10bd138ff Merge remote-tracking branch 'origin/develop' into feature/user-onboarding-overlays 2023-01-23 09:34:20 +00:00
Dean 14da8c0c9e Added new onboarding tour flow for builder 2023-01-23 00:32:01 +00:00
Andrew Kingston a3e555c85e Misc fixes (#9383)
* Shrink cloud upgrade button to proper size

* Add brackets to fix operator precedence when ejecting blocks to prevent undefined custom CSS

* Prevent relationship fields in forms from being used as datasources

* Remove extraneous navigation when adding a component which caused next navigation to fail

* Improve form logic concerning when to fully remount itself to fix issues with stale schema being passed in
2023-01-19 09:47:10 +00:00
Andrew Kingston e26d5096ae Merge branch 'cheeks-fixes' of github.com:Budibase/budibase into cheeks-fixes 2022-12-07 09:54:47 +00:00
Andrew Kingston 07347420e7 Fix issue with not being able to update component names 2022-12-06 15:32:50 +00:00
Gerard Burns d0d73a8b51 Multifield Input Autoselect All Fields (#8884)
* Multifield Input Autoselect All Fields

* PR Feedback

* PR Feedback

* Linting
2022-12-05 12:09:27 +00:00
Andrew Kingston 8567ae70af Merge branch 'develop' of github.com:Budibase/budibase into side-panel 2022-11-29 12:22:56 +00:00
Michael Drury 4f4eb4da26 Merge branch 'master' of github.com:Budibase/budibase into develop 2022-11-29 11:13:54 +00:00
Andrew Kingston 27bea5c85b Merge branch 'develop' of github.com:Budibase/budibase into side-panel 2022-11-28 09:57:12 +00:00
Mel O'Hagan bcd4ac1db8 Only uncheck other homescreens if homescreen set 2022-11-24 13:24:09 +00:00
Dean 05188f0588 Review updates 2022-11-23 17:12:23 +00:00
Andrew Kingston fd3e98c8e3 Update auto screens to only generate a single list screen using new side panels 2022-11-23 15:04:51 +00:00
Andrew Kingston 8ed2227280 Remove log 2022-11-23 12:33:14 +00:00
Dean 68aeb43ea2 Review updates 2022-11-21 17:07:00 +00:00
Andrew Kingston 75ee5117ea Improve makeComponentUniqueUtil and improve ejected table block structure 2022-11-17 14:49:13 +00:00
Andrew Kingston e8b993b14c Add working side panels to table blocks 2022-11-17 10:16:45 +00:00
Dean 7356c8b161 Ensure 'table' type sources are updated with a default datasource. Search visible settings sections for other elements IF a source is not already set. 2022-11-16 15:03:45 +00:00
Dean 63d9a5977b Default datasource behaviour with order of preference: DefaultDB, Internal then External 2022-11-15 14:29:58 +00:00
Andrew Kingston aa81e0451a Add button action for showing/hiding side panels 2022-11-14 15:02:57 +00:00
Dean e92d8c6b90 Temporarily disable screen component validation 2022-11-03 14:27:47 +00:00
Andrew Kingston f1714ab2a5 Improve performance by fixing multiple instances of redundant client app initialisations 2022-10-21 16:54:01 +01:00
Andrew Kingston 6a96d447e9 Ensure allowed component list is actually accurate and prevent any way around illegal component nesting 2022-10-20 19:49:14 +01:00
Andrew Kingston 73a229b9ec Add proper validation for nesting illegal combinations of components 2022-10-20 16:03:53 +01:00
Andrew Kingston 9a94e9da7c Use a container as the DND placeholder and use approx size when dragging into grids 2022-10-19 14:39:28 +01:00
Andrew Kingston a870d2473d Allow grid DND without selecting components 2022-10-18 18:29:21 +01:00
Andrew Kingston 774566d03b Merge branch 'dnd-improvements' of github.com:Budibase/budibase into cheeks-lab-day-grid 2022-10-18 08:12:11 +01:00
Andrew Kingston 857364b257 Fix selected rows bindings for table blocks not having a category 2022-10-15 13:06:34 +01:00
Andrew Kingston 72ff7ce122 Prevent crash when determining datasource schema for non string type values 2022-10-15 12:58:32 +01:00
Andrew Kingston 3f429ff3ce Lint and prevent scrolling to selected component when starting dragging 2022-10-14 19:45:47 +01:00
Andrew Kingston a71a553ee6 Add ability to drag new components into the preview 2022-10-14 13:37:14 +01:00
Dean 909a8b7074 Merge remote-tracking branch 'origin/develop' into feature/blocks-in-auto-screens 2022-10-13 16:54:55 +01:00
Dean 2bff6254de Initial commit, refactoring of autoscreens to incorporate blocks 2022-10-11 17:05:19 +01:00
Dean 07be0208e5 Merge remote-tracking branch 'origin/develop' into feature/qr-barcode-reader 2022-10-10 09:08:48 +01:00
Andrew Kingston f27704ccf6 Merge branch 'develop' of github.com:Budibase/budibase into form-block 2022-10-07 12:45:53 +01:00
Andrew Kingston bdce3fc9fc Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-eject-blocks 2022-10-07 11:31:32 +01:00
Dean c09154b03e Renamed the 'Scanned Code' field type to 'Barcode/QR'. The component is also now listed as 'Barcode/QR Scanner'. Minor fix to include longform text columns in the table csv import list 2022-10-07 11:00:25 +01:00
Dean e251c914ff Review feedback changes. Changed 'Code' labelling to 'Scanned Code' 2022-10-06 13:02:17 +01:00
Dean acf583120a Removed filter excluding links from user bindings. 2022-10-05 12:40:53 +01:00
Dean 2ec21741d1 Initial commit of QR Reader field 2022-10-05 09:28:07 +01:00
Andrew Kingston 6272c7cb66 Fix generating datsource structure for components which have a setting of type table 2022-09-30 16:26:29 +01:00
Andrew Kingston ef9650136a Hot reload custom component settings in the builder 2022-09-30 16:26:15 +01:00
Andrew Kingston 293ab37636 Use friendly name when adding instances of custom components 2022-09-30 16:26:02 +01:00
Andrew Kingston 0840bcb7d7 Fix custom components not working properly with generated bindings 2022-09-30 16:23:26 +01:00
Andrew Kingston 0a80947b51 Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-grid 2022-09-26 16:22:13 +01:00
Andrew Kingston 45627661f1 Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-grid 2022-09-20 17:23:52 +01:00
Dean a6cee09812 Filter 'link' fields from the Current User bindings 2022-09-20 11:09:58 +01:00
Dean d0d63f14b0 Removed redundant display variable from user bindings 2022-09-20 10:15:23 +01:00
Dean 58d96d3a6b Minor change to ensure correct labelling for OAuthToken binding 2022-09-20 10:07:07 +01:00
Dean 09ff6a2556 Merge remote-tracking branch 'origin/develop' into fix/missing-rest-binding-category-names 2022-09-16 17:34:22 +01:00
Dean 5347a8339c Minor fix to add categories for rest bindings 2022-09-16 17:32:50 +01:00
mike12345567 ee40819c9e Merge branch 'master' of github.com:Budibase/budibase into develop 2022-09-16 16:13:20 +01:00
mike12345567 fc8dc9f176 Fixing issue introduced by fix for #7683 - encoding the query string caused handlebars statements to break, this rectifies that. 2022-09-15 19:35:55 +01:00
Dean 78d72b78cb Fix to include the current user bindings in datasource queries 2022-09-15 16:39:25 +01:00
Dean f0f222f9ea Merge branch 'feature/day-pass-pricing' of github.com:Budibase/budibase into feature/day-pass-pricing 2022-09-15 09:06:48 +01:00
Dean 132f347916 Apps Page update to hide apps when sessions are maxed. General refactoring and updates to the licensing notification flows. 2022-09-14 18:04:58 +01:00
mike12345567 8744d0a86c Renaming data source -> datasource as per Mel's request. 2022-09-14 12:11:20 +01:00
Dean b848fc52d9 Merge branch 'feature/day-pass-pricing' of github.com:Budibase/budibase into feature/day-pass-pricing 2022-09-13 11:52:58 +01:00
Dean 60feccaac0 Merge commit 2022-09-13 11:52:31 +01:00
Andrew Kingston c873a4d965 Merge branch 'cheeks-lab-day-eject-blocks' of github.com:Budibase/budibase into form-block 2022-09-13 11:32:04 +01:00
Andrew Kingston 3283a0ab5a Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-eject-blocks 2022-09-13 11:31:45 +01:00
Andrew Kingston 229c7cf49f Fix issue with duplicating components not replacing IDs on component itself 2022-09-06 09:21:16 +01:00
Andrew Kingston 5577f31a17 Merge branch 'cheeks-lab-day-eject-blocks' of github.com:Budibase/budibase into form-block 2022-09-06 09:00:21 +01:00
Andrew Kingston 3088616c47 Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-eject-blocks 2022-09-06 08:53:10 +01:00
mike12345567 5c62bdac2e Merge branch 'develop' of github.com:Budibase/budibase into plugins-dev-experience 2022-09-05 14:14:47 +01:00
Martin McKeaveney e4a9b684c7 Merge branch 'develop' of github.com:Budibase/budibase into revert-7503-revert-7414-feature/binding-ux-update 2022-09-02 18:45:00 +01:00
mike12345567 e149b3d807 Merge branch 'develop' of github.com:Budibase/budibase into plugins-dev-experience 2022-08-31 16:24:10 +01:00
Andrew Kingston 512d225389 Merge pull request #7450 from Budibase/cheeks-fixes
App navigation and screen migration for imports and templates
2022-08-31 15:27:18 +01:00
Martin McKeaveney 3f26c411c9 Revert "Revert "Feature/binding ux update"" 2022-08-30 10:16:15 +01:00
Martin McKeaveney 65bf17b87c Revert "Feature/binding ux update" 2022-08-30 10:16:01 +01:00
Andrew Kingston b839325a86 Add initial work on grid layout 2022-08-26 08:47:50 +01:00
Andrew Kingston d9d01b1d17 Add legacy compatibility for string-only datasources 2022-08-25 09:47:04 +01:00
Andrew Kingston 8d76959f88 Merge branch 'cheeks-lab-day-eject-blocks' of github.com:Budibase/budibase into form-block 2022-08-25 08:53:07 +01:00
Andrew Kingston 452eba8635 Automatically migrate old apps server-side when importing or using templates 2022-08-24 21:35:24 +01:00
Dean 5e63adb42b Added sections for UI component event bindings 2022-08-24 16:38:08 +01:00
Dean 2e807fdc3d Code review updates 2022-08-24 12:07:51 +01:00
Andrew Kingston 98b6bbb039 Update block ejection to account for children of blocks 2022-08-24 08:37:53 +01:00
Andrew Kingston 06eee0d386 Make block ejection work properly via the builder rather than client app button hack 2022-08-23 19:05:38 +01:00
Andrew Kingston eb3f7ba810 Update block ejection with latest codebase 2022-08-23 15:53:28 +01:00
Andrew Kingston 6716f5e978 Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-eject-blocks 2022-08-23 15:34:25 +01:00
Andrew Kingston 434fe378c7 Merge branch 'develop' of github.com:Budibase/budibase into form-block 2022-08-23 11:40:15 +01:00
Dean 02c89bcdb1 Minor refactoring and icon updates 2022-08-23 09:56:09 +01:00
Dean 6eb187f706 Merge remote-tracking branch 'origin/develop' into feature/binding-ux-update 2022-08-22 23:09:03 +01:00
Andrew Kingston bec08eecc8 Merge branch 'develop' of github.com:Budibase/budibase into plugins-dev-experience 2022-08-22 17:54:25 +01:00
Dean f4a5715461 Merge remote-tracking branch 'origin/develop' into feature/binding-ux-update 2022-08-22 12:49:56 +01:00
Dean 098c67ce5d Initial commit of UX refactor 2022-08-22 12:49:05 +01:00
Andrew Kingston 23a91b89a7 Merge branch 'develop' of github.com:Budibase/budibase into plugins-dev-experience 2022-08-22 11:27:04 +01:00
Andrew Kingston 8a2f35b3f0 Add action for showing a custom notification 2022-08-22 11:00:51 +01:00
Rory Powell 7d1a32f729 Merge branch 'master' into develop 2022-08-19 14:15:49 +01:00
Andrew Kingston 7b6cef8794 Rename some usages of button actions to events 2022-08-18 13:43:32 +01:00
Andrew Kingston 1841677e0d Add bindings for screen on load setting 2022-08-18 11:16:59 +01:00
mike12345567 6a64c23999 Merge branch 'plugins-dev-experience' of github.com:Budibase/budibase into plugins-dev-experience 2022-08-17 23:21:58 +01:00
mike12345567 7dfe049ae6 Adding full builder integration of custom components - splitting into own section properly - fixing some issues with SVG class overlap. 2022-08-17 23:13:51 +01:00
Andrew Kingston 32025ef76d Merge branch 'develop' of github.com:Budibase/budibase into plugins-dev-experience 2022-08-17 16:13:27 +01:00
Andrew Kingston 4e916d2812 Reload app metadata when adding custom components 2022-08-11 17:05:04 +01:00
Andrew Kingston e6303fb4ec Remove static definition from store and properly handle custom components from API 2022-08-11 15:25:43 +01:00
Andrew Kingston 16e42dc5a1 Add full PoC of using a custom component inside the builder, with children and bindings 2022-08-10 16:54:13 +01:00
Andrew Kingston 9717858c95 Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-keyboard-shortcuts-develop 2022-07-29 15:04:37 +01:00
Andrew Kingston 3ebb2e193f Merge branch 'master' of github.com:Budibase/budibase into develop 2022-07-29 13:48:27 +01:00
Andrew Kingston 04d40223dd Improve component selection after deleting a component 2022-07-29 13:33:04 +01:00
Andrew Kingston a4847a471c Add keyboard shortcuts for components. Improve component reordering 2022-07-29 13:33:02 +01:00
Andrew Kingston 30256bbb8d Add groundwork for custom themes based off other themes 2022-07-27 16:37:35 +01:00
mike12345567 d30e27d27d Merge branch 'master' of github.com:Budibase/budibase into develop 2022-07-26 17:25:55 +01:00
Andrew Kingston 3aef4d8e49 Don't load theme options from the store 2022-07-26 13:41:30 +01:00
Andrew Kingston ec6e17748a Merge branch 'master' of github.com:Budibase/budibase into nord-theme 2022-07-26 11:46:28 +01:00
mike12345567 1c02c3d3c3 Merge branch 'master' of github.com:Budibase/budibase into develop 2022-07-19 14:12:48 +01:00
Andrew Kingston 190c545e25 Fix pasting inside different screens and select new screen when pasting inside different screen 2022-07-15 13:09:37 +01:00
Andrew Kingston d14a9b0521 Allow pasting multiple times after copying when not cutting 2022-07-15 13:09:32 +01:00
Andrew Kingston b4420fb74a Remove debug logs and add comments 2022-07-15 13:09:28 +01:00
Andrew Kingston aa1c0298bc Move screen setting updates into store and use patches. Make screen settings generic 2022-07-15 13:09:23 +01:00
Andrew Kingston 66126531e3 Update screen settings to use patches 2022-07-15 13:09:19 +01:00
Andrew Kingston edfb0fa50d Ensure state never gets out of sync when saving app metadata by using server response to update state 2022-07-15 13:09:13 +01:00
Andrew Kingston 587b385a47 Use patch for all component methods, add core component patch function, add component move functions to store 2022-07-15 13:09:09 +01:00
Andrew Kingston 5cdd37f6d8 Update cut+paste so cut doesn't actually remove the component from the tree and use new patch function 2022-07-15 13:08:55 +01:00
Andrew Kingston 5a12e30f91 Use patch when deleting components 2022-07-15 13:08:50 +01:00
Andrew Kingston 6368a2aaac Use patch when creating new components 2022-07-15 13:08:44 +01:00
Andrew Kingston fc92732989 Remove deprecated layout logic 2022-07-15 13:08:38 +01:00
Andrew Kingston 56b255cfc9 Reduce state updates when selecting layouts 2022-07-15 13:08:32 +01:00
Andrew Kingston 99c3323390 Use patch when detaching screen custom layouts 2022-07-15 13:08:25 +01:00
Andrew Kingston 099bddab91 Use patches when updating homescreens 2022-07-15 13:08:20 +01:00
Andrew Kingston e3c2d57b0e Add screen patch store method and reduce state updates when deleting screens 2022-07-15 13:08:04 +01:00
Andrew Kingston 172a5a8c25 Reduce state updates while saving screens 2022-07-15 13:07:35 +01:00
Andrew Kingston bd5d419692 Reduce state updates when selecting screens 2022-07-15 13:06:43 +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 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
deanhannigan 37ce29fa2d Merge pull request #6315 from Budibase/feature/current-user-rest-bindings
REST query bindings for Current User
2022-07-05 09:22:03 +01:00
Dean e14289abee Added fixes for query body binding. Query parameter fixes and pretty bindings added 2022-07-03 17:33:25 +01:00
Dean 31b51e1ecf Fixes for datasource authentication parsing. Mapping UX updates 2022-07-01 17:27:24 +01:00
Andrew Kingston 5b2ff31e73 Add ability to eject blocks into raw components 2022-06-30 19:31:25 +01:00
Dean ac1df878d4 Merge remote-tracking branch 'origin/develop' into feature/current-user-rest-bindings 2022-06-29 18:50:14 +01:00
Andrew Kingston 99a264f6fb Lint 2022-06-29 09:09:44 +01:00
mike12345567 a60c41e58b Merge branch 'develop' of github.com:Budibase/budibase into feature/automation-logs 2022-06-24 17:43:59 +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 770cbf4fd3 Update autoscreen link creation and deletion to use new app level navigation settings 2022-06-22 15:42:08 +01:00
Andrew Kingston a0d83eefaa Merge branch 'develop' of github.com:Budibase/budibase into new-design-ui 2022-06-22 12:49:46 +01:00
Andrew Kingston 7eddb3b369 Add data binding for query params 2022-06-21 09:39:25 +01:00
mike12345567 2ff853c917 Adding in main portal page automation error notification. 2022-06-21 00:02:22 +01:00
Andrew Kingston 8643bb1553 Add 'on load' actions for screens 2022-06-20 16:12:46 +01:00
Andrew Kingston 6580010286 Fix logic around deleting autoscreens and autoscreen links 2022-06-16 11:46:53 +01:00
Andrew Kingston 947840e79e Use ID rather than name to identiy datasources when creating autoscreens 2022-06-16 11:46:16 +01:00