Commit Graph

9395 Commits

Author SHA1 Message Date
Michael Shanks 3a319fbc7c bugfix: modal getting stuck on open (but hidden)
Recreate: Add Datatable component (from) index... try adding new screen... screen dialog does not show
2020-03-05 16:14:36 +00:00
Michael Shanks 09178dbdb1 bugfix: modal getting stuck on open (but hidden)
Recreate: Add Datatable component (from) index... try adding new screen... screen dialog does not show
2020-03-05 16:14:36 +00:00
Michael Shanks 3015512ae0 Confirm dialog had mixup colours 2020-03-05 15:21:29 +00:00
Michael Shanks 4aaf9788f8 Confirm dialog had mixup colours 2020-03-05 15:21:29 +00:00
Martin McKeaveney 236679dc56 logrocket analytics 2020-03-04 16:47:47 +00:00
Martin McKeaveney 573f837c4f logrocket analytics 2020-03-04 16:47:47 +00:00
Michael Shanks fad9337af9 bugfix: css not applied after template component added 2020-03-04 12:43:02 +00:00
Michael Shanks 6ff54434ab bugfix: css not applied after template component added 2020-03-04 12:43:02 +00:00
Michael Shanks 34f74d5d20 bugfix: create screen > components not displayed 2020-03-04 12:13:50 +00:00
Michael Shanks 8546fd6da9 bugfix: create screen > components not displayed 2020-03-04 12:13:50 +00:00
Michael Shanks 7caf336240 bugfix: screen prop 'url' was changed to 'route' 2020-02-27 21:34:52 +00:00
Michael Shanks 2d67d031c3 bugfix: screen prop 'url' was changed to 'route' 2020-02-27 21:34:52 +00:00
Martin McKeaveney f746a0416c lint failures 2020-02-27 16:45:24 +00:00
Martin McKeaveney 58ea78b8be lint failures 2020-02-27 16:45:24 +00:00
Martin McKeaveney 86504a44d6 fix reactive declaration 2020-02-27 16:41:41 +00:00
Martin McKeaveney e07d430482 fix reactive declaration 2020-02-27 16:41:41 +00:00
Martin McKeaveney 013e2f773b select fix, select all on access levels, modal fixes 2020-02-27 16:41:41 +00:00
Martin McKeaveney 71e88f4de5 select fix, select all on access levels, modal fixes 2020-02-27 16:41:41 +00:00
Michael Shanks f54f2fa4c3 bugfix: images only rendering hen running in dev mode 2020-02-27 11:55:00 +00:00
Michael Shanks d7ac067a3c bugfix: images only rendering hen running in dev mode 2020-02-27 11:55:00 +00:00
Martin McKeaveney bf365abaa8 more UI tidy up 2020-02-26 18:16:31 +00:00
Martin McKeaveney 97a72ed966 more UI tidy up 2020-02-26 18:16:31 +00:00
Michael Shanks b0e0a7df6f Merge remote-tracking branch 'origin/master' 2020-02-26 16:41:46 +00:00
Michael Shanks 48240c5941 Merge remote-tracking branch 'origin/master' 2020-02-26 16:41:46 +00:00
Michael Shanks c9b203bcbe Conflicts from PR #122 from @pngwyn 2020-02-26 16:36:30 +00:00
Michael Shanks 92c74bab0f Conflicts from PR #122 from @pngwyn 2020-02-26 16:36:30 +00:00
pngwn 8ab75549a2 Rename detailProp to metadataProp 2020-02-26 12:45:20 +00:00
pngwn 2d1dc5bdb3 Rename detailProp to metadataProp 2020-02-26 12:45:20 +00:00
pngwn b0efaac0f6 Make page and screen props editable. 2020-02-26 10:26:19 +00:00
pngwn 862a32af9b Make page and screen props editable. 2020-02-26 10:26:19 +00:00
Michael Shanks df472e8ca1 Merge branch 'master' of github.com:Budibase/budibase 2020-02-25 17:06:00 +00:00
Michael Shanks 4809105fc3 Merge branch 'master' of github.com:Budibase/budibase 2020-02-25 17:06:00 +00:00
Michael Shanks e6ca4cefae bugfix: scrollable UI nav 2020-02-25 16:14:10 +00:00
Michael Shanks 5e3af12984 bugfix: scrollable UI nav 2020-02-25 16:14:10 +00:00
Michael Shanks 071c0ebb40 custom code - added "route" param 2020-02-25 16:01:23 +00:00
Michael Shanks 36f318a847 custom code - added "route" param 2020-02-25 16:01:23 +00:00
Martin McKeaveney 0d0f635db4 eslint tidy up 2020-02-25 15:46:04 +00:00
Martin McKeaveney 7ae40de558 eslint tidy up 2020-02-25 15:46:04 +00:00
Michael Shanks d8ce468228 bugfix: could not add template components 2020-02-25 14:26:43 +00:00
Michael Shanks 455803030d bugfix: could not add template components 2020-02-25 14:26:43 +00:00
Michael Shanks e870576d67 renamed NewComponent > NewScreen 2020-02-25 10:05:43 +00:00
Michael Shanks e8a003f82e renamed NewComponent > NewScreen 2020-02-25 10:05:43 +00:00
Michael Shanks 5ac25bce6a renamed NewComponent > NewScreen 2020-02-25 10:03:40 +00:00
Michael Shanks f11853a790 renamed NewComponent > NewScreen 2020-02-25 10:03:40 +00:00
Michael Shanks 3a98e23ffb bugfix: create new screen exception 2020-02-25 10:01:26 +00:00
Michael Shanks 22560c475e bugfix: create new screen exception 2020-02-25 10:01:26 +00:00
Michael Shanks b28f28a167 New Screen - Route Validation 2020-02-25 10:01:07 +00:00
Michael Shanks f4eaf4d896 New Screen - Route Validation 2020-02-25 10:01:07 +00:00
Michael Shanks 4750309fed buxfix: layout issue on NewComponent (screen) 2020-02-25 09:38:50 +00:00
Michael Shanks 1e27a2dabf buxfix: layout issue on NewComponent (screen) 2020-02-25 09:38:50 +00:00
Michael Shanks 3becfc72af Merge branch 'master' of github.com:Budibase/budibase 2020-02-25 09:11:25 +00:00
Michael Shanks 0762ab1522 Merge branch 'master' of github.com:Budibase/budibase 2020-02-25 09:11:25 +00:00
Martin McKeaveney a8311cc3a3 switch prop on component selection 2020-02-24 23:23:33 +00:00
Martin McKeaveney a7998f0a6d switch prop on component selection 2020-02-24 23:23:33 +00:00
Michael Shanks 3c8f3f522a backend - child panes scrollable 2020-02-24 21:31:35 +00:00
Michael Shanks 43522aad22 backend - child panes scrollable 2020-02-24 21:31:35 +00:00
Michael Shanks d26abe8aad bugfix: select being cut off on windows 2020-02-24 20:49:50 +00:00
Michael Shanks dafef90c3d bugfix: select being cut off on windows 2020-02-24 20:49:50 +00:00
Martin McKeaveney 2f45702513
Fix layout bug 2020-02-24 17:35:15 +00:00
Martin McKeaveney 94fb7d0663 Fix layout bug 2020-02-24 17:35:15 +00:00
Martin McKeaveney cba018d530
Merge pull request #126 from shogunpurple/backend-design
Backend design
2020-02-24 17:06:02 +00:00
Martin McKeaveney e88d3e821a Merge pull request #126 from shogunpurple/backend-design
Backend design
2020-02-24 17:06:02 +00:00
Martin McKeaveney 41d0497055 global style abstraction, backend UI updates 2020-02-24 16:41:02 +00:00
Martin McKeaveney e518da0a62 global style abstraction, backend UI updates 2020-02-24 16:41:02 +00:00
Martin McKeaveney 5793413126 style abstraction 2020-02-24 15:00:52 +00:00
Martin McKeaveney f5becf920b style abstraction 2020-02-24 15:00:52 +00:00
Michael Shanks 9bab862b4d typo: UIFunctions attached to page not screen 2020-02-24 14:56:49 +00:00
Michael Shanks be60091916 typo: UIFunctions attached to page not screen 2020-02-24 14:56:49 +00:00
Michael Shanks 6f234706af bugfix: custom code not getting attached poperly 2020-02-24 14:56:11 +00:00
Michael Shanks d1a48ec3a6 bugfix: custom code not getting attached poperly 2020-02-24 14:56:11 +00:00
Michael Shanks 503816bc7e bugfix - css not sent for all screens 2020-02-24 11:05:52 +00:00
Michael Shanks 264eb6da5a bugfix - css not sent for all screens 2020-02-24 11:05:52 +00:00
Michael Shanks 1a1a9e81e0
Merge pull request #121 from shogunpurple/state-management-v2
State management v2
2020-02-23 22:16:56 +00:00
Michael Shanks ccc55ae8b5 Merge pull request #121 from shogunpurple/state-management-v2
State management v2
2020-02-23 22:16:56 +00:00
Michael Shanks 0902febc00 uiFunctions receive state and routeParams 2020-02-21 23:01:16 +00:00
Michael Shanks bd5adc45cb uiFunctions receive state and routeParams 2020-02-21 23:01:16 +00:00
Michael Shanks b2c045c0ca standalone templates 2020-02-21 22:56:18 +00:00
Michael Shanks 38656f5ceb standalone templates 2020-02-21 22:56:18 +00:00
Michael Shanks 20ae671eef standalone templates (templates with no component) 2020-02-21 21:27:44 +00:00
Michael Shanks 1398a00212 standalone templates (templates with no component) 2020-02-21 21:27:44 +00:00
Martin McKeaveney defb31910e lerna version 2020-02-21 18:06:23 +00:00
Martin McKeaveney 91c2e187c6 lerna version 2020-02-21 18:06:23 +00:00
Martin McKeaveney 395dcd1cc2 finished state management ui for v2 2020-02-21 18:02:02 +00:00
Martin McKeaveney 55d43fad80 finished state management ui for v2 2020-02-21 18:02:02 +00:00
Martin McKeaveney 412aa6739f state management bindings 2020-02-21 15:44:48 +00:00
Martin McKeaveney b7a5735a05 state management bindings 2020-02-21 15:44:48 +00:00
Michael Shanks c0097f766e bugfix: binding broken in propertycascader 2020-02-21 15:39:56 +00:00
Michael Shanks 5b1bbad6c6 bugfix: binding broken in propertycascader 2020-02-21 15:39:56 +00:00
Michael Shanks 4b807d8f09 bindings can now be just a string (store.someValue) 2020-02-21 14:44:48 +00:00
Michael Shanks ab0db65048 bindings can now be just a string (store.someValue) 2020-02-21 14:44:48 +00:00
Michael Shanks 7f557c98c1
Merge pull request #116 from pngwn/icons-update
Use remix icons for consistency.
2020-02-21 11:45:38 +00:00
Michael Shanks 098a851cdb Merge pull request #116 from pngwn/icons-update
Use remix icons for consistency.
2020-02-21 11:45:38 +00:00
Michael Shanks 8777f7e9f8 Merge branch 'master' of github.com:Budibase/budibase 2020-02-21 11:43:41 +00:00
Michael Shanks 383a639aba Merge branch 'master' of github.com:Budibase/budibase 2020-02-21 11:43:41 +00:00
pngwn fd4f0beb14 Use remix icons for consistency. Styling tweaks. 2020-02-21 11:09:37 +00:00
pngwn f29de61dde Use remix icons for consistency. Styling tweaks. 2020-02-21 11:09:37 +00:00
Michael Shanks 546dd05718 bugfix: generate css on screen change 2020-02-21 09:27:43 +00:00
Michael Shanks 548c8bb305 bugfix: generate css on screen change 2020-02-21 09:27:43 +00:00
Martin McKeaveney b46d33ad59
Update store.js 2020-02-20 21:21:16 +00:00
Martin McKeaveney f0ed967c87 Update store.js 2020-02-20 21:21:16 +00:00
Michael Shanks 7940d12c62 dodgy merge 2020-02-20 17:27:48 +00:00
Michael Shanks 1bb0a9a14b dodgy merge 2020-02-20 17:27:48 +00:00
Michael Shanks f2e6ac0145 merge conflicts from peter/tweaks 2020-02-20 17:11:41 +00:00
Michael Shanks 42b3893c21 merge conflicts from peter/tweaks 2020-02-20 17:11:41 +00:00
Michael Shanks f9f2abac33 reduced padding on comp hierarchy 2020-02-20 17:09:35 +00:00
Michael Shanks 187a9213ae reduced padding on comp hierarchy 2020-02-20 17:09:35 +00:00
Michael Shanks 9285b5281c ensure component templates exist when presets do not 2020-02-20 17:09:14 +00:00
Michael Shanks 6b4e6076c3 ensure component templates exist when presets do not 2020-02-20 17:09:14 +00:00
Michael Shanks 1df16e880c create props - ensure _styles always exist 2020-02-20 17:08:51 +00:00
Michael Shanks 5f7511e3fd create props - ensure _styles always exist 2020-02-20 17:08:51 +00:00
Michael Shanks c9191f408f store method for save page or screen (context dependant) 2020-02-20 17:08:17 +00:00
Michael Shanks 21461645cc store method for save page or screen (context dependant) 2020-02-20 17:08:17 +00:00
Michael Shanks d31d8c8e7e added height and width as positioning options 2020-02-20 17:07:25 +00:00
Michael Shanks 1d2f079914 added height and width as positioning options 2020-02-20 17:07:25 +00:00
Michael Shanks cd829182f9 component templates 2020-02-19 21:38:21 +00:00
Michael Shanks 99c8814533 component templates 2020-02-19 21:38:21 +00:00
Michael Shanks cf719a6d32 bad layout of component actions, on everything but firefox 2020-02-19 14:12:24 +00:00
Michael Shanks 1559b08ce2 bad layout of component actions, on everything but firefox 2020-02-19 14:12:24 +00:00
Michael Shanks d072c356ef bugfix: component libraries loaded incorrectly 2020-02-19 13:58:06 +00:00
Michael Shanks 5d0f9b788c bugfix: component libraries loaded incorrectly 2020-02-19 13:58:06 +00:00
Michael Shanks c9143a801f reording and duplication of components 2020-02-19 10:17:31 +00:00
Michael Shanks d9ceee49a1 reording and duplication of components 2020-02-19 10:17:31 +00:00
Michael Shanks 6ee72d7301 bug in store - insertCodeMetadata import vanished 2020-02-18 21:22:43 +00:00
Michael Shanks e0c67a9ac5 bug in store - insertCodeMetadata import vanished 2020-02-18 21:22:43 +00:00
Martin McKeaveney e1eada45b8 tidy up 2020-02-18 20:35:43 +00:00
Martin McKeaveney 1390fba035 tidy up 2020-02-18 20:35:43 +00:00
Martin McKeaveney 8b64c64bab removed generators, added simple presets to standard components 2020-02-18 20:35:43 +00:00
Martin McKeaveney 3a406bc0da removed generators, added simple presets to standard components 2020-02-18 20:35:43 +00:00
Michael Shanks 83953922d7
Merge branch 'master' into 98-builtin-slot 2020-02-18 17:11:46 +00:00
Michael Shanks c033db0e2d Merge branch 'master' into 98-builtin-slot 2020-02-18 17:11:46 +00:00
pngwn 2396702c08 Remove more logs 2020-02-18 17:05:08 +00:00
pngwn 625ebdc36e Remove more logs 2020-02-18 17:05:08 +00:00
pngwn d3f6074e61 Remove logs 2020-02-18 17:03:36 +00:00
pngwn fe7a7c7010 Remove logs 2020-02-18 17:03:36 +00:00
pngwn 315c11d668 Ensure slot renders in current preview. 2020-02-18 17:00:56 +00:00
pngwn a29dc4561e Ensure slot renders in current preview. 2020-02-18 17:00:56 +00:00
Michael Shanks 7d9d15c783 #94 Remove component from hierarchy 2020-02-18 16:51:28 +00:00
Michael Shanks 32b1f9cd89 #94 Remove component from hierarchy 2020-02-18 16:51:28 +00:00
pngwn 063cb0f41f Add screenslot to current preview. 2020-02-18 15:53:22 +00:00
pngwn 3c51f731ef Add screenslot to current preview. 2020-02-18 15:53:22 +00:00
Michael Shanks 4089b52c53
Client Api - New state binding method (#105)
* new binding...
- state manager
- one store per screen
- not passing

* client lib binding - tests passing

* binding fully working again post stateManager

* bugfix with button component

* Control flow ("code") now working, tests passing

* Events List now reading from component definition

* fix to button.svelte - missing props._children
2020-02-18 12:29:38 +00:00
Michael Shanks 56c25fee90 Client Api - New state binding method (#105)
* new binding...
- state manager
- one store per screen
- not passing

* client lib binding - tests passing

* binding fully working again post stateManager

* bugfix with button component

* Control flow ("code") now working, tests passing

* Events List now reading from component definition

* fix to button.svelte - missing props._children
2020-02-18 12:29:38 +00:00
pngwn 4a62525949 Add builtin slot to list 2020-02-18 10:32:00 +00:00
pngwn 6db4394562 Add builtin slot to list 2020-02-18 10:32:00 +00:00
Michael Shanks b7d9e05641
Work on Components API & bugfixes (#102)
* typo - screens not being sent to page save

* removed children arg from hydrateChildren (n/a)

* initialiseChildren does not rerender unless forced

* removed derivatives of initialiseChildren

* renamed initialiseChildren > attachChildren

* standard-components - refactoring

div now container
H1, h2... etc now Heading with type
Select now takes option as _children

* loads of bug fixing

* safe props creation
anytime props are loaded,
we make sure they conform to the components props definition
2020-02-14 11:51:45 +00:00
Michael Shanks c9961feee5 Work on Components API & bugfixes (#102)
* typo - screens not being sent to page save

* removed children arg from hydrateChildren (n/a)

* initialiseChildren does not rerender unless forced

* removed derivatives of initialiseChildren

* renamed initialiseChildren > attachChildren

* standard-components - refactoring

div now container
H1, h2... etc now Heading with type
Select now takes option as _children

* loads of bug fixing

* safe props creation
anytime props are loaded,
we make sure they conform to the components props definition
2020-02-14 11:51:45 +00:00
Martin McKeaveney 488299ef06
Fix Layout issue on FF 2020-02-12 21:01:53 +00:00
Martin McKeaveney 411d31eccf Fix Layout issue on FF 2020-02-12 21:01:53 +00:00
Martin McKeaveney cca039bdd0
Merge pull request #99 from shogunpurple/state-bindings
State bindings
2020-02-12 15:50:30 +00:00
Martin McKeaveney 4f42a68a9e Merge pull request #99 from shogunpurple/state-bindings
State bindings
2020-02-12 15:50:30 +00:00
Martin McKeaveney 1c7550e211 moving test from server 2020-02-12 15:47:35 +00:00
Martin McKeaveney 78b04ea58e moving test from server 2020-02-12 15:47:35 +00:00
Martin McKeaveney fe142faf3a move state origin build from server to client 2020-02-12 15:10:31 +00:00
Martin McKeaveney 695781c149 move state origin build from server to client 2020-02-12 15:10:31 +00:00
Michael Shanks c3fa212b31
Lots of poking around to get apps to run, plux fixing tests (#92)
ixing broken tests on client
typo in buildPage.js
fixing some server tests
local datastore uses fs-extra remove, not rmdir
client - loadBudibase - no longer destructuring arg
updated publishdev script for client (reads apps)
prettier fix
some little bug fixes
bugfix - set screens to empty array when falsy
typo in template page.json
replaced "Shard Factor" for "Estimated Count"
2020-02-12 12:45:24 +00:00
Michael Shanks 11c114a664 Lots of poking around to get apps to run, plux fixing tests (#92)
ixing broken tests on client
typo in buildPage.js
fixing some server tests
local datastore uses fs-extra remove, not rmdir
client - loadBudibase - no longer destructuring arg
updated publishdev script for client (reads apps)
prettier fix
some little bug fixes
bugfix - set screens to empty array when falsy
typo in template page.json
replaced "Shard Factor" for "Estimated Count"
2020-02-12 12:45:24 +00:00
Martin McKeaveney 5729f46ae6 final tidy up 2020-02-12 10:12:54 +00:00
Martin McKeaveney 5ab7162088 final tidy up 2020-02-12 10:12:54 +00:00
Martin McKeaveney 67db93bb39 close dropdown on component change 2020-02-12 10:12:54 +00:00
Martin McKeaveney 52d79236e8 close dropdown on component change 2020-02-12 10:12:54 +00:00
Martin McKeaveney 175002d178 unit tests 2020-02-12 10:12:54 +00:00
Martin McKeaveney f12c6452e4 unit tests 2020-02-12 10:12:54 +00:00
Martin McKeaveney f34a4707a9 fix rotation on state arrow 2020-02-12 10:12:54 +00:00
Martin McKeaveney 5795a78cd5 fix rotation on state arrow 2020-02-12 10:12:54 +00:00
Martin McKeaveney 0b3f75aaff merging with master 2020-02-12 10:12:54 +00:00
Martin McKeaveney e410748bed merging with master 2020-02-12 10:12:54 +00:00
Martin McKeaveney 8be69162f7 auto update state origins when attaching click handlers 2020-02-12 10:12:54 +00:00
Martin McKeaveney c976a133c0 auto update state origins when attaching click handlers 2020-02-12 10:12:54 +00:00
Martin McKeaveney 893cd3b57d state binding complete 2020-02-12 10:12:54 +00:00
Martin McKeaveney 7a39e16e32 state binding complete 2020-02-12 10:12:54 +00:00
Martin McKeaveney b2dd9cc12f better state bindings for defaults 2020-02-11 14:19:06 +00:00
Martin McKeaveney 4fbdde2f5e better state bindings for defaults 2020-02-11 14:19:06 +00:00
Martin McKeaveney ee9df6c29a state binding v1 2020-02-11 14:19:06 +00:00
Martin McKeaveney 936bce711e state binding v1 2020-02-11 14:19:06 +00:00
Michael Shanks da7339035f
Builder saves backend and front end seperately (#88)
* refactoring server for screens & page layout restructure

* Disable API calls, UI placeholders.

* buildPropsHierarchy is gone & screen has url

* Recent changes.

* router

* router

* updated git-ignore to reinclude server/utilities/builder

* modified cli - budi new create new file structure

* Fix uuid import.

* prettier fixes

* prettier fixes

* prettier fixes

* page/screen restructure.. broken tests

* all tests passing at last

* screen routing tests

* Working screen editor and preview.

* Render page previews to the screen.

* Key input lists to ensure new array references when updating styles.

* Ensure the iframe html and body fills the container.

* Save screens via the API.

* Get all save APIs almost working.

* Write pages.json to disk.

* Use correct API endpoint for saving styles.

* Differentiate between saving properties of screens and pages.

* Add required fields to default pages layouts.

* Add _css default property to newly created screens.

* Add default code property.

* page layout / screens - app output

* backend and fronend save seperately

Co-authored-by: pngwn <pnda007@gmail.com>
2020-02-10 21:35:51 +00:00
Michael Shanks 34b957f331 Builder saves backend and front end seperately (#88)
* refactoring server for screens & page layout restructure

* Disable API calls, UI placeholders.

* buildPropsHierarchy is gone & screen has url

* Recent changes.

* router

* router

* updated git-ignore to reinclude server/utilities/builder

* modified cli - budi new create new file structure

* Fix uuid import.

* prettier fixes

* prettier fixes

* prettier fixes

* page/screen restructure.. broken tests

* all tests passing at last

* screen routing tests

* Working screen editor and preview.

* Render page previews to the screen.

* Key input lists to ensure new array references when updating styles.

* Ensure the iframe html and body fills the container.

* Save screens via the API.

* Get all save APIs almost working.

* Write pages.json to disk.

* Use correct API endpoint for saving styles.

* Differentiate between saving properties of screens and pages.

* Add required fields to default pages layouts.

* Add _css default property to newly created screens.

* Add default code property.

* page layout / screens - app output

* backend and fronend save seperately

Co-authored-by: pngwn <pnda007@gmail.com>
2020-02-10 21:35:51 +00:00
Michael Shanks f7bea46f01
Page Layout & Screen restructure (#87)
* refactoring server for screens & page layout restructure

* Disable API calls, UI placeholders.

* buildPropsHierarchy is gone & screen has url

* Recent changes.

* router

* router

* updated git-ignore to reinclude server/utilities/builder

* modified cli - budi new create new file structure

* Fix uuid import.

* prettier fixes

* prettier fixes

* prettier fixes

* page/screen restructure.. broken tests

* all tests passing at last

* screen routing tests

* Working screen editor and preview.

* Render page previews to the screen.

* Key input lists to ensure new array references when updating styles.

* Ensure the iframe html and body fills the container.

* Save screens via the API.

* Get all save APIs almost working.

* Write pages.json to disk.

* Use correct API endpoint for saving styles.

* Differentiate between saving properties of screens and pages.

* Add required fields to default pages layouts.

* Add _css default property to newly created screens.

* Add default code property.

* page layout / screens - app output

Co-authored-by: pngwn <pnda007@gmail.com>
2020-02-10 15:51:09 +00:00
Michael Shanks 8a80d8801a Page Layout & Screen restructure (#87)
* refactoring server for screens & page layout restructure

* Disable API calls, UI placeholders.

* buildPropsHierarchy is gone & screen has url

* Recent changes.

* router

* router

* updated git-ignore to reinclude server/utilities/builder

* modified cli - budi new create new file structure

* Fix uuid import.

* prettier fixes

* prettier fixes

* prettier fixes

* page/screen restructure.. broken tests

* all tests passing at last

* screen routing tests

* Working screen editor and preview.

* Render page previews to the screen.

* Key input lists to ensure new array references when updating styles.

* Ensure the iframe html and body fills the container.

* Save screens via the API.

* Get all save APIs almost working.

* Write pages.json to disk.

* Use correct API endpoint for saving styles.

* Differentiate between saving properties of screens and pages.

* Add required fields to default pages layouts.

* Add _css default property to newly created screens.

* Add default code property.

* page layout / screens - app output

Co-authored-by: pngwn <pnda007@gmail.com>
2020-02-10 15:51:09 +00:00
Martin McKeaveney 34d56e960f include svelte files in prettier 2020-02-03 09:50:30 +00:00
Martin McKeaveney 927502eb38 include svelte files in prettier 2020-02-03 09:50:30 +00:00
Martin McKeaveney 94eb93b186 running prettier over codebase, removing merge files 2020-02-03 09:24:25 +00:00
Martin McKeaveney 0808178dfa running prettier over codebase, removing merge files 2020-02-03 09:24:25 +00:00
Michael Shanks 65b800b1d0 few wee bug fixes 2020-01-31 23:29:49 +00:00
Michael Shanks 88d67a5726 few wee bug fixes 2020-01-31 23:29:49 +00:00
Michael Shanks c7cbe6ca8b
#24 - Control Flow (#79)
* removed binding references to array type

* refactored initialiseChildren into seperate file

* render function, with code blocks - tested simple cases

* few mores tests for control flow

* md components - getting TestApp to work

* new render wrapper - bug fix

* client: providing access to component root elements

* code editor working

* code editor improvements
2020-01-31 23:11:50 +00:00
Michael Shanks 7ae29a6030 #24 - Control Flow (#79)
* removed binding references to array type

* refactored initialiseChildren into seperate file

* render function, with code blocks - tested simple cases

* few mores tests for control flow

* md components - getting TestApp to work

* new render wrapper - bug fix

* client: providing access to component root elements

* code editor working

* code editor improvements
2020-01-31 23:11:50 +00:00
pngwn aa4c7fa1c1
48 builder frontend 2 (#76)
* Implement collapsing component hierarchy.

* Save screen when adding new components.

* Allow creation of nested child components.

* Rename updateComponentProps to setComponentProps

* Compile layout and position properties to css strings.

* Correct ordering errors.

* Compile the css for an entire screen.

* Add unique id for each component.

* Ignore _id props.

* Update client to add correct class names to component elements.

* Add grid-template fields to layout styling panel.

* Inject css into iframe. Minor tweaks.

* Fix unset margins.

* Update failing tests.
2020-01-31 16:01:58 +00:00
pngwn 5aa44a88a4 48 builder frontend 2 (#76)
* Implement collapsing component hierarchy.

* Save screen when adding new components.

* Allow creation of nested child components.

* Rename updateComponentProps to setComponentProps

* Compile layout and position properties to css strings.

* Correct ordering errors.

* Compile the css for an entire screen.

* Add unique id for each component.

* Ignore _id props.

* Update client to add correct class names to component elements.

* Add grid-template fields to layout styling panel.

* Inject css into iframe. Minor tweaks.

* Fix unset margins.

* Update failing tests.
2020-01-31 16:01:58 +00:00
Martin McKeaveney 912a6e4f1b tidy up 2020-01-31 09:49:26 +00:00
Martin McKeaveney 23c4cdd724 tidy up 2020-01-31 09:49:26 +00:00
Martin McKeaveney cd1714b1a0 final touches for design 2020-01-31 09:45:02 +00:00
Martin McKeaveney 8d656596c7 final touches for design 2020-01-31 09:45:02 +00:00
Martin McKeaveney 5325e0d0a9 styling updates 2020-01-30 21:00:19 +00:00
Martin McKeaveney 96c61a5a7d styling updates 2020-01-30 21:00:19 +00:00
Martin McKeaveney 7baa9d443d draft handler 2020-01-30 20:01:18 +00:00
Martin McKeaveney a724247f08 draft handler 2020-01-30 20:01:18 +00:00
Martin McKeaveney 977a609230 state management like designs 2020-01-30 16:22:19 +00:00
Martin McKeaveney 61cc39fc96 state management like designs 2020-01-30 16:22:19 +00:00
Martin McKeaveney eed1f1d30f started implementing state management designs 2020-01-29 22:59:10 +00:00
Martin McKeaveney c064f08d55 started implementing state management designs 2020-01-29 22:59:10 +00:00
Martin McKeaveney a88db662bf basic architecture complete 2020-01-29 21:04:48 +00:00
Martin McKeaveney f0e07cdfca basic architecture complete 2020-01-29 21:04:48 +00:00
Martin McKeaveney ea88880417 merge 2020-01-28 22:39:16 +00:00
Martin McKeaveney e54fd6a0d9 merge 2020-01-28 22:39:16 +00:00
pngwn 7e16e23803 48 builder frontend 2 (#70)
* Implement collapsing component hierarchy.

* Save screen when adding new components.

* Allow creation of nested child components.

* Fix level-based indentation of hierarchy.

* Rename updateComponentProps to setComponentProps

* Save layout information to the disk.

* Cleanup: switch to autosubscriptions to prevent memory leaks, remove unused imports.

* Remove unused css.

* Fix incorrect subscription.
2020-01-28 21:17:04 +00:00
pngwn 6aa6c4d433 48 builder frontend 2 (#70)
* Implement collapsing component hierarchy.

* Save screen when adding new components.

* Allow creation of nested child components.

* Fix level-based indentation of hierarchy.

* Rename updateComponentProps to setComponentProps

* Save layout information to the disk.

* Cleanup: switch to autosubscriptions to prevent memory leaks, remove unused imports.

* Remove unused css.

* Fix incorrect subscription.
2020-01-28 21:17:04 +00:00
pngwn c2d99e173b Remove unused validateProps module and tests 2020-01-24 16:39:25 +00:00
pngwn 0490441d09 Remove unused validateProps module and tests 2020-01-24 16:39:25 +00:00
pngwn 1a77b0ae00 Remove leftovers. 2020-01-24 15:34:44 +00:00
pngwn aaae1fd1ef Remove leftovers. 2020-01-24 15:34:44 +00:00
pngwn a5d1b7a651 Ensure screen is correctly set when selecting a child component. 2020-01-24 15:34:02 +00:00
pngwn 4e4fe5a445 Ensure screen is correctly set when selecting a child component. 2020-01-24 15:34:02 +00:00
pngwn 1a4aa7ddf1 Modify component preview to match new component library loader API. 2020-01-24 15:20:20 +00:00
pngwn 7c1ae9f750 Modify component preview to match new component library loader API. 2020-01-24 15:20:20 +00:00
pngwn 86c42a44ab Remove validation, use references rather than clones where possible, prioritise side-panel working with components for now. 2020-01-24 14:51:29 +00:00
pngwn 044edb1aca Remove validation, use references rather than clones where possible, prioritise side-panel working with components for now. 2020-01-24 14:51:29 +00:00
pngwn 2a4cfa278b Implement updating of individual component props 2020-01-24 14:51:29 +00:00
pngwn d78f8013b5 Implement updating of individual component props 2020-01-24 14:51:29 +00:00
pngwn cc155c121c Initial implementation of props editor. 2020-01-24 14:51:29 +00:00
pngwn 05a32f25f0 Initial implementation of props editor. 2020-01-24 14:51:29 +00:00
pngwn 1007dfaeb1 Refactor inputs into components for simpler value bindings. 2020-01-24 14:51:29 +00:00
pngwn 3594f07346 Refactor inputs into components for simpler value bindings. 2020-01-24 14:51:29 +00:00
pngwn b9c5522850 Tweak component pane icons. 2020-01-24 14:51:29 +00:00
pngwn 4e6e6e2c98 Tweak component pane icons. 2020-01-24 14:51:29 +00:00
pngwn 298788ea53 Implement layout UI. 2020-01-24 14:51:29 +00:00
pngwn bfeb8200b3 Implement layout UI. 2020-01-24 14:51:29 +00:00
pngwn dba1bfce35 Tweaks to component snippet editor. 2020-01-24 14:51:29 +00:00
pngwn 80ac08e481 Tweaks to component snippet editor. 2020-01-24 14:51:29 +00:00
pngwn cce542d0c9 Implement code editor panel. 2020-01-24 14:51:28 +00:00
pngwn 55b6d01dbf Implement code editor panel. 2020-01-24 14:51:28 +00:00
pngwn d760fe59ea Begin implementation of components panel. 2020-01-24 14:51:28 +00:00
pngwn 9fdcac7c41 Begin implementation of components panel. 2020-01-24 14:51:28 +00:00
pngwn 240a5b74db Basic implementation of sidebar design. 2020-01-24 14:51:28 +00:00
pngwn 8ef407f44e Basic implementation of sidebar design. 2020-01-24 14:51:28 +00:00
pngwn 3bae85c503 Implement new pages dropdown design in sidebar 2020-01-24 14:51:28 +00:00
pngwn 459520dc78 Implement new pages dropdown design in sidebar 2020-01-24 14:51:28 +00:00
pngwn 8abe5b4df7 Implement basic layout for frontend view. 2020-01-24 14:51:28 +00:00
pngwn 6b4cdacc30 Implement basic layout for frontend view. 2020-01-24 14:51:28 +00:00
pngwn e978e38ae9 Implement refreshed design for the top nav. 2020-01-24 14:51:28 +00:00
pngwn caf5ff6787 Implement refreshed design for the top nav. 2020-01-24 14:51:28 +00:00
pngwn fca1b58829 Ensure only props are passed to propControl 2020-01-24 14:51:28 +00:00
pngwn d31745fb02 Ensure only props are passed to propControl 2020-01-24 14:51:28 +00:00
Michael Shanks 06abf050b6 introduced 'container' to component definition 2020-01-20 21:57:27 +00:00
Michael Shanks b4255c3c56 introduced 'container' to component definition 2020-01-20 21:57:27 +00:00
Michael Shanks eac855bb71 #48 restructure. Screens in, user components out. _children static concept 2020-01-17 23:06:42 +00:00
Michael Shanks 4e09043e3a #48 restructure. Screens in, user components out. _children static concept 2020-01-17 23:06:42 +00:00
Conor_Mack 54ddb9415a Fix for field modal infinite render loop once closed from click away (#42) 2019-12-04 22:13:06 +00:00
Conor_Mack 0e0369052c Fix for field modal infinite render loop once closed from click away (#42) 2019-12-04 22:13:06 +00:00
Michael Shanks b2fe946c23 'New Child Record' not woring on builder 2019-11-11 15:05:48 +00:00
Michael Shanks 6a7b8b8db1 'New Child Record' not woring on builder 2019-11-11 15:05:48 +00:00
Michael Shanks a7ecea82ac fixes for getting started... 2019-11-09 08:14:10 +00:00
Michael Shanks 43265fb255 fixes for getting started... 2019-11-09 08:14:10 +00:00
Michael Shanks 2646d7c69e Builder: Modal - code simplification 2019-11-03 10:24:48 +00:00
Michael Shanks 01180d7718 Builder: Modal - code simplification 2019-11-03 10:24:48 +00:00
Michael Shanks 2f457555a1 builder: create record: set collection name automatically 2019-10-31 09:25:26 +00:00
Michael Shanks d5fb7e50c8 builder: create record: set collection name automatically 2019-10-31 09:25:26 +00:00
Michael Shanks 0cb7125bac Builder:event dropdown -black option 2019-10-31 09:24:54 +00:00
Michael Shanks 1503eaf159 Builder:event dropdown -black option 2019-10-31 09:24:54 +00:00
Michael Shanks 3c051eea57 automatically adds index for new record 2019-10-31 09:22:01 +00:00
Michael Shanks 871949ef5e automatically adds index for new record 2019-10-31 09:22:01 +00:00
Michael Shanks 75f4c6dd68 backup before an f-up 2019-10-18 17:32:03 +01:00
Michael Shanks 92dcf4b2b8 backup before an f-up 2019-10-18 17:32:03 +01:00
Michael Shanks 4c3b9e4488 cli working.. 2019-10-12 07:50:32 +01:00
Michael Shanks 79f99bf35b cli working.. 2019-10-12 07:50:32 +01:00
Michael Shanks aee554383c few bug fixes 2019-10-10 10:41:31 +01:00
Michael Shanks 2cfded5d01 few bug fixes 2019-10-10 10:41:31 +01:00
Michael Shanks 1716b0ca5b generators seem to be working... 2019-10-10 06:18:02 +01:00
Michael Shanks 0e9a885aa1 generators seem to be working... 2019-10-10 06:18:02 +01:00
Michael Shanks b4f7ccbbba generators.. 2019-10-07 06:03:41 +01:00
Michael Shanks 2f028b1f1e generators.. 2019-10-07 06:03:41 +01:00
Michael Shanks e283e971ec lots of bugfixes and component changes 2019-10-03 06:12:13 +01:00
Michael Shanks 1529277b11 lots of bugfixes and component changes 2019-10-03 06:12:13 +01:00
Michael Shanks b631c168b8 removed settings page 2019-09-30 05:20:21 +01:00
Michael Shanks 13f6b48f83 removed settings page 2019-09-30 05:20:21 +01:00
Michael Shanks b44fa3aacb bugfix - switching from component to page.. 2019-09-30 04:55:24 +01:00
Michael Shanks fb8568c0fd bugfix - switching from component to page.. 2019-09-30 04:55:24 +01:00
Michael Shanks b2c3accf82 some bugfixes - ready to start building! 2019-09-29 06:40:06 +01:00
Michael Shanks 207b73ba97 some bugfixes - ready to start building! 2019-09-29 06:40:06 +01:00
Michael Shanks ea92125d50 scrolling backend nav 2019-09-28 06:04:23 +01:00
Michael Shanks 48d2f2e88e scrolling backend nav 2019-09-28 06:04:23 +01:00
Michael Shanks 08cedd1cc2 refactoring - lodash/fp 2019-09-28 05:28:11 +01:00
Michael Shanks 3cfe71cbbb refactoring - lodash/fp 2019-09-28 05:28:11 +01:00
Michael Shanks 2c3b4b55ee Event bindings with context, array binding, Table component... 2019-09-27 17:03:31 +01:00
Michael Shanks cb6fe94584 Event bindings with context, array binding, Table component... 2019-09-27 17:03:31 +01:00
Budibase 52e7f72459 UI Navbar [right] styling
Font styling, and spacing, and alignment changed to reflext recent UI changes.
2019-09-25 20:53:52 +01:00
Budibase 984f600767 UI Navbar [right] styling
Font styling, and spacing, and alignment changed to reflext recent UI changes.
2019-09-25 20:53:52 +01:00
Michael Shanks 3724d2b873 More event handlers & bug fix 2019-09-24 06:11:02 +01:00
Michael Shanks 1a8a9cd490 More event handlers & bug fix 2019-09-24 06:11:02 +01:00
Budibase a318bd2179 Frontend page/component nav changes
Background changed, font styling updated, top nav font styling updated.
2019-09-23 22:22:57 +01:00
Budibase 8fe876e982 Frontend page/component nav changes
Background changed, font styling updated, top nav font styling updated.
2019-09-23 22:22:57 +01:00
marblekirby fb94319964 base analytics and settings 2019-09-23 01:01:27 +01:00
marblekirby 011aa9f2cc base analytics and settings 2019-09-23 01:01:27 +01:00
marblekirby 0366ae5bdb base analytics and settings 2019-09-23 00:56:39 +01:00
Michael Shanks 2e6a34c687 state binding working 2019-09-22 05:02:33 +01:00
Michael Shanks 9953989de6 state binding working 2019-09-22 05:02:33 +01:00
Michael Shanks 0def6a50a9 scolling properties pane 2019-09-20 09:02:22 +01:00
Michael Shanks 6b1404b705 scolling properties pane 2019-09-20 09:02:22 +01:00
Michael Shanks df60d11b1a Merge branch 'master' of github.com:Budibase/budibase 2019-09-20 08:01:42 +01:00
Michael Shanks 90b7cf84b7 Merge branch 'master' of github.com:Budibase/budibase 2019-09-20 08:01:42 +01:00
Michael Shanks 8409deae15 Events and state binding 2019-09-20 08:01:35 +01:00
Michael Shanks be2fe07395 Events and state binding 2019-09-20 08:01:35 +01:00
Budibase 898463919f UI changes to actions/triggers/userAccess 2019-09-19 19:47:18 +01:00
Budibase 528dd6ba28 UI changes to actions/triggers/userAccess 2019-09-19 19:47:18 +01:00
Michael Shanks 42588fb34b Merge branch 'master' of github.com:Budibase/budibase 2019-09-19 04:35:49 +01:00
Michael Shanks 3dc88240e5 Merge branch 'master' of github.com:Budibase/budibase 2019-09-19 04:35:49 +01:00
Michael Shanks 70ddecfab0 data binding and stndard componets work 2019-09-19 04:35:40 +01:00
Budibase a06fa47e8a UI changes
UI changes including:
- button restyling
- new font
- nackend nav bar colour changed
- font resizing
- spacing adjusted
2019-09-18 19:16:11 +01:00
Michael Shanks dda4517cb0 Budibase is alive! sort of 2019-09-12 06:10:50 +01:00
Michael Shanks 22bed49a09 packages changes and bugfix 2019-09-10 10:25:13 +01:00
michael shanks 1f3fed1a6d bugfixes - actions not saving correctly 2019-09-09 08:50:15 +01:00
michael shanks ef9a0853a0 some bugfixing.. 2019-09-09 05:23:41 +01:00
michael shanks 5ee72b1d87 build app... probably not orking yet.. 2019-09-07 06:50:35 +01:00
michael shanks dc0ad5c0d1 buildPropsHierarchy + test 2019-09-06 17:25:06 +01:00
michael shanks e383c03435 working on client lib 2019-09-06 13:04:23 +01:00
michael shanks 53287779f2 PageView - editing html 2019-09-03 12:12:24 +01:00
michael shanks b715b2a842 array component 2019-09-03 10:42:19 +01:00
michael shanks bf7afe369d builder layout redesign 2019-08-30 08:25:00 +01:00
michael shanks f633c59aca merge conflicts.. 2019-08-28 22:10:26 +01:00
michael shanks ea3e847290 working on standard component 2019-08-27 07:32:56 +01:00
michael shanks ef0b1a102e bug when saving components 2019-08-22 07:57:56 +01:00
michael shanks 5f0d8ce638 component preview with stylesheeets 2019-08-20 08:24:07 +01:00
michael shanks de3a564cb1 halfway through new layout 2019-08-20 07:24:02 +01:00
michael shanks 573f274f89 component preview sort of working 2019-08-19 21:18:23 +01:00
michael shanks 53c3a54230 designer for nested components 2019-08-19 08:51:01 +01:00
michael shanks 0d7d9f471e Edit component pane improvements 2019-08-16 15:48:45 +01:00
michael shanks 3bcef7f668 component inheritance working 2019-08-15 08:49:15 +01:00
michael shanks fb9f4f6158 backup 2019-08-14 22:11:59 +01:00
michael shanks 21224b119b builder ui changes - UI builder in progress 2019-08-07 09:03:49 +01:00
michael shanks ca63769204 backup before blame 2019-08-04 22:21:16 +01:00
michael shanks d27ec9e0a5 working components nav - not styled properly 2019-08-02 14:54:10 +01:00
michael shanks fc9c1a1fbe renaming store 2019-07-31 08:09:04 +01:00
michael shanks 6cd61a4a63 builder importing core directly! 2019-07-30 09:08:40 +01:00
michael shanks 46062b6f24 rollup changes - backup here 2019-07-30 08:31:07 +01:00
michael shanks fe67c21627 search tests 2019-07-28 12:45:00 +01:00
michael shanks 1413ee6f2c searching components 2019-07-28 08:03:11 +01:00
michael shanks af2fc95a6b derived components endpoints 2019-07-26 17:08:59 +01:00
michael shanks 4891c6de80 adding in routes for components and pages 2019-07-25 07:31:54 +01:00
michael shanks 70082147c7 validate pages... started testing 2019-07-23 08:33:49 +01:00
michael shanks 886e5c6b2d recursive validation of component heirarchy 2019-07-21 09:36:20 +01:00
michael shanks 0b94346104 recursive validation of props 2019-07-20 21:41:06 +01:00
michael shanks ca74258c04 validating component props 2019-07-19 18:03:58 +01:00
michael shanks a81af3f18b component prop definition - create 2019-07-19 12:52:08 +01:00
michael shanks d52aeb3e95 builder now being served by server 2019-07-15 06:59:46 +01:00
michael shanks 363cbdd6c3 builder now web based and talking to api 2019-07-14 07:46:36 +01:00
michael shanks 13dd99be02 moving builder into web... 2019-07-13 10:35:57 +01:00