Commit graph

182 commits

Author SHA1 Message Date
xavcz
dcd7269f74 small tweak on mutations & userId field 2016-11-18 09:28:32 +01:00
Sacha Greif
e1744f9f93 working on custom collection demo package 2016-11-18 16:01:27 +09:00
Sacha Greif
3d5fbe7b54 comment out publications code 2016-11-17 17:38:38 +09:00
xavcz
600ab15c4d Apollo branch up to date with v0.27.4 2016-11-15 12:51:43 +01:00
xavcz
c8615d3439 v0.27.4 2016-11-15 10:44:01 +01:00
Sacha Greif
5df3377418 clean up published_fields files; clean up unnecessary packages; more work on callbacks 2016-11-15 15:59:34 +09:00
xavcz
08a686f496 use Collection.fragments in queries/mutations 2016-11-14 20:27:23 +01:00
Sacha Greif
8689a4de73 clean up callbacks by moving logic to mutations and schema (autoValue) 2016-11-14 17:17:44 +09:00
xavcz
78802d6790 add query collectionListTotal (= list total count) on every collection by default, query list from the ui : getCollectionList(..) { collectionListTotal(..) collection(..) } ; withRemove "automation" based on these queries 2016-11-13 13:43:36 +01:00
xavcz
35302d291f wip on withRemove HOC included in withEdit; fix posts.remove.validate callback 2016-11-12 17:28:08 +01:00
xavcz
db5605bd2e use a more generic prefix (__) for users settings and adapt Users.methods.setSetting 2016-11-10 14:22:47 +01:00
Sean Song
f764ca2b46 finish the "status bug" off with its field schema legacy(autoValue) changed to nova(defaultValue) 2016-11-10 10:36:35 +01:00
Sacha Greif
1ec194576e fix status bug; add status to list query 2016-11-09 21:54:31 +09:00
xavcz
460efe52f6 move namespace to prefix on user schema: user.telescope.xxx by user.nova_xxx 2016-11-08 18:22:17 +01:00
Sacha Greif
364dacaecf split out user schema fields in appropriate packages 2016-11-08 16:33:25 +09:00
Sacha Greif
1b7574d8fe add missing properties 2016-11-08 15:16:58 +09:00
Sacha Greif
9b7cdcd8bc add typeName to each collection 2016-11-08 15:12:23 +09:00
Sacha Greif
4907310480 extract queries into their own files 2016-11-08 15:04:17 +09:00
Sacha Greif
bee5eaf373 generate graphQL schemas for posts, comments, and categories from simpleSchema 2016-11-08 14:56:39 +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
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
7ce835b0fd apollo forms wip 2016-11-07 17:45:17 +09:00
Sacha Greif
747ff91721 add posts.remove callbacks 2016-11-07 12:59:39 +09:00
Sacha Greif
8701dace84 refactor mutations; collection.x.method callback is now collection.x.validate 2016-11-07 12:11:02 +09:00
Sacha Greif
b369d90341 use standard newMutation, editMutation, and removeMutation mutations for posts and comments 2016-11-07 11:47:33 +09:00
xavcz
7059b19772 'users.remove' method: check if the user wants to remove itself or another user ; ensure options are defined in related callbacks 2016-11-06 12:04:20 +01:00
Sacha Greif
a0a7d235e9 working on comments mutations 2016-11-05 18:37:46 +09:00
Sacha Greif
5372aace33 unset should be all booleans 2016-11-05 17:23:25 +09: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
f332c8810b use Apollo for new post mutation 2016-11-04 10:28:54 +09:00
Sacha Greif
b006db3a78 finish cleaning up resolvers 2016-11-04 09:31:32 +09:00
Sacha Greif
56bcfba245 first pass at splitting off resolvers 2016-11-03 21:39:09 +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
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
xavcz
328be8b07d define mutation postVote(postId: String, voteType: String), wire it to <Vote /> 2016-10-31 18:21:28 +01:00
Sacha Greif
0b2af51c89 split graphQL schemas in their respective packages 2016-10-29 16:37:33 +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
xavcz
26f5e73119 more work on single post 2016-10-19 17:38:21 +02:00
xavcz
042cb4ff86 v0.27.3 2016-10-19 09:54:15 +02:00
xavcz
7775838980 change old reference to AutoForm (legacy): field schema "autoform" -> "form" 2016-10-05 08:43:13 +02:00
xavcz
5463ff7b86 prefer Users namespace to Meteor.users in active packages 2016-10-05 08:37:48 +02:00
xavcz
4ccbf6148b consistency on posts parameters callback: posts.parameters 2016-10-05 08:06:34 +02:00
xavcz
9fb82628d2 clean up dead code, remove package-tap.i18n 2016-10-05 08:05:11 +02:00
xavcz
5078639d92 add slug to newPendingPost notification, closes #1254 2016-10-04 17:38:09 +02:00
xavcz
b3ae8ef6c6 v0.27.2 2016-10-01 18:11:37 +02:00
xavcz
b69b341a7d fix #247 2016-09-28 13:46:59 +02:00