Commit graph

95 commits

Author SHA1 Message Date
Eric Burel
c55aa27983
Merge pull request #2126 from lbke/cleanup-components
Cleanup Datatable / withComponents pattern
2018-12-15 17:31:33 +01:00
neobii
82d320cea7 added refetch to props on withSingle 2018-12-05 06:14:17 -06:00
eric-burel
d65c83bde9 added test for container withComponents 2018-11-29 14:24:20 +01:00
eric-burel
0046649b98 temporarily remove depreaction message 2018-11-29 14:24:19 +01:00
eric-burel
a3b47c1301 created a withComponents HOC to load Components 2018-11-29 14:24:18 +01:00
SachaG
9e5528e6d5 Add sourceVersion to server; add withSiteData HoC 2018-11-24 09:56:41 +09:00
Eric Burel
284cdbae18 start splitting code, reuse options handler 2018-10-29 22:08:41 +01:00
SachaG
5fc0e30f40 Fix ESLint 2018-09-12 11:59:00 +09:00
Sacha Greif
27aaf06865
Merge pull request #2063 from lbke/bugfix/withAccess-guests
Allow "guests" in withAccess
2018-09-12 10:16:40 +09:00
Eric Burel
c4945ddc2f allow guests in withAccess 2018-09-11 18:08:29 +02: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
Eric Burel
7dcd8fc6ac cleanup quotes and added rule to eslint 2018-09-05 19:40:19 +02:00
Eric Burel
17f96712ff cleaned up the options management in hocs
Will fix issues when not specifying a fragmentName in withDelete
2018-09-05 16:53:51 +02:00
ochicf
f67e996168 fix: avoid adding multiple times the same document 2018-09-04 11:22:11 +02:00
SachaG
3ca76c198c Preserve withSingle backwards-compatibility 2018-08-30 20:02:09 +09:00
SachaG
a388e1663f Renaming 2018-08-29 20:36:36 +09:00
SachaG
5d1a7d2c37 Replace documentId/slug with selector in single resolver 2018-08-29 20:36:30 +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
b2fc0d0c5b Use Utils.pluralize function 2018-07-04 11:11:46 +02:00
SachaG
e0b540eeb1 Use callback ref; fix withMutation; handle errors with no path 2018-07-04 10:59:10 +02:00
SachaG
994c19a98d Make withMutation accept return fragmentName 2018-06-20 10:24:30 +09:00
SachaG
1d5d5b8ebc Small bugfixes, make selectors work with both _id and documentId 2018-06-17 12:30:37 +09:00
SachaG
32066e9c5a search -> selector 2018-06-14 23:00:28 +09:00
SachaG
60f47a5189 Various small fixes (thanks @justinr1234) 2018-06-08 13:31:15 +09:00
SachaG
a532dab9b7 singleInputTemplate should use selectorUniqueInputTemplate 2018-06-06 11:00:53 +09:00
SachaG
c8b57ab60e Fix withMulti 2018-06-06 07:36:25 +09:00
SachaG
84d08e9bf9 Adapt withCreate, withUpdate, withUpsert, withDelete 2018-06-05 16:07:38 +09:00
SachaG
20db318c40 More work on withMulti and withSingle 2018-06-05 12:12:04 +09:00
SachaG
809bdd05de Adapting withMulti and withSingle 2018-06-05 11:51:25 +09:00
SachaG
f3ba2cc59f Working on GraphQL template system for GraphQL schema generation 2018-06-04 11:22:49 +09:00
SachaG
96eab44309 Start CRUD renaming 2018-06-02 18:49:53 +09:00
SachaG
975155a843 Revert b6669a3 and add loadingInitial prop to be more explicit 2018-05-15 09:21:03 +09:00
SachaG
5c43de929c Fix withEdit imports; fix dropdown bug 2018-05-10 17:48:22 +09:00
Sacha Greif
cb0e8f5d5a
Merge pull request #1978 from Apollinaire/withAccess
check for redirect before trying to redirect
2018-05-09 07:59:33 +09:00
Apollinaire
5c15120113 check for redirect before trying to redirect
using `withAccess` without setting redirect used to crash the client because there was no test on `redirect`.  Current behaviour is: if redirect is not a string then no redirection is done and the component simply is not displayed.
2018-05-05 16:12:40 +02:00
Sacha Greif
9118d8f8ad
Merge pull request #1975 from Apollinaire/devel
withList Loading prop adjustment
2018-05-04 16:14:53 +09:00
Apollinaire
b6669a3f7e withList Loading improved
Follows the recommanded loading from Apollo. See the Apollo docs about `[data.networkstatus](https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-query-data-networkStatus)` and `[data.loading](https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-query-data-loading)`
2018-05-03 10:27:23 +02:00
Bernardo Dias
5b9bb61688 Update Flash component and withMessages container 2018-05-02 15:02:52 -03:00
ochicf
041eb4254d Mingo.Query is a class now, instantiate it with new 2018-03-14 12:20:30 +01:00
SachaG
e63c412198 Don't try to reorder items on vote (fix https://github.com/VulcanJS/Vulcan-Starter/issues/34) 2018-03-03 12:04:41 +09:00
SachaG
bf4aba4a32 Small clean up for withList and withDocument 2018-02-18 18:00:07 +09:00
SachaG
bb43a16e68 Revert "Pass an extraTerms argument to all extra queries"
This reverts commit ab8fd47d76.
2018-02-18 17:42:12 +09:00
SachaG
ab8fd47d76 Pass an extraTerms argument to all extra queries 2018-02-18 16:56:58 +09:00
SachaG
cee5fa6b6c Make currentUser available as a variable for withDocument and withList 2018-02-14 19:10:29 +09:00
SachaG
88c69b9d78 Pass down currentUserData 2018-02-08 12:21:45 +09:00
SachaG
ac838a65e4 Add notifyOnNetworkStatusChange option to withList 2018-02-05 10:45:20 +09:00
Justin Reynolds
0b9289d549 #1865 Fix upsert 2018-01-31 18:29:49 -06:00
Justin Reynolds
9212a1970e Add upsert mutation 2018-01-28 22:26:05 -06:00
Sacha Greif
8e507552df
Merge pull request #1851 from MHerszak/withEdit-withRemove
Added getCollection to withEdit & withRemove
2018-01-28 11:34:59 +09:00
Michel Herszak
f38d0ca3b0 Added getCollection to withEdit & withRemove 2018-01-27 19:11:03 -07:00