SachaG
8705ff6b7b
Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel
2018-08-21 18:44:32 +09:00
SachaG
a3de5a3ccc
Small fix in intl script
2018-08-21 17:48:06 +09:00
SachaG
e565b84dce
Differentiate between _intl and intl = true fields
2018-08-21 17:47:57 +09:00
Sacha Greif
b67c928a3e
Merge pull request #2035 from Apollinaire/opencrudFixes
...
Users totalCount and removed one console.log
2018-08-21 17:41:39 +09:00
Apollinaire
944b57df76
remove console.log
2018-08-20 12:39:26 +02:00
Apollinaire
56422c5e9a
Add totalCount to User multi resolver
2018-08-20 12:34:09 +02:00
SachaG
c2546f07c6
Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel
2018-08-20 15:21:07 +09:00
SachaG
fa6709109e
Simplify/fix permissions code
2018-08-20 15:21:02 +09:00
SachaG
7e67a441cd
Backwards compatibility with documentId
2018-08-20 15:20:51 +09:00
Sacha Greif
8c60de4b78
Merge pull request #2034 from Apollinaire/opencrudFixes
...
OpenCRUD fixes
2018-08-18 15:17:26 +09:00
Sacha Greif
60c3f0d628
Remove console.logs
2018-08-18 10:07:28 +09:00
Apollinaire
80d390ec8a
add user.create.before
hook to classic signup workflow
2018-08-17 19:28:57 +02:00
Apollinaire
8b3f80dfc2
use single argument and fix hook names for onCreateUserCallback
2018-08-17 16:29:45 +02:00
Apollinaire
4c4f11b1a0
re-establish vulcan's custom enroll and reset urls
...
since f3c1f7bf31
the urls sent in the resetPassword and enrollment emails were the Meteor default one, `/#/reset-password`
2018-08-17 16:28:41 +02:00
Sacha Greif
26f28a98ce
Rework required field validation to make it work for intl fields when creating new documents
...
1. make intl fields use [IntlValue] and [IntlValueInput] types
2. add isIntlData marker to fields storing intl data
3. only validate intl fields that are marked as required
4. remove all instance of `__typename` from documents in edit forms
2018-08-17 19:02:44 +09:00
Sacha Greif
0b961aca2b
Add Date2 form component (useful for date of birth for example)
2018-08-17 13:49:15 +09:00
Apollinaire
3492ac40e4
add toLowerCase to mutator collection.create.before
...
The norm is lower case on hooks, without this it was for example: `Movies.create.before` when all the others were `movies.create.validate/after/async`
2018-08-16 18:00:58 +02:00
Apollinaire
fad9db6602
register user callbacks
2018-08-16 16:06:52 +02:00
Apollinaire
45e951a7a2
createUser small fix
2018-08-16 15:34:21 +02:00
Sacha Greif
fc65d66204
Make Select work with number fields too
2018-08-16 12:30:33 +09:00
Sacha Greif
f532addb0b
Merge pull request #2033 from Apollinaire/revertSingleArgUsers
...
[opencrud] update Users mutations to match {selector, data} args
2018-08-14 09:33:38 +09:00
Apollinaire
595c3c3051
[opencrud] update Users Mutations to match {selector, data} args
2018-08-13 14:03:50 +02:00
Sacha Greif
8a937b758b
Merge pull request #2030 from Apollinaire/clearCurrentDocument
...
[Forms] Add currentDocument to clearForm
2018-08-11 12:30:17 +09:00
Sacha Greif
e452f35c8c
Merge pull request #2029 from OrigenStudio/fix/replace-non-registered-component
...
Warn when replacing a non-registered component and register it anyway
2018-08-11 12:28:30 +09:00
Sacha Greif
772d3f47ef
Merge pull request #2028 from OrigenStudio/feature/defaults-resolvers-mutations-options
...
Minor default resolvers and mutations improvements
2018-08-11 12:26:20 +09:00
Apollinaire
06607e5e9a
[Forms] Add currentDocument to clearForm
...
allows for the form fields to be correctly cleared when calling clearForm with `clearCurrentValues == true`
2018-08-10 14:46:49 +02:00
ochicf
90abd27d77
warn when replacing a non-registered component and register it anyway
2018-08-10 13:03:15 +02:00
ochicf
eb544faa07
register callbacks only for the created mutations
2018-08-10 11:51:43 +02:00
ochicf
b31ff85b8c
merge mutation and resolver options
...
This makes possible to only specify a subset of options.
As an example, imagine we want to pass a customized `updateCheck` function to `getDefaultMutations`. Before this commit options weren't merged, so all of them had to be specified:
```
getDefaultMutations({
typeName,
collectionName,
options: {
create: true,
update: true,
upsert: true,
delete: true,
updateCheck: () => true,
});
```
After the commit:
```
getDefaultMutations({
typeName,
collectionName,
options: {
updateCheck: () => true,
});
```
2018-08-10 11:50:56 +02:00
ochicf
b55096855e
added TODOs
2018-08-10 11:24:50 +02:00
ochicf
9e9d818678
collectionName can now be specified as an argument
2018-08-10 11:24:38 +02:00
SachaG
9d53c33727
Fix queryOne query variables
2018-08-10 13:08:49 +09:00
SachaG
497987d91e
Export account helpers
2018-08-10 13:08:12 +09:00
SachaG
a1a3ffbb8c
Merge branch 'revert-single-arguments' into devel
2018-08-10 11:16:40 +09:00
SachaG
87ed3ea5ea
Use UNSAFE_componentWillReceiveProps to compare old props and new props before resetting state when props change
2018-08-09 11:41:06 +09:00
SachaG
fe86f84870
Put currentDocument on state, too; use isEmptyValue to test for empty values (will catch [], '', and undefined as well as null)
2018-08-07 16:42:45 +09:00
SachaG
2071307662
Merge branch 'devel' into revert-single-arguments
2018-08-07 16:20:29 +09:00
SachaG
910c932f61
Get rid of single argument level of indirection in mutations; add additional checks to avoid empty selectors
2018-08-07 16:20:24 +09:00
SachaG
92a8ae8e75
Improve error handling in nested arrays and nested objects
2018-08-07 16:05:24 +09:00
SachaG
9569200b95
Improve error handling by parsing GraphQL error messages
2018-08-07 15:43:03 +09:00
SachaG
d9784ad0aa
Improve StaticText form component with basic URL parsing
2018-08-07 15:37:51 +09:00
SachaG
ae12907877
Merge branch 'devel' into feature/nested-schema
2018-08-07 10:16:40 +09:00
SachaG
8347dffb2e
Fix user creation onCreate/onInsert step
2018-08-07 10:13:59 +09:00
SachaG
2f4a0acb8e
Get rid of merging to generate document; instead update currentDocument every time updateCurrentValues is called. Add support for { mode: 'merge'}
in updateCurrentValues options.
2018-08-07 10:13:06 +09:00
SachaG
929e479f59
Do not pass down nestedInput prop in intlInput components to avoid treating them like Nested Objects components
2018-08-06 10:52:37 +09:00
SachaG
059d2651b9
Merge branch 'devel' into lbke-feature/nested-schema
...
# Conflicts:
# packages/vulcan-forms/lib/components/Form.jsx
# packages/vulcan-forms/lib/components/FormComponent.jsx
2018-08-06 10:46:40 +09:00
SachaG
a9d81cb747
Simplify getValue; do not merge in getValue anymore, instead get value from Form's getDocument()
2018-08-06 10:43:00 +09:00
SachaG
cdd59a1cbf
When checking to update FormComponent when a field has been deleted, update parent component if child has been deleted.
2018-08-06 10:31:06 +09:00
SachaG
e27f5af9e1
Make Checkboxgroup and Select handle their own value formatting
2018-08-06 10:30:15 +09:00
SachaG
e1faef0d39
Add getFieldType, getNullValue form utils
2018-08-06 10:29:36 +09:00