Commit Graph

199 Commits

Author SHA1 Message Date
Michael Shanks 32b1f9cd89 #94 Remove component from hierarchy 2020-02-18 16:51:28 +00:00
pngwn 3c51f731ef Add screenslot to current preview. 2020-02-18 15:53:22 +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 6db4394562 Add builtin slot to list 2020-02-18 10:32:00 +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 411d31eccf Fix Layout issue on FF 2020-02-12 21:01:53 +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 78b04ea58e moving test from server 2020-02-12 15:47:35 +00:00
Martin McKeaveney 695781c149 move state origin build from server to client 2020-02-12 15:10:31 +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 5ab7162088 final tidy up 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 f12c6452e4 unit tests 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 e410748bed merging with master 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 7a39e16e32 state binding complete 2020-02-12 10:12:54 +00:00
Martin McKeaveney 4fbdde2f5e better state bindings for defaults 2020-02-11 14:19:06 +00:00
Martin McKeaveney 936bce711e state binding v1 2020-02-11 14:19:06 +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 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 927502eb38 include svelte files in prettier 2020-02-03 09:50:30 +00:00
Martin McKeaveney 0808178dfa running prettier over codebase, removing merge files 2020-02-03 09:24:25 +00:00
Michael Shanks 88d67a5726 few wee bug fixes 2020-01-31 23:29:49 +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 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 23c4cdd724 tidy up 2020-01-31 09:49:26 +00:00
Martin McKeaveney 8d656596c7 final touches for design 2020-01-31 09:45:02 +00:00
Martin McKeaveney 96c61a5a7d styling updates 2020-01-30 21:00:19 +00:00
Martin McKeaveney a724247f08 draft handler 2020-01-30 20:01:18 +00:00
Martin McKeaveney 61cc39fc96 state management like designs 2020-01-30 16:22:19 +00:00
Martin McKeaveney c064f08d55 started implementing state management designs 2020-01-29 22:59:10 +00:00
Martin McKeaveney f0e07cdfca basic architecture complete 2020-01-29 21:04:48 +00:00
Martin McKeaveney e54fd6a0d9 merge 2020-01-28 22:39:16 +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
Martin McKeaveney 62a9a3ee45 merge 2020-01-27 12:16:03 +00:00
pngwn 0490441d09 Remove unused validateProps module and tests 2020-01-24 16:39:25 +00:00
Martin McKeaveney 9ebe7bec5c build process improvements and gitignore 2020-01-24 16:31:53 +00:00
pngwn aaae1fd1ef Remove leftovers. 2020-01-24 15:34:44 +00:00
pngwn 4e4fe5a445 Ensure screen is correctly set when selecting a child component. 2020-01-24 15:34:02 +00:00
pngwn 7c1ae9f750 Modify component preview to match new component library loader API. 2020-01-24 15:20:20 +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 d78f8013b5 Implement updating of individual component props 2020-01-24 14:51:29 +00:00
pngwn 05a32f25f0 Initial implementation of props editor. 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 4e6e6e2c98 Tweak component pane icons. 2020-01-24 14:51:29 +00:00
pngwn bfeb8200b3 Implement layout UI. 2020-01-24 14:51:29 +00:00
pngwn 80ac08e481 Tweaks to component snippet editor. 2020-01-24 14:51:29 +00:00
pngwn 55b6d01dbf Implement code editor panel. 2020-01-24 14:51:28 +00:00
pngwn 6ed94eb0a8 Update gitignored files. 2020-01-24 14:51:28 +00:00
pngwn 9fdcac7c41 Begin implementation of components panel. 2020-01-24 14:51:28 +00:00
pngwn 8ef407f44e Basic implementation of sidebar design. 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 6b4cdacc30 Implement basic layout for frontend view. 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 d31745fb02 Ensure only props are passed to propControl 2020-01-24 14:51:28 +00:00
Martin McKeaveney 460ff487be v0.0.16 2020-01-23 11:38:11 +00:00
Michael Shanks b4255c3c56 introduced 'container' to component definition 2020-01-20 21:57:27 +00:00
Michael Shanks 4e09043e3a #48 restructure. Screens in, user components out. _children static concept 2020-01-17 23:06:42 +00:00
Michael Shanks ef22b164ff rebuild of core & builder rollup fix 2019-12-30 18:08:50 +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 4f29664990 v0.0.15 2019-11-12 07:15:59 +00:00
Michael Shanks 6a7b8b8db1 'New Child Record' not woring on builder 2019-11-11 15:05:48 +00:00
Michael Shanks e459d56754 v0.0.14 2019-11-09 08:14:41 +00:00
Michael Shanks 43265fb255 fixes for getting started... 2019-11-09 08:14:10 +00:00
Michael Shanks b64c57bbfb v0.0.13 2019-11-05 13:30:53 +00:00
Michael Shanks 01180d7718 Builder: Modal - code simplification 2019-11-03 10:24:48 +00:00
Michael Shanks d5fb7e50c8 builder: create record: set collection name automatically 2019-10-31 09:25:26 +00:00
Michael Shanks 1503eaf159 Builder:event dropdown -black option 2019-10-31 09:24:54 +00:00
Michael Shanks 871949ef5e automatically adds index for new record 2019-10-31 09:22:01 +00:00
Michael Shanks 21287181a2 v0.0.12 2019-10-19 07:24:35 +01:00
Michael Shanks 92dcf4b2b8 backup before an f-up 2019-10-18 17:32:03 +01:00
Michael Shanks 70572a5ee1 v0.0.11 2019-10-12 08:31:04 +01:00
Michael Shanks 4b559d046e v0.0.10 2019-10-12 07:51:01 +01:00
Michael Shanks 79f99bf35b cli working.. 2019-10-12 07:50:32 +01:00
Michael Shanks ce29733189 v0.0.9 2019-10-11 19:06:31 +01:00
Michael Shanks 03c1adb55e v0.0.8 2019-10-11 18:58:13 +01:00
Michael Shanks c2ba38fec1 v0.0.7 2019-10-11 18:51:03 +01:00
Michael Shanks 5ba24568da v0.0.6 2019-10-11 18:48:09 +01:00
Michael Shanks 014c3b6bd3 v0.0.5 2019-10-11 18:47:35 +01:00
Michael Shanks 54420f6987 v0.0.4 2019-10-11 18:45:26 +01:00
Michael Shanks 2cfded5d01 few bug fixes 2019-10-10 10:41:31 +01:00
Michael Shanks 0e9a885aa1 generators seem to be working... 2019-10-10 06:18:02 +01:00
Michael Shanks 2f028b1f1e generators.. 2019-10-07 06:03:41 +01:00
Michael Shanks 1529277b11 lots of bugfixes and component changes 2019-10-03 06:12:13 +01:00
Michael Shanks 13f6b48f83 removed settings page 2019-09-30 05:20:21 +01:00
Michael Shanks fb8568c0fd bugfix - switching from component to page.. 2019-09-30 04:55:24 +01:00
Michael Shanks 207b73ba97 some bugfixes - ready to start building! 2019-09-29 06:40:06 +01:00
Michael Shanks 48d2f2e88e scrolling backend nav 2019-09-28 06:04:23 +01:00
Michael Shanks 3cfe71cbbb refactoring - lodash/fp 2019-09-28 05:28:11 +01:00
Michael Shanks cb6fe94584 Event bindings with context, array binding, Table component... 2019-09-27 17:03:31 +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 1a8a9cd490 More event handlers & bug fix 2019-09-24 06:11:02 +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 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 9953989de6 state binding working 2019-09-22 05:02:33 +01:00
Michael Shanks 6b1404b705 scolling properties pane 2019-09-20 09:02:22 +01:00
Michael Shanks 90b7cf84b7 Merge branch 'master' of github.com:Budibase/budibase 2019-09-20 08:01:42 +01:00
Michael Shanks be2fe07395 Events and state binding 2019-09-20 08:01:35 +01:00