Commit graph

20 commits

Author SHA1 Message Date
xavcz
5b3f2105d1 apply the new API registerComponent to the base-components 2016-11-17 20:42:16 +01:00
Sacha Greif
7a170786c8 use better syntax for HoCs 2016-11-11 18:25:47 +09:00
Sacha Greif
d31fc6b70a continue HoC refactoring, get rid of function syntax in withXYZ() after all 2016-11-11 18:19:18 +09:00
Sacha Greif
0ed0f24303 refactoring PostsListContainer and CommentsListContainer into HoCs 2016-11-11 16:42:19 +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
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
8777c33c2b clean up & experiment error catching normally swallowed on rendering 2016-11-07 16:33:52 +01:00
Sacha Greif
4e91966072 working on commentsListContainer 2016-11-07 23:46:12 +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
67a761569d port PostsEditForm to Apollo container; PostsPageContainer -> PostsSingleContainer 2016-10-27 16:06:42 +09:00
Sacha Greif
c203e303d2 create new PostsPageContainer 2016-10-27 15:29:15 +09:00
xavcz
ab99894207 adding 20sec pollInterval + refetchQuery props when voting / submitting a comment 2016-10-25 15:48:54 +02:00
xavcz
e15093824a sketchy example on single post 2016-10-19 11:07:21 +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
3ec90a04b5 remove Telescope global 2016-08-08 11:18:21 +09:00
Sacha Greif
952617dd96 subscribe-to-posts -> subscribe 2016-08-07 19:10:53 +09:00
Sacha Greif
d9e69110a6 removing Posts global 2016-06-23 11:40:35 +09:00
Sacha Greif
e8a7c657ad change component import syntax to be more explicit 2016-05-22 16:42:24 +09:00
Sacha Greif
6665a7c968 making component names and class names more consistent.
- Posts, Comments, Users, etc. are always pluralized.
- CSS classes are based off component names (PostsTitle -> posts-title)
2016-04-19 15:45:36 +09:00
Sacha Greif
24c1dc4722 cleaning up component naming 2016-04-14 10:12:35 +09:00
Renamed from packages/nova-base-components/lib/posts/PostPage.jsx (Browse further)