1
0
Fork 0
mirror of synced 2024-09-21 20:01:32 +12:00
Commit graph

956 commits

Author SHA1 Message Date
melohagan
6a6bbb38c4 Support navigate to link in new tab (#9800)
* Support navigate to link in new tab

* Add dropdown for Navigate To type

* lint

* Remove labels
2023-03-01 17:41:50 +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
8047a0fc4c Fix error being thrown when attempting to change query parameters (#9782) 2023-02-23 08:09:18 +00:00
mike12345567
f7f9e63fe8 Merge branch 'master' of github.com:Budibase/budibase into develop 2023-02-21 16:53:28 +00:00
melohagan
53f6b2b6e6 Null safety (#9746) 2023-02-20 11:03:37 +00:00
Gerard Burns
8289da3f19 Add Fetch Row Button Action (#9653)
* Add Fetch Row Button Action

* PR feedback
2023-02-17 14:49:35 +00:00
Rory Powell
bb1faac62a Merge master into develop 2023-02-15 15:10:02 +00:00
melohagan
fb74956c93 Date filter freeze fix (#9635)
* Filter with enrichedSchemaFields

* Handle empty object values in date range
2023-02-15 09:27:44 +00:00
melohagan
ee054adf39 Longform fields support for JSON string (#9666) 2023-02-13 11:06:33 +00:00
Martin McKeaveney
d4a0e44b31 merge 2023-02-05 22:11:37 +00:00
Dean
8e78b075fd Feedback updates. Backed out parsing and simply renamed the field config property 2023-02-03 10:22:36 +00:00
Dean
90be29452b Removed extra forward slash in qr reader field type. 2023-02-02 17:58:35 +00:00
Dean
73f3fc41cb Bug fixes for logo and binding validation. Random fix for a button actions issue found while testing 2023-02-02 12:49:26 +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
Andrew Kingston
6e12c3fa3c Remove most traces of data-cy attributes 2023-02-01 08:20:46 +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
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
b06c6852a3 Optimise client library performance with skeleton loaders (#9256)
* Treat empty string default values as nullish when considering whether field default values should be applied to the real field value

* Add flag to allow not loading data immediately upon creation of a data fetch object

* Use loading context inside forms to avoid wasted renders while form schema are loading

* Wait for parent data providers to finish loading before loading their own data

* Optimise data provider to reduce updates as much as possible

* Allow forms to render content immediately again, but use the loading context to inform data providers to wait for them

* Remove fetchOnCreation flag for data fetches as now redundant

* Fix issue with deleting the selected button action when the next action has no parameters

* Lint
2023-01-11 08:01:41 +00:00
melohagan
88bda769a4 Merge pull request #8911 from Budibase/bug/sev2/custom-sql-query-bindings
Update custom sql query in design when changed in the data section
2023-01-10 16:51:27 +00:00
Andrew Kingston
3b1819952d Builder data section routing refactor (#8996)
* Improve theming with spectrum badges and dedupe spectrum label usage

* Update data section nav to match designs and use panel component

* Fix main content layout in data section

* Update data section routing for tables

* Improve data section routing for tables to account for edge cases

* Update internal and sample datasource routing

* Update external datasource routing

* Update routing for queries and make a top level concept like everything else

* Update routing for views

* Fix undefined reference when deleting datasource

* Reduce network calls and fix issues with stale datasourcenavigator state

* Update routing for REST queries and unify routes for normal queries and REST queries

* Lint

* Fix links for queries from datasource details page

* Remove redundant API calls and improve table deletion logic

* Improve data entity deletion logic and redirection and fix query details keying

* Improve determination of selected item in datasource tree

* Lint

* Fix BBUI import

* Fix datasource navigator selected state not working for internal DB or sample data
2022-12-17 14:13:06 +00:00
FlaminWrap
a1ee10c1c6 Button action for user prompt (#8676)
* Commit for enhancement #7762

Added Question option for buttons which acts as a dialog prompting the user to confirm or cancel before continuing.

* Fixes

* Made changes to allow custom modal title

Changed Question to User Prompt
Allows custom title

* Revert "Made changes to allow custom modal title"

This reverts commit 42a43bef4914cd52b07a2b6964bf78aa50eb2707.

* Revert "Fixes"

This reverts commit 915a8718e5ac6dd32a6c3d377d5edb02fc8a3138.

* Adds custom title

Adds custom title

* Wrong version of buttonActions was commited

* Delete index.js

* refactor

* lint

Co-authored-by: Mel O'Hagan <mel@budibase.com>
2022-12-15 16:21:24 +00:00
Andrew Kingston
090ae5df49 Master => Develop (#9049)
* v2.1.46

* Update pro version to 2.1.46

* v2.2.0

* Update pro version to 2.2.0

* Fix for budibase plugin skeleton, which utilises the old import style.

* Fix side nav styles

* v2.2.1

* Update pro version to 2.2.1

* using dist folder to allow importing constants for openAPI specs

* v2.2.2

* Update pro version to 2.2.2

* Fix for user enrichment call (updating to @budibase/nano fork) (#9038)

* Fix for #9029 - this should fix the issue users have been experiencing with user enrichment calls in apps, essentially it utilises a fork of the nano library we use to interact with CouchDB, which has been updated to use a POST request rather than a GET request as it supports a larger set of data being sent as query parameters.

* Incrementing Nano version to attempt to fix yarn registry issues.

* v2.2.3

* Update pro version to 2.2.3

* 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

Co-authored-by: Martin McKeaveney <martin@budibase.com>
Co-authored-by: Budibase Release Bot <>
Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
Co-authored-by: Martin McKeaveney <martinmckeaveney@gmail.com>
2022-12-15 12:13:42 +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
e26d5096ae Merge branch 'cheeks-fixes' of github.com:Budibase/budibase into cheeks-fixes 2022-12-07 09:54:47 +00:00
Andrew Kingston
608576ff3b Remove console log 2022-12-07 09:02:31 +00:00
Andrew Kingston
d4a7412163 Update filter labels to reflect that more than and less than also include equal to 2022-12-07 09:00:29 +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
Andrew Kingston
783e95b688 Merge pull request #8667 from FlaminWrap/Flaminwrap-Enhancement-7604
Allow user to disable hard coded notifications for button actions #7604
2022-12-05 09:36:31 +00:00
Mel O'Hagan
32285a2a1f Update value with new query 2022-12-02 15:10:43 +00:00
Rory Powell
7a7bbd1857 Merge branch 'master' into develop 2022-12-01 14:39:05 +00:00
Mel O'Hagan
2e5744eedd Remove _id from filter field list in external dbs 2022-11-29 11:00:54 +00:00
Mel O'Hagan
57f695ac3c Don't add numbering to primary key 2022-11-24 18:24:38 +00:00
Andrew Kingston
c01b9af1f0 Merge branch 'develop' of github.com:Budibase/budibase into side-panel 2022-11-22 16:52:09 +00:00
deanhannigan
c5df700d82 Merge pull request #8672 from Budibase/feature/default-internal-datasource
Default Datasource and sample row data
2022-11-22 10:32:12 +00:00
Mel O'Hagan
f385d7a6a9 Refactor 2022-11-21 16:24:24 +00:00
Mel O'Hagan
f1c6d15999 Merge branch 'develop' into feature/dynamic-filter-custom-labels 2022-11-21 16:20:05 +00:00
Dean
64e7239d42 Merge remote-tracking branch 'origin/develop' into feature/default-internal-datasource 2022-11-21 15:40:11 +00:00
Mel O'Hagan
8fae013203 Add subject prop 2022-11-21 15:11:21 +00:00
Mel O'Hagan
e7becbf849 Remove duplication 2022-11-21 14:48:26 +00:00
Mel O'Hagan
79dc972c56 Don't allow cell edit for dynamic filter col conf 2022-11-18 16:19:49 +00:00
Andrew Kingston
e8b993b14c Add working side panels to table blocks 2022-11-17 10:16:45 +00:00
Dean
f73b4f8b01 Review updates 2022-11-15 17:03:35 +00:00
Andrew Kingston
fa3de9f0ac Lint 2022-11-15 13:04:09 +00:00
Andrew Kingston
e7061647da Ensure action parameters can never be null and fix display of close screen modal action 2022-11-15 12:52:06 +00:00
Andrew Kingston
e37027f808 Use explicit actions for opening and closing side panels, and automatically close side panels when using form blocks 2022-11-15 11:54:20 +00:00
Andrew Kingston
aa81e0451a Add button action for showing/hiding side panels 2022-11-14 15:02:57 +00:00
Dean
ff7a3b8cef Default Datasource and sample row data 2022-11-13 21:37:50 +00:00
FlaminWrap
0859691afe Ran yarn lint:fix
Ran yarn lint:fix as I forgot to do that
2022-11-13 17:25:48 +00:00
FlaminWrap
e190f932d8 Commit for enhancement #7604
Added a checkbox to allow the user to disable the default notifications to the following button actions:
* Save row
* Duplicate row
* Trigger automation
* Execute query
* Delete row
Also adjusted buttonActions.js to reflect the behaviour of that checkbox being ticked.
2022-11-13 17:08:23 +00:00
Martin McKeaveney
87717ebdf5 merge with master 2022-10-31 13:44:23 +00:00
Andrew Kingston
603c8744a5 Merge branch 'master' into master-develop 2022-10-25 12:03:33 +01:00
Martin McKeaveney
69775a0324 Merge pull request #8016 from Budibase/feature/redirect-after-modal-close
Allow screen redirect after modal close
2022-10-21 08:58:21 +01:00
Dean
7ccf29bff7 Pushed default parsing up into the InnerForm component to ensure that invalid default values are removed entirely. Fixes for custom validation for array types 2022-10-18 16:24:36 +01:00
Andrew Kingston
d7f033eedf Add sensible min widths to settings in the filter drawer 2022-10-15 13:23:20 +01:00
Andrew Kingston
167f8f368b Only show sortable fields for sort column settings 2022-10-13 15:58:44 +01:00
Dean
299122324e Ensure field type is preserved if it contains a slash. Some additional refactoring 2022-10-10 14:20:06 +01:00
Dean
9d00b59c49 Adjustments to accomodate the updates scanner type 2022-10-10 12:11:29 +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
2ec21741d1 Initial commit of QR Reader field 2022-10-05 09:28:07 +01:00
Andrew Kingston
ea35b9bff6 Fix table setting type 2022-09-30 16:26:24 +01:00
Andrew Kingston
10320574a4 Update naming conventions in filter drawer 2022-09-28 15:36:35 +01:00
Andrew Kingston
7909745fb5 Simplify, strengthen and make consistent filter drawer validation logic 2022-09-28 15:08:44 +01:00
Andrew Kingston
6c63edc279 Merge branch 'master' of github.com:Budibase/budibase into bug/sev2/is-in-filter-startswith-crash 2022-09-28 14:16:45 +01:00
Mel O'Hagan
4bb9dad06e Add screen input to CloseScreenModal 2022-09-28 13:49:35 +01:00
Martin McKeaveney
57bbf28119 merge with master 2022-09-26 17:57:23 +01:00
Andrew Kingston
8563f1df90 Merge branch 'master' of github.com:Budibase/budibase into bug/sev2/is-in-filter-startswith-crash 2022-09-26 15:04:02 +01:00
Peter Clement
f6d7b5dc8e Merge pull request #7944 from Budibase/pc/automation-fix
Automate fixes
2022-09-26 08:39:47 +01:00
Peter Clement
f069ddb27e Automation fixes 2022-09-23 13:35:27 +01:00
Dean
c3f41c8f31 Added category and icon for table configuration binding drawer 2022-09-22 17:04:58 +01:00
Mel O'Hagan
eaddd72d66 Handle valueType change 2022-09-22 09:40:45 +01:00
mike12345567
1be71933ca Merge branch 'develop' of github.com:Budibase/budibase into group-fixes 2022-09-16 17:02:08 +01:00
mike12345567
8744d0a86c Renaming data source -> datasource as per Mel's request. 2022-09-14 12:11:20 +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
Mel O'Hagan
1edbb73e33 Remove console log 2022-09-12 08:58:47 +01:00
Mel O'Hagan
76c861c266 Null safety when creating automation from design 2022-09-12 08:57:44 +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
df3787bda3 Tidy up component list panel monolith 2022-08-30 13:23:12 +01:00
Andrew Kingston
b86bd5bf03 Add setting button for ejecting blocks. Update manifest to show info beside relevant settings 2022-08-30 10:53:58 +01:00
Andrew Kingston
de9d46dce8 Add placeholder setting to URLSelect 2022-08-23 14:59:18 +01:00
Andrew Kingston
434fe378c7 Merge branch 'develop' of github.com:Budibase/budibase into form-block 2022-08-23 11:40:15 +01:00
Andrew Kingston
60ed162fe3 Add missing bindings to show notification action 2022-08-22 11:10:47 +01:00
Andrew Kingston
19c99f4390 Allow configuring whether notification is automatically dismissed or not 2022-08-22 11:08:52 +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
mike12345567
ae9ae26bd4 Merge branch 'develop' of github.com:Budibase/budibase into feature/multiselect-filters 2022-08-15 12:24:41 +01:00
mike12345567
1c7f860184 Merge branch 'master' of github.com:Budibase/budibase into develop 2022-08-11 16:28:46 +01:00
NEOLPAR
60e61f1107 wrong comment 2022-08-10 16:30:26 +01:00
NEOLPAR
0687d7c235 fixing wrong filter, excluding just bb_internal 2022-08-10 16:27:53 +01:00
Rory Powell
664cb2b0b0 Merge branch 'master' into develop 2022-08-10 14:36:49 +01:00
NEOLPAR
0b8e0309f6 filtering datasources for execute query actions 2022-08-08 12:12:56 +01:00
Mel O'Hagan
84b86b2450 Handle 'Is in' onOperatorChange 2022-08-06 20:52:34 +01:00
Andrew Kingston
9ad23afc89 Update groups list and groups details pages to new designs. Multiple fixes and improvements. Standardise divider thickness 2022-08-04 11:06:49 +01:00
mike12345567
dee15b6415 Switching to an explicit select for the OR/AND options in the filter. 2022-08-03 17:44:44 +01:00
mike12345567
129c966226 Updating the filter system to allow adding multiple filter properties of the same name at once, as well as enabling the use of the allOr property from within the UI - resolves an old issue #2585. 2022-08-02 18:34:58 +01:00