Commit Graph

38 Commits

Author SHA1 Message Date
Gerard Burns e88ffea1a4
Modal component (#13848)
* wip

* wip

* wip

* wip

* wip

* add note for illegalChildren reset behavior

* on close working

* wip

* lint

* wip

* Fix potential remounting loop caused by spreading props and unnecessary component keying

* theme

* user prompt

* dotted border for empty

* PR Feedback

* lint

* fix modal background color

* use bbui modal

* lint

* fix indicator and prevent closing modal in builder

* pr feedback

* pr feedback

* fix fullscreen

---------

Co-authored-by: deanhannigan <deanhannigan@gmail.com>
Co-authored-by: Andrew Kingston <andrew@kingston.dev>
2024-06-18 11:18:05 +01:00
Dean 1e5506b8c3 Full support for signature field type and some feedback changes 2024-04-05 12:50:09 +01:00
Andrew Kingston 10c5eee87e Fix existing issue where command palette sits behinds modals 2024-03-11 11:00:04 +00:00
Gerard Burns de0414afbe
Update Svelte Major Version to 4 (#13036)
* update svelte versions

* temporarilly disable svelte warnings

* change bbap version pointed to

* remove sub module specifying svelte version

* point at updated account-portal

* add type declaration for svelte in the server

* add svelte transformer for server jest tests

* remove svelte from bbui package.json

* get builder tests working

* linting fixes

* prettier fixes

* fix server test

* fix another server test

* fix server serverlog test

* account-portal-version

* pin master version of pro

* revert hbs doc file in server to use triple braces, ensures nothing gets escaped
2024-02-22 13:19:29 +00:00
Andrew Kingston 6c38eb5a4c Add back in auto focus behaviour to modals but disable it for screen creation 2023-08-25 16:45:41 +01:00
Andrew Kingston 71c092be1e Stop focusing submit button in modals as this causes long modals to scroll to the bottom 2023-08-25 09:49:04 +01:00
Conor Webb 7e3b6fd07b Prevent premature closure of imported users modal. (#10916) 2023-06-15 09:41:17 +01:00
Andrew Kingston e5271bdef1 Command palette (#9942)
* command palette E2E

* tidy up

* 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

* Update command palette to support new data routes

* Update command palette, fix keybind issues and updating loading state

* Lint

* Fix publish command and fix preview published app URL

* Fix BBUI import

* Lint

* Fix datasource navigator selected state not working for internal DB or sample data

* Update command palette to use ctr+k/cmd+k

* Update command palette to match new designs and add visible categories

* Restore missing styles£

* Use proper theme constants for changing theme in command palette

* Add command palette action for inviting users

---------

Co-authored-by: Martin McKeaveney <martinmckeaveney@gmail.com>
2023-03-09 14:15:43 +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 ae62184e7d Update modal background colours to be themeable and use theme colours for nord and midnight 2022-08-01 09:54:30 +01:00
Andrew Kingston ba409b7b3b Auto focus modals so that escape and enter keys work without mouse intervention 2022-07-29 13:33:04 +01:00
Andrew Kingston 42b063d21b Fix soft bricking app when closing nested modals using escape key 2022-02-28 15:04:32 +00:00
Andrew Kingston 2eba603ad8 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 1a0d0de406 Fix modal not shrinking to fit screen size 2021-07-30 14:13:16 +01:00
Andrew Kingston a00473fa61 Remove hardcoded colours from BBUI modal component 2021-07-23 15:43:44 +01:00
Andrew Kingston 2003c69698 Update modal to support different events for hiding and cancelling, and support entry transitions for fixed modals 2021-06-21 09:57:17 +01:00
Andrew Kingston 099e7648e3 Adjust modal background to proper background color and add border in lightest them to inline modals 2021-05-10 16:52:09 +01:00
Andrew Kingston 0cd7dfa296 Add inline prop for modals to allow them to be used as actual components on pages 2021-05-10 16:14:39 +01:00
Andrew Kingston 8aaeac764b Use local transitions in modal to avoid issues with component unmounting when navigating away 2021-05-07 13:13:24 +01:00
Andrew Kingston c010eeb314 Fix prettier and fix crash when using certain views as data sources 2021-05-04 11:04:42 +01:00
Andrew Kingston 7fa700a537 Update merged files to use spectrum 2021-04-28 15:53:21 +01:00
Andrew Kingston f859ad5210 Update lots of font sizes, padding and other UI improvements 2021-04-23 10:48:19 +01:00
Andrew Kingston 3c8b6fa5c6 Revert to use manual handlers for closing rather than clickOutside action 2021-04-20 18:14:33 +01:00
Andrew Kingston d268064164 Update all backend table popovers to use spectrum and fix multiple bugs 2021-04-20 12:20:03 +01:00
Andrew Kingston 2ab62dc935 Replace RichText editor with spectrum text area 2021-04-16 16:00:10 +01:00
Andrew Kingston 3354aeff54 Make modals only close on a mousedown outside the modal rather than a click 2021-04-16 13:09:16 +01:00
Andrew Kingston b823f2bed1 Merge branch 'spectrum-bbui' of github.com:Budibase/budibase into spectrum-bbui-forms 2021-04-16 08:08:52 +01:00
Andrew Kingston 9a7cf3079a Fix modal transform causing inner overlays to incorrectly calculate window dimensions 2021-04-15 12:09:06 +01:00
Andrew Kingston 10fe99346f Improve modal layout, improve modal button spacing, use rollup for building to expose multple BBUI entrypoints 2021-04-15 11:50:56 +01:00
Keviin Åberg Kultalahti df5c2e04a7 adds Heading component 2021-04-14 10:40:44 +02:00
Keviin Åberg Kultalahti 59c88b0064 rework to use tick instead of manual timeout 2021-04-14 10:25:10 +02:00
Keviin Åberg Kultalahti 255512e309 adds focus action to first input field of modals 2021-04-14 10:22:45 +02:00
Keviin Åberg Kultalahti 5f7cfe3714 fix modal-container targeting for Portal component 2021-04-08 16:05:31 +02:00
Keviin Åberg Kultalahti 88e04eb9e2 small fixes to modal 2021-04-08 15:04:26 +02:00
Keviin Åberg Kultalahti 4c3db2b238 add underlay component and fix modal 2021-04-08 14:47:57 +02:00
Keviin Åberg Kultalahti 6797b9af59 converts modal to use spectrum variables 2021-04-08 13:44:42 +02:00
Keviin Åberg Kultalahti 7f4250dca2 wip: bbui modal to spectrum conversion 2021-04-08 13:26:45 +02:00
Andrew Kingston 64cd1aca32 Add BBUI package to monorepo 2021-03-31 10:59:07 +01:00