Commit Graph

637 Commits

Author SHA1 Message Date
Martin McKeaveney 665a9620a4 lint 2021-09-30 16:39:10 +01:00
Martin McKeaveney a251c8bfd0 merge with develop 2021-09-30 16:05:06 +01:00
Martin McKeaveney b8fef9965d end user ping for client apps 2021-09-30 15:03:57 +01:00
Martin McKeaveney 2f491f3b6f
Merge branch 'develop' into dnd 2021-09-30 14:56:23 +01:00
Andrew Kingston 5c6c21aeef Move all lucene logic into central builder helpers file 2021-09-27 12:59:49 +01:00
Andrew Kingston 78e4f00e11 Add button action for manually refreshing a data provider 2021-09-23 19:34:01 +01:00
Andrew Kingston c89e198bf8 Simplify some DND style rules 2021-09-21 08:47:43 +01:00
Andrew Kingston ee2e2799d9 Enable left/right side targetting for DND 2021-09-21 08:36:02 +01:00
Andrew Kingston 7663bdb534 Revert preservation of base component styles by styleable helper to fix stale styles being applied after removal 2021-09-20 16:47:53 +01:00
Andrew Kingston 18506f1235 Reduce DND snap to edge threshold to prevent unwanted target spamming on the edges of the parent component 2021-09-20 16:11:42 +01:00
Andrew Kingston cae514ca06 Simplify client app component re-render keying 2021-09-20 15:41:20 +01:00
Andrew Kingston 392a1f05ee Refactor DND labels to before and after rather then above and below 2021-09-20 15:35:27 +01:00
Andrew Kingston 9634b021a5 Refactor client app data tags to be classnames and simplify logic 2021-09-20 15:34:51 +01:00
Andrew Kingston 8defbd1ed2 Remove old and no longer needed component-id data tag applied by styleable helper 2021-09-20 12:20:34 +01:00
Andrew Kingston f65b374622 Remove preview specific data tags from components when running real apps 2021-09-20 12:16:23 +01:00
Andrew Kingston 0aedd8d802 Fix spectrum button not being able to be dragged 2021-09-20 12:14:40 +01:00
Andrew Kingston 03be8ee153 Prevent DND targetting either above or below the screen/layout, and fix bug determinging whether a drop target is valid 2021-09-20 09:12:35 +01:00
Andrew Kingston c2aeefae7b Only allow dropping inside empty components that accept children to massively reduce the amount of unwanted drop targets due to parent container components 2021-09-20 08:26:44 +01:00
Andrew Kingston 2c7e93423e Fix a few possible crashes by dragging in certain ways, and display on screen when an invalid drop target is hovered over 2021-09-20 08:06:01 +01:00
Andrew Kingston 8460744e68 Apply grab cursor when hovering over a draggable component 2021-09-17 14:30:54 +01:00
Andrew Kingston a6186dbd39 Refactor to use generic flag for dragging and hide settings bar when dragging 2021-09-17 14:17:50 +01:00
Andrew Kingston 53053c0ea2 Ensure hover indicator is correctly hidden when using DND and improve DND labels 2021-09-16 16:02:45 +01:00
Andrew Kingston 52c4beda8f Ensure transitions work properly when showing and hiding DND candidate positions 2021-09-16 15:49:58 +01:00
Andrew Kingston 2fc9672bfa Add labels to DND to describe where the component will be dropped 2021-09-16 15:08:42 +01:00
Andrew Kingston a05dc7e295 Add above/below dnd and support for dropping above/below components which also allow dropping inside 2021-09-16 14:28:44 +01:00
Andrew Kingston ebf783caee Fix progress circle never animating because of wrong default prop 2021-09-16 14:11:05 +01:00
Andrew Kingston b0f6bd9e76 Prevent dragging the screen or layout components, and prevent dragging any layout components when previewing a screen 2021-09-16 07:52:49 +01:00
Andrew Kingston 4be4dd014d Add initial DND implementation with working functionality for dropping inside components 2021-09-16 07:28:59 +01:00
Andrew Kingston 67b12b61bd
Merge pull request #2597 from Budibase/fix-left-nav
Small fixes for navigation bar
2021-09-13 15:04:47 +01:00
Andrew Kingston 5f48f99194
Merge pull request #2584 from Budibase/horizontal-bar-chart
Add horizontal bar chart setting
2021-09-13 11:41:26 +01:00
Andrew Kingston 36fa21f472 Fix 1px offset with left nav bar 2021-09-10 16:36:59 +01:00
Andrew Kingston 6831bbb5d7 Fix custom theme integration with date time field 2021-09-10 16:36:43 +01:00
Andrew Kingston 13bfc0212b Fix left navigation in layouts when on a tablet sized resolution 2021-09-10 15:13:48 +01:00
Andrew Kingston 2f367ed95c Update validation so that 'minimum' and 'minimum length' contraints both accept null values 2021-09-10 14:30:10 +01:00
Andrew Kingston ad3cb0a2c4 Add horizontal bar chart setting 2021-09-09 19:28:37 +01:00
Andrew Kingston 11e728a373 Rename client app wrapper divs for clarity 2021-09-08 10:28:19 +01:00
Andrew Kingston 3be5e15f82 Use correct component to determine device size 2021-09-08 10:22:48 +01:00
Andrew Kingston 079634851b Fix issue with endless scrolling when previewing a mobile device 2021-09-08 10:22:34 +01:00
Andrew Kingston 914548de0c Revert preview border to 1px and fix exact size of preview on different devices 2021-09-08 09:51:08 +01:00
Andrew Kingston 35abb39b24 Add support for correct mobile and tablet previews 2021-09-08 09:40:25 +01:00
Andrew Kingston 802cdc48c8 Update position of indicators in preview to clip better 2021-09-08 09:40:02 +01:00
Andrew Kingston ca9df2764d Merge branch 'develop' of github.com:Budibase/budibase into custom-theming 2021-09-06 17:29:51 +01:00
Andrew Kingston 44dd731be8 Add button to reset theme to default and fix determination of theme 2021-09-06 16:51:40 +01:00
Andrew Kingston b11deece29 Fix button theming and add nav text theming 2021-09-06 16:23:12 +01:00
Andrew Kingston 5568ab084b Add custom theme options for button roundedness and header color 2021-09-03 15:28:35 +01:00
mike12345567 42fb0584a2 Fixing an issue where many rows were handled from different tables in client. 2021-09-03 15:04:34 +01:00
mike12345567 2dd1e7f45e Fixing an issue that occurs when the table name and the primary display column are the same name. 2021-09-03 14:49:56 +01:00
Andrew Kingston 4781af1042 Ensure defaults are set for custom theming and fix a few inconsistencies 2021-09-03 14:43:21 +01:00
Andrew Kingston de9dce77f4 Add custom theming to icons 2021-09-03 11:53:25 +01:00
Andrew Kingston 7ee7feca16 Add custom theming for primary color and primary hover color to form components 2021-09-03 11:50:09 +01:00
Andrew Kingston dbbcf4052e Hide state action in old apps and add working basic implementation of theming 2021-09-02 11:38:41 +01:00
Andrew Kingston 3ab95c2004 Merge branch 'develop' of github.com:Budibase/budibase into custom-theming 2021-09-01 16:10:36 +01:00
Andrew Kingston 9e5805f092 Merge standard-components into the client library 2021-09-01 11:41:48 +01:00
Andrew Kingston 23a6267f6a Add ability to persist state values in local storage 2021-08-26 17:52:04 +01:00
Andrew Kingston a7be624d64 Add client app state and button actions to control it 2021-08-26 11:28:44 +01:00
Andrew Kingston 8cdda6d208
Merge pull request #2441 from Budibase/multistep-forms
Multi-step forms
2021-08-25 12:40:44 +01:00
Andrew Kingston 1b91db2ece Prevent opening a screen modal if already inside a screen modal 2021-08-24 15:56:23 +01:00
Andrew Kingston 6be1e0c828 Fix issue with memoizing onclick handlers nested inside conditional UI conditions 2021-08-23 16:39:09 +01:00
Andrew Kingston 8c114fae34 Show component hidden by conditional UI if they would otherwise hide the selected component 2021-08-23 14:01:57 +01:00
Andrew Kingston 7f07390277 Add single button action for changing form step 2021-08-20 09:54:54 +01:00
Andrew Kingston 10066bf3e0 Fix dependency loop in client stores 2021-08-20 09:27:38 +01:00
Andrew Kingston a895771179 Fix bug determining whether an app is inside the preview or not 2021-08-19 16:06:33 +01:00
Andrew Kingston 643952e119 Fix crash when evaluating builder preview specific code in prod apps 2021-08-19 16:04:15 +01:00
Andrew Kingston a5778f9dbc Ensure that the correct form step is always visible in builder preview 2021-08-19 14:53:13 +01:00
Andrew Kingston 3fa5b3b571 Update validate form action to be able to only validate the current form step 2021-08-19 12:52:50 +01:00
Andrew Kingston 9e24a76810 Ensure client preview indicator doesn't crash when encountering incorrect node types 2021-08-19 12:52:13 +01:00
Andrew Kingston 01b28f358a Add button actions for navigating form steps 2021-08-18 15:21:18 +01:00
Andrew Kingston c44d0a684b Support multiple component context exports and export additional context from forms 2021-08-18 14:58:58 +01:00
Andrew Kingston 2e778a1111 Tidy up device bindings provider 2021-08-13 11:34:11 +01:00
Andrew Kingston f4d965347d Add global data bindings for mobile and tablet device sizes 2021-08-13 11:24:47 +01:00
mike12345567 42f08f97cc Revert "Merge pull request #2253 from Budibase/revert-2076-feature/multi-tenants"
This reverts commit 0d2e2314d4, reversing
changes made to 1beca4ee96.
2021-08-05 09:59:08 +01:00
Martin McKeaveney d9ad54d939 merge with master 2021-08-04 13:20:11 +01:00
Andrew Kingston e865a5d363
Merge pull request #2233 from Budibase/peek-screen
Open screen in modal
2021-08-04 12:08:49 +01:00
Michael Drury 655bfe1a0c
Merge branch 'develop' into feature/multi-tenants 2021-08-04 10:07:31 +01:00
Michael Drury f37946d47e
Revert "Multi-tenancy/organisations" 2021-08-04 10:02:24 +01:00
Michael Drury 1beca4ee96
Merge pull request #2076 from Budibase/feature/multi-tenants
Multi-tenancy/organisations
2021-08-04 10:01:22 +01:00
Andrew Kingston 933b5d41f8 Lint 2021-08-03 12:52:01 +01:00
Andrew Kingston 74b323faa3 Fix going full-screen when opening an external link in a modal 2021-08-03 12:22:06 +01:00
Andrew Kingston f095be6aac Darken modal underlay and add actions above screen modal to allow entering full screen or closing 2021-08-03 12:02:20 +01:00
Andrew Kingston 062d7e4450 Rename visual actions from 'peek' to just 'open' screen in modal 2021-08-02 15:50:59 +01:00
Andrew Kingston 473ccd27fa Add action to close peek modal and proxy notifications from the iframe 2021-08-02 15:12:38 +01:00
Andrew Kingston c7566a7b90 Revert to a cleaner modal with no title or buttons for screen peeking 2021-07-30 18:16:37 +01:00
Andrew Kingston 86e4f05670 Make full screen button quiet in peek modals 2021-07-30 14:13:43 +01:00
Andrew Kingston 7fef963067 Add initial work on peeking screens, only show one notification at a time, use spectrum notifications 2021-07-30 14:01:01 +01:00
Andrew Kingston 177834ea8a Add back in client app border only when inside builder preview 2021-07-30 10:06:16 +01:00
Martin McKeaveney f1fcbc22c6 merge with master 2021-07-29 10:06:33 +01:00
Martin McKeaveney 3736049f27 remove border around app 2021-07-28 22:50:27 +01:00
Martin McKeaveney 9540cb1048
Merge pull request #2114 from mslourens/clear_form_action
Clear form action
2021-07-28 10:42:17 +01:00
mike12345567 e2e796cd9d Merge branch 'develop' of github.com:Budibase/budibase into feature/multi-tenants 2021-07-27 10:32:18 +01:00
Maurits Lourens d485e95e7b fix lint issues 2021-07-26 15:22:14 +02:00
Maurits Lourens aea2de9058 Merge branch 'develop' into clear_form_action
# Conflicts:
#	packages/client/src/utils/buttonActions.js
2021-07-26 15:13:10 +02:00
Andrew Kingston caccba8fd8 Simplify logic for determine default visibility for a conditional UI component 2021-07-26 13:16:45 +01:00
Andrew Kingston bbcc350b14 Merge branch 'develop' of github.com:Budibase/budibase into conditional-ui 2021-07-26 13:04:08 +01:00
Maurits Lourens 35d5a2d082 clear form action - draft 2021-07-26 13:58:18 +02:00
Andrew Kingston 41953e049d Add full type support to conditional UI 2021-07-26 12:52:55 +01:00
Andrew Kingston de9f60c986 Redirect to login screen on client logout to prevent viewing public pages if they exist 2021-07-25 13:47:28 +01:00
Andrew Kingston 59bfba4331 Fix error with refreshing app package so that page reload on logout can be prevented 2021-07-25 13:43:07 +01:00
Andrew Kingston 7107b6aff3 Reload location on client logout for full reset, avoiding error when public pages exist 2021-07-25 13:29:27 +01:00
Michael Drury a824746df9 Linting. 2021-07-25 12:09:50 +01:00
Michael Drury 48f797185c Adding back logout functionality. 2021-07-25 12:07:25 +01:00
Andrew Kingston fdb11e102f
Merge pull request #2065 from Budibase/fix/save-row-action
Use tableId parameter when saving rows from button action
2021-07-24 12:13:09 +01:00
mike12345567 36e1ddf423 Merge branch 'master' of github.com:Budibase/budibase into develop 2021-07-23 17:02:33 +01:00
mike12345567 3e8d7a8ae2 Merge branch 'fix/lucene-filtering' of github.com:Budibase/budibase into feature/multi-tenants 2021-07-23 16:11:05 +01:00
Andrew Kingston 143135151a Send api version as header with every request from client library 2021-07-23 15:56:18 +01:00
Andrew Kingston 4fd293063e Enrich button actions nested inside conditions 2021-07-23 15:44:16 +01:00
Andrew Kingston 24f6adbcca Add initial work on dynamically updating any setting via conditional UI 2021-07-22 19:19:37 +01:00
Andrew Kingston c67e47d7ab Use tableId parameter when saving rows from button action 2021-07-22 16:50:35 +01:00
mike12345567 190798d4ee Swapping admin -> global in worker to reduce confusion in API url naming. 2021-07-22 12:56:47 +01:00
Andrew Kingston e721d4e01d Add initial work on evaluation of conditional UI conditions in client library 2021-07-21 14:03:49 +01:00
Andrew Kingston 70d29c32f8 Merge branch 'master' of github.com:Budibase/budibase into develop 2021-07-07 11:48:38 +01:00
Andrew Kingston 19f2a2067e Improve handling of permission issues and routing issues, and add an error fallback message 2021-07-07 11:29:35 +01:00
Andrew Kingston 1ef2820b5d Expose the screens and layouts from the screen store in the client library 2021-07-07 11:28:53 +01:00
Andrew Kingston b6c6dba721 Don't attempt to enrich a user object whenever the role is PUBLIC to avoid 403s 2021-07-07 11:28:35 +01:00
Andrew Kingston 8c39c4792d Add error handling to builder preview and loading indicator 2021-07-07 11:10:23 +01:00
Andrew Kingston 0381204855 Don't reload client app on 403, just show an error instead 2021-07-06 18:37:06 +01:00
Andrew Kingston a84d1d2ec8 Update remaining static color variables to spectrum instead 2021-07-05 14:02:49 +01:00
Andrew Kingston 4c9279bd91 Update colors of selection and hover indicators in client apps 2021-07-05 09:37:06 +01:00
Andrew Kingston 07ed0b1217 Merge branch 'develop' of github.com:Budibase/budibase into spectrum-apps 2021-07-05 09:03:24 +01:00
Andrew Kingston 9c954609fd Add border style as an explicit option to prevent issues with dynamically adding it via the styleable helper 2021-07-01 00:40:16 +01:00
Andrew Kingston a36ddac591 Update colours of selection indicators 2021-06-30 21:23:55 +01:00
Andrew Kingston 602255c1fc Fetch and use app theme in real client apps 2021-06-30 20:35:02 +01:00
Andrew Kingston e0e6ef29a2 Add custom scrollbars to client apps 2021-06-30 19:57:31 +01:00
Andrew Kingston d7ea2fddea Set light as default app theme 2021-06-30 19:41:09 +01:00
Andrew Kingston 3a615306a6 Add error handling to builder preview and loading indicator 2021-06-30 19:37:03 +01:00
Andrew Kingston b4a8a9c160 Add better theme compatibility to color picker and client app components 2021-06-30 08:30:57 +01:00
Andrew Kingston 9a6a0fded7 Use the real current user even inside builder preview 2021-06-29 17:41:02 +01:00
Andrew Kingston d28c48ccad Add global app theme picker and use it in client preview 2021-06-28 12:55:11 +01:00
Andrew Kingston f467f9809c Fix border not being applied due to missing border-style rule 2021-06-28 10:15:14 +01:00
Andrew Kingston ed2ff97df1 Add ability for buttons to link to external URLs 2021-06-25 16:07:25 +01:00
Andrew Kingston 171b4c9f9f Aggressively optimise client library to prevent handlebars enrichment where possible 2021-06-25 15:04:27 +01:00
Andrew Kingston aecebc96a7 Be more explicit about hiding overflow at the top levels of an app 2021-06-24 12:14:19 +01:00
Andrew Kingston af2097e3eb Hide overflow when showing empty component placeholders 2021-06-24 12:13:55 +01:00
Andrew Kingston 14fa37deac Merge branch 'develop' of github.com:Budibase/budibase into design-panel-v2 2021-06-24 11:44:49 +01:00
Andrew Kingston d0ba754a02 Add new typography settings, add new settings bar dropdowns, add settings bar to text components 2021-06-23 14:21:37 +01:00
mike12345567 7c38150fbb Allowing self endpoints to 403 and not reload page. 2021-06-22 16:54:25 +01:00
mike12345567 21a2632da7 Adding a page reload when 403 occurs, if token has expired this will return to login page. 2021-06-22 12:39:52 +01:00
mike12345567 0248098964 Merge branch 'develop' of github.com:Budibase/budibase into feature/opinionated-sql 2021-06-21 13:05:39 +01:00
Martin McKeaveney 3d89604680 merge 2021-06-21 11:19:22 +01:00
Andrew Kingston b7991ea894 Use action name as confirmation modal title 2021-06-21 10:46:55 +01:00
Andrew Kingston 4352611fc7 Fix typo 2021-06-21 10:11:18 +01:00
Andrew Kingston 312674bfa7 Add support for confirmable action handling by client library 2021-06-21 09:56:46 +01:00
Andrew Kingston 9f8eeb7c99 Remove transition setting from components 2021-06-18 12:41:15 +01:00
Andrew Kingston cb425e349c Adjuts top position of settings bar when no room 2021-06-17 16:23:17 +01:00
Andrew Kingston 42316d51cd Key client layout component to ensure fully remounting when swapping layouts in the builder preview 2021-06-17 13:20:29 +01:00
mike12345567 113486ef48 Merge branch 'master' of github.com:Budibase/budibase into feature/opinionated-sql 2021-06-15 20:00:52 +01:00
mike12345567 11c52f26ad Formatting. 2021-06-14 19:07:13 +01:00
mike12345567 564cdd8102 Some of the functionality required for external SQL rows API. 2021-06-14 19:05:39 +01:00
Andrew Kingston d522483f54 Move scrolling to layout level and provide opinionated defaults 2021-06-14 18:24:02 +01:00
mike12345567 bf47a66442 Fixing internal delete. 2021-06-14 13:52:06 +01:00
Andrew Kingston 440e80e890 Prevent hovering over layout components when editing screens 2021-06-11 13:34:37 +01:00