12813 Commits

Author SHA1 Message Date
Jean-Sébastien Herbaux
438091e28a
Merge pull request #19011 from strapi/fix/types/es-relation-input 2023-12-11 15:04:27 +01:00
Jamie Howard
1f94748146
fix: wrapAxiosInstance.test (#18382) 2023-12-11 12:23:15 +00:00
Jamie Howard
a8709d897e
[content-manager] types for metrics service (#19014) 2023-12-11 10:56:40 +00:00
Jamie Howard
748e479a5d
[content-manager] types for uid service (#18910) 2023-12-11 10:49:15 +00:00
Jamie Howard
6f2783dadd
[content-manager] types for permissions service (#19015) 2023-12-11 10:48:25 +00:00
Convly
01b53828d6 chore: rename mocks to literals for clarity 2023-12-11 11:40:16 +01:00
Josh
46e6ffbb44
feat(strapi): add experimental plugin init command (#18970) 2023-12-11 09:53:59 +00:00
Convly
af0176cf2e feat: add positional arguments to xMany relations, split attributes files 2023-12-08 17:03:39 +01:00
Mark Kaylor
24e6b11e8e Merge branch 'main' of github.com:strapi/strapi into feature/content-releases 2023-12-08 14:07:43 +01:00
Convly
e9c8c97196 chore: simplify the logic for relations' input 2023-12-08 11:21:16 +01:00
Convly
d74bbdbd7f fix: add support for relation reordering APIs and objects 2023-12-08 11:13:08 +01:00
markkaylor
6eaefa820c
feat(content-releases): list releases with content type entry (#18999) 2023-12-08 10:44:49 +01:00
Fernando Chávez
35f56a0444
feat(core): add feature flags (#18871)
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2023-12-08 09:19:31 +01:00
Jamie Howard
40ef34cbcd
(content-manager): types for component service (#18869) 2023-12-07 11:58:14 +00:00
markkaylor
7ff846c468
feat(content-releases): add findManyForContentTypeEntry (#18976) 2023-12-07 10:28:45 +01:00
Fernando Chávez
1cab7003f9
feat(content-releases): publish a release (#18973)
* feat(content-releases): publish a release

* feat(content-releases): publish is enabled if you have releases publish permissions

* chore(content-releases): Mark's feedback

* Update packages/core/content-releases/server/src/services/release.ts

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

---------

Co-authored-by: markkaylor <mark.kaylor@strapi.io>
2023-12-07 09:35:57 +01:00
Josh
8248335ad3 fix: use empty string for default id so we don't try to stringify undefined 2023-12-06 22:41:51 +01:00
Josh
a7b1360f24 fix(cm): export some types for building 2023-12-06 22:41:51 +01:00
HichamELBSI
59a6b3828b chore(admin): convert review workflows page to TS (fix feedback) 2023-12-06 22:41:51 +01:00
HichamELBSI
31c6013e13 chore(admin): convert review workflows page to TS 2023-12-06 22:41:51 +01:00
Josh
ac7ce4ebf2
chore(content-manager): convert cm app shell to TS (#18985) 2023-12-06 16:51:55 +00:00
Josh
e85a23d937
fix(permissions): circular dependency (#18986)
* fix(permissions): circular dependency

* Apply suggestions from code review

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

* Apply suggestions from code review

Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>

---------

Co-authored-by: Ben Irvin <ben@innerdvations.com>
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2023-12-06 08:47:11 +00:00
Bassel Kanso
8e2421b559
Merge pull request #18966 from strapi/fix/deep-populate-dynamiczone
fix deep query populate issue on dynamic zone
2023-12-05 19:57:16 +02:00
Josh
295178369f
chore(cm): convert recursive layouts to TS (#18983) 2023-12-05 16:03:14 +00:00
Josh
327b3dcd83
fix(content-manager): add memoization to params object to stop recursion (#18982) 2023-12-05 15:29:09 +00:00
markkaylor
f803c8a5b6
feat(content-releases): add delete release action endpoint (#18943) 2023-12-05 11:00:29 +01:00
Jen Tak
5fc763775e
Register logger middleware before errors middleware (#16921)
In the examples and project templates the "errors" middleware which turn
thrown errors into HTTP responses is registered before the "logger"
middleware. This causes any errors thrown in controllers to pierce
through the logger middleware resulting in these requests not being
logged.

Eg. when a controller throws a ValidationError the resulting HTTP 400
request is not logged at all.

Change the order of middleware registration so that the logger is
'above' the errors middleware and has a chance to log *all* requests.

Co-authored-by: DMehaffy <derrickmehaffy@gmail.com>
2023-12-05 09:28:41 +01:00
Josh
f1dd5cc8ee
chore(content-manager): convert the editview to typescript (#18948) 2023-12-04 16:00:50 +00:00
markkaylor
76f8b2fb15
feat(content-releases): add endpoint to update a release action (#18946) 2023-12-04 14:14:00 +01:00
Simone
b4936e04a9
feat(content-releases): Edit Release (#18956)
* first draft implementation edit release

* add dialog unit test

* add permission to the edit button

* add permissions type and remove old unit test

* add createAction to the PermissionMap

* fix type errors

* fix unit test

* fix lint error

* fix review comments

* change state naming

* change dialog to modal
2023-12-04 13:58:29 +01:00
Fernando Chávez
9b4c03b10b
chore(content-releases): Add entries to content-releases' actions (#18918)
* chore(content-releases): add entries to content releases actions

* chore(content-releases): add entries relation to findMany content-release's actions

* chore(content-releases): improve findOne with actions code

* chore(Content-releases): remi feedback

* chore(content-releases): fix getReleaseActions response type

* chore(content-releases): change findOne and findActions endpoints

* chore(content-releases): fix error in release's tests

* chore(content-releases): use queryBuilder from strapi.db

* chore(content-releases): use queryBuilder from strapi.db
2023-12-04 10:10:51 +01:00
Bassel Kanso
d58362aec0 fix deep query populate issue on dynamic zone 2023-12-01 12:43:12 +02:00
markkaylor
4f6722c6d4
feat(content-releases): add create release action to cm edit view (#18905) 2023-12-01 09:27:16 +01:00
Josh
3301d58a39
chore(deps): update DS to 1.13.2 (#18959)
* chore(deps): update DS to 1.13.2

* chore: update snapshots
2023-11-30 16:37:04 +00:00
Alexandre Bodin
6b35da10af Merge branch 'main' into develop 2023-11-30 16:32:56 +01:00
Mark Kaylor
f486f51567 fix: update frontend snapshots after downgrade 2023-11-30 15:56:13 +01:00
Mark Kaylor
675d60f265 fix: downgrade @strapi/icons to match main 1.13.0 2023-11-30 14:16:07 +01:00
Josh
dfec2ca3fc
chore(i18n): convert middlewares to TS (#18957) 2023-11-30 11:58:42 +00:00
Simone
8145b7becc
feat(content-releases): Releases list page UI implementation (#18884)
* first draft implementation Releases page

* fix some comments

* refactor releases page and its logic

* add a more readable comment

* fix rtk transformResponse return type

* add unit test changing tab

* add unit test with mixed content

* fix type response error

* remove log

* fix review comments

* fix review comments

* reduce releases page unit test code

* test AddReleaseDialog

* remove useless mocked data and fix comments syntax

* refactor releases filters

* remove empty line

* add TODO
2023-11-30 12:22:27 +01:00
Mark Kaylor
b6dda1f6ae chore: update frontend snapshots 2023-11-30 12:07:39 +01:00
Mark Kaylor
97e854e902 Merge branch 'main' of github.com:strapi/strapi into releases/4.15.5 2023-11-30 11:08:02 +01:00
Mark Kaylor
dc96169c3f v4.15.5 2023-11-29 16:42:28 +01:00
Rémi de Juvigny
2611986c0d
fix(blocks): handle enter key on image (#18901)
* fix(blocks): handle enter key on image

* reuse mock schema image

* show image block focus

* remove created paragraph

* remove unused utils

* fix delete image when it's the only block

* fix images taller than needed
2023-11-29 16:23:21 +01:00
Rémi de Juvigny
a8393a3381
feat(blocks): add markdown snippets (#18922)
* wip

* handle snippets

* handle multiple snippets

* add snippet for image block

* add + snippet for list

* mark feedback

* add code block snippet
2023-11-29 14:14:47 +01:00
Rémi de Juvigny
adbd820884
feat(blocks): make it easier to exit code blocks (#18894)
* handle double enter on code blocks

* rename code translations

* allow forced line breaks

* mark feedback

* don't add paragraph when converting to code block
2023-11-29 11:19:25 +01:00
Sébastien Vanvelthem
520c59aa2c chore(lock): deduplicate dependencies
Co-Authored-By: Sébastien Vanvelthem <belgattitude@users.noreply.github.com>
2023-11-28 15:36:30 +01:00
Josh
b7d336700e
chore(cm): convert crudReducer to TS (#18879)
Update packages/core/admin/admin/src/content-manager/components/CollectionTypeFormWrapper/index.jsx
2023-11-28 09:01:48 +00:00
Gustav Hansen
c9130a2ea3
chore(admin): convert token components to TS (#18907) 2023-11-27 21:08:40 +00:00
Rémi de Juvigny
87b413c0c2
chore(blocks): handle block conversion logic in the blocks store (#18840)
* chore: manage block conversion logic in blocks store

* fix heading conversion when inside list

* make handleConvert optional

* add comments to conversions file

* extract getAttributesToClear

* extract baseHandleConvert
2023-11-27 09:57:35 +01:00
Gustav Hansen
daf387268b chore(admin): convert transfer tokens to TS
Co-authored-by: Josh Ellis <josh.ellis@strapi.io>
2023-11-24 13:18:11 +01:00