Commit graph

4141 commits

Author SHA1 Message Date
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
Xavier Cazalot
2fb457aab1 Merge pull request #1491 from malively/feature/add-reset-password-feature
Add Reset Password Feature
2016-11-02 16:33:15 +01: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
Sacha Greif
133ec83e5e add users.current subscription back because Meteor methods need access to Meteor.user() 2016-11-02 18:37:22 +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
5d34f695e5 ApolloProvider wraps the route (and not the opposite), however store is not rehydrated -> loading state is server-side rendered :-/ 2016-11-01 11:45:44 +01: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
0b2af51c89 split graphQL schemas in their respective packages 2016-10-29 16:37:33 +09:00
Sacha Greif
753eafc217 finish filtering resolvers 2016-10-29 16:17:14 +09:00
Sacha Greif
005d912222 filter fields in all resolvers 2016-10-29 16:02:43 +09:00
Sacha Greif
aa33585d2e Merge branch 'apollo' of https://github.com/TelescopeJS/Telescope into apollo 2016-10-29 14:21:40 +09:00
Sacha Greif
230018c066 clean up 2016-10-29 14:18:16 +09:00
Sacha Greif
7533d67296 add viewableIf property to schemas to define which fields are viewable by which users; use it in resolver 2016-10-29 14:17:57 +09:00
Matt Lively
eef2b7e233 ml/cjl: adding reset password feature 2016-10-28 21:27:27 -07:00
xavcz
6eddc86c6e decouple ourselves from the apollo's meteor integration to handle it our way atm (ssr, query batching, latest updates) 2016-10-28 18:09:41 +02:00
xavcz
133dab5263 get rid of this disallowed insert error client-side 2016-10-28 17:55:36 +02:00
xavcz
00b66a0988 get rid of this disallowed insert error client-side 2016-10-28 17:54:57 +02: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
xavcz
4f31a06d41 re-enable search: add search query to Terms schema 2016-10-27 16:48:18 +02: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
2339888549 Merge pull request #1487 from seanjsong/master
fix typo in style class name
2016-10-26 18:02:38 +09:00
Sacha Greif
3af91b00ee use terms argument instead of view (since view is contained inside terms anyway); add userIP etc. properties to post 2016-10-26 17:59:31 +09:00
Sean Song
f1fd21dd58 fix typo in style class name 2016-10-26 16:25:28 +08:00
Sacha Greif
5bb36193e0 Merge branch 'apollo' of https://github.com/TelescopeJS/Telescope into apollo 2016-10-26 16:39:54 +09:00
xavcz
a27dfdab1c Meteor 1.4.2 + latest updates 2016-10-26 09:14:05 +02:00
Sacha Greif
1ae6beeb72 Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel
# Conflicts:
#	.meteor/versions
2016-10-26 15:31:36 +09:00
Sacha Greif
33cb0c1708 update to Meteor 1.4.2 2016-10-26 15:30:44 +09:00
Sacha Greif
bbfb857c23 make document prop available to all form components (but don't pass it down to standard input controls to avoid error) 2016-10-26 15:20:32 +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
Sacha Greif
aa45d77105 update to Meteor 1.4.2; update packages 2016-10-26 14:46:30 +09:00
xavcz
ab99894207 adding 20sec pollInterval + refetchQuery props when voting / submitting a comment 2016-10-25 15:48:54 +02:00