Commit graph

75 commits

Author SHA1 Message Date
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
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
384cc3ccc2 small fixes 2016-11-27 08:39:25 +09:00
Sacha Greif
6fbfe4399b simplify structure of mutation HoCs, improve form component names 2016-11-26 11:17:43 +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
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
Sacha Greif
3ec90a04b5 remove Telescope global 2016-08-08 11:18:21 +09:00
Sacha Greif
e7e0d33339 clean up nova:core 2016-08-08 10:54:33 +09:00
Sacha Greif
93537d2900 make getPostsListUsers non-reactive; stop calling settings.getJSON; make default RSS view overwritable 2016-07-05 16:55:11 +09:00
Sacha Greif
4ce55702eb removing Events global 2016-06-23 15:16:32 +09:00
xavizalote
d777b6d9a9 App container: default export -> App component: from props to context 2016-06-14 22:36:54 +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
550ca85258 complete work on react-router 2016-06-14 10:01:44 +09:00
Sacha Greif
bc22398192 react-router wit (fix later) 2016-06-11 16:37:03 +09:00
Sacha Greif
e8a7c657ad change component import syntax to be more explicit 2016-05-22 16:42:24 +09:00
Sacha Greif
36a81acf8c improve handling of private settings 2016-04-21 15:09:03 +09:00
Sacha Greif
d0e4b1ea76 switch from react-modal to react-bootstrap-modal; fix reactivity issues with user object inside modals (hopefully?) 2016-04-05 18:05:41 +09:00
Sacha Greif
dfca7df846 remove Blaze templates; add import React everywhere 2016-03-30 09:24:52 +09:00
Sacha Greif
d5ebbec0db extract App component from AppComposer 2016-03-27 16:32:29 +09:00
Sacha Greif
05080fa97e working on forms; use React Composer for AppContainer 2016-03-27 13:04:21 +09:00
Sacha Greif
50a1a4f1d7 more CSS work 2016-03-24 18:17:35 +09:00
Sacha Greif
2baeb088e4 add currentUser to context in AppContainer; trying it out in Vote component 2016-03-23 14:27:08 +09:00
Sacha Greif
d3f1cde90c working on newsletter subscribe form 2016-03-18 11:53:46 +09:00
Sacha Greif
b3f313d73b get rid of global React object; get rid of ReactMeteorData mixin 2016-03-18 10:50:40 +09:00