Akansh Sirohi
601e69ab0d
Fixes payloadcms/payload#650 ( #706 )
...
* fix: min/max number validation of decimal values
2022-07-03 06:25:03 -04:00
Dan Ribbens
1c37ec3902
feat: telemetry
...
* feat: add telemetry to payload config
wip: more telemetry
* feat: send telemetry events
* chore: update node ci versions
* chore: cleanup console log
* chore: updates ts due to dependency update
* chore: remove unused deps
* chore: fix origin and casing
* docs: telemetry
* feat: uses oneWayHash within telemetry
* chore: sends hashed domain in telemetry
* feat: improves reliability of telemetry projectID
* chore: revises telemetry docs
Co-authored-by: Elliot DeNolf <denolfe@gmail.com >
Co-authored-by: James <james@trbl.design >
2022-06-24 17:32:09 -04:00
Dan Ribbens
f2bf2399fa
fix: custom fields values resetting in ui ( #626 )
2022-06-08 11:37:31 -04:00
James
c18cc23c71
fix: ensures unflattening locales only happens if config specifies locales
2022-06-08 10:07:17 -04:00
Dan Ribbens
20bbda95c6
fix: duplicate objects in array fields in validate data and siblingData ( #599 )
2022-05-25 13:44:28 -04:00
James
47c37e0153
fix: rare bug while merging locale data
2022-05-04 11:18:52 -04:00
Elliot DeNolf
1e4a68f76e
fix: checkbox defaultValues and more typing of sanitize ( #550 )
2022-05-02 13:42:56 -04:00
James
b3832e21c9
feat: exposes findMany argument to afterRead hooks to discern between find and findByID
2022-05-02 13:38:13 -04:00
James Mikrut
18489faceb
feat: optimizes field operations
...
* wip: beforeChange field op pattern
* feat: optimizes field-level beforeChange
* feat: optimizes beforeValidate
* feat: optimizes afterChange
* feat: optimizes afterRead
* chore: comment accuracy
2022-05-02 12:46:52 -04:00
James
e46b942259
feat: exposes payload within server-side validation args
2022-04-29 16:48:15 -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
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
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
James
aee95eb041
merge: relationship options filter
2022-04-05 14:59:01 -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
1482fded9a
feat: upload field implements filterOptions
2022-04-05 12:03:57 -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
Dan Ribbens
85596bbba6
chore: export default field validation
2022-04-01 10:58:08 -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
James
e597b4c66b
chore: optimizes validation extended args
2022-03-29 14:11:22 -04:00
Dan Ribbens
647cac3612
feat: WIP extended validation function arguments
2022-03-28 12:58:39 -04:00
Dan Ribbens
f14e187545
feat: allow empty string radio and select option values ( #479 )
2022-03-16 13:09:37 -04:00
James
97f3178005
fix: ensures overrideAccess is false if undefined while populating
2022-03-10 09:49:01 -05:00
James
c9795133b3
feat: adds originalDoc to field access control
2022-03-07 10:53:57 -05:00
James
966c3c6471
feat: improves adding rich text voids to RTE
2022-03-03 15:17:02 -05:00
James
8e23a24f34
feat: #458 , provides field hooks with sibling data
2022-03-01 18:57:17 -05:00
James
96a9b75558
chore: cleans up comments
2022-02-20 12:42:05 -05:00
James
08b3e8f18f
fix: ensures empty hasMany relationships save as empty arrays
2022-02-20 12:22:42 -05:00
James
a59b14bd8c
feat: implements versions in globals, adds tests
2022-02-07 17:46:51 -05:00
James
c38470c7b2
feat: allows access control to prevent reading of drafts
2022-02-06 14:46:34 -05:00
James
6dffeeb06f
feat: initial drafts and versions merge
2022-02-06 12:13:52 -05:00
James
1a05fe448c
fix : #424 , unable to clear localized property vals
2022-02-03 12:07:05 -05:00
Jarrod Flesch
8327b5aae5
fix: rte upload field population
2022-01-24 18:07:04 -05:00
James
39438b8460
fix: ensures rte upload is populated when only upload is enabled
2022-01-24 12:11:05 -05:00
James
671077669e
chore: removes stubbed test
2022-01-21 16:58:07 -05:00
James
a0efa25616
feat: improvements to rte upload
2022-01-21 16:56:24 -05:00
Jarrod Flesch
c8b00206d9
style: adjusts style of nested RTE inside edit fields
2022-01-21 15:38:06 -05:00
Jarrod Flesch
0e4eb906f2
feat: enhances rich text upload with custom field API
...
* feat: adds admin.upload.collections[collection-name].fields to the RTE to save specific data on upload elements
* chore: renames flatten to unflatten in reduceFieldsToValues, disables automatic arrow function return in eslint
* docs: adds documentation for upload.collections[collection-name].fields feature
* feat: adds recursion to richText field to populate relationship and upload nested fields
* chore: removes unused css
* fix: import path for createRichTextRelationshipPromise
* docs: updates docs to include images for the RTE upload docs
2022-01-21 10:15:51 -05:00
Jarrod Flesch
42af22c2a1
feat: adds recursion to richText field to populate relationship and upload nested fields
2022-01-19 15:29:00 -05:00
Jarrod Flesch
3adf44a241
feat: adds admin.upload.collections[collection-name].fields to the RTE to save specific data on upload elements
2022-01-19 11:21:08 -05:00
James
2deed8b146
feat: rich text indent PoC
2022-01-10 22:15:14 -05:00
James Mikrut
c67a68f9d8
Merge pull request #415 from oranoran/admin-classname
...
Added "className" property to admin + documented existing "style" property
2022-01-07 14:20:05 -05:00
Jarrod Flesch
8591d97fa5
Adjusts Point field docs and test variables ( #382 )
...
* fix: corrects the label order and removes confusion for the values saved on a Point field type
* fix: adjusts code to mirror the doc change, replaces [x, y] with [lng, lat] and add type names to Geolocation
* chore: add nested point field test cases
* fix: index true creates a 2dsphere spatial index on point fields
Co-authored-by: Dan Ribbens <dan.ribbens@gmail.com >
2022-01-05 17:46:01 -05:00
Oran Epelbaum
5549926d2c
Fixed saving of a cleared number value ( #412 )
...
* Fixed saving of a cleared number value
* fix: clearing saved number for a localized field
Co-authored-by: Dan Ribbens <dan.ribbens@gmail.com >
2022-01-05 17:24:14 -05:00