Commit graph

104 commits

Author SHA1 Message Date
Sacha Greif
868194de59 id -> documentId in single document resolver; various fixes 2016-11-30 16:54:58 +09:00
Sacha Greif
002599e51e add preload:true option to Users schema 2016-11-29 18:54:12 +09:00
Sacha Greif
00fcc01c0d clean up imports/exports and other small things 2016-11-29 18:53:31 +09:00
Sacha Greif
d0c72c98f1 clean up packages names 2016-11-29 11:35:20 +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
fa581a85c3 lots of cleaning up 2016-11-26 11:17:01 +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
e09022b350 add fragments inside components 2016-11-23 11:07:48 +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
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
8429502a64 schemas good practice: change control: "none" to hidden: true 2016-11-18 10:03:01 +01:00
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
xavcz
17513c1a98 change the API to register components / extend them and illustrate it in my-custom-package 2016-11-17 20:00:20 +01:00
xavcz
3c913c437b mutations: form HOC type based on the document prop & fix collection.edit.validate cb by assigning it to the modifier 2016-11-17 09:46:35 +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
Sacha Greif
5df3377418 clean up published_fields files; clean up unnecessary packages; more work on callbacks 2016-11-15 15:59:34 +09:00
Sacha Greif
8689a4de73 clean up callbacks by moving logic to mutations and schema (autoValue) 2016-11-14 17:17:44 +09:00
xavcz
322882d78b utils.stripTelescopeNamespace used in graphql schema gen, components, helpers when requesting a collection schema 2016-11-10 22:18:51 +01:00
xavcz
2b79907ffd escape .telescope on users schema when generating graphql schemas on app startup, fix thumbnails of dummy content (got caught in the refactoring 🌊) 2016-11-10 16:53:06 +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
Sacha Greif
0f6aeb3670 small fixes on user mutations 2016-11-09 11:55:28 +09:00
Sacha Greif
80bf6ddb12 Merge branch 'apollo' of https://github.com/TelescopeJS/Telescope into apollo
# Conflicts:
#	packages/nova-users/lib/schema.js
2016-11-09 09:31:15 +09:00
Sacha Greif
76d71f13dd small tweaks 2016-11-09 09:30:11 +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
xavcz
ec95b3c591 wip on nova:base-containers, rename nova:base-apollo in nova:apollo for the sake of clarity, remove some obsolete/experimental functions (triggerMainRefetch, refetchQuery, ..) 2016-11-08 12:58:53 +01: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
bee5eaf373 generate graphQL schemas for posts, comments, and categories from simpleSchema 2016-11-08 14:56:39 +09:00
xavcz
6e82219c5b wip on categories mutation, comment logs on comments (🤔) 2016-11-07 23:04:41 +01:00
Sacha Greif
7ce835b0fd apollo forms wip 2016-11-07 17:45:17 +09:00
Sacha Greif
02b3e785c5 working on commentsEdit 2016-11-07 15:03:45 +09:00
Sacha Greif
a74744d2c7 work on updateQueries for commentsNew 2016-11-07 13:00:09 +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
8aaef596f5 modify getUnusedSlug to handle edge case on Users collection, fix #1501 and related to #1213 2016-11-06 11:51:52 +01:00
Sacha Greif
56bcfba245 first pass at splitting off resolvers 2016-11-03 21:39:09 +09: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
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
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