Commit graph

121 commits

Author SHA1 Message Date
Sacha Greif
9fcb9f753d make sure we don't affect the props passed by CommentsListContainer 2016-11-10 10:55:38 +09:00
Sacha Greif
1ec194576e fix status bug; add status to list query 2016-11-09 21:54:31 +09:00
Sacha Greif
cab93c1128 re-enable comment nesting 2016-11-09 11:55:12 +09:00
Sacha Greif
80bf6ddb12 Merge branch 'apollo' of https://github.com/TelescopeJS/Telescope into apollo
# Conflicts:
#	packages/nova-users/lib/schema.js
2016-11-09 09:31:15 +09:00
Sacha Greif
76d71f13dd small tweaks 2016-11-09 09:30:11 +09:00
xavcz
ec95b3c591 wip on nova:base-containers, rename nova:base-apollo in nova:apollo for the sake of clarity, remove some obsolete/experimental functions (triggerMainRefetch, refetchQuery, ..) 2016-11-08 12:58:53 +01:00
Sacha Greif
ce13bf11c0 fix a few issues with forms 2016-11-08 14:56:48 +09: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
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
1c47da69e0 small fixes 2016-11-07 11:46:58 +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
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
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
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
xavcz
b5709b0a52 flash-messages logic handle via redux for all the components 2016-10-31 17:13:14 +01:00
Sacha Greif
f9ef536280 clean up ListContainer and DocumentContainer 2016-10-28 16:24:23 +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
Sacha Greif
858c2b78c4 Merge branch 'apollo' of https://github.com/TelescopeJS/Telescope into apollo 2016-10-26 14:46:39 +09:00
Sacha Greif
03fd4c19d6 clean up 2016-10-26 14:46:36 +09:00
xavcz
ab99894207 adding 20sec pollInterval + refetchQuery props when voting / submitting a comment 2016-10-25 15:48:54 +02:00
xavcz
3bcecf5fc2 add variables to posts(view, offset, limit) graphql query -> linked to PostsHome 2016-10-25 13:13:25 +02:00
Sacha Greif
2a714894a5 use Apollo for PostsHome 2016-10-25 16:24:03 +09:00
xavcz
26f5e73119 more work on single post 2016-10-19 17:38:21 +02:00
xavcz
e15093824a sketchy example on single post 2016-10-19 11:07:21 +02:00
xavcz
f6bbbd14ca redux basic setup (to be improved) - test case on FlashMessages, used in PostNewForm 2016-10-19 10:32:24 +02:00
xavcz
b04cb52470 currentUser is now only given via context, update README about it, add a missing import 2016-10-14 08:47:18 +02:00
Sacha Greif
3f56f4668d cache front page posts again 2016-08-29 08:55:19 +09:00
Sacha Greif
3d6c7731fe limit commenter avatars to 4; add try…catch to email sending 2016-08-26 10:16:01 +09:00
Sacha Greif
97d457251c remove activeClassName attribute from LinkContainer components since it's not supported 2016-08-25 09:59:09 +09:00