Commit graph

2282 commits

Author SHA1 Message Date
xavcz
6a6fbb9ce2 add debug option on apollo server 2016-11-07 21:39:12 +01:00
xavcz
bca4b38358 fix commenters (UI / schema / resolvers), pass documentId to postsVote, move PostsListsContainer query to Posts.graphQLQueries.list, FormWrapper.clearErrors() -> FormWrapper.clearForm({clearErrors, clearCurrentValues}): prevent bug of keeping latest value when submitting a formNew that doesn't unmount 2016-11-07 18:03:07 +01:00
xavcz
2e16a46e16 fix CommentsListContainer 2016-11-07 16:46:55 +01:00
xavcz
8777c33c2b clean up & experiment error catching normally swallowed on rendering 2016-11-07 16:33:52 +01:00
Sacha Greif
3347af0a09 clean up some console.logs 2016-11-07 23:52:39 +09:00
Sacha Greif
4e91966072 working on commentsListContainer 2016-11-07 23:46:12 +09:00
Sacha Greif
4d7ec25bc9 fix small issue 2016-11-07 22:48:37 +09:00
Sacha Greif
8eae4fda1d get rid of PostsNewFormContainer and PostsEditFormContainer 2016-11-07 22:46:31 +09:00
Sacha Greif
2b91a715a7 fix errors somehow??! 2016-11-07 22:27:34 +09:00
Sacha Greif
7ce835b0fd apollo forms wip 2016-11-07 17:45:17 +09:00
Sacha Greif
2aab82f685 add body 2016-11-07 15:19:13 +09:00
Sacha Greif
02b3e785c5 working on commentsEdit 2016-11-07 15:03:45 +09:00
Sacha Greif
8b35d59323 try/catch for mailchimp 2016-11-07 13:00:15 +09:00
Sacha Greif
a74744d2c7 work on updateQueries for commentsNew 2016-11-07 13:00:09 +09:00
Sacha Greif
747ff91721 add posts.remove callbacks 2016-11-07 12:59:39 +09:00
Sacha Greif
82f22c1699 put full user object on context 2016-11-07 12:23:04 +09:00
Sacha Greif
8701dace84 refactor mutations; collection.x.method callback is now collection.x.validate 2016-11-07 12:11:02 +09:00
Sacha Greif
b369d90341 use standard newMutation, editMutation, and removeMutation mutations for posts and comments 2016-11-07 11:47:33 +09:00
Sacha Greif
1c47da69e0 small fixes 2016-11-07 11:46:58 +09:00
Curtis G
eb0536a662 Only show comment reply button for logged in users 2016-11-06 13:31:58 -05:00
xavcz
f988686653 use a fork of meteorhacks:inject-data to fix data-injection with meteor 1.4.2 2016-11-06 14:52:12 +01:00
xavcz
7059b19772 'users.remove' method: check if the user wants to remove itself or another user ; ensure options are defined in related callbacks 2016-11-06 12:04:20 +01:00
xavcz
8aaef596f5 modify getUnusedSlug to handle edge case on Users collection, fix #1501 and related to #1213 2016-11-06 11:51:52 +01:00
Sacha Greif
d217c93eba small fixes 2016-11-05 18:42:57 +09:00
Sacha Greif
a0a7d235e9 working on comments mutations 2016-11-05 18:37:46 +09:00
Sacha Greif
5372aace33 unset should be all booleans 2016-11-05 17:23:25 +09:00
xavcz
ec0ec6558a PostsEditContainer 2016-11-04 14:14:19 +01:00
xavcz
f92bb15079 PostsNewFormContainer ; fix typo on postsVote mutation 2016-11-04 13:57:27 +01:00
xavcz
0805b653e9 NovaForm: catch mutation error and display it 2016-11-04 09:38:55 +01:00
xavcz
9d3df4ff1b get access to graphql server's context even if no user is logged in 2016-11-04 08:41:34 +01:00
xavcz
d382c995d0 specify explicit dependencies (npm & meteor packages) 2016-11-04 08:40:21 +01:00
Sacha Greif
4c5c696a82 split out set/unset to work around fact that I don't know GraphQL syntax 2016-11-04 15:49:42 +09:00
Sacha Greif
2d0e2fde83 working on postsEdit 2016-11-04 14:38:31 +09:00
Curtis G
38aecb78a0 Add i18n messages for no more posts, no results, and load more days 2016-11-03 23:00:30 -04:00
Sacha Greif
ae94226990 use updateQueries to update the main post list after new post 2016-11-04 10:53:06 +09:00
Sacha Greif
f332c8810b use Apollo for new post mutation 2016-11-04 10:28:54 +09:00
Sacha Greif
70cf664602 Merge pull request #1497 from keenethics/apollo
No comments.deleteById simulation for now
2016-11-04 09:32:15 +09:00
Sacha Greif
b006db3a78 finish cleaning up resolvers 2016-11-04 09:31:32 +09:00
Epaminond
d91e7ff567 No comments.deleteById simulation for now 2016-11-04 00:03:27 +02:00
Sacha Greif
56bcfba245 first pass at splitting off resolvers 2016-11-03 21:39:09 +09:00
Sacha Greif
878643f29a access store directly via JS object instead of using query 2016-11-03 18:25:33 +09:00
Sacha Greif
bb91c66ad7 working on client-only queries to the Apollo store 2016-11-03 17:16:12 +09:00
Sacha Greif
222aa4b544 split off VoteContainer and Vote 2016-11-03 16:19:44 +09:00
Sacha Greif
588d37524c fix issue with refetch 2016-11-03 14:55:39 +09:00
Sacha Greif
85eba36199 add setMainRefetch and triggerMainRefetch functions to App's context to enable main post list refetch after new post method completion 2016-11-03 14:39:27 +09:00
Sacha Greif
8398a7c255 redirect after delete 2016-11-03 14:13:26 +09:00
Sacha Greif
9ce7fe703f make PostsListContainer and PostsSingleContainer stateful components; add refetchQuery on child context; call it from post edit form; clone item in Telescope.operateOnItem to avoid modifying the original by mistake 2016-11-03 14:07:58 +09:00
xavcz
7c88d27d62 have the mutation simulation and server operation returning the same result, add missing viewableIf, pass comment object to Telescope.operateOnItem 2016-11-02 13:29:43 +01:00
Sacha Greif
c1e1c68c23 disable polling; make posts.edit method work again; run refetch in NovaForms success callback 2016-11-02 19:56:44 +09:00
Sacha Greif
53976b2608 add missing events collection to app container 2016-11-02 19:04:34 +09:00