Commit graph

111 commits

Author SHA1 Message Date
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
xavcz
8bf496f7e5 fix errors on nova:forms
-> NovaForm: don't call callbacks of unmounted component (ex: ModalTrigger)
-> FormComponent - call updateCurrentValue only if the component is rendered
2016-10-05 11:19:20 +02:00
xavcz
7775838980 change old reference to AutoForm (legacy): field schema "autoform" -> "form" 2016-10-05 08:43:13 +02:00
xavcz
b3ae8ef6c6 v0.27.2 2016-10-01 18:11:37 +02:00
xavcz
3687eea92f fix #1449 2016-09-27 07:30:58 +02:00
xavcz
7c7c6fd2e5 v0.27.1 (+update .meteor/versions, +fix syntax) 2016-09-22 08:11:38 +02:00
xavcz
4e3d32d2a6 v0.27.1 2016-09-22 07:58:59 +02:00
xavcz
4ebf704760 add implementation of defaultValue after prefilledValue (see #1443) 2016-09-21 14:42:05 +02:00
xavcz
bbedd8540e harmonize fourseven:css versions between packages (may be related to #1442) 2016-09-21 12:09:25 +02:00
xavcz
cbd9141e78 update react (15.3.1) and associated packages, fix warnings "unknown prop" 2016-09-07 14:35:49 +02:00
Sacha Greif
2b34713c0b v0.27.0 2016-08-29 09:02:11 +09:00
xavcz
58148ae599 fix #1423 2016-08-09 07:57:12 +02:00
xavcz
830d6015ad small fix on default props value not taken in consideration 2016-08-05 18:26:55 +02:00
xavcz
5e6c553284 NovaForm custom components with boolean value: fix a bug on account edit + newsletter setting using autofilledValues 2016-07-31 14:14:51 +02:00
Sacha Greif
fcdb1d89f8 1.4 upgrade 2016-07-26 17:45:29 +09:00
Sacha Greif
cfc52b1158 v0.26.5 2016-07-24 19:15:55 +09:00
Xavier Cazalot
7cd4bd9b5a Merge pull request #1403 from xavcz/document-to-control
NovaForm: custom control has access to document as a props
2016-07-21 09:12:59 +02:00
Sacha Greif
4a05939bb7 Users.is.admin -> Users.isAdmin 2016-07-21 14:51:58 +09:00
xavizalote
91cc0e3f1b make document available on nova:form's custom control 2016-07-21 00:37:06 +02:00
xavizalote
eb50a2b3a3 datetime picker: when an edit form is submitted, the datetime value is not reset if already defined (bug fix post.postedAt on post edit) 2016-07-07 12:48:35 +02:00
xavizalote
e3479d216f generic datetime picker component for nova:forms working on new & edit post 2016-07-06 15:53:14 +02:00
Sacha Greif
4f61940b07 version 0.26.4 2016-07-04 10:42:36 +09:00
Sacha Greif
c28910f80f small NovaForms improvements 2016-07-04 10:32:00 +09:00
Sacha Greif
45b1a8cc7d use elementOnly for thumbnail URL; add support for beforeComponent and afterComponent to NovaForms; handle empty URLs in getDomain; add enableNewsletterInDev setting; add more logging to newsletter cron job; make newsletter time GMT; campaign -> newsletter; add missing imports; add spanish translation to README 2016-06-28 17:33:30 +09:00
sweetppro
e3e96a0486 added order support for custom fields 2016-06-22 10:16:07 +02:00
Sacha Greif
86d7c76395 fix Flash issue 2016-06-19 12:57:23 +09:00
Sacha Greif
c87929f5dd make submitData callback do something (see #1355) 2016-06-17 13:05:17 +09:00
Sacha Greif
b4d0a8366f small tweaks to nova:forms 2016-06-14 16:36:05 +09:00