Francisco Lourenço
622cdb0440
fix: hide drag handles when admin.isSortable: false ( #6225 )
...
Co-authored-by: Kendell Joseph <kendelljoseph@gmail.com >
2024-05-06 12:21:35 -04:00
Patrik
db4aacebb8
feat: adds disableListColumn, disableListFilter to fields admin props ( #6188 )
2024-05-03 16:49:06 -04:00
Kendell Joseph
5c58bd322d
feat: add isSortable to arrays and blocks ( #5962 )
2024-05-03 10:38:02 -04:00
Patrik
a8c9625cde
fix: removes equals & not_equals operators from fields with hasMany ( #5885 )
2024-04-19 11:41:39 -04:00
Dan Ribbens
815bdfac0b
fix(db-mongodb): unique sparse for not required fields ( #5114 )
...
* fix(db-mongodb): unique sparse for not required fields
* chore(db-mongodb): cleanup sparse index condition
* test: indexed field fix
2024-02-23 12:36:34 -05:00
Yunsup Sim
70e57fef18
fix: Add Context Provider in EditMany Component ( #5005 )
...
* fix: Add Context Provider in EditMany Component
* test: Fix e2e test error
2024-02-21 16:39:34 -05:00
Dan Ribbens
b40e9f85a2
chore: use transactions in tests running mongoDB memory server ( #4750 )
...
* chore: use transactions in tests running mongoDB memory server
* chore: relationship test async setup changes
* chore: async test fix
* chore: flaky e2e localization test
2024-01-23 19:18:55 -05:00
Patrik
d0f7677d5f
fix: prioritizes value key when filtering / querying for relationships ( #4727 )
...
* fix: object equality query by prioritizing value key in relationship queries
* chore: adds e2e & int test
* chore: updates test for REST querying on poly relationships
2024-01-11 15:56:07 -05:00
Gokulsck
f43cf185d4
feat: hasMany property for text fields ( #4605 )
...
* fix for supporting hasMany property in text field
* Updated docs
* handle text case types for schema and graphql schema
* fix unit test for required failing
* add unit test for has many text field
* add end to end test for has many on text field creation
* support has many feature for text field on postgres
---------
Co-authored-by: Chris Heinz <chrisi.heinz@web.de >
2024-01-04 14:45:00 -05:00
Patrik
224cddd045
feat: relationship sortOptions property ( #4301 )
...
* feat: adds sortOptions property to relationship field
* chore: fix lexical int tests
* feat: simplifies logic & updates joi schema definition
* feat: revert to default when searching in relationship select
* fix types and joi schema
* type adjustments
---------
Co-authored-by: Alessio Gravili <alessio@bonfireleads.com >
Co-authored-by: Jarrod Flesch <jarrodmflesch@gmail.com >
2023-11-29 16:22:47 -05:00
Jessica Chowdhury
1dcd3a2782
fix: prevent json data getting reset when switching tabs ( #4123 )
2023-11-27 12:23:20 -05:00
Alessio Gravili
c068a8784e
fix(richtext-lexical): Blocks: make sure fields are wrapped in a uniquely-named group, change block node data format, fix react key error ( #3995 )
...
* fix(richtext-lexical): make sure block fields are wrapped in a uniquely-named group
* chore: remove redundant hook
* chore(richtext-lexical): attempt to fix unnecessary unsaved changes warning regression
* cleanup everything
* chore: more cleanup
* debug
* looks like properly cloning the formdata for setting initial state fixes the issue where the old formdata is updated even if node.setFields is not called
* chore: fix e2e tests
* chore: fix e2e tests (a selector has changed)
* chore: fix int tests (due to new blocks data format)
* chore: fix incorrect insert block commands in drawer
* chore: add new e2e test
* chore: fail e2e tests when there are browser console errors
* fix(breaking): beforeInput and afterInput: fix missing key errors, consistent typing and cases in name
2023-11-16 22:01:04 +01:00
Alessio Gravili
989c10e0e0
feat: allow richtext adapters to control type generation, improve generated lexical types ( #4036 )
2023-11-16 11:36:20 -05:00
Alessio Gravili
4ec5643dd7
chore: restricts character length in table cells ( #4063 )
2023-11-14 11:25:24 -05:00
Jessica Chowdhury
803a37eaa9
fix: simplifies block/array/hasMany-number field validations ( #4052 )
...
Co-authored-by: Jarrod Flesch <jarrodmflesch@gmail.com >
2023-11-10 12:06:21 -05:00
Jarrod Flesch
dbc4ce71e6
chore: fixes test suites that use clearAndSeedEverything ( #4080 )
2023-11-09 12:30:19 -05:00
Alessio Gravili
fff377ad22
fix(richtext-lexical): Blocks: unnecessary saving node value when initially opening a document & new lexical tests ( #4059 )
...
* chore: new lexical int tests and working test structure
* chore: more int tests, and better lexical collection structure
* fix(richtext-lexical): Blocks: unnecessary saving node value when initially opening a document
2023-11-08 21:32:43 +01:00
Hulpoi George-Valentin
266c3274d0
feat: Custom Error, Label, and before/after field components ( #3747 )
...
Co-authored-by: Dan Ribbens <dan.ribbens@gmail.com >
2023-11-08 14:40:31 -05:00
Jacob Fletcher
7a9af4417a
fix: polymorphic hasMany relationships missing in postgres admin ( #4053 )
2023-11-08 12:31:07 -05:00
Alessio Gravili
17f7b94555
chore: improve test suites, upgrade jest and playwright, add debug utilities for lexical ( #4011 )
...
* feat(richtext-lexical): 'bottom' position value for plugins
* feat: TestRecorderFeature
* chore: restructuring to seed and clear db before each test
* chore: make sure all tests pass
* chore: make sure indexes are created in seed.ts - this fixes one erroring test
* chore: speed up test runs through db snapshots
* chore: support drizzle when resetting db
* chore: simplify seeding process, by moving boilerplate db reset / snapshot logic into a wrapper function
* chore: add new seeding process to admin test suite
* chore(deps): upgrade jest and playwright
* chore: make sure mongoose-specific tests are not skipped
* chore: fix point test, which was depending on another test (that's bad!)
* chore: fix incorrect import
* chore: remove unnecessary comments
* chore: clearly label lexicalE2E test file as todo
* chore: simplify seed logic
* chore: move versions test suite to new seed system
2023-11-06 16:38:40 +01:00
Jarrod Flesch
5ea88bb47d
fix: block row removal w/ db-postgres adapter ( #3951 )
2023-11-01 08:32:02 -04:00
Jarrod Flesch
d393225289
fix: set date to 12UTC for default, dayOnly and monthOnly fields ( #3887 )
2023-10-27 14:43:36 -04:00
Dan Ribbens
4d8d4c214a
fix: unique field error handling ( #3888 )
2023-10-27 13:31:14 -04:00
Jacob Fletcher
eaef0e7395
fix: alignment of collapsible within row ( #3822 )
2023-10-23 14:30:37 -04:00
James
2c8fbf1be3
chore: adds specificity to tests
2023-10-15 11:08:16 -04:00
James Mikrut
3b1bdcbe41
chore: de-duplicates array / block data from form state ( #3607 )
...
* chore: consolidates array manipulation tests
---------
Co-authored-by: Jarrod Flesch <jarrodmflesch@gmail.com >
2023-10-13 09:45:00 -04:00
Jarrod Flesch
af892ecb0e
fix: removes nested array field configs from array value ( #3549 )
...
* fix: array controls 'addBelow' was adding above
2023-10-10 15:55:00 -04:00
James Mikrut
470bdb72ff
Merge pull request #3553 from payloadcms/fix/#3541
...
fix : #3541
2023-10-10 14:49:11 -04:00
Jacob Fletcher
9ff014bbfe
fix: row field width ( #3550 )
2023-10-10 14:09:47 -04:00
James
e6f0d35985
fix : #3541
2023-10-10 14:07:26 -04:00
Jessica Chowdhury
374fb99571
fix: corrects greater than or equal filter key ( #3307 )
2023-10-05 12:32:13 -04:00
Jarrod Flesch
6fa5866f99
feat: 2.0 popover style updates ( #3404 )
2023-09-29 09:05:02 -04:00
Jacob Fletcher
aa94c00bc6
chore: misc css ( #3391 )
2023-09-27 13:18:29 -04:00
Alessio Gravili
cdaa0acd61
chore: run eslint & prettier, adjust perfectionist sorting for package.json and tsconfig.json in eslint configs
2023-09-19 11:41:56 +02:00
Alessio Gravili
a81401cf77
feat: breaking: richtext adapter ( #3311 )
...
BREAKING: requires user to install @payloacms-richtext-slate and specify a `config.editor` property
* chore: move slate stuff into packages/richtext-slate
* chore: fieldTypes stuff
* chore: fix richtext-slate tsconfig
* chore: add clean:unix command
* chore: fix up things
* chore: undo subpath imports being hoisted up
* chore: fix incorrect imports
* chore: improve AdapterArguments type
* chore: remove unused richTextToHTML and stringifyRichText files
* fix: core-dev scss imports
* chore: fix publishConfig exports for richtext-slate
* chore: adjust joi schema for richtext field
* chore: various fixes
* chore: handle afterRead population in richText adapter
* chore: handle more after-read promise stuff
* chore: fix joi validation
* chore: add richtext adapter to tests
* chore: merge adapter props with field props
* chore: index.tsx => index.ts
* chore: rename `adapter` to `editor`
* chore: fix e2e tests not running due to importing a constant from a file (`Tabs`) which imports createSlate.
This fails because createSlate imports React components.
* chore: remove unnecessary import
* chore: improve various typings
* chore: improve typings for List view Cell components
* feat: richText adapter cell component
* chore: add missing types packages for packages/richtext-slate
* chore: add new adapter interface properties to joi schema
* chore: withMergedProps utility which replaces getSlateCellComponent and getSlateFieldComponent
* feat: added config.defaultEditor property which is now required. field.editor is no longer required and overrides config.defaultEditor
* docs: mention editor and defaultEditor property in the docs
* chore: fix incorrectly formatted JSX in docs files breaking mdx parser
* chore: fix various errors
* chore: auto-generated pointer files
2023-09-19 11:03:31 +02:00
Jacob Fletcher
85c8e4dc65
chore: overhauls admin navigation ( #3339 )
2023-09-15 17:33:28 -04:00
James
0f3b364e46
chore: hoists tests out of payload package
2023-09-01 14:45:41 -04:00
Alessio Gravili
a67278b29f
chore: move to monorepo structure
2023-08-23 12:20:30 +02:00
rpfaeffle
942cfec286
feat: add support for hotkeys ( #1821 )
...
Co-authored-by: Jacob Fletcher <jacobsfletch@gmail.com >
Co-authored-by: Alessio Gravili <70709113+AlessioGr@users.noreply.github.com >
Co-authored-by: Alessio Gravili <alessio@gravili.de >
Co-authored-by: Jessica Boezwinkle <jessica@trbl.design >
2023-08-14 15:36:49 -04:00
Jarrod Flesch
f5cf546e19
fix: updates addFieldRow and replaceFieldRow rowIndex insertion ( #3145 )
2023-08-08 15:35:59 -04:00
Jarrod Flesch
8e188cfe61
fix: adding and replacing similarly shaped block configs ( #3140 )
2023-08-08 12:38:14 -04:00
Jarrod Flesch
7542a92104
chore(tests): adds array row manipulation tests ( #3086 )
2023-07-26 16:34:13 -04:00
Jarrod Flesch
60fca40780
fix: rich text link element not validating on create ( #3014 )
2023-07-18 08:54:22 -04:00
Alessio Gravili
733fc0b2d0
feat: auto-login in config capability ( #3009 )
...
This is useful when developing/testing, where logging after every change can be cumbersome.
2023-07-17 16:35:58 -04:00
Jarrod Flesch
4925f90b5f
feat: adds array, collapsible, tab and group error states
...
Co-authored-by: Jessica Boezwinkle <jessica@trbl.design >
Co-authored-by: James <james@trbl.design >
2023-07-11 23:20:27 -04:00
Jacob Fletcher
79393e8cf0
fix: properly threads custom react-select props through relationship field ( #2973 )
2023-07-05 15:11:46 -04:00
Jessica Chowdhury
801f60939b
fix: nested richtext bug and test ( #2966 )
...
* fix: nested richtext bug and test
* chore: fix accidentally deleted character
2023-07-05 09:06:02 -04:00
Alessio Gravili
0c2e41c4be
fix: fields in drawer cannot be edited ( #2949 )
...
Fixes #2945
2023-06-30 14:43:47 +02:00
Jarrod Flesch
b83d788d3c
fix: conditional fields perf bug - #2886 ( #2890 )
2023-06-22 13:51:24 -04:00
Jacob Fletcher
e90c2c4cb7
chore: simplifies relationship drawer field test ( #2872 )
2023-06-20 16:04:54 -04:00