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
Sacha Greif
2d0e2fde83
working on postsEdit
2016-11-04 14:38:31 +09:00
Sacha Greif
f332c8810b
use Apollo for new post mutation
2016-11-04 10:28:54 +09:00
Sacha Greif
c1e1c68c23
disable polling; make posts.edit method work again; run refetch in NovaForms success callback
2016-11-02 19:56:44 +09:00
xavcz
3c9c9673a3
add currentUser
to schema/resolvers and give it to the AppContainer; re-enable canView/canEdit on CanDo
comp (got broken at first migration to apollo); give back the document
to custom FormComponent
(used for example in the NewsletterButton in the account page)
2016-10-28 13:56:07 +02:00
Sacha Greif
bbfb857c23
make document
prop available to all form components (but don't pass it down to standard input controls to avoid error)
2016-10-26 15:20:32 +09:00
xavcz
042cb4ff86
v0.27.3
2016-10-19 09:54:15 +02:00
xavcz
01429c9f5b
backward compatibility for the autoform
field on schema definition
2016-10-14 11:55:47 +02:00
xavcz
67d4ff5fc8
updates from devel: Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into cleaning-oldies
2016-10-14 11:25:59 +02:00
xavcz
e0d9775c87
fix conflict with shortcut update from devel
2016-10-14 11:23:12 +02:00
xavcz
b04cb52470
currentUser is now only given via context, update README about it, add a missing import
2016-10-14 08:47:18 +02:00
huli
325abdc850
Add shortcut to submit form, close #1471
2016-10-13 21:57:19 +08:00