Commit Graph

1475 Commits

Author SHA1 Message Date
Dean 7988f8c2d9 Added error handling for leaflet initialisation errors 2023-03-03 14:51:54 +00:00
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 fae24276f9 Migrate sheet to data section, improve reordering and reszing 2023-02-26 21:29:46 +00:00
Andrew Kingston e9b801e205 Fix columnn reordering 2023-02-25 17:09:08 +00:00
Andrew Kingston 0eadca9acb Optimise scrolling and virtual rendering performance 2023-02-25 16:33:20 +00:00
Andrew Kingston 4d3f669ae7 Optimise virtual rendering for both columns and rows to handle infinitely large datasets 2023-02-24 13:53:23 +00:00
Andrew Kingston 3ab0e95032 Test absolute positioning 2023-02-24 09:46:44 +00:00
Andrew Kingston b8e7e0b701 Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-spreadsheet 2023-02-23 16:41:08 +00:00
Andrew Kingston ddb70ba3f6 Split into more modular components and try virtual rendering 2023-02-23 16:40:48 +00:00
Andrew Kingston 0060025cca Break out spreadsheet body into its own component 2023-02-23 08:43:37 +00:00
Andrew Kingston c834a236b7 Break out other components from spreadsheet for cleaner code 2023-02-23 07:44:59 +00:00
Andrew Kingston fc06811b2c Rename reordering to reorder 2023-02-22 15:48:17 +00:00
Andrew Kingston ca7aed617f Break out reordering logic into new stores 2023-02-22 15:42:20 +00:00
Andrew Kingston 35dcd51322 Add drag and drop column reordering 2023-02-22 14:05:20 +00:00
Andrew Kingston fee091b081 Allow updating nested settings via conditional UI (#9748)
* Allow updating nested settings via conditional UI

* Tidy up comments

* Improve safety when generating conditions

---------

Co-authored-by: Rory Powell <rory.codes@gmail.com>
2023-02-22 13:22:59 +00:00
Andrew Kingston 8da1e507b1 Use more CSS variables and add utils to spreadsheets 2023-02-21 12:05:16 +00:00
Andrew Kingston 3abc2ddbd1 Support empty dates and use CSS variables for easier styling 2023-02-21 11:51:52 +00:00
Andrew Kingston 57cfc9d84c Improve display of relationship cell and options cell 2023-02-21 11:46:20 +00:00
Andrew Kingston 8f5c5cc758 Make sticky column the primary display and fix opening options cells 2023-02-21 11:10:26 +00:00
Andrew Kingston 8c81d5916b Disable editing autocolumns 2023-02-21 10:46:38 +00:00
Andrew Kingston dbf8494c4b Add functional date cell 2023-02-21 10:23:55 +00:00
Andrew Kingston 8316692ecf Add number cell 2023-02-21 10:00:18 +00:00
Andrew Kingston e26163e274 Add support for multiselect type 2023-02-20 19:04:22 +00:00
Andrew Kingston c627cb60c3 Allow multiselect component and field to support text values 2023-02-20 18:45:35 +00:00
Andrew Kingston 08463c1cd0 Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-spreadsheet 2023-02-20 15:55:25 +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
Mel O'Hagan 53de83986e Null safety 2023-02-15 08:45:48 +00:00
melohagan ee054adf39 Longform fields support for JSON string (#9666) 2023-02-13 11:06:33 +00:00
Andrew Kingston 23450d245c Add resizable columns and add support for all themes 2023-02-10 08:17:18 +00:00
Andrew Kingston 1cbd427d70 Fix padding around sheet not working when scrolling 2023-02-09 08:50:22 +00:00
Andrew Kingston 5eeea14de0 Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-spreadsheet 2023-02-08 15:10:48 +00:00
Martin McKeaveney d4a0e44b31 merge 2023-02-05 22:11:37 +00:00
Andrew Kingston 2a2466fbda More fixes (#9387)
* Mark filters as nested settings to support persisting bindings post block ejection

* Add support for searching on linked fields in blocks

* Fix multi-select pickers closing on every click

* Target spectrum root element by default when rendering popovers, and allow customisation via context for client library

* Don't send up invalid HBS expressions when filtering on dates in blocks with empty date value

* Move profile above theme in user dropdown
2023-01-19 16:09:40 +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
mike12345567 3cd097a7f1 Merge branch 'master' of github.com:Budibase/budibase into develop 2023-01-05 17:04:24 +00:00
Dean bc933638ef Added sorting to the options field 2023-01-04 13:08:28 +00:00
Martin McKeaveney 562768d61e Updating the client overlay to use the right method when event type is unknown (#9192) 2023-01-03 13:40:37 +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
melohagan f5c902fb57 Add compact setting to AttachmentField (#9052) 2022-12-15 13:59:03 +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
Rory Powell 786039055e File authentication using presigned URLs (#8883)
* file auth wip

* Private plugin bucket wip

* Add etag to logo request, fix circular dependency

* Resolve cyclic dependency

* Ensure browser doesn't cache custom component

* Global file fixes

* File fixes / remove permaUrl

* Add ctx local storage

* Enable presigned url to work from any host

* Test fix

* Self hosting w/ S3 + other fixes

* Fix for serving dev app in multi tenant

* Fix backup restore and import attachment url processing, never store attachment urls

* Test fixes

* Unit tests WIP

* Replace file path with base64 encoded private key

* Multi tenancy tests for files

* Environment files fixes

* Post-merge build and test fixes

* Add debug conditional to all jest logging and revert/fix prod minio proxy_pass

* Re-add default '/' minio route :(

* Rename iconFile -> iconFileName

* Add cloudfront vars to k8s templates

* Remove public bucket policy

* Remove duplicated test
2022-12-15 11:35:22 +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 b37d51c8d9 Fix side nav styles 2022-12-12 12:42:11 +00:00
Andrew Kingston a846192494 Fix side panel ejection 2022-12-07 09:51:47 +00:00
Andrew Kingston 74a8eba2fa Fix side panel issue where content from multiple side panels would be shown 2022-12-06 15:21:17 +00:00
Andrew Kingston e612545072 Merge pull request #8944 from Budibase/side-panel-tweaks
Side panel tweaks
2022-12-06 12:23:46 +00:00
Andrew Kingston aacfe297bc Debounce hiding side panel to avoid toggling visibility when cycling through records 2022-12-06 09:55:42 +00:00
Andrew Kingston 44e8676aab Hide content when side panel is hidden to avoid stale data being shown when re-revealing side panel 2022-12-06 09:55:25 +00:00
Gerard Burns 0506c66266 pr feedback 2022-12-05 14:38:43 +00:00
Gerard Burns 8eccee030a Fix Skeleton Loader Jumping 2022-12-05 14:24:53 +00:00
Andrew Kingston d0ed60ee3a Revert removing loading blockers in forms to fix multiple issues 2022-12-05 12:10:24 +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
Andrew Kingston 07377ba54e Merge branch 'develop' of github.com:Budibase/budibase into develop 2022-12-02 10:21:00 +00:00
Andrew Kingston 05526a86cf Fix incorrect prop used in table block for title button click actions 2022-12-02 10:20:49 +00:00
Gerard Burns ffa3eede49 Public App Missing Nav Menu (#8870)
* Public App Missing Nav Menu

* PR Feedback
2022-12-02 09:24:20 +00:00
Gerard Burns 6e4f560948 Skeleton Fixes (#8845) 2022-12-02 09:24:05 +00:00
Andrew Kingston 3c0d58bb91 Clear a create form block when submitted 2022-11-25 13:34:25 +00:00
Andrew Kingston 44b812b6b6 Hide horizontal overflow in side panels 2022-11-25 12:14:25 +00:00
Andrew Kingston abedb5d9eb Merge branch 'develop' of github.com:Budibase/budibase into side-panel 2022-11-25 11:24:57 +00:00
Andrew Kingston e40e82fd5f Tweak options cell to be pixel perfect 2022-11-25 10:17:03 +00:00
Gerard Burns a2889ec1a3 Skeleton Loading States (#8719)
* Loading Skeletons

* PR Feedback
2022-11-25 10:02:43 +00:00
Andrew Kingston 4e3400eb7f Add gap between items in an options cell 2022-11-25 08:48:18 +00:00
Andrew Kingston db13f7a2c3 Remove deletion notification and fix selection 2022-11-25 08:43:44 +00:00
Andrew Kingston adb03cefb2 Fix z-index issue with option cells 2022-11-25 08:35:08 +00:00
Andrew Kingston 152d157aaa Add ability to add new rows 2022-11-25 08:34:44 +00:00
Andrew Kingston fafb8ec938 Add row deletion and fix sizing 2022-11-24 20:06:31 +00:00
Andrew Kingston 6471464971 Add inline editing of options fields 2022-11-24 19:28:55 +00:00
Andrew Kingston b19a2a3d3a Refactor to use IDs and support changing text values inline 2022-11-24 16:41:53 +00:00
Andrew Kingston 1c3b6e0cec Add footer and improve styles 2022-11-24 15:59:24 +00:00
Andrew Kingston ae15690741 Add WIP spreadsheet 2022-11-24 14:12:40 +00:00
Andrew Kingston 343aff9f88 Update side panel transition to be much smoother 2022-11-23 16:14:58 +00:00
Andrew Kingston b879a49f4f Fix issues with not resetting side panel content 2022-11-23 15:05:04 +00:00
Andrew Kingston a04f58dd23 Fix crash when deleting a selected side panel component 2022-11-23 12:33:31 +00:00
Andrew Kingston 9ec58ca401 Use the new DOM ID method of determining the correct DOM node for a component 2022-11-23 12:32:40 +00:00
Andrew Kingston c01b9af1f0 Merge branch 'develop' of github.com:Budibase/budibase into side-panel 2022-11-22 16:52:09 +00:00
Andrew Kingston 170b8c4d61 Fix multiple issues with showing/hiding side panels inside the builder preview and dragging components inside side panel 2022-11-22 16:45:15 +00:00
Andrew Kingston c72b7807ca Prevent automatically closing side panels via an outside click when inside the builder 2022-11-22 16:44:35 +00:00
Andrew Kingston 7d06e59fb7 Make dndIsDragging available through SDK context 2022-11-22 16:43:48 +00:00
Andrew Kingston be3a004310 Fix side panel messing up builder preview scrolling and properly show/hide side panel when inside builder 2022-11-22 16:00:17 +00:00
Andrew Kingston c868cda7dd Remove automatic closing of side panel when screen changes as no longer needed 2022-11-22 15:51:57 +00:00
Andrew Kingston 43c5ddfe5f Fix side panel not scrolling properly 2022-11-22 15:49:11 +00:00
Mel O'Hagan f1c6d15999 Merge branch 'develop' into feature/dynamic-filter-custom-labels 2022-11-21 16:20:05 +00:00
deanhannigan 3dbea26407 Merge pull request #8714 from Budibase/feature/delete-and-duplicate-component-actions
Show settings bar for all components
2022-11-21 16:01:24 +00:00
mike12345567 cfbed0b236 Merge branch 'master' of github.com:Budibase/budibase into develop 2022-11-21 15:05:48 +00:00
Mel O'Hagan ba5116e6bc Handle original mappings 2022-11-21 15:02:44 +00:00
Andrew Kingston b71b5704da Use overlay side panel and update table block side panel heading 2022-11-21 11:05:06 +00:00
Mel O'Hagan 68d0a4c336 Allow custom labels for dynamic filter 2022-11-18 15:52:30 +00:00
Andrew Kingston 75ee5117ea Improve makeComponentUniqueUtil and improve ejected table block structure 2022-11-17 14:49:13 +00:00
Dean a69bccae24 Ensure the navigation does not show the settings bar 2022-11-17 14:40:16 +00:00
Andrew Kingston 539b6a8a96 Allow custom naming of components inside blocks for better ejection 2022-11-17 14:20:18 +00:00
Andrew Kingston 4e519d75b4 Ensure side panel ejection works properly and tidy up table block structure 2022-11-17 14:18:55 +00:00
Andrew Kingston 64828e3b06 Close side panel whenever screen changes 2022-11-17 14:18:17 +00:00
Dean c33e13fa4b Don't show delete or duplicate actions in the component settings bar 2022-11-17 14:10:55 +00:00
Dean dd065c0f55 Component settings bar now on by default. Manifest config cleared of showSettingsBar properties 2022-11-17 11:08:23 +00:00
Andrew Kingston e8b993b14c Add working side panels to table blocks 2022-11-17 10:16:45 +00:00
Andrew Kingston 1ab1329e49 Disregard block components from ejection which are unmounted during parent blocks lifecycles 2022-11-15 12:58:52 +00:00
Andrew Kingston 2b42b21b3a Add migration to automatically convert legacy table settings into new action setting 2022-11-15 11:54:45 +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 8b941df5ff Update tables to use button actions rather than link settings 2022-11-14 15:47:14 +00:00
Andrew Kingston aa81e0451a Add button action for showing/hiding side panels 2022-11-14 15:02:57 +00:00
Andrew Kingston 222f002039 Merge branch 'develop' of github.com:Budibase/budibase into side-panel 2022-11-14 13:24:47 +00:00
Gerard Burns e70710f7b9 Add Row Explorer Block (#8454)
* Add Row Explorer Block and Row Details Component

* PR Feedback

* adding showSaveButton prop to formblock in row explorer

* PR Feedback

* PR Feedback

* Change row explorer name in manifest

Co-authored-by: Martin McKeaveney <martinmckeaveney@gmail.com>
2022-11-14 11:54:44 +00:00
Andrew Kingston 4c366114f0 Fix date time field inconsistency with showing time 2022-11-14 09:33:01 +00:00
Andrew Kingston 2eeac325f3 Adjust styles so placeholder component is left aligned 2022-11-14 09:25:45 +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
Andrew Kingston fb9dd20c11 Update side panel styles and ensure side panel properly reveals itself in the builder 2022-11-10 14:34:23 +00:00
Andrew Kingston ce4f8ef5f9 Merge branch 'develop' of github.com:Budibase/budibase into side-panel 2022-11-09 16:57:24 +00:00
Andrew Kingston 43b5c120b5 Refactor form block to use a different structure depending on type, and fix issue with bindings breaking and forms not appearing 2022-11-09 10:28:15 +00:00
Mel O'Hagan 32f7843e55 Check schema exists for default value 2022-11-04 18:50:47 +00:00
mike12345567 04f1f983e4 Fix to allow close screen modal without navigating to a new page. 2022-11-03 13:23:29 +00:00
mike12345567 d79fc356ea Fix for #8491 - auto generated screens use the form block now which had an issue with the close screen event not providing a URL. 2022-11-03 12:50:52 +00:00
Gerard Burns db26fce00b Fix Form Block Create Mode Bindings Causing Error When Ejected 2022-11-02 18:17:20 +00:00
Dean 85d562ca23 Moved array value parsing back into the inner form 2022-11-02 00:37:08 +00:00
Martin McKeaveney 87717ebdf5 merge with master 2022-10-31 13:44:23 +00:00
Andrew Kingston 058547fd67 Add initial version of side panel component 2022-10-27 08:08:35 +01:00
Dean 5e61575e30 Refactored approach to parsing multiselect values and ensuring any parsed values trigger a field update 2022-10-26 15:13:27 +01:00
Andrew Kingston db55041c44 Slightly reduce DND padding between nested layers 2022-10-25 16:18:33 +01:00
Andrew Kingston cf7a4a4e6d Merge pull request #8376 from Budibase/cheeks-lab-day-grid
Grid component + builder performance improvements
2022-10-25 08:20:37 +01:00
Dean 72028b57ec Don't attempt to render the internal chart until a type has been set 2022-10-24 16:31:58 +01:00
Dean f4d3d99b9e Removed unnecessary block configuration elements 2022-10-24 16:21:08 +01:00
Andrew Kingston 729c4d082e Remove unnecessary code 2022-10-24 13:33:33 +01:00
Andrew Kingston c888b703dd Improve comments and namimg conventions 2022-10-24 13:32:48 +01:00
Andrew Kingston 1a37e1fc95 Remove some unnecessary code 2022-10-24 13:28:22 +01:00
Andrew Kingston 6615027403 Fix selection indicator appearing while dragging 2022-10-24 13:24:19 +01:00
Andrew Kingston 21cc815976 Allow padding on grids when using DND 2022-10-24 13:14:46 +01:00
Andrew Kingston ba1fe6db8a Remove some debug logging 2022-10-24 13:09:29 +01:00
Andrew Kingston 421708463a Add some additional styles to grids to ensure components render properly 2022-10-24 13:08:53 +01:00
Dean 2834a02ef4 Ensure chart axis labelling fits the current theme 2022-10-24 12:20:43 +01:00
Andrew Kingston 3951550074 Make grid rows and columns configurable and simplify grid style application 2022-10-24 12:05:59 +01:00
Andrew Kingston fb0866f0d9 Tidy up 2022-10-24 09:43:45 +01:00
Andrew Kingston c111f02e70 Improve client grid DND event handling 2022-10-24 09:38:07 +01:00
Andrew Kingston a11854d957 Fix issue with getting environment details 2022-10-24 09:13:05 +01:00
Andrew Kingston 32bac91dc7 Remove spam of environment API calls 2022-10-24 09:03:50 +01:00
Andrew Kingston ce78c5ecb9 Refactor app preview event sending to support async callbacks in client library 2022-10-24 09:02:50 +01:00
Andrew Kingston b26ab6f8b3 Fix flashing settings bar in stale position 2022-10-21 17:51:35 +01:00
Andrew Kingston 24cc71267c Fix stale hover indiciator 2022-10-21 17:51:25 +01:00
Andrew Kingston 4dc6b869a8 Lint and improve comments 2022-10-21 16:59:26 +01:00
Andrew Kingston 794db1a7db Make DND feel much smoother by persisting the end position of drops, and more performance by properly memoizing some state values 2022-10-21 16:54:34 +01:00
Andrew Kingston 67b6821b37 Fix components being selected when starting dragging 2022-10-21 16:52:46 +01:00
Dean 952b6ddb30 Merge remote-tracking branch 'origin/develop' into feature/chart-block-component 2022-10-21 14:21:25 +01:00
Dean cdcfbc6dce Initial commit for chart block component 2022-10-21 14:20:40 +01:00
Andrew Kingston 358e5996f5 Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-grid 2022-10-21 10:59:47 +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
Martin McKeaveney 7d8d0f5026 Merge pull request #8307 from Budibase/fix/stop-screen-store-double-updating-on-page-change
Stop Screen Store Double Updating on Screen Change
2022-10-20 20:35:18 +01:00
Andrew Kingston 73a229b9ec Add proper validation for nesting illegal combinations of components 2022-10-20 16:03:53 +01:00
Andrew Kingston 2e09dcbe03 Ensure a fixed height is set on grid by default 2022-10-20 08:46:42 +01:00
Andrew Kingston 1dffcd8d6c Update how grid DND styles are applied to remove flashing 2022-10-20 08:43:33 +01:00