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
Sacha Greif
714d89a1ed
pass extra fields to form fragment
2016-12-04 19:00:01 +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
xavcz
ddd71eebd1
withCurrentUser belongs to nova:users
2016-11-29 14:08:24 +01: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
043f7df114
use refetch() instead of updateQueries for now
2016-11-25 12:22:13 +09:00
Sacha Greif
4b70802c00
clean up
2016-11-25 11:46:31 +09:00
Sacha Greif
d2948e487a
prevent rerenderings to prevent FormWithMutations from unmounting
2016-11-25 11:15:46 +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
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
xavcz
4ac4c4cd06
centralize withList, withNew, withEdit, withRemove HOCs to nova:core
2016-11-19 11:20:18 +01:00
xavcz
8429502a64
schemas good practice: change control: "none"
to hidden: true
2016-11-18 10:03:01 +01:00
xavcz
82edaeeab2
give access to the form props in the options of a form component, compose HOCs on FormWrapper
2016-11-17 10:22:31 +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
52c50933e7
repair deepValue utils (error introduced by "errors linting" fix)
2016-11-15 10:17:27 +01:00
xavcz
28cf7a20c7
Update to Meteor 1.4.2.1, add npm babel-runtime
, remove some Meteor packages constraints versions
2016-11-15 09:55:05 +01:00
xavcz
4ae1c01eec
complete eslint devDeps and fix lint errors
2016-11-15 09:02:30 +01:00
xavcz
dd32c36f28
more work on removeSuccessCallback (wired with withRemove) ; add options noRemoveMutation (ex for UsersEdit)
2016-11-13 14:12:15 +01: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
bb0d4f2076
extract withNew & withEdit HOCs from FormWithMutation component, wrap FormWrapper with them
2016-11-12 15:49:07 +01:00
xavcz
c2117a6fcc
use fragments for categories, add optional fragment prop to nova forms
2016-11-11 17:36:32 +01:00
Xavier Cazalot
4717100099
Merge pull request #1507 from sherryxiao1988/patch-1
...
Fix react setState race condition
2016-11-11 10:52:02 +01:00
Shundan Xiao
7a4c540d06
Fix react setState race condition
...
when multiple components need to call addToAutoFilledValues (I am using the avatar(xavcz:nova-forms-upload) plugn along with the subscription package), this state is concurrently called by multiple components when they are rendered. autofilledValues sometimes only holds the last value.
2016-11-11 17:39:39 +08: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
84a73a988d
comments.postId available in commentsInput (insertableIf/editableIf) -> add control: "none"
where needed in the app ; fix wrong import from previous commit on nova-voting (vote (operateOnItem) is needed on client/server, score algorithm is only server-side (async callback))
2016-11-08 13:49:41 +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
ce13bf11c0
fix a few issues with forms
2016-11-08 14:56:48 +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
4d7ec25bc9
fix small issue
2016-11-07 22:48:37 +09:00
Sacha Greif
8eae4fda1d
get rid of PostsNewFormContainer and PostsEditFormContainer
2016-11-07 22:46:31 +09:00
Sacha Greif
2b91a715a7
fix errors somehow??!
2016-11-07 22:27:34 +09:00
Sacha Greif
7ce835b0fd
apollo forms wip
2016-11-07 17:45:17 +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
0805b653e9
NovaForm: catch mutation error and display it
2016-11-04 09:38:55 +01: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