Dan Ribbens
e8503232ba
chore: changes eslint rules no-console and cleanup
2022-04-29 12:36:21 -04:00
Dan Ribbens
bf48fdf189
fix: file upload safely handles missing mimeTypes ( #540 )
...
* fix: file upload safely handles missing mimeTypes
* feat: uploaded files that do not have mimeTypes are given one based on file extension
2022-04-29 10:36:58 -04:00
Dan Ribbens
834f4c2700
feat: allow subfield readOnly to override parent readOnly ( #546 )
2022-04-29 10:36:38 -04:00
Dan Ribbens
e297eb9090
feat: allows defaultValue to accept async function to calculate defaultValue ( #547 )
...
* feat: field default values with async functions
* docs: improves field default value
* chore: simplifies async defaultValue
* chore: api test coverage for default value functions
* chore: WIP defaultValue async arrays
* chore: refactors and simplifies buildStateFromSchema
* chore: improves tests for defaultValues
Co-authored-by: James <james@trbl.design >
2022-04-29 10:36:10 -04:00
James
1cdd5b96b3
chore: ensures array fields update modified state
2022-04-26 10:19:39 -04:00
James
8bdbd0dd41
fix: ensures adding array / block rows modifies form state
2022-04-25 20:59:33 -04:00
James
b99ec060ca
fix: improperly typed access control
2022-04-24 19:35:58 -04:00
James
3b70560e25
fix: block form-data bug
2022-04-24 19:16:39 -04:00
James
3c1dfb88df
fix: intermittent blocks UI issue
2022-04-20 17:20:05 -04:00
James
9e2ed56ef0
chore: migrates to React 18
2022-04-20 11:29:09 -04:00
Alessio Gravili
9e324be057
fix: ensure relationTo is valid in upload fields ( #533 )
...
* Error handling
* Improve error message
* Re-position error handling
* Move error checking to sanitize
2022-04-20 09:21:14 -04:00
James Mikrut
b7f47c9bb1
chore/ts dep compat ( #535 )
...
* chore: ensures typescript dependency compatibility
* chore: updates dependencies
* chore: updates window-info breakpoints
2022-04-20 09:16:36 -04:00
Dan Ribbens
3dcd8a24cb
fix: richtext editor input height ( #529 )
2022-04-17 10:56:33 -04:00
Dan Ribbens
6f84c0a869
Fix/checkbox validation error position ( #521 )
...
* fix: checkbox validation error positioning
* feat: sanitize defaultValue to false when field is required
2022-04-12 11:28:41 -04:00
Dan Ribbens
a4f2c5abd4
chore: update react 18 ( #520 )
...
* chore: update to react 18 and related dependencies
2022-04-12 11:26:55 -04:00
Dan Ribbens
6b06fe4481
chore: update react-toastify to 8.x ( #522 )
2022-04-12 11:26:20 -04:00
Elliot DeNolf
cf54b336d1
fix: new up separate logger for generateTypes script
2022-04-06 10:08:51 -04:00
Dan Ribbens
e1c6d9dd7d
fix: relationship component showing no results ( #508 )
2022-04-06 07:44:30 -04:00
James
ec91757257
feat: allows like to search by many words, adds contain to match exact strings
2022-04-05 16:22:57 -04:00
James
b99f6b16af
fix: maintains field validation internally for speed
2022-04-05 15:29:03 -04:00
James
9dfb84656d
chore: re-implements validation as user types
2022-04-05 15:21:47 -04:00
James
b4131800c9
Merge branch 'master' of github.com:payloadcms/payload
2022-04-05 14:59:09 -04:00
James
aee95eb041
merge: relationship options filter
2022-04-05 14:59:01 -04:00
GeorgeyB
0461c2109b
feat: support className config for row, block and array fields ( #504 )
2022-04-05 14:55:50 -04:00
James
0651936856
Merge branch 'feat/logger-options' of github.com:payloadcms/payload
2022-04-05 14:51:57 -04:00
James Mikrut
1b4b5707bf
feat: extended validation function arguments ( #494 )
...
* feat: WIP extended validation function arguments
* chore: optimizes validation extended args
* chore: more consistently passes validation args
* chore: removes field from form state
* chore: passing tests
* fix: default point validation allows not required and some edge cases
* chore: ensures default validate functions receive field config
* chore: demo validation with sibling data
* chore: optimize getDatabByPath and getSiblingData
* chore: adds tests to validate extra arg options
* docs: add validation arguments
* chore: export default field validation
* chore: top level getSiblingData
* fix : #495 , avoids appending version to id queries
* chore: revises when field validation is run
* chore: restore original admin field validation
Co-authored-by: Dan Ribbens <dan.ribbens@gmail.com >
2022-04-05 14:51:28 -04:00
Dan Ribbens
89d56a0886
chore: test coverage for relationship filteroptions
2022-04-05 12:21:45 -04:00
Dan Ribbens
1482fded9a
feat: upload field implements filterOptions
2022-04-05 12:03:57 -04:00
Elliot DeNolf
6620a4f682
feat(logging): allow pino logger options to be passed into init
2022-04-04 22:55:54 -04:00
James
df934dfeff
feat: working PoC for reusing relationship filters in validate
2022-04-04 21:20:21 -04:00
Dan Ribbens
485991bd48
feat: filter relationship options in admin ui using filterOptions
2022-04-04 19:44:49 -04:00
James
1d4d30ce8f
chore: revises when field validation is run
2022-04-04 17:07:24 -04:00
James
6c00c2a113
Merge branch 'feat/validate-extended-args' of github.com:payloadcms/payload into feat/validate-extended-args
2022-04-04 15:30:01 -04:00
James
57b5f17bf4
Merge branch 'master' into feat/validate-extended-args
2022-04-04 15:29:31 -04:00
James
f4a2dff892
fix : #499 , graphql row / ui field bug
2022-04-04 15:09:56 -04:00
James
6f05fe80ae
Merge branch 'master' of github.com:payloadcms/payload
2022-04-04 13:57:10 -04:00
James
a703e0582d
fix : #495 , avoids appending version to id queries
2022-04-04 13:56:09 -04:00
James
ab432a43dc
fix : #495 , avoids appending version to id queries
2022-04-04 13:54:02 -04:00
Elliot DeNolf
839e3f9dae
test: fix all ts errors, eslint overrides
2022-04-03 23:40:29 -04:00
Elliot DeNolf
9c6af860d4
test: migrate test files to ts
2022-04-03 23:40:29 -04:00
Dan Ribbens
845b0b3709
chore: top level getSiblingData
2022-04-01 11:34:13 -04:00
Dan Ribbens
85596bbba6
chore: export default field validation
2022-04-01 10:58:08 -04:00
Dan Ribbens
c7eb929176
chore: adds tests to validate extra arg options
2022-03-30 18:06:05 -04:00
Dan Ribbens
42baf2e27e
chore: optimize getDatabByPath and getSiblingData
2022-03-30 17:04:26 -04:00
Dan Ribbens
dade960615
chore: demo validation with sibling data
2022-03-30 15:32:58 -04:00
Dan Ribbens
80de7a720f
Merge branch 'feat/validate-extended-args' of github.com:payloadcms/payload into feat/validate-extended-args
2022-03-30 15:00:29 -04:00
James
175642c07b
chore: ensures default validate functions receive field config
2022-03-30 15:00:19 -04:00
Dan Ribbens
29405bbc0e
fix: default point validation allows not required and some edge cases
2022-03-30 12:12:59 -04:00
James
60f295ba9f
chore: passing tests
2022-03-29 18:37:02 -04:00
James
2b1a33efba
chore: removes field from form state
2022-03-29 17:57:10 -04:00