Commit graph

327 commits

Author SHA1 Message Date
eric-burel
2bb18f5844 split styled-components into their own package 2019-01-02 15:32:09 +01:00
eric-burel
19df560545 add redux 2018-12-21 17:32:34 +01:00
eric-burel
f7a0d77d42 fixed links order 2018-11-22 12:48:20 +01:00
eric-burel
8a1e1b7a64 add error link server side 2018-11-22 11:42:02 +01:00
eric-burel
0d5047fca4 init apollo server side client state too, better naming 2018-11-22 10:10:29 +01:00
eric-burel
8d1f5fb92b split graphQL initialization step and published the executable schema 2018-11-19 11:56:06 +01:00
Eric Burel
9cc23a1e4f moved apollo-client to client code 2018-09-26 10:17:03 +02:00
Eric Burel
a50fc3ddb3 fix export/import update.js 2018-09-26 10:01:55 +02:00
Eric Burel
e63137a943 split code and started working on apollo-state-link 2018-09-25 20:48:25 +02:00
SachaG
4c500e856e Disable routing package 2018-09-24 10:26:56 +09:00
SachaG
7b9da35b19 Finish work on post-mutation update functions 2018-09-24 09:08:11 +09:00
SachaG
bbf07273e4 Use WatchedMutations for post-mutation updates 2018-09-23 16:38:45 +09:00
SachaG
6275108d41 Comment out/disable legacy code for now 2018-09-23 10:52:52 +09:00
SachaG
e166e39546 Working on Apollo2 + React Router v4 2018-09-23 10:52:40 +09:00
SachaG
4fcd37cde7 Add warnings when no mutable fields have been defined 2018-09-18 08:32:32 +09:00
SachaG
f5e44dc68e v1.12.8 2018-09-17 09:54:10 +09:00
SachaG
c095572bf1 v1.12.7 2018-09-16 15:39:23 +09:00
SachaG
dfa4c77314 ESLint fixes 2018-09-16 11:48:38 +09:00
SachaG
2d4889abcc Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel
# Conflicts:
#	packages/vulcan-core/lib/modules/default_resolvers.js
2018-09-14 11:10:55 +09:00
Erik Dakoda
9be92d0903 - Fixed bug in single resolver (slug is undefined)
- Fixed bug in Utils.pluralize (pluralizing words ending in 's', for example address => addresses)
2018-09-13 10:46:10 -04:00
SachaG
a18c4ebb6a v1.12.6 2018-09-12 14:52:49 +09:00
SachaG
0c99b9a7ac v1.12.5 2018-09-12 12:01:10 +09:00
SachaG
43515b39bb Fix replaceComponent 2018-09-12 11:59:58 +09:00
SachaG
5fc0e30f40 Fix ESLint 2018-09-12 11:59:00 +09:00
SachaG
8e325122c6 v1.12.4 2018-09-12 10:32:45 +09:00
SachaG
493380889b Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-09-12 10:07:23 +09:00
SachaG
3c48f20273 Refactor registerComponent to fix #2061 (see also #2031) 2018-09-12 10:07:08 +09:00
Erik Dakoda
d5b677e28d - Added collection.options.singleResolverName and .multiResolverName to stay DRY
- In withMulti, fixed how loadMoreInc passes variables to fetchMore
- Added the "allowNull" option to single resolver to return null instead of throwing a MissingDocumentError
- Added extended SimpleSchema options to support "unique" field property (field can be used as part of a selectorUnique when querying for data)
- When generating schema, populate fields.selector and fields.selectorUnique
2018-09-10 06:16:00 -04:00
SachaG
0be73085c3 Fields with "$" should never be included in generated fragments (fix #2044) 2018-09-01 07:41:55 +09:00
SachaG
2482bae51b v1.12.3 2018-08-31 22:51:49 +09:00
SachaG
6e9d7e9412 v1.12.2 2018-08-31 07:07:27 +09:00
SachaG
b1452551ea Missing component.hocs should not throw exception 2018-08-31 07:06:50 +09:00
SachaG
32fef20cd4 v1.12.1 2018-08-30 20:02:55 +09:00
SachaG
0f4f77a058 v1.12.0 2018-08-30 07:51:28 +09:00
SachaG
0f6b06023b Fix missing typeName/collectionName issue 2018-08-29 21:47:23 +09:00
SachaG
e565b84dce Differentiate between _intl and intl = true fields 2018-08-21 17:47:57 +09: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
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
ochicf
90abd27d77 warn when replacing a non-registered component and register it anyway 2018-08-10 13:03:15 +02:00
ochicf
b55096855e added TODOs 2018-08-10 11:24:50 +02: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
9569200b95 Improve error handling by parsing GraphQL error messages 2018-08-07 15:43:03 +09:00
SachaG
9b4d913fab Handle form deletions more explicitly (split into two cases); pass value down to FormNested; uniq -> uniqBy 2018-08-05 11:17:46 +09:00
SachaG
45afb1d1f7 Don't use arrow function since it breaks arguments 2018-08-03 11:44:00 +09:00
SachaG
4ecac53112 Fix #2027 2018-08-03 11:14:15 +09:00
SachaG
dd8b1a9857 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-07-28 12:42:43 +09:00
ochicf
65cc9e0b38 initialize fragment when trying to retrieve it for the first time 2018-07-27 10:17:53 +02:00
ochicf
e2fe2ce556 initalizeFragments can now be parametrized with fragments to initialize 2018-07-27 10:16:56 +02:00
Apollinaire
fefc21bb2f collection.getParameters handles schema extension for searchable fields
Instead of using `schema` passed when creating the collection, `getParameters` should fetch the schema from `collection.simpleSchema()._schema` to include the fields added with `collection.addField`.

I originally found this when making the `groups` field searchable, with: 
```
Users.addField([
  {
    fieldName: 'groups',
    fieldSchema: {
      type: Array,
      searchable: true,
    },
  },
  {
    fieldName: 'groups.$',
    fieldSchema: {
      type: String,
    },
  },
]);
```
2018-07-23 11:59:22 +02:00
SachaG
39ae84b81a New callback hooks: *.create.before, *.create.async, etc. act like previous mutation callbacks but run for all collections; foo.collection runs when collection is created. 2018-07-22 09:26:41 +02:00