14487 Commits

Author SHA1 Message Date
Josh
812647b8b0
fix(cm): pass params to post requests for publish & unpublish (#19294)
* fix(cm): pass params to post requests for publish & unpublish

resolves #19289

* Extract locale from query strings (#19359)

---------

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
2024-01-31 11:50:22 +00:00
Madhuri Sandbhor
382f9062c8
feat(Blocks): Nested list (#19244)
* feat: nested list feat added, toggling lists through toolbar button updated, list node validation updated

* update: list select option logic updated to toggle whole list

* fixes: both toolbar list buttons active for nested list, reverted conversion change

* feat: on double enter the nested list item, shift list-item under parent list

* feat: added handle delete on simple and nested list-items and list block, updated handle enter on last list-item

* fix: typeguards added

* fix: added missing depth to find anchorNode

* fix: nested list first item backspace issue handled, fixed selecting all + delete doesnt delete last list item

* fix: handling last list item on delete moved to toolbar where it tries to save DD option as list-item

* update: restrict MB for first level of list items

* update: restrict MB for first level of list items

* fix: minor changes, comments updated, removed unnecessary code

* fix:code optimisation, added aria label for blocks input

* tests: unit tests added for tab, backspace and enter event functionality newly added

* tests: toggle nested list test added

* update: type changes, fixed enter at the beginning of the node

* update: use handleConvert to toggle list, variable renamed to aria-labelId

* fix: minor change

* fix: code optimisation, comments added

* comment updated
2024-01-31 09:58:54 +01:00
t-fritsch
c1aa4eefb4
fix(admin): french translations for null/not null filters 2024-01-30 23:56:18 +01:00
Fernando Chávez
0a7843dbfb
chore(content-releases): add tracking (#19369)
* chore(content-releases): add tracking

* apply remi's feedback
2024-01-30 17:57:25 +01:00
Rémi de Juvigny
e8252d8336
Merge branch 'v5/main' into v5/history 2024-01-30 17:45:00 +01:00
Josh
aabbb0b2ef Merge branch 'develop' into v5/main 2024-01-30 16:26:36 +00:00
Rémi de Juvigny
0827d33e8a
Merge branch 'v5/main' into v5/history 2024-01-30 15:45:02 +01:00
Simone
cae3a5a17d
chore(content-releases): show Banner reached limit max releases (#19276)
* chore(content-releases): add alert reached max limit pending releases

* chore(content-releases): use max pending releases number from config

* chore(content-releases): change limits string content

* chore(content-releases): unit test to check the limit banner

* chore(content-releases): fix ts error

* chore(content-releases): fix review comments

* chore(content-releases): refactor the solution to use useLicenseLimits

* chore(content-releases): fix review comments

* chore(content-releases): fix type error

* chore(content-releases): fix HeaderLayout wrong height because of subtitle empty on loading

* chore(content-releases): remove ReleaseLayout component

* chore(content-releases): remove useless translation

---------

Co-authored-by: Fernando Chavez <fernando.chavez@strapi.io>
2024-01-30 12:03:33 +01:00
Marc Roig
2d371a2d60
fix: nested on commit on rollback transactions (#19368) 2024-01-30 11:00:08 +01:00
Jean-Sébastien Herbaux
080f42e344
[breaking change] Remove the TOrigin Type Param for Attribute.UID (#19336) 2024-01-30 10:10:05 +01:00
Fernando Chávez
8832c2b924
chore(content-releases): optimistic updates for content releases actions (#19065)
* chore(content-releases): optimistic updates for content releases actions

* fix lint issues

* dont use lodash
2024-01-30 09:26:48 +01:00
Rémi de Juvigny
d28f5a388b
Merge branch 'v5/main' into v5/history 2024-01-29 18:11:54 +01:00
Rémi de Juvigny
4e7378852a
feat(history): capture content types history (#19343)
* chore: init release action service

* feat: save history versions

* fix: ignore non api content types

* chore: move init history logic to service

* chore: feedback

* fix: save publish and unpublish actions

* fix: create action document ids

* chore: clarify comment
2024-01-29 18:10:58 +01:00
Jamie Howard
1097504b36
[core] document unique field validation per content type and locale (#19153)
* feat: use document service in content manager

* feat: update contracts with meta information

* chore: group metadata types into a single type

* feat: metadata information in single types

* chore: change meta contract to return documents instead of strings

* fix: remove unused type

* fix: ignore doc id if entry is null

* fix: update contract metadata

* feat: document metadata service

* feat: locale and status filtering

* chore: add comment

* chore: refactor metadata service

* chore: refactor entity manager exists to handle single types

* feat: refactor single type controllers to use documents

* feat: get locale param from in cm endpoints

* Revert "feat: get locale param from in cm endpoints"

This reverts commit 856c38588b8f8521cadd85c8c933f42a36a2178a.

* feat: get locale param from cm endpoints

* Update packages/plugins/i18n/server/src/controllers/validate-locale-creation.ts

Co-authored-by: Ben Irvin <ben@innerdvations.com>

* fix: entity manager unit tests

* chore: unit test document metadata

* feat: prevent empty string locale filtering

* feat(core): document unique field validation per content type and locale

* feat(e2e): test document unique fields

* fix(admin): ts build

* fix: cm contract import

* chore: test new d&p cm features

* feat(core): validate document unique fields within one publication state

chore: remove build:ts

* fix: search content manager api test

* fix: cm tests

* fix: cm tests

* fix: cm tests

* fix(content-manager): access to non default locale documents (#19190)

* fix(content-manager): access to non default locale documents

* chore(content-manager): revert route construction

* fix(content-manager): api tests for number of draft relations

* test(content-manager): counting number of draft relations for non default locales

* chore(content-manager): remove default locale from entity manager countDraftRelations

* test(document-service): api tests for unique document fields per publication state

* test(i18n): api tests for unique document fields per locale

* chore(api-tests): adjust author schema

* chore(e2e): disable edit view tests (#19235)

* fix(core): unique validation on publish

* fix(api-tests): un-localise author

* fix(e2e): incorrect path

* fix(admin): tidy up

* fix(admin): pass correct locale query params

fix(core): pass locale outside of filters

* chore(api-tests): wip comment for relatedEntityId logic

* fix(core): entity validator tests

* chore(api-tests): wip skip failing relations i18n test

* chore(e2e): clean up editview spec

* fix(content-manager): pass locale to publish and unpublish

* fix(content-manager): fix test:ts:back

* fix(e2e): update edit view expected path

* fix(entity-validator): default to null locale

fix(api-tests): wip i18n test changes

* fix(e2e): wip UID fields

* chore(content-type-builder): temporarily disable component unique field checkboxes (#19253)

* fix(admin): wip correctly pass params

feat(e2e): reintroduce uniqueness e2e tests

* Refactor UID validation for V5 (#19285)

* fix(database): wip remove UID unique DB constraint

* feat(content-manager): update uid checking endpoints to look at locale

* chore(admin): clean up

* fix(content-manager): single type unit tests

* fix(content-manager): send all params to uid endpoints

* feat(e2e): update tar backup to support unique CT

* fix(e2e): uniqueness spec

* chore(e2e): remove only

* fix(content-manager): only check UID availability against drafts

feat(api-tests): test case for UID validation across locales

* fix(content-manager): uid unit tests

* chore(api-tests): clean up

* chore(content-manager): clean up

* chore(i18n): remove relatedEntityId reference

---------

Co-authored-by: Marc-Roig <marc12info@gmail.com>
Co-authored-by: Ben Irvin <ben@innerdvations.com>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2024-01-29 15:35:20 +00:00
Bassel Kanso
e1dfd4d9f1
fix: Check component names against collectionTypeNames 2024-01-29 15:29:46 +01:00
Jean-Sébastien Herbaux
b1576b572e
Merge pull request #19335 from strapi/v5/enhancement/types/remove-attribute-relation-param 2024-01-29 14:02:26 +01:00
Serghei
e269729047
fix(admin): password should not be sent if it is an empty string (#19295)
* Fix password is sent when it was not changed

* Refactor a bit

* Try fix types

* Run prettier

* Update packages/core/admin/admin/src/pages/Settings/pages/Users/EditPage.tsx

* Use signle quotes instead

---------

Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2024-01-29 10:58:54 +00:00
Nicolo Traini
403190c854 fix: add MariaDB support for unique indexes 2024-01-28 12:16:16 +01:00
Jean-Sébastien Herbaux
1a290be57f
Merge pull request #19334 from strapi/v5/enhancement/types/relation-properties 2024-01-26 15:37:31 +01:00
Rémi de Juvigny
44ca354fb4
Merge branch 'v5/main' into v5/history 2024-01-26 12:28:46 +01:00
Rémi de Juvigny
c838be0c09
Merge branch 'v5/main' into v5/history 2024-01-26 12:18:05 +01:00
Alexandre Bodin
3bc82f6a77 chore: add a simple model registry 2024-01-26 11:31:53 +01:00
Jean-Sébastien Herbaux
d752a33d2d
Merge branch 'v5/main' into v5/enhancement/types/relation-properties 2024-01-26 11:12:24 +01:00
Josh
8c0ce63098 test(cm): hotfix AutoCloneFailureModal test 2024-01-26 10:01:54 +00:00
Josh
1ec998ff84 Merge branch 'develop' into v5/main 2024-01-26 08:31:31 +00:00
Ben Irvin
64423c997f
enhancement: restrict configuration filenames 2024-01-26 09:07:31 +01:00
Rémi de Juvigny
e750c6a8cd
Merge branch 'v5/main' into v5/history 2024-01-25 18:51:38 +01:00
Marc Roig
ff8ed1fc36
feat: Draft & Publish V5 (#18941)
* feat: use document service in content manager
* feat: locale and status filtering
* feat: refactor single type controllers to use documents
* feat: get locale param from in cm endpoints
* feat: get locale param from cm endpoints
* feat: prevent empty string locale filtering
* fix(content-manager): access to non default locale documents
* chore(content-manager): revert route construction
* test(content-manager): counting number of draft relations for non default locales
* chore(content-manager): remove default locale from entity manager countDraftRelations


---------

Co-authored-by: Ben Irvin <ben@innerdvations.com>
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2024-01-25 18:43:08 +01:00
Convly
758843ffd1 enhancement: remove the TOrigin type parameter from Attribute.Relation 2024-01-25 17:29:07 +01:00
Convly
eabab34cca enhancement: improve type inference for subtypes in Attribute.Relation properties 2024-01-25 17:11:17 +01:00
Alexandre Bodin
9d5602124c chore: life compontent logic out of the db and start exposing models 2024-01-25 13:13:01 +01:00
Rémi de Juvigny
be6cc4abab
feat(history): add history-version content type (#19316)
* feat: add history version content type

* chore: disable i18n and review workflows

* fix: i18n

* chore: use Schema.CollectionType
2024-01-25 11:04:49 +01:00
Rémi de Juvigny
ea0fc2822a
feat(cm): set up history page (#19309)
* feat(cm): set up history page

* feat: add injected component

* fix: use React.useId

* fix: typo

Co-authored-by: markkaylor <mark.kaylor@strapi.io>

---------

Co-authored-by: markkaylor <mark.kaylor@strapi.io>
2024-01-25 10:36:54 +01:00
Rémi de Juvigny
df4560117a
Merge branch 'v5/main' into v5/history 2024-01-24 17:40:04 +01:00
Convly
6a58621932 Merge branch 'releases/4.19.0' into develop 2024-01-24 16:10:08 +01:00
Convly
beec786491 v4.19.0 2024-01-24 16:00:22 +01:00
Mark Kaylor
83ccc02f01 fix(dts): exclude content-releases 2024-01-24 15:31:21 +01:00
Alexandre Bodin
e5584f14bc chore: cleanup core utils org 2024-01-23 19:40:35 +01:00
Rémi de Juvigny
18b28ce2ee
chore: set up content history files (#19298)
* setup history server files

* add admin files

* chore: remove dedicated lifecycle files
2024-01-23 18:15:34 +01:00
Alexandre BODIN
bbc6a32aca
Merge pull request #19273 from strapi/v5/clean-config
chore: setup configuration in one place only
2024-01-23 17:09:58 +01:00
Alexandre Bodin
af3efc973b chore: simplify content-type logic 2024-01-23 14:37:00 +01:00
Alexandre Bodin
41da5d47c9 chore: setup configuration in one place only 2024-01-23 14:36:43 +01:00
Josh
f379a8cd7a
chore: make vite the default bundler for the admin (#19283) 2024-01-23 11:21:20 +00:00
Bassel Kanso
ec04445427
Merge branch 'develop' into fix/relations-read-rbac 2024-01-23 11:29:39 +02:00
Bassel Kanso
8247576d2a fix: preserve correct pagination 2024-01-23 11:28:19 +02:00
Josh
b1ba9b78df fix(releases): remove D&P checker 2024-01-22 14:21:43 +00:00
Bassel Kanso
07488ddc7c
Merge pull request #19250 from strapi/chore/refactor-env-to-config
enhancement: refactor env-only values into configuration
2024-01-22 16:00:41 +02:00
Josh
79aef88064 Merge branch 'develop' into v5/main 2024-01-22 13:39:48 +00:00
Rémi de Juvigny
1168c576ca
feat(content-manager): better handle entry duplication (#19256)
* list problematic fields on autoclone failure

* use 3d array for prohibited fields

* tweak type

* pass the plugin params

* remove unused var

* feedback

* use ordered list for breadcrumbs

* less strict wording

* allow uni directional one-to-many relations
2024-01-22 14:17:53 +01:00
Josh
f6f04719a4
chore(cm): refactor to use redux-toolkit-query (#19281)
* chore: move existing react-query calls to redux-toolkit-query

* test: fix unit tests
2024-01-22 09:32:03 +00:00