Commit Graph

1328 Commits

Author SHA1 Message Date
Andrew Kingston 7b80dabfe2 Disregard block components from ejection which are unmounted during parent blocks lifecycles 2022-11-15 12:58:52 +00:00
Andrew Kingston 0935738fbd Add migration to automatically convert legacy table settings into new action setting 2022-11-15 11:54:45 +00:00
Andrew Kingston d7988a918e 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 1d8763acf5 Update tables to use button actions rather than link settings 2022-11-14 15:47:14 +00:00
Andrew Kingston 7d97ef1ff5 Add button action for showing/hiding side panels 2022-11-14 15:02:57 +00:00
Andrew Kingston d3528443d1 Merge branch 'develop' of github.com:Budibase/budibase into side-panel 2022-11-14 13:24:47 +00:00
Gerard Burns a33d4cae52
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 7506b6384a Fix date time field inconsistency with showing time 2022-11-14 09:33:01 +00:00
Andrew Kingston dcc98e69f8 Adjust styles so placeholder component is left aligned 2022-11-14 09:25:45 +00:00
FlaminWrap 8407f799c8 Ran yarn lint:fix
Ran yarn lint:fix as I forgot to do that
2022-11-13 17:25:48 +00:00
FlaminWrap 30aa85af0b 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 d4826ab806 Update side panel styles and ensure side panel properly reveals itself in the builder 2022-11-10 14:34:23 +00:00
Andrew Kingston 2abd212361 Merge branch 'develop' of github.com:Budibase/budibase into side-panel 2022-11-09 16:57:24 +00:00
Andrew Kingston 349cbf2866 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 40dfa8c049 Check schema exists for default value 2022-11-04 18:50:47 +00:00
mike12345567 870a6dd930 Fix to allow close screen modal without navigating to a new page. 2022-11-03 13:23:29 +00:00
mike12345567 02de19e9d9 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 9a75b31efc Fix Form Block Create Mode Bindings Causing Error When Ejected 2022-11-02 18:17:20 +00:00
Dean 65a4e9271a Moved array value parsing back into the inner form 2022-11-02 00:37:08 +00:00
Martin McKeaveney c2966025b4 merge with master 2022-10-31 13:44:23 +00:00
Andrew Kingston 09360cea55 Add initial version of side panel component 2022-10-27 08:08:35 +01:00
Dean a4125a97c5 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 6b562c70fa Slightly reduce DND padding between nested layers 2022-10-25 16:18:33 +01:00
Andrew Kingston 75aae5b7e0
Merge pull request #8376 from Budibase/cheeks-lab-day-grid
Grid component + builder performance improvements
2022-10-25 08:20:37 +01:00
Dean ad7e2f0688 Don't attempt to render the internal chart until a type has been set 2022-10-24 16:31:58 +01:00
Dean f0881dff48 Removed unnecessary block configuration elements 2022-10-24 16:21:08 +01:00
Andrew Kingston 7d51565bbe Remove unnecessary code 2022-10-24 13:33:33 +01:00
Andrew Kingston 702d1ad406 Improve comments and namimg conventions 2022-10-24 13:32:48 +01:00
Andrew Kingston c6ddbb6d04 Remove some unnecessary code 2022-10-24 13:28:22 +01:00
Andrew Kingston be10c64984 Fix selection indicator appearing while dragging 2022-10-24 13:24:19 +01:00
Andrew Kingston 53078d44e6 Allow padding on grids when using DND 2022-10-24 13:14:46 +01:00
Andrew Kingston a0c02be585 Remove some debug logging 2022-10-24 13:09:29 +01:00
Andrew Kingston 6010cfe2e2 Add some additional styles to grids to ensure components render properly 2022-10-24 13:08:53 +01:00
Dean 3086e87f0e Ensure chart axis labelling fits the current theme 2022-10-24 12:20:43 +01:00
Andrew Kingston 4fffa82573 Make grid rows and columns configurable and simplify grid style application 2022-10-24 12:05:59 +01:00
Andrew Kingston c6b7b1a2d4 Tidy up 2022-10-24 09:43:45 +01:00
Andrew Kingston ce532cc403 Improve client grid DND event handling 2022-10-24 09:38:07 +01:00
Andrew Kingston 9097b33fc9 Fix issue with getting environment details 2022-10-24 09:13:05 +01:00
Andrew Kingston e6d5ef50c9 Remove spam of environment API calls 2022-10-24 09:03:50 +01:00
Andrew Kingston 8d644c5a10 Refactor app preview event sending to support async callbacks in client library 2022-10-24 09:02:50 +01:00
Andrew Kingston 986141b8b1 Fix flashing settings bar in stale position 2022-10-21 17:51:35 +01:00
Andrew Kingston ca8fe0e9fd Fix stale hover indiciator 2022-10-21 17:51:25 +01:00
Andrew Kingston e124a70def Lint and improve comments 2022-10-21 16:59:26 +01:00
Andrew Kingston 9d10e938a4 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 575636ed3d Fix components being selected when starting dragging 2022-10-21 16:52:46 +01:00
Dean 6e7ba0d33a Merge remote-tracking branch 'origin/develop' into feature/chart-block-component 2022-10-21 14:21:25 +01:00
Dean 2dba5d18cd Initial commit for chart block component 2022-10-21 14:20:40 +01:00
Andrew Kingston 4ff441e83f Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-grid 2022-10-21 10:59:47 +01:00
Martin McKeaveney a6c5079190
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 9aaeaee7f8
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 fb84674e24 Add proper validation for nesting illegal combinations of components 2022-10-20 16:03:53 +01:00
Andrew Kingston b6f640b117 Ensure a fixed height is set on grid by default 2022-10-20 08:46:42 +01:00
Andrew Kingston 1508a5dc3b Update how grid DND styles are applied to remove flashing 2022-10-20 08:43:33 +01:00
Andrew Kingston 0c2e286ca7 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 803b11d65f Fix resizing not working inside grids 2022-10-19 13:16:42 +01:00
Andrew Kingston 4e17942a1d Allow normal DND in and out of grid children 2022-10-18 18:49:24 +01:00
Andrew Kingston 465d10a8be Allow grid DND without selecting components 2022-10-18 18:29:21 +01:00
Dean 0e4a7ace08 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 0e63a403bc Add grid functionality separately to DND 2022-10-18 16:18:22 +01:00
Dean b31f7f4b87 Refactor for multiselect value parsing and a fix to ensure default values are parsed before reaching the picker 2022-10-18 11:06:18 +01:00
Gerard Burns ead76f6ace Stop Screen Store Double Updating on Screen Change 2022-10-18 10:10:46 +01:00
Andrew Kingston c21a7b3e89 Merge branch 'dnd-improvements' of github.com:Budibase/budibase into cheeks-lab-day-grid 2022-10-18 08:12:11 +01:00
Andrew Kingston 5cdd6a692b Merge branch 'develop' of github.com:Budibase/budibase into dnd-improvements 2022-10-17 16:31:39 +01:00
Andrew Kingston da3202f3c3 Only transition padding when expanding components during DND, but remove it immediately on drop to avoid layout thrashing 2022-10-17 09:00:55 +01:00
Andrew Kingston 554b219d62 Use requestAnimationFrame for DND overlay placeholder updates to further improve performance 2022-10-17 08:48:32 +01:00
Andrew Kingston 3325b7b62b Update styles of padded DND components 2022-10-14 20:30:58 +01:00
Andrew Kingston d166cbb466 Lint and prevent scrolling to selected component when starting dragging 2022-10-14 19:45:47 +01:00
Andrew Kingston adc7e8e5fc Fix unused plugins not being able to be dragged into the preview 2022-10-14 19:39:38 +01:00
Andrew Kingston 011ba26769 Fix DND not working in field groups and any other component where children are not rendered inside the first DOM node 2022-10-14 19:34:23 +01:00
Andrew Kingston 622553978b Use block name in placeholders inside blocks 2022-10-14 19:13:44 +01:00
Andrew Kingston 5f7e0cb895 Prevent showing placeholder dot when placeholder is invisible 2022-10-14 19:04:05 +01:00
Andrew Kingston bdae511371 Fix double empty state around blocks 2022-10-14 18:59:32 +01:00
Andrew Kingston 78a5f9c891 Fix issues dropping components from new component panel 2022-10-14 18:24:47 +01:00
Andrew Kingston d02fb96e6e Invert some client store dependencies to improve performance and prevent dependency cycles 2022-10-14 18:16:19 +01:00
Andrew Kingston 23eb09ab6a Don't reset component padded state for DND until dragging stops, to prevent jankiness due to losing space 2022-10-14 15:45:02 +01:00
Andrew Kingston d997afffc0 Add ability to drag new components into the preview 2022-10-14 13:37:14 +01:00
Gerard Burns 3691fe2cc6
Page load actions now fire on parameter change as well as on mount (#8240)
* Page load actions now fire on parameter change as well as on mount

* PR Feedback

Co-authored-by: ger <ger@gers-MacBook-Pro.local>
2022-10-14 10:10:06 +01:00
Andrew Kingston 2c8dd09a56 Merge branch 'develop' of github.com:Budibase/budibase into dnd-improvements 2022-10-14 08:54:47 +01:00
Dean 7a2cd4403a Removed commented out barcode scanner config 2022-10-13 17:06:04 +01:00
Dean 2c2a98c163 Merge remote-tracking branch 'origin/develop' into feature/blocks-in-auto-screens 2022-10-13 16:54:55 +01:00
Dean b3c1f9196e Merge remote-tracking branch 'origin/develop' into feature/blocks-in-auto-screens 2022-10-13 16:49:10 +01:00
Dean c162ad458c Merge remote-tracking branch 'origin/develop' into feature/qr-barcode-reader 2022-10-13 16:16:28 +01:00
Rory Powell ef433633b2 Merge branch 'master' into merge-master 2022-10-12 10:19:46 +01:00
Dean f5089e52c6 Initial commit, refactoring of autoscreens to incorporate blocks 2022-10-11 17:05:19 +01:00
Andrew Kingston b5d50a71d7 Improve DND experience, use correct size of drop placeholder and don't drop if the position is unchanged 2022-10-11 16:02:09 +01:00
Andrew Kingston f2d1730139 Improve column/row detection by appending an ephemeral child component and tune timings 2022-10-11 08:52:45 +01:00
Dean 6809bd72ed Ensure field type is preserved if it contains a slash. Some additional refactoring 2022-10-10 14:20:06 +01:00
Andrew Kingston 0dd245c21c Remove dragged component from consideration of drop target 2022-10-10 14:00:37 +01:00
Mel O'Hagan 1b4531ec29 Allow deleteComponent from settings bar 2022-10-10 13:36:32 +01:00
Dean 806d832dff Code review updates 2022-10-10 10:39:34 +01:00
Andrew Kingston 90172ec2a1 Fully remove source component from client tree while dragging 2022-10-10 09:51:13 +01:00
Andrew Kingston c5b36863d2 Make DND work again by converting new parent+index params into old target+mode 2022-10-10 09:36:17 +01:00
Andrew Kingston 6cf3a0af5b Tune DND throttle rate 2022-10-10 09:22:47 +01:00
Dean 91e63ca2c9 Merge remote-tracking branch 'origin/develop' into feature/qr-barcode-reader 2022-10-10 09:08:48 +01:00
Andrew Kingston 9f7504c53f Reduce padding when dragging over a component tree and remove unused component class names 2022-10-08 15:32:36 +01:00
Andrew Kingston cf0891c911 Rename DND state variables for clarity 2022-10-08 15:28:22 +01:00
Andrew Kingston 6f73ecdc4c Fix row/column detection, add comments and remove old code 2022-10-08 15:18:05 +01:00
Andrew Kingston e9dfc9ad9f Throttle updates to prevent all jank and revert to component center breakboints for DND candidates 2022-10-08 15:04:18 +01:00
Andrew Kingston ab4eebc0cf Reduce jank by computing symmetrical component breakpoint whens considering DND candidate positions and ignoring the hidden selected component 2022-10-07 20:00:25 +01:00
Andrew Kingston 4a0be4523b Hide the selected component when dragging 2022-10-07 14:34:47 +01:00