ui-studio's People
ui-studio's Issues
Docs improvement
Current docs is a first pass. There are probably a lot of overlooked or poorly described concepts. My english language skills are also pretty poor so it doesn't read well.
Tests
This started as a small personal project so there were no tests. It really needs some tests as I'm relying on typescript compilation and manually testing to check that things work.
Should variables be page specific?
When using a widget property as a widget value it is restricted to widgets in the same page. With variables, a variable can use a widget value from any page and any variable can be used on any page. This allows for sharing widgets across pages.
Hot reloading isn't great
Infinite websocket loop with multiple tabs open
OpenAPI 3.1
We're currently using OpenAPI 3.0.
3.1 adds in arrays of types. This is useful as a component config item may want to accept multiple types, eg. the Text component could accept anything and convert it to a string. We should also aim to stay up-to-date with OpenAPI.
This needs some thinking as to how we will handle it both coming from the API, in the component definitions, and in the builder client.
- If an API returns
['string', 'number']
and the component expects'string'
is that valid? - If an API returns
'string'
and the component expects['string', 'number']
is that valid? - If a component config item has multiple types in a static mode, what do we render? Is there a priority list?
array/object
,string
,number
,boolean
? - If a component config item has multiple types including
array
orobject
should we still supportform
mode?
UI opens before client is ready
Need to figure out how to detect when client is ready and either open the UI then or change state of UI based on that
Preserve common styles of children when switching layout type
When changing the style type of a widget it's children will have their styles reset to match the parent layout. This is correct, but if there are any common styles (eg. css, class names, background colour) they should be preserved.
Element config tabs should be managed by name, not index
When the tabs change the index is kept rather than the key. When switching across widgets it should stay on the same tab key or default to index 0 if it does not exist.
Python api not exiting properly
Killing the parent process leaves the port in use
Modals
A modal is an element that blocks interaction with the rest of the application. This can be a dialog, a drawer, a menu, etc.
My current thinking is that they should be treated like pages, introducing a new element type:
type: 'page' | 'widget' | 'customComponentInstance | 'modal';
A new event type is added open-modal
and close-modal
or toggle-modal
. This will similarly to navigate-page
.
When a modal is opened the page will not change and the modal will be rendered over it.
Components will receive a new closeModal
prop that will close the parent modal.
Should we support nested modals?
Modular render engines
Currently the render engine uses CRA. It'd be great to make this modular so we can render the same JSON tree in different ways. The current use case would be to make a Next JS render engine.
Preview client doesn't exit properly
- Start with
yarn start
- Wait for everything to spin up
- Kill with
ctrl + c
- Preview client process is still running
Cast widget properties to appropriate type
When using an exposed widget property as a value we should be able to cast the property to the required type for the value if applicable.
eg. number 1 => string "1", boolean True => string "True"
Things like an object or array cannot be cast.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.