Commit graph

29 commits

Author SHA1 Message Date
Discordius
402e3d3421 Fixed downvoting by modifying vote.js file in nova-voting package 2017-03-11 11:26:15 -08:00
xavcz
eb2644ad8a Form: display nicer, multiple & internationalizable (encode -> decode) errors, ensure that state updates are queued; in general prefer Error to Meteor.Error, clean some dead code 2017-02-02 15:15:51 +01:00
SachaG
38de180530 Add comment voting using graphql union type 2017-01-29 11:17:00 +09:00
SachaG
3ab60533f2 some more vote clean-up 2017-01-26 13:09:27 +09:00
SachaG
99160a1831 Remove MongoDB logic in vote.js; split out db update into mutateItem 2017-01-26 11:14:39 +09:00
xavcz
36ca34a267 fix upvote.async callback issue on collection.new mutation
* add collection as the last parameter of a collection.async cb,
* when inserting a new document, run upvote.async cb once the document has been inserted (collection.new.async)
* remove pre-meteor 1.3 '/server' folder, put everything in the root (initiated by grouping callbacks in the same file for less confusion)
2017-01-24 11:58:57 +01:00
SachaG
c1131422a0 Use immutability helper for vote; pass currentUser to Vote.jsx as prop 2017-01-22 10:12:05 +09:00
SachaG
b1d0cd8e69 call upvoting callback on post insert in sync way 2017-01-18 10:19:23 +09:00
Sacha Greif
fc982bc20f Make voting generic (posts, comments, etc.) WIP 2017-01-09 15:42:24 +09:00
Sacha Greif
4e1a82c130 Callbacks.add -> addCallback; and other callback functions 2016-12-13 11:40:24 +09:00
xavcz
a0b7e64788 fix voting callback & operateOnItem, fire stopLoading on Vote component when user is not logged in 2016-12-12 11:17:13 +00:00
Sacha Greif
381cdc7cff Telescope.headtags -> Headtags; Telescope.actions -> Actions; Telescope.reducers -> Reducers; Telescope.operateOnItem -> operateOnItem; TODO: fix withMessages 2016-12-12 16:43:23 +09:00
Sacha Greif
dd0df7dfc5 Telescope.utils -> Utils 2016-12-12 11:34:28 +09:00
Sacha Greif
5e1e124a8f Telescope.callbacks -> Callbacks; Telescope.createCollection -> createCollection 2016-12-12 10:24:34 +09:00
xavcz
ddd71eebd1 withCurrentUser belongs to nova:users 2016-11-29 14:08:24 +01:00
Sacha Greif
9467837d1f move Users.hasUpvoted to nova:voting 2016-11-29 18:52:13 +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
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
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
26f5e73119 more work on single post 2016-10-19 17:38:21 +02:00
Sacha Greif
42decba8ad used webpack import by mistake 2016-08-25 09:49:59 +09:00
Sacha Greif
e5a1508d98 fix cancelUpvote/cancelDownvote bug 2016-08-24 10:05:47 +09:00
Sacha Greif
3ec90a04b5 remove Telescope global 2016-08-08 11:18:21 +09:00
Xavier Cazalot
1d1a556fb8 fix up/down voting (thx @dannyvaughton) 2016-07-22 13:35:01 +02:00
Sacha Greif
3b5d4ea1ab import Users 2016-07-19 18:08:53 +09:00
Sacha Greif
c50bdcb2e4 groups first pass 2016-07-19 17:30:59 +09:00
Sacha Greif
64f357d601 Meteor 1.3.2.4; small fixes and tweaks for easier customisation; bug fixes 2016-04-25 17:02:41 +09:00
Sacha Greif
733887ca2b working on voting feature; added methods to cheatsheet 2016-03-21 10:27:43 +09:00
Renamed from packages/_nova-voting/lib/vote.js (Browse further)