Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* editor mockup * add empty traits to available traits so user can select from dropdown * trait name and value editor * transform editor data to match with onSave func * add new trait * remove trait * add available trait name list * show traits header only when trait count is more than zero * add duplicate trait rule, add requireAll wrapper to shared rules * update editor design * move TraitsEditor to separate file, add unit test * fix edit story * update /users API to handle allTraits * cleanup * prettier format * move validation rule out from TraitsEditor component * remove requiredAll rule wrapper * rename trait vars and add api unit test: - rename traits to traitsPreset - add unit test for allTraits. Update existing checkAndSetDefault test to use table - add comment to user types to differentiate traits and allTraits * fix typo's, add js comments * use pointer to traitsPreset so empty struct can be compared with nil * resovle review comments: - remove double type declaration - move traitsToTraitsOption to be used as default value in setConfiguredTraits - label copy update - udpate test * remove describe * use const for array, bring back commented empty string checker block * add maxWidth to DialogContent inner content to avoid flickering when scrollbar appears * resolve review comments * filter empty element only if length equals 1. add unit test * handlechange: return for empty string, trim whitespace * explicitely handle null value * shorten empty string value check block
- Loading branch information