feat: Async validations

Merged
#23 · Created  · Last updated

Merged pull request

feat: Async validations

bd3128b·Author: ·2018-07-20

Description

This feature implements asynchronous validations, allowing all validation functions to return a promise which may resolve or reject:

  • Adds mobx-utils as a new required peer dependency (for observable promises).

  • Changes the way of getting and setting state properties (what before was "value info" is now the "value state").

  • Caches all validation "properties" as computed state properties.

  • Adds a catalog example using asynchronous validations on the text component (async minLength and async validator which fails 50% of the times).

  • Adds icons for pending/rejected validations on all components, on the tree nav, and on the top bar. The validation panel shows as loading during pending validations.

  • Adds a way of "retrying" rejected validations.

Other changes:

  • Adds a way of inspecting all state properties in a modal (only available when the app is in development mode).

  • Make SCSS loading mixin more generic.

  • Fix table styling issues with selection checkboxes.

  • Fixes #3 by changing the style of required fields.

  • Adds delay and placement input options to the bs-tooltip component.

0 attachments

0 comments

Loading commits...