Commit graph

139 commits

Author SHA1 Message Date
Sacha Greif
deb35f0772 finish daily view 2016-12-06 14:46:28 +09:00
Sacha Greif
c73b7611c0 making some progress on daily view 2016-12-05 16:30:31 +09:00
Sacha Greif
ac713264a3 move optimistic UI logic to withList using reducers option instead of inside individual mutations; add extraFragment option to form wrapper and handle query and mutation fragments differently; give remove mutation a return value; pass Terms in listTotal resolver 2016-12-05 09:29:49 +09:00
xavcz
2d42bd5bf3 fragmentName from fragment in withRemove; destructure args in usersSingle resolver; ShowIf on PostsNewForm & UsersEditForm; connect as the "most-right" HOC on Newsletter 2016-12-01 16:12:39 +01:00
Sacha Greif
212cdf48c2 Telescope.components.CanDo -> ShowIf 2016-12-01 16:09:54 +09:00
Sacha Greif
56c04baf3b use new group-based syntax for permissions; various tweaks 2016-12-01 15:29:07 +09:00
Sacha Greif
09cce8f978 get fragmentName from fragment, no need to define it separately anymore 2016-12-01 12:13:27 +09:00
xavcz
4b4d40f6b3 fix updateQueries: queryName for every hoc => queryToUpdate on withNew/Remove ≠ queryName on withSingle; fix removeSuccessCallback redirect; telescope object on user = blackbox 2016-11-30 10:31:19 +01:00
Sacha Greif
b16c7ce0be put withCurrentUser back in nova:core after all… 2016-11-30 16:58:28 +09:00
Sacha Greif
868194de59 id -> documentId in single document resolver; various fixes 2016-11-30 16:54:58 +09:00
Sacha Greif
d5be97b56c split out withCurrentUser and loadCurrentUser for now 2016-11-30 10:50:04 +09:00
Sacha Greif
25f685c06c fix user helpers; add Users.canViewField helper 2016-11-30 10:21:25 +09:00
xavcz
ddd71eebd1 withCurrentUser belongs to nova:users 2016-11-29 14:08:24 +01:00
Sacha Greif
404dd6214c work on withCurrentUser 2016-11-29 12:35:00 +01:00
Sacha Greif
00fcc01c0d clean up imports/exports and other small things 2016-11-29 18:53:31 +09:00
Sacha Greif
cbcfc1bcaf clean up i18n files 2016-11-29 11:39:35 +09:00
Sacha Greif
a6836a5db8 move App and Layout components to core; insertableIf, editableIf, and viewableIf also accept group names; clean up 2016-11-27 19:12:54 +09:00
Sacha Greif
384cc3ccc2 small fixes 2016-11-27 08:39:25 +09:00
Sacha Greif
fc8837ff51 more cleaning up and reorganizing packages 2016-11-26 11:33:27 +09:00
Sacha Greif
6fbfe4399b simplify structure of mutation HoCs, improve form component names 2016-11-26 11:17:43 +09:00
Sacha Greif
fa581a85c3 lots of cleaning up 2016-11-26 11:17:01 +09:00
Sacha Greif
e57ac73a50 clean up console.log 2016-11-25 12:24:21 +09:00
Sacha Greif
043f7df114 use refetch() instead of updateQueries for now 2016-11-25 12:22:13 +09:00
Sacha Greif
698141e6fa clean up and comment withNew 2016-11-25 10:58:32 +09:00
Sacha Greif
b0bd39f657 cleaning up fragments and debugging 2016-11-24 16:58:08 +09:00
Sacha Greif
395a5926be make movies package work independently; nova:base-routes -> nova:routing 2016-11-24 15:47:51 +09:00
Sacha Greif
dfe2d2d0df give edit forms their own FormWithSingle data loader 2016-11-23 17:22:29 +09:00
Sacha Greif
e09022b350 add fragments inside components 2016-11-23 11:07:48 +09:00
Sacha Greif
dd13571291 cleaning up 2016-11-23 08:41:50 +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
Sacha Greif
9e8fd36a75 more work on withNew, withEdit, withRemove 2016-11-22 21:12:14 +09:00
Sacha Greif
612e817a3f update apollo packages; use new fragments syntax (see https://github.com/apollostack/graphql-fragments#migrating); create new MoviesDetails, MoviesEditForm, MoviesItem components; simplify withEdit and withNew containers; create new withSingle container 2016-11-22 16:15:00 +09:00
Sacha Greif
f445239763 clean up Movies collection declaration; implement new check system for mutations, tie everything together 2016-11-21 19:23:43 +09:00
Sacha Greif
bfdc921523 add Telescope.createCollection and use it in Movies package to centralize everything; also create withList2 2016-11-21 16:18:08 +09:00
xavcz
afcb8f12c5 provide a nicer way to define options/config of a withList hoc (maybe re-inventing the wheel there), remove outdated CollectionContainers components 2016-11-20 02:25:16 +01:00
xavcz
6c14712a74 work on withList and queries generation 2016-11-19 20:01:17 +01:00
xavcz
4ac4c4cd06 centralize withList, withNew, withEdit, withRemove HOCs to nova:core 2016-11-19 11:20:18 +01:00
xavcz
4487464a33 remove duplicated withCurrentUser 2016-11-17 14:12:13 +01:00
xavcz
9f4fe1a917 withCurrentUser hoc in nova:core 2016-11-15 18:33:16 +01: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
xavcz
4ae1c01eec complete eslint devDeps and fix lint errors 2016-11-15 09:02:30 +01:00
xavcz
83020ce65c small tweaks: no more users.current subscription on startup, fix child context App, fix getting started callback 2016-11-10 22:18:36 +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
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
133ec83e5e add users.current subscription back because Meteor methods need access to Meteor.user() 2016-11-02 18:37:22 +09:00
Sacha Greif
fe5a3ff822 add loading spinner for vote mutation (and fix extra "{ }") 2016-11-02 14:50:51 +09:00
xavcz
b5709b0a52 flash-messages logic handle via redux for all the components 2016-10-31 17:13:14 +01: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
042cb4ff86 v0.27.3 2016-10-19 09:54:15 +02:00