xavcz
e07c844710
provide better error messages for Embedly & Mailchimp
2017-02-11 12:27:32 +01:00
xavcz
bf51a05d65
allow form.hidden to be a boolean or a function (which should return a boolean)
2017-02-08 10:48:17 +01:00
xavcz
eb2644ad8a
Form: display nicer, multiple & internationalizable (encode -> decode) errors, ensure that state updates are queued; in general prefer Error to Meteor.Error, clean some dead code
2017-02-02 15:15:51 +01:00
xavcz
4810947eea
FormComponent: extract props beforeComponent & afterComponent used to wrap the form component
2017-02-01 14:52:56 +01:00
SachaG
e44f51d6ca
Make select form components without value default to “select option” instead of first option
2017-01-31 17:55:26 +09:00
SachaG
45b9de4789
Add new fragments API (registerFragment/getFragment); move fragments to own fragments.js file; registerComponent doesn’t return anything anymore; withList & withDocument accept either fragment or fragmentName
2017-01-30 19:46:48 +09:00
xavcz
1e2d43662d
form api, embedly url, fix posts autovalues
...
- Form API: updateCurrentValue(fieldName, fieldValue) => updateCurrentValues(newValues: {[fieldName]: fieldValue}) to update one or more fields at once;
- changes on EmbedlyURL: use of currentValues instead of autofilledValues, fix the use of 'media' field on new & edit (assigned server-side in async callback)
- fix Posts schema's autoValue logic: moved to callbacks (it worked on new docs but not triggered on edits)
2017-01-23 15:50:55 +01:00
SachaG
3861cb8b53
Fix component export
2017-01-19 11:19:36 +09:00
xavcz
79e4cf5266
make FormWrapper exportable again, routes can accept either component or componentName property
2017-01-18 15:11:31 +01:00
xavcz
c0fcc944d7
Nova's components & routes registered in a declarative way: no load order mess, better control of the flow, no changes for the end user
2017-01-18 12:51:10 +01:00
xavcz
78aed21d06
a single document can be found by a unique slug or a unique _id; prevent keepViewableFields to crash when no document found in single resolver
2017-01-17 19:46:17 +01:00
xavcz
99548ca918
fix list filtering: de-couple pagination terms & props terms in withList; re-enable form cleaning: performed only if the form has not been unmounted; remove annoying eslint warnings
2017-01-13 18:17:08 +01:00
xavcz
5303b4f4df
SmartForm: if 'field.value' is an array of (non-objects / object with no _id key), fallback to item itself; XxxForms: 'mutationFragment' prop where needed, remove deprecated 'queryToUpdate' prop
2017-01-13 09:21:07 +01:00
Sacha Greif
10d1e7cc22
Fragment -> mutationFragment
2017-01-13 15:48:00 +09:00
xavcz
204e70531c
add fragment prop on CategoriesEditForm ; allow to over-ride the query fragment for edit forms (same fragment option)
2017-01-12 16:53:16 +01:00
Xavier Cazalot
7f99b48953
devel - revert commits related to simpl-schema ( #1537 )
...
* Revert "add note link to issue in collection2 on mutation insert, remove debug console logs on mutation edit"
This reverts commit 7a15103de7
.
* Revert "node simpl-schema + collection2-core: fix vote by specifying the right type of the array (dont use blackbox in the end!)"
This reverts commit e894c3224c
.
* Revert "add graphql date type (fix problem with node simple schema), fix an update bug on date picker, add edit check on custom post item, add `blackbox: true` for arrays field (validation problem with simple-schema)"
This reverts commit 9d84fbec98
.
* Revert "use node `simpl-schema` by aldeed to replace `meteor/aldeed:simple-schema` ; use the meteor collection2 core package as recommended"
This reverts commit 016935f4fa
.
* revert before node-simple-schema, fix obj.hasOwnProperty undefined error thrown by simple-schema & collection2
* CustomPostsItem: check on renderActions; withDocument/List: pollInterval 20seconds by default; DateTime form component enhancement + GraphQLDate type
2017-01-11 18:02:12 +01:00
xavcz
ad007ac003
disable for now: manual reset/clear of the form (it's done by unmounting/mounting again without us controlling it)
2017-01-11 13:49:25 +01:00
xavcz
9d84fbec98
add graphql date type (fix problem with node simple schema), fix an update bug on date picker, add edit check on custom post item, add blackbox: true
for arrays field (validation problem with simple-schema)
2017-01-10 11:17:16 +01:00
xavcz
016935f4fa
use node simpl-schema
by aldeed to replace meteor/aldeed:simple-schema
; use the meteor collection2 core package as recommended
2017-01-10 10:09:24 +01:00
Sacha Greif
f810c7166b
Wrap PostsList with withCurrentUser instead of wrapping PostsItem (move it one level up); get rid of ContextPasser and pass closeModal as props instead of context;
2017-01-10 17:49:03 +09:00
xavcz
0d2ab862c8
SmartForm's prefilledProps
effective on initialization of the form (autofilled values) and not on submit
2017-01-04 09:36:56 +01:00
Sonny Gauran
1fb8be48b7
Fixed test and importability of nova:forms
...
Since package depends on Meteor 1.3, fourseven:scss 3.8.0 is used.
See compatibility on https://atmospherejs.com/fourseven/scss
2017-01-03 02:52:18 +08:00
Sonny Gauran
7fdd4f2cb8
Added test for nova:forms
...
When trying to import package, import fails because of outdated dependency on fourseven:scss
Test by executing `meteor test-packages nova:forms`
2017-01-03 02:52:18 +08:00
xavcz
746da29d72
semver bump: 1.0.0 🚀
2016-12-27 11:58:58 +01:00
Sacha Greif
e6324788dc
rollback version change for now to fix issue on run
2016-12-20 10:55:11 +09:00
Sacha Greif
fa7987d67a
v0.3.0
2016-12-20 09:50:14 +09:00
Sacha Greif
62368a0d48
NovaForm -> SmartForm
2016-12-20 09:27:16 +09:00
Sacha Greif
b931fb0df2
pass entire mutation fragment to NovaForm after all
2016-12-15 12:07:13 +09:00
Sacha Greif
dd0df7dfc5
Telescope.utils -> Utils
2016-12-12 11:34:28 +09:00
Sacha Greif
292a5e5566
various fixes: upgrade react-apollo; handle array fields in forms; fix "daily" view
2016-12-12 09:55:24 +09:00
Sacha Greif
8fa846fda3
withSingle -> withDocument
2016-12-12 09:54:16 +09:00
xavcz
2638023f4e
harmonize apollo branch to be on v0.27.5
2016-12-08 23:48:16 +01:00
xavcz
37f4bdaf91
Telescope.components.Foo -> Components.Foo, same for related components utils like registerComponent, getRawComponent & replaceComponent
2016-12-06 18:06:29 +01:00
xavcz
4e6e312469
permission API: [editable/insertable/viewable](If) -> (By) ; anonymous -> guests ; default -> members
2016-12-06 10:55:47 +01:00
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
41d19f52aa
v0.27.5
2016-11-30 12:07:45 +01: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
Comus Leong
464e20a96c
eslint & clean up code, also fixed some bugs ( #1515 )
...
* [eslint] update eslint rules & add .eslintignore to ignore non-ready nova packages
* [clean-up] nova-voting
* [clean-up] [bug] nova-users: missing user parameter
* [clean-up] nova-users
* [clean-up] nova-subscribe
* [clean-up] nova-settings
* [clean-up] nova-rss
* [clean-up] [bug] nova-posts: correct UsersRemoveDeletePosts
* [clean-up] nova-posts
* [clean-up] nova-notifications
* [clean-up] [bug] nova-newsletter: no error.message on throw error
* [clean-up] nova-newsletter
* [clean-up] nova-lib
* [clean-up] nova-kadira
* [clean-up] nova-inject-data
* [clean-up] nova-getting-started
* [clean-up] nova-forms
* [clean-up] nova-events
* [clean-up] [bug] nova-embedly: no FlowRouter
* [clean-up] nova-embedly
* [clean-up] nova-email-templates
* [clean-up] nova-email
* [clean-up] nova-debug
* [clean-up] nova-core
* [clean-up] [bug] nova-comments: correct UsersRemoveDeleteComments
* [clean-up] nova-comments
* [clean-up] [bug] nova-cloudinary: use Telescope.settings.collection instand
* [clean-up] nova-cloudinary
* [clean-up] nova-categories
* [clean-up] nova-base-components
* [clean-up] nova-api
* [eslint] extends react recommended
* [clean-up] for jsx files
* [eslint] extends meteor recommended
* i forgot this one little change
2016-11-25 13:46:55 -05: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