Commit graph

183 commits

Author SHA1 Message Date
xavcz
113b68f5ed experiment batching, let's see if it has a performance impact 2017-02-22 15:54:03 +01:00
SachaG
64d6d991d2 remove nova:users’ dependency on nova:emails 2017-02-22 11:58:16 +01:00
xavcz
439478dddc resolvers: put a default "max limit" for users & comments as similar as posts 2017-02-17 19:02:33 +01:00
xavcz
d195d366c8 Nova v1.1.0 🔭
* bump packages version
* update to Meteor 1.4.3! 🚀
2017-02-16 11:50:22 +01:00
xavcz
b67989fbc2 work on notifications
* Telescope.notifications.create -> import { createNotifications } from 'meteor/nova:notifications' ;
* leverage Meteor's weak dependencies on packages & move code related to emails / notifications from nova:posts et al. to nova:notifications
2017-02-16 10:04:00 +01:00
xavcz
0f4343573c chore: remove legacy properties 'publish' & 'join' 2017-02-16 08:39:42 +01:00
Comus Leong
b8b0480cb0 better core/lib improvement and update 2017-02-12 22:00:13 +08:00
xavcz
e533dd47e7 fix some lint issues, remove some dead code, remove double imports from the same package & import from core instead of lib except for packages depending explicitly on lib (users, emails, ..) 2017-02-02 16:18:33 +01:00
xavcz
eb2644ad8a Form: display nicer, multiple & internationalizable (encode -> decode) errors, ensure that state updates are queued; in general prefer Error to Meteor.Error, clean some dead code 2017-02-02 15:15:51 +01:00
xavcz
7fc0a352aa allow querying a single post with only slug (consistency with withDocument), usersTotal resolvers takes care about terms, update react-apollo & apollo-client 2017-01-27 11:08:27 +01:00
SachaG
957fe56df9 clean up before merge back to master 2017-01-23 11:00:44 +09:00
SachaG
3357bc7726 Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel
# Conflicts:
#	packages/nova-base-components/lib/users/UsersEditForm.jsx
2017-01-18 10:20:00 +09:00
SachaG
b1d0cd8e69 call upvoting callback on post insert in sync way 2017-01-18 10:19:23 +09:00
SachaG
db17e917f8 Remove “__” prefix to avoid conflicts with GraphQL introspection types and simplify code 2017-01-18 10:18:33 +09:00
xavcz
78aed21d06 a single document can be found by a unique slug or a unique _id; prevent keepViewableFields to crash when no document found in single resolver 2017-01-17 19:46:17 +01:00
SachaG
7f2f8b1a89 add Users.keepViewableFields helper; make emails visible only to owner or admins 2017-01-16 12:32:28 +09: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
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
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
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
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
746da29d72 semver bump: 1.0.0 🚀 2016-12-27 11:58:58 +01:00
Xavier Cazalot
14313db271 Merge pull request #1526 from comus/patch-1
default avatar image's URL for ssr
2016-12-24 17:52:11 +01:00
xavcz
b04fabb449 more clean-up 2016-12-23 20:58:10 +01:00
xavcz
45e032d7b9 update npm react deps, clean some dead code/packages, use query deduplication sent to the server (apollo-client 0.5.24) 2016-12-23 12:01:16 +01:00
Comus Leong
d2958eefe0 default avatar image's URL for ssr 2016-12-21 22:35:48 +08:00
xavcz
78ba0e8530 more work on currentUser, withApp is not needed anymore (=== withCurrentUser), fix missing import on users schema 2016-12-21 12:04:43 +01:00
Sacha Greif
e6324788dc rollback version change for now to fix issue on run 2016-12-20 10:55:11 +09:00
Sacha Greif
fa7987d67a v0.3.0 2016-12-20 09:50:14 +09:00
Sacha Greif
4e1a82c130 Callbacks.add -> addCallback; and other callback functions 2016-12-13 11:40:24 +09:00
Sacha Greif
1bf4933ebb clean up Telescope imports 2016-12-13 11:32:23 +09:00
Sacha Greif
98fef8ef62 Telescope.settings.get -> getSetting 2016-12-12 15:00:56 +09:00
Sacha Greif
dd0df7dfc5 Telescope.utils -> Utils 2016-12-12 11:34:28 +09:00
Sacha Greif
a2d7b7c2ef Telescope.graphQL.foo -> GraphQLSchema.foo 2016-12-12 10:41:50 +09:00
Sacha Greif
5e1e124a8f Telescope.callbacks -> Callbacks; Telescope.createCollection -> createCollection 2016-12-12 10:24:34 +09:00
xavcz
b86ac7c12b withApp: class with lifecycle hooks so it can preload fields from feature/custom packages; fix Users.getSettings; ssr: plug again the cookies to the request 2016-12-09 13:26:46 +01:00
xavcz
1c058b60c6 clean-up 2016-12-09 09:11:20 +01:00
xavcz
2638023f4e harmonize apollo branch to be on v0.27.5 2016-12-08 23:48:16 +01:00
Sacha Greif
ce103c568c make withSingle accept slug parameter; no need for variables in withMutation anymore; port newsletter methods to Apollo 2016-12-07 15:30:40 +09:00
xavcz
4e6e312469 permission API: [editable/insertable/viewable](If) -> (By) ; anonymous -> guests ; default -> members 2016-12-06 10:55:47 +01:00
xavcz
2d42bd5bf3 fragmentName from fragment in withRemove; destructure args in usersSingle resolver; ShowIf on PostsNewForm & UsersEditForm; connect as the "most-right" HOC on Newsletter 2016-12-01 16:12:39 +01:00
Sacha Greif
212cdf48c2 Telescope.components.CanDo -> ShowIf 2016-12-01 16:09:54 +09:00
Sacha Greif
56c04baf3b use new group-based syntax for permissions; various tweaks 2016-12-01 15:29:07 +09:00
xavcz
41d19f52aa v0.27.5 2016-11-30 12:07:45 +01:00
xavcz
4b4d40f6b3 fix updateQueries: queryName for every hoc => queryToUpdate on withNew/Remove ≠ queryName on withSingle; fix removeSuccessCallback redirect; telescope object on user = blackbox 2016-11-30 10:31:19 +01:00
Sacha Greif
b16c7ce0be put withCurrentUser back in nova:core after all… 2016-11-30 16:58:28 +09:00
Sacha Greif
868194de59 id -> documentId in single document resolver; various fixes 2016-11-30 16:54:58 +09:00
Sacha Greif
d5be97b56c split out withCurrentUser and loadCurrentUser for now 2016-11-30 10:50:04 +09:00