GithubHelp home page GithubHelp logo

ui-studio's People

Contributors

neb42 avatar

Stargazers

 avatar

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.

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 or object should we still support form mode?

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.

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.