Commit graph

412 commits

Author SHA1 Message Date
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
a74744d2c7 work on updateQueries for commentsNew 2016-11-07 13:00:09 +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
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
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
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
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
xavcz
3390b5af24 test optimistic ui on vote with sleep server-side 2016-11-02 09:53:16 +01:00
Sacha Greif
123da6b79d add latency compensation (a.k.a. optimistic UI) simulation for Telescope.operateOnItem; it now takes the item as argument (not the item _id) 2016-11-02 16:31:15 +09:00
Sacha Greif
fe5a3ff822 add loading spinner for vote mutation (and fix extra "{ }") 2016-11-02 14:50:51 +09:00
Matt Lively
4f6b7d78fd ml/cjl: adding support for users logged in. 2016-11-01 19:38:06 -07:00
xavcz
328be8b07d define mutation postVote(postId: String, voteType: String), wire it to <Vote /> 2016-10-31 18:21:28 +01:00
xavcz
b5709b0a52 flash-messages logic handle via redux for all the components 2016-10-31 17:13:14 +01:00
xavcz
e78cbe523f telescope's graphql mutations extensible as schema and queries, re-enable context.actions.call with Meteor for now 2016-10-31 16:19:37 +01:00
xavcz
fa4f0bfcf3 add viewableIf to non-array fields of Users (array fields cause trouble with mongo $ projection) 2016-10-30 18:25:51 +01:00
Sacha Greif
230018c066 clean up 2016-10-29 14:18:16 +09:00
Matt Lively
eef2b7e233 ml/cjl: adding reset password feature 2016-10-28 21:27:27 -07:00
xavcz
3c9c9673a3 add currentUser to schema/resolvers and give it to the AppContainer; re-enable canView/canEdit on CanDo comp (got broken at first migration to apollo); give back the document to custom FormComponent (used for example in the NewsletterButton in the account page) 2016-10-28 13:56:07 +02:00
Sacha Greif
f9ef536280 clean up ListContainer and DocumentContainer 2016-10-28 16:24:23 +09:00
Sacha Greif
7b3b37adc2 make user resolver take either id or slug; add UsersSingleContainer and use it for UsersAccount and UsersProfile 2016-10-28 16:22:07 +09:00
Sacha Greif
e160aca568 create AppContainer to load categories; remove settings package; todo: load current user with AppContainer 2016-10-28 15:45:43 +09:00
Sacha Greif
67a761569d port PostsEditForm to Apollo container; PostsPageContainer -> PostsSingleContainer 2016-10-27 16:06:42 +09:00
Sacha Greif
2c8fca39b1 use PostsListContainer for PostsDay view (create new container for all days later?) 2016-10-27 15:36:11 +09:00
Sacha Greif
c203e303d2 create new PostsPageContainer 2016-10-27 15:29:15 +09:00
Sacha Greif
c9c8e3c3d1 extract Apollo logic into PostsListContainer 2016-10-27 15:15:22 +09:00
xavcz
ce3d33b0f0 work on loadMore (fetchMore -> updateQuery) on PostsHome: extends Terms schema input with cat, add postsViewTotal (cursor count) schema/resolver 2016-10-26 12:47:41 +02:00
Sacha Greif
879a9e4c55 working on UsersProfile container 2016-10-26 18:03:26 +09:00