Commit graph

4419 commits

Author SHA1 Message Date
SachaG
7f2f8b1a89 add Users.keepViewableFields helper; make emails visible only to owner or admins 2017-01-16 12:32:28 +09:00
SachaG
5e3ed2b207 Move voting-related resolvers to nova:voting package 2017-01-16 12:24:59 +09:00
Sacha Greif
912f3848d1 move scalar declaration to global schema declaration 2017-01-16 12:22:17 +09:00
Sacha Greif
7e3bda4203 Change daily view loading 2017-01-16 10:27:42 +09:00
Sacha Greif
2130bf5efe Add missing Utils 2017-01-15 22:06:50 +09:00
Sacha Greif
014ba87367 Make graphql type conversion logic more explicit again 2017-01-14 18:04:53 +09:00
Sacha Greif
cffc032b36 refactor Vote.jsx a bit 2017-01-14 18:03:35 +09:00
Sacha Greif
e9bc54426f Call Utils.convertDates when loading and sorting data to convert any date field stored as a string into an actual date object 2017-01-14 17:57:44 +09:00
Sacha Greif
2707b8348d Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel 2017-01-14 08:29:55 +09:00
Sacha Greif
7de9912c92 add container aliases 2017-01-14 08:29:51 +09:00
xavcz
99548ca918 fix list filtering: de-couple pagination terms & props terms in withList; re-enable form cleaning: performed only if the form has not been unmounted; remove annoying eslint warnings 2017-01-13 18:17:08 +01:00
xavcz
0e100770e2 allow to query single category with its slug 2017-01-13 14:59:19 +01:00
xavcz
5303b4f4df SmartForm: if 'field.value' is an array of (non-objects / object with no _id key), fallback to item itself; XxxForms: 'mutationFragment' prop where needed, remove deprecated 'queryToUpdate' prop 2017-01-13 09:21:07 +01:00
Sacha Greif
10d1e7cc22 Fragment -> mutationFragment 2017-01-13 15:48:00 +09:00
xavcz
204e70531c add fragment prop on CategoriesEditForm ; allow to over-ride the query fragment for edit forms (same fragment option) 2017-01-12 16:53:16 +01:00
Sacha Greif
171bf9feb9 extraFragment -> fragment; deprecate Users.canEdit; add alias; use new withCurrentUser 2017-01-12 17:30:25 +09:00
Xavier Cazalot
7f99b48953 devel - revert commits related to simpl-schema (#1537)
* Revert "add note link to issue in collection2 on mutation insert, remove debug console logs on mutation edit"

This reverts commit 7a15103de7.

* Revert "node simpl-schema + collection2-core: fix vote by specifying the right type of the array (dont use blackbox in the end!)"

This reverts commit e894c3224c.

* Revert "add graphql date type (fix problem with node simple schema), fix an update bug on date picker,  add edit check on custom post item, add `blackbox: true` for arrays field (validation problem with simple-schema)"

This reverts commit 9d84fbec98.

* Revert "use node `simpl-schema` by aldeed to replace `meteor/aldeed:simple-schema` ; use the meteor collection2 core package as recommended"

This reverts commit 016935f4fa.

* revert before node-simple-schema, fix obj.hasOwnProperty undefined error thrown by simple-schema & collection2

* CustomPostsItem: check on renderActions; withDocument/List: pollInterval 20seconds by default; DateTime form component enhancement + GraphQLDate type
2017-01-11 18:02:12 +01:00
xavcz
ad007ac003 disable for now: manual reset/clear of the form (it's done by unmounting/mounting again without us controlling it) 2017-01-11 13:49:25 +01:00
xavcz
7a15103de7 add note link to issue in collection2 on mutation insert, remove debug console logs on mutation edit 2017-01-11 10:54:39 +01:00
xavcz
e894c3224c node simpl-schema + collection2-core: fix vote by specifying the right type of the array (dont use blackbox in the end!) 2017-01-11 10:39:52 +01:00
xavcz
c505fcbaac polling to 20s by default 2017-01-11 10:36:08 +01:00
xavcz
fe7baadc89 vote resolver: isSimulation false -> async callbacks will run 2017-01-10 11:38:42 +01:00
xavcz
9d84fbec98 add graphql date type (fix problem with node simple schema), fix an update bug on date picker, add edit check on custom post item, add blackbox: true for arrays field (validation problem with simple-schema) 2017-01-10 11:17:16 +01:00
xavcz
016935f4fa use node simpl-schema by aldeed to replace meteor/aldeed:simple-schema ; use the meteor collection2 core package as recommended 2017-01-10 10:09:24 +01:00
xavcz
871f8c65ca poll interval option on withDocument too, specific name for fragment on CustomPostsItem 2017-01-10 10:07:13 +01:00
Sacha Greif
f810c7166b Wrap PostsList with withCurrentUser instead of wrapping PostsItem (move it one level up); get rid of ContextPasser and pass closeModal as props instead of context; 2017-01-10 17:49:03 +09:00
Sacha Greif
834c33fecf simplify PostsDailyList logic a bit 2017-01-10 11:27:08 +09:00
Sacha Greif
bcda2bafef Add option to disable polling; add support for both incremental and non-incremental pagination (call loadMore or loadMoreInc) 2017-01-10 11:26:33 +09:00
Sacha Greif
b065e8c27a loading improvements 2017-01-09 22:09:09 +09:00
xavcz
31c2f22acd update graphql related packages, clean withMesages 2017-01-09 13:33:26 +01:00
Sacha Greif
130f43e3f3 Update std:accounts-ui 2017-01-09 21:14:54 +09:00
Sacha Greif
94b514675f fix daily view pagination 2017-01-09 21:14:25 +09:00
Sacha Greif
33e46fc6a9 Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel 2017-01-09 15:42:30 +09:00
Sacha Greif
fc982bc20f Make voting generic (posts, comments, etc.) WIP 2017-01-09 15:42:24 +09:00
Sacha Greif
b212163730 Merge pull request #1536 from philweber/devel
#1517 - Implement configurable excerpt lengths
2017-01-09 12:03:39 +09:00
Phil Weber
7d30a42b81 #1517 - Implement configurable excerpt lengths 2017-01-08 18:55:00 -08:00
Sacha Greif
03d272dfd4 Add movies parameters callback 2017-01-08 18:15:07 +09:00
Sacha Greif
ebf929774c sort movies list by createdAt; wrap MoviesNewForm with withMessages to fix setState bug 2017-01-08 18:14:41 +09:00
Sacha Greif
8f5891eb30 Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel
# Conflicts:
#	packages/nova-categories/lib/resolvers.js
#	packages/nova-comments/lib/resolvers.js
#	packages/nova-core/lib/containers/withList.js
#	packages/nova-posts/lib/resolvers.js
#	packages/nova-users/lib/resolvers.js
2017-01-08 16:25:30 +09:00
Xavier Cazalot
3c57ba0a0a Merge pull request #1534 from dominictracey/master
fixed deployment instructions typo
2017-01-07 21:21:04 +01:00
Sacha Greif
2d627a9609 Refactor withList to use non-incremental pagination to work around polling+fetchMore incompatibility 2017-01-07 16:44:50 +09:00
xavcz
3666401364 withList: allow terms to be passed via options too, then merge it with the one passed via props ; disable events on CategoriesEditForm (todo: re-enable events client-side) 2017-01-05 17:11:38 +01:00
xavcz
6f69aff0fe make all 'collectionList' resolvers take care of collection.getParameters(terms) + add default parameters (order on categories, postId on comments) 2017-01-05 15:53:41 +01:00
xavcz
fe6e527b37 intl key on category, closeCallback passed via props: no need of ContextPasser 2017-01-05 15:13:31 +01:00
xavcz
817a81b7fc re-enable server-side method Posts.increaseClicks 2017-01-05 07:52:34 +01:00
xavcz
763baa3882 fix helpers use in nova:rss, stop using Npm.require, es6 code 2017-01-05 07:51:51 +01:00
Dominic Tracey
014f671f2a fixed deployment instructions typo 2017-01-04 13:01:40 -05:00
xavcz
2a997ed2b1 small tweak on categories edit form (intl, remove mutation) 2017-01-04 17:36:43 +01:00
xavcz
b3bcb4de87 improve Nova's redux utils (configureStore, addAction, addReducer) 2017-01-04 14:31:38 +01:00
xavcz
0d2ab862c8 SmartForm's prefilledProps effective on initialization of the form (autofilled values) and not on submit 2017-01-04 09:36:56 +01:00