SachaG
4950f10b20
Get locale from GraphQL header
2018-05-09 09:46:47 +09:00
Erik Schannen
c3f33cb7e0
Changes to SmartForm behaviour
...
- Moved UI portions of FormComponent to FormComponentInner.jsx in vulcan-ui-bootstrap
- Added user alert when the user navigates to another route while there are unsaved changed in the form (disabled by default)
- Added setting forms.warnUnsavedChanges and SmartForm property warnUnsavedChanges to enable user alert
- Added optional Revert button in FormSubmits to allow the user to discard any changes to the form; this is activated by passing a "revertCallback" property to SmartForm (which can be empty: () => {})
- Added two functions that form components can access in the child context: refetchForm() to refetch the document from the database (in case it was updated by a background process), isChanged() to determine if there are any unsaved changes
- For any phrases I have added to en_US.js I also added it to es_ES.js and fr_FR.js with the comment // TODO: translate
- Updated Form.clearForm and Form.mutationSuccessCallback so that the user can continue working on the document after submitting it
- The form now scrolls the flash message into view when a submit results in errors
- Fixed bugs in FormComponent.shouldComponentUpdate() and Form.getDocument()
- Fixed bug in FormComponent.handleChange() - number fields could not be cleared, only set to 0
- Fixed a bug in FormComponent.getValue() - it returned the initial value of a checkbox even after it was set to false, and a number even after it was set to 0
2018-05-08 20:09:42 -04:00
SachaG
cf31e8f918
Use function to get IntlString type
2018-05-08 12:29:51 +09:00
SachaG
5b5884d33c
Move intl logic to vulcan:lib (keep vulcan:i18n with same API as react-i18n); add isIntlField helper; add IntlString type
2018-05-08 12:23:42 +09:00
SachaG
ede0fb48e4
Intl field need a JSON input type
2018-05-08 11:55:45 +09:00
SachaG
9700c4bbaf
Not using IntlString scalar anymore
2018-05-08 11:06:31 +09:00
SachaG
2c03bd352a
Use two-field strategy for getting all locale strings
2018-05-08 11:05:24 +09:00
SachaG
2dadce31e7
Merge branch 'devel' into i18n2
2018-05-07 17:46:14 +09:00
SachaG
55800a9b30
Add support for intl fields to API and SmartForm
2018-05-07 17:41:22 +09:00
SachaG
1ab36a7e3c
Add support for custom directives
2018-05-07 17:40:21 +09:00
SachaG
e1eef813d4
Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel
2018-05-07 11:41:06 +09:00
SachaG
3aa3a1679e
Fix form error issue
2018-05-07 11:40:54 +09:00
Sacha Greif
5d13fd1416
Merge pull request #1961 from Sebi55/patch-1
...
Add MongoDB aggregation to Collections
2018-05-05 18:57:34 +09:00
SachaG
18bde83fbc
v1.10.1
2018-05-04 12:04:10 +09:00
SachaG
19463ceec5
first steps on language switching support
2018-05-04 12:01:12 +09:00
SachaG
13609dd755
Various small improvements
2018-05-04 11:56:49 +09:00
SachaG
5e0a6fd28c
Do not use Proxy after all, because it makes even if (Components.Foo)
statements trigger error
2018-05-02 11:00:58 +09:00
SachaG
0bc0000cb9
Use Proxy to generate better errors when components are not defined
2018-05-01 09:31:31 +09:00
Sacha Greif
237ddd7a96
Merge pull request #1965 from justinr1234/more-error-logging
...
More graphql error logging
2018-04-28 11:13:49 +09:00
SachaG
7b1c66cb43
Factor out error handling code; clean up form props; pass currentUser down to FormComponent
2018-04-28 10:54:03 +09:00
Justin Reynolds
f759169d6d
More graphql error logging
2018-04-27 12:39:48 -07:00
SachaG
b4f960301b
Isolate bootstrap dependencies in new vulcan-ui-bootstrap package
2018-04-23 09:47:04 +09:00
Sebastian Grebe
90c3e8d2cd
Add MongoDB aggregation to Collections
...
It would be great to allow mongodb aggregation. I am personally using geoNear for example.
2018-04-21 11:40:56 +02:00
SachaG
63bc4e562a
v1.9.1
2018-04-21 18:30:15 +09:00
SachaG
1af50c1247
Improve i18n and make locale switchable via setLocale
on context
2018-04-21 17:58:25 +09:00
SachaG
fae7b5a032
Improve error handling
2018-04-21 17:57:53 +09:00
SachaG
98b9be82f7
v1.9.0
2018-04-17 08:19:54 +09:00
SachaG
45d508ca89
control -> input; forn -> inputProperties
2018-04-14 18:09:35 +09:00
SachaG
6735f9aaf3
Improve errors & validation; improve getValue; get rid of autoValue
2018-03-29 11:58:24 +09:00
SachaG
9aa06cee82
Fix date components and new doc validation
2018-03-28 11:14:36 +09:00
SachaG
5675b50fb5
Cleaning up FormComponent props
2018-03-26 17:50:03 +09:00
SachaG
1d7cef5556
Work on form errors & validation
2018-03-25 10:54:45 +09:00
SachaG
268090dcb2
Working on nested forms support
2018-03-22 19:22:54 +09:00
SachaG
020bea31df
Pass newDocument to edit callbacks
2018-03-19 14:58:31 +09:00
SachaG
987d537b15
autogenerate type when possible
2018-03-19 14:57:44 +09:00
ochicf
041eb4254d
Mingo.Query is a class now, instantiate it with new
2018-03-14 12:20:30 +01:00
ochicf
9690aaaefa
reexport utils on server
2018-03-10 11:09:35 +01:00
ochicf
54b3b1d0b4
overwrite Utils.sanitize() on server by using sanitizeHtml module
2018-03-10 11:09:17 +01:00
ochicf
d16e865f0d
remove sanitizeHtml import from modules/utils
2018-03-10 11:08:57 +01:00
SachaG
5534ab7430
Add amount property to charges schema; add addSubscriptionProduct; various other fixes
2018-03-08 10:48:35 +09:00
SachaG
926f155655
v1.8.11
2018-03-05 09:54:26 +09:00
SachaG
d3fdb3ae38
v1.8.10
2018-03-03 15:12:16 +09:00
SachaG
861e65e641
Refactor connectors code to avoid repeating getSetting
2018-03-03 11:39:56 +09:00
SachaG
64cef790db
rename mutations to mutators; improve connectors
2018-02-18 15:27:25 +09:00
SachaG
faf92b3650
Use better API (create, update, delete, find, get)
2018-02-12 18:55:37 +09:00
SachaG
7639801434
Split out Mongo operations into connectors
2018-02-11 12:57:51 +09:00
SachaG
7e009542f0
add graphQLEndpointURL setting to make endpoint URL configurable (to use different GraphQL back-end for example)
2018-02-07 10:29:02 +09:00
SachaG
908a570664
Fix Intercom ID, fix withList context issue
2018-02-05 10:45:51 +09:00
SachaG
fae0e812df
Add isPublic option to registerSetting; explain Stripe settings
2018-02-05 10:44:56 +09:00
SachaG
bcf41190af
v1.8.9
2018-02-03 11:48:41 +09:00