Giter Site home page Giter Site logo

library-to-build-forms's Introduction

library-to-build-forms

Major tech used

  • React
  • Storybook link
  • MaterialUI
  • FormatJS

Structure of the project

NOTE

The project builts from only src/lib and for this reason ignore the src/App.js and src/index.js as those files there are not even called by the library. You may see this clear checking the package.json.

  • The project is a collection of libraries under the src/lib.
  • Every folder is like a separate library and it's entry point is like src/lib/<LIB_NAME>/<LIB_NAME.jsx>.
  • FormatJS is added as <IntlProvider messages={enMessages} defaultLocale="en" locale="en"> under every src/lib/<LIB_NAME>/<LIB_NAME.jsx>.
  • Under src/stories we have the StoryBook stories to test and develop the components. Not familiar with the tool check the link link

Simple instructions

NOTE

To make the run without complex languages building, languages are already built in src/compiled-lang the only transaltion avaliable for real is for Italian in src/compiled-lang/it.json the other are just compiled from English bu not translated yet.

  1. yarn
  2. yarn run storybook

NOTE

The project doesn't start with yarn start above instruction are the way!

Known Issues

The form builder and previwer:

  • There is no way right now to interact with the form pages in case an external App wants to route to a page number or interact with one of the pages

FormatJS:

  • FormatJS was implemnted as minimum working implemntation but that not optimal
  • FormatJS is not fully implemnted as at this time there are issues on passing dynamically the messages (E.G. the project should support more localse and change the messages based on it like now we have EN as default but if I change to IT I shuld see the messages in Italian)
  • FormatJS implemnted on StoryBook stories in that way I can pass a different locale and see the text in that locale, so I can test StoryBook stories with the required locale aside from the default EN
  • FormatJS messages are not fully extracted/compiled the reasons can be a bad FormatJS configuration or the wrongly usage of useIntl or FormattedMessage

To do

  • Improve the builder and previwer to expose pages of the form to external to allow interaction or routing to specific page number
  • Use transifex as translate vendor for Formatjs and apply the CLI #builtin-formatters
  • Find a way to implement the workflow of FormatJS as distribute-libraries
  • FormatJS implemnted on StoryBook stories to test it with different locale
  • Language and locale support aside the default locale EN

library-to-build-forms's People

Contributors

jakub41 avatar renovate-bot avatar longlho avatar

Watchers

James Cloos avatar  avatar

Forkers

jasonpaul0

library-to-build-forms's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • fix(deps): update dependency react-beautiful-dnd to v13.1.1
  • chore(deps): update dependency babel-loader to v8.3.0
  • chore(deps): update dependency react-app-rewired to v2.2.1
  • chore(deps): update testing-library monorepo (@testing-library/jest-dom, @testing-library/react, @testing-library/user-event)
  • fix(deps): update dependency @toast-ui/react-editor to v3.2.3
  • fix(deps): update dependency codemirror to v5.65.16
  • fix(deps): update dependency prop-types to v15.8.1
  • fix(deps): update dependency react-dropzone to v11.7.1
  • fix(deps): update dependency react-pdf to v5.7.2
  • chore(deps): update dependency babel-loader to v9
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency html-react-parser to v5
  • chore(deps): update dependency jest-extended to v4
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency react-scripts to v5
  • chore(deps): update dependency rimraf to v5
  • chore(deps): update dependency storybook-addon-intl to v4
  • chore(deps): update formatjs monorepo (major) (@formatjs/cli, @formatjs/intl-getcanonicallocales, @formatjs/intl-locale, @formatjs/intl-pluralrules, @formatjs/intl-relativetimeformat, eslint-plugin-formatjs, react-intl)
  • chore(deps): update react monorepo to v18 (major) (react, react-dom, react-test-renderer)
  • chore(deps): update storybook monorepo (major) (@storybook/addon-actions, @storybook/addon-essentials, @storybook/addon-links, @storybook/addons, @storybook/node-logger, @storybook/preset-create-react-app, @storybook/react)
  • chore(deps): update testing-library monorepo (major) (@testing-library/jest-dom, @testing-library/react, @testing-library/user-event)
  • fix(deps): update dependency codemirror to v6
  • fix(deps): update dependency react-dropzone to v14
  • fix(deps): update dependency react-pdf to v8
  • fix(deps): update dependency signature_pad to v5
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @formatjs/intl-getcanonicallocales ^1.7.1
  • @formatjs/intl-locale ^2.4.34
  • @formatjs/intl-pluralrules ^4.1.0
  • @formatjs/intl-relativetimeformat ^9.2.0
  • @toast-ui/react-editor ^3.0.0
  • codemirror ^5.62.0
  • prop-types ^15.7.2
  • react-beautiful-dnd ^13.1.0
  • react-dropzone ^11.3.4
  • react-intl ^5.20.4
  • react-pdf ^5.3.2
  • react-swipeable-views ^0.14.0
  • signature_pad ^3.0.0-beta.4
  • vh-check ^2.0.5
  • @babel/cli 7.15.7
  • @babel/core 7.15.5
  • @babel/preset-env 7.15.6
  • @babel/preset-react 7.14.5
  • @formatjs/cli 4.2.33
  • @material-ui/core 4.12.3
  • @material-ui/icons 4.11.2
  • @material-ui/styles 4.11.4
  • @rescripts/cli 0.0.16
  • @storybook/addon-actions 6.3.8
  • @storybook/addon-essentials 6.3.8
  • @storybook/addon-links 6.3.8
  • @storybook/addons 6.3.8
  • @storybook/node-logger 6.3.8
  • @storybook/preset-create-react-app 3.2.0
  • @storybook/react 6.3.8
  • @testing-library/jest-dom 5.14.1
  • @testing-library/react 12.1.0
  • @testing-library/user-event 13.2.1
  • babel-core 6.26.3
  • babel-plugin-formatjs 10.3.8
  • babel-preset-react-app 10.0.0
  • customize-cra 1.0.0
  • eslint 7.32.0
  • eslint-plugin-formatjs 2.17.6
  • html-react-parser 1.3.0
  • htmlsanitize 0.1.15
  • jest-extended 0.11.5
  • jsondiffpatch-for-react 1.0.4
  • prettier 2.4.1
  • react 17.0.2
  • react-app-rewired 2.1.8
  • react-dom 17.0.2
  • react-scripts 4.0.3
  • react-test-renderer 17.0.2
  • rimraf 3.0.2
  • storybook-addon-intl 2.4.1
  • @material-ui/core ^4.12.2
  • @material-ui/icons ^4.11.2
  • @material-ui/styles ^4.11.4
  • html-react-parser ^1.2.7
  • htmlsanitize ^0.1.15
  • react ^17.0.2
  • react-dom ^17.0.2
  • babel-loader 8.2.2

  • Check this box to trigger a request for Renovate to run again on this repository

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.