Commit graph

36 commits

Author SHA1 Message Date
SachaG
85dde4b402 move views logic to createCollection 2017-03-05 10:33:34 +00:00
xavcz
390ea7444d fix metatags on PostsPage 2017-02-16 10:09:28 +01:00
SachaG
b11188eda6 handle missing users/posts better 2017-02-04 15:40:26 +09:00
xavcz
08c171ed64 fix #1541: increasePostViewCount mutation + associated resolver; store posts viewed on the client session on postsViewed in the redux store; document PostsPage HOC & lifecycle hook 2017-02-01 16:37:06 +01:00
xavcz
2c2a647e7a work on <head />: allow custom script tag, fix rss feed, expose 'excerpt' on post fragment 2017-01-31 18:57:45 +01:00
SachaG
45b9de4789 Add new fragments API (registerFragment/getFragment); move fragments to own fragments.js file; registerComponent doesn’t return anything anymore; withList & withDocument accept either fragment or fragmentName 2017-01-30 19:46:48 +09:00
SachaG
4661ec9583 Wrap PostsPage with currentUser 2017-01-23 10:30:58 +09:00
SachaG
db17e917f8 Remove “__” prefix to avoid conflicts with GraphQL introspection types and simplify code 2017-01-18 10:18:33 +09:00
Sacha Greif
70ddd87039 update to apollo-client 0.5.22; small fixes and clean-up; Posts.parameters.get -> Posts.getParameters; add sorting to withList (even though it doesn't work yet); add getParameters to all collections; 2016-12-18 19:04:11 +09:00
Sacha Greif
8fa846fda3 withSingle -> withDocument 2016-12-12 09:54:16 +09:00
xavcz
37f4bdaf91 Telescope.components.Foo -> Components.Foo, same for related components utils like registerComponent, getRawComponent & replaceComponent 2016-12-06 18:06:29 +01:00
Sacha Greif
09cce8f978 get fragmentName from fragment, no need to define it separately anymore 2016-12-01 12:13:27 +09:00
Sacha Greif
868194de59 id -> documentId in single document resolver; various fixes 2016-11-30 16:54:58 +09:00
Sacha Greif
fa581a85c3 lots of cleaning up 2016-11-26 11:17:01 +09:00
Sacha Greif
e09022b350 add fragments inside components 2016-11-23 11:07:48 +09:00
xavcz
1137fb96aa adapt the Telescope.createCollection api to all the collections, some clean up in old containers files 2016-11-22 18:14:51 -05:00
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)