13407 Commits

Author SHA1 Message Date
Josh
b7c62568a8
chore!: update styled-components to 6 & update DS to 2.0.0-beta.3 (#20260)
* chore: update styled-components to 6

* chore: update admin

* chore: update CM

* chore: update ctb

* chore: update other plugin packages

* chore: update content-releases

* chore: update user-permissions

* chore: update upload

* chore: update fields to be dot notation

* chore: update tests

* chore: update yarn.lock

* chore: update snapshots

* chore: update deps

* chore: update snapshots

* fix: left menu

* test: add label prop to NavLink test

* chore: PR tweaks
2024-05-07 14:01:26 +01:00
Ben Irvin
7a6d9a2b0e
enhancement!: validate input in content API create and update controllers
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2024-05-07 11:22:22 +02:00
markkaylor
17b4116f46
Merge pull request #20267 from strapi/fix/history-missing-relations
fix(history): adjust condition to display missing relations
2024-05-06 15:01:41 +02:00
Marc Roig
8e9b152292
fix: document service find many pagination (#20178) 2024-05-06 14:52:48 +02:00
Mark Kaylor
1d3baa5a5c fix(history): adjust condition to display missing relations 2024-05-06 14:22:06 +02:00
Marc Roig
01187db536
feat: discard drafts when enabling draft and publish on ct (#20257)
* feat: discard drafts when enabling draft and publish on ct

* fix: migration tests
2024-05-06 11:42:41 +02:00
Simone
cffafe7fb5
feat(main-nav): Main nav refactoring, refactor the main nav container and all the links and user profile (#20245)
* feat(main-nav): replace DS NavLink with admin NavLink

* feat(main-nav): change icon type

* feat(main-nav): fix prettier errors

* feat(main-nav): refactor navlink code and add more test cases

* feat(main-nav): minor fixes

* feat(main-nav): fix ui errors

* feat(main-nav): fix merge issues

* feat(main-nav): fix unit test and types

* feat(main-nav): implement the new main nav ui

* feat(main-nav): change on blur handler

* feat(main-nav): fix TS error

* feat(main-nav): refactor navUser using the Menu component

* feat(main-nav): add aria label to the links

* feat(main-nav): add menu item in the nav user links

* feat(main-nav): refactor nav user and the menu items

* feat(main-nav): change locator

* feat(main-nav): revert e2e utils

* feat(main-nav): add nav user unit test
2024-05-06 11:08:45 +02:00
markkaylor
e60ec18292
chore(history): refactor restore and add tests for relations (#20179) 2024-05-06 10:54:07 +02:00
Madhuri Sandbhor
63d70071de
chore: moved cms components from DS to admin (#20242)
* chore: move all CMS components from DS to admin

* fix: eslint config

---------

Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2024-05-06 09:29:44 +01:00
Marc Roig
23fa63efeb
feat: webhooks (#20129)
* feat: webhooks

* feat: ignore entry.publish findOne

* chore: type entry

* feat: refactor publication methods to not trigger entry.delete webhook (#20136)

* feat: refactor publication methods

* fix: remove unnecessary chain op in db query

* feat: emit document. as webhook

* feat: register  legacy events

* feat: only trigger entry webhooks

* feat: rename webhook to event

* feat: event manager

* fix: repository

* feat: webhook tests

* fix: api tests

* fix: non localized fields api test

* fix: refactor event hub

* fix: eventhub type

* fix: event hub unit test

* fix: remove all subscribers

* fix: webhook api test
2024-05-03 11:41:42 +02:00
Rémi de Juvigny
86372bcda5
fix: CMReleasesContainer test (#20250)
* fix: CMReleasesContainer test

* fix: entry id type
2024-05-03 03:58:07 -04:00
Marc-Roig
b67ed7fe18
fix: updating example project internal dependencies 2024-05-03 09:34:17 +02:00
Ben Irvin
2264b66ec3
fix(database): drop foreign keys before dropping indexes 2024-05-02 19:18:31 +02:00
Marc-Roig
6c76c1b8c2
v5.0.0-beta.6 2024-05-02 16:01:39 +02:00
Rémi de Juvigny
f1dbaef309
chore: rename core packages (#20243)
* chore: remove plugin from cm package name

* chore: remove plugin from upload package name

* chore: remove plugin from email package name

* chore: remove plugin from ctb package name

* chore: remove plugin from i18n package name

* fix: plugin ids

* fix: v5 migratino

* fix: import order lint error
2024-05-02 09:07:50 -04:00
Rémi de Juvigny
66bc16965f
chore: run lint fix (#20246) 2024-05-02 08:28:14 -04:00
Rémi de Juvigny
9d4475b11a
feat: show hidden fields in history frontend (#20201)
* chore: add configuration to history context

* feat: show fields that aren't in the layout in history

* chore: add renderLayout prop to ComponentInput

* feat: render remaining fields in components

* fix: types

* chore: refactor to composition api

* chore: move renderInput to children

* fix: repeatable components index

* fix: repeatable components toggling together

* chore: move ComponentLayout

* fix: generate temp keys for history values

* chore: delete ComponentLayout

* fix: components with no hidden fields

* fix: add comments

* chore: add comment
2024-04-30 11:53:27 -04:00
markkaylor
4a26739ee0
fix(history): handle sanitization when fetching versions (#20212)
Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>
2024-04-30 11:33:06 +02:00
Ben Irvin
19fab61054
fix: safe loading of content type names such as then 2024-04-29 17:21:18 +02:00
Simone
53cf1f19cc
feat(main-nav): Main Nav refactoring, add the Home icon (#20176)
* feat(main-nav): replace DS NavLink with admin NavLink

* feat(main-nav): change icon type

* feat(main-nav): fix prettier errors

* feat(main-nav): refactor navlink code and add more test cases

* feat(main-nav): minor fixes

* feat(main-nav): fix ui errors

* feat(main-nav): fix merge issues

* feat(main-nav): fix unit test and types

* feat(main-nav): change offset values
2024-04-29 15:37:57 +02:00
Ben Irvin
4300e8f16c
chore!: remove deprecated verbose option from ts:generate-types 2024-04-29 10:08:59 +02:00
Jean-Sébastien Herbaux
672727c8cf
docs(typescript): type system cheat sheet 2024-04-26 14:46:52 +02:00
Alexandre Bodin
3e1be288b8 chore: add fs-extra types where needed 2024-04-26 11:15:51 +02:00
Alexandre Bodin
06f017a9dc fix: http-errors ugprade 2024-04-26 09:32:57 +02:00
Alexandre Bodin
89b8013624 chore: update utility deps 2024-04-26 09:32:10 +02:00
Josh
5d000fb33c
chore: upgrade to DS 2.0.0-beta.2 (#20151) 2024-04-25 16:17:23 +01:00
Marc Roig
58f553ab42
fix: doc id migration for mysql (#20174)
* fix: doc id migration for mysql

* feat: mysql subquery
2024-04-25 14:10:47 +02:00
Alexandre Bodin
792129f7b4 chore: make document service api more consistent 2024-04-24 18:15:02 +02:00
Mark Kaylor
2245f847dc fix: incorrect versions 2024-04-24 15:55:58 +02:00
Mark Kaylor
2aa7d7fb41 v5.0.0-beta.5 2024-04-24 15:52:25 +02:00
markkaylor
bdaafbbb3c
chore(history): add api tests (#20157) 2024-04-23 10:50:47 +02:00
Rémi de Juvigny
7431ba9b38
fix: sanitize history versions data field (#20143)
* fix: sanitize history versions data field

* fix: ts cannot be named error
2024-04-22 08:03:52 -04:00
Simone
616346afcf
feat(main-nav): Main Nav refactoring, refactor the logo (#20135)
* feat(main-nav): replace DS NavBrand with admin NavBrand

* feat(main-nav): refactor navbrand code and test

* feat(main-nave): remove useless mock in unit test

* feat(main-nav): use padding prop
2024-04-18 17:02:50 +02:00
markkaylor
113a853206
fix: add render prop to use VersionInputRenderer (#20139) 2024-04-18 14:26:17 +02:00
Mattias van den Belt
3786ed4fae
fix: remove double modal toggle for on delete RBAC role (#20000) 2024-04-17 21:34:45 +01:00
Convly
eecdc83f34 Merge branch 'refs/heads/releases/5.0.0-beta.4' into v5/main 2024-04-17 15:53:17 +02:00
Convly
a9b61589c8 chore: update dependencies to 5.0.0-beta.4 2024-04-17 15:43:36 +02:00
Marc Roig
76447298a8
feat: migrate document published entries from v4 (#19813)
* chore: add document-id migration

* feat: migration file

* chore: change migration name

* feat: document draft creation

* fix: use knex to query

* feat: discard drafts

* fix: use database identifiers utils

* fix: leave rename identifiers migration name as it was before

* chore: revert database config

* feat: simplify migration document ids query

* update with subquery

* chore: comment todo on create draft migration

* chore: remove draft creation migration

* feat: register internal migrations dynamically (#20002)

* feat: register internal migrations dynamically

* chore: load umzug lazily

* chore: lazy load umzugProvider migrations

* feat: register internal migrations dynamically (#20006)

* feat: register internal migrations dynamically

* chore: load umzug lazily

* chore: lazy load umzugProvider migrations

* feat: discard draft migration from strapi core

* fix: unit test

* fix: make discardDraft inline

* fix: prettier

* fix: remove unused code

* fix: ignore tables that do not exist

* fix: build

* chore: remove comment

---------

Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
2024-04-17 13:41:44 +02:00
Ben Irvin
b9e5b3a2d3
enhancement(ctb)!: reserve keywords needed for Strapi 5 features 2024-04-17 12:18:38 +02:00
Rémi de Juvigny
d23c1d5b0e
chore: remove history future flag (#20131) 2024-04-17 11:20:32 +02:00
markkaylor
b2d2f81797
feat: add confirmation modal when restoring history version (#20106)
Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
2024-04-17 10:13:36 +02:00
markkaylor
80e532931b
chore: merge develop into v5/main (#20126) 2024-04-16 18:06:25 +02:00
Christian
e2d1ee0951
Merge pull request #20128 from strapi/fix/sso-frontend-tests
Fix SSO Frontend Test
2024-04-16 14:09:31 +02:00
Rémi de Juvigny
abaeef8b3c
fix: history design details (#20122) 2024-04-16 08:04:19 -04:00
Christian Capeans
b54d4d0617 fix: wrong mock 2024-04-16 12:44:15 +02:00
markkaylor
b4f819aae7
feat(history): restore version (#20102) 2024-04-16 09:18:33 +02:00
Christian
b429778d47
Merge branch 'v5/main' into chore/remove-js-cookie 2024-04-15 14:43:24 +02:00
Ben Irvin
18019758d6
enhancement!: create sends 201 status code 2024-04-15 14:03:47 +02:00
Rémi de Juvigny
63d7006f9e
enhancement: add history license check (#20099)
* enhancement: add history license check

* fix: add history to default license data
2024-04-12 13:07:16 -04:00
Christian
20fecc8025
Merge pull request #20105 from strapi/fix/sso-can-read-prop
Use the right name in useRBAC
2024-04-12 16:45:32 +02:00