Commit graph

146 commits

Author SHA1 Message Date
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
Sean Song
f1fd21dd58 fix typo in style class name 2016-10-26 16:25:28 +08: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
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
xavcz
0820523750 use CanDo component when relevant, comment & deprecate ol' permission components 2016-08-06 19:47:04 +02:00
xavcz
2f58e4ef80 draft a CanDo reusable component and test it on PostsItem, PostsNewForm & UsersEdit 2016-08-04 10:50:03 +02:00
Sacha Greif
9cc7840b85 new permissions 2016-07-21 09:40:05 +09:00
Sacha Greif
c748bdc5bd permissions clean up & refactoring 2016-07-20 10:25:05 +09:00
xavizalote
448a6464d7 avoid intl error on date not defined in PostsItem base component (happen on pending view) 2016-07-07 11:19:01 +02:00
Sacha Greif
02fb7fa34d removing Categories global 2016-06-23 15:11:56 +09:00
Sacha Greif
41f349d18c removing Users global 2016-06-23 15:00:58 +09:00
Sacha Greif
0e28be3c92 removing Comments global 2016-06-23 12:17:39 +09:00
Sacha Greif
d9e69110a6 removing Posts global 2016-06-23 11:40:35 +09:00
Sacha Greif
c262b68cc7 make PostsHome easier to extend 2016-06-17 14:44:53 +09:00
Sacha Greif
0a1358a7e2 fix default view when other parameters are specified 2016-06-17 14:41:23 +09:00
Sacha Greif
f1e9e02e22 fix posts links 2016-06-17 09:54:25 +09:00
xavizalote
6dabd21193 [posts] consistency: post edit success message with post title 2016-06-15 11:53:29 +02:00
xavizalote
cfb720cdcf [posts] add contextTypes on PostsNewButton -> PostsNewForm can access it ; on ModalTrigger -> PostsEditForm can delete posts! 2016-06-15 11:30:48 +02:00
Sacha Greif
b51c48b117 pass actions, messages, and events as part of context instead of depending on them from within base-components 2016-06-14 17:03:35 +09:00
Sacha Greif
f5021a0a1e reenable old categories/views behavior 2016-06-14 10:17:11 +09:00
Sacha Greif
550ca85258 complete work on react-router 2016-06-14 10:01:44 +09:00
Sacha Greif
1104777be3 working on rr 2016-06-13 16:02:27 +09:00
Sacha Greif
829f42e342 more work on react router 2016-06-12 12:11:05 +09:00
Sacha Greif
bc22398192 react-router wit (fix later) 2016-06-11 16:37:03 +09:00
Sacha Greif
5ce95e4229 react router first pass 2016-06-11 16:36:18 +09:00
Sacha Greif
5634bc2e77 working on react-router 2016-06-10 19:19:32 +09:00
Sacha Greif
d812eacddf i18n error messages 2016-06-10 10:43:23 +09:00