14487 Commits

Author SHA1 Message Date
Rémi de Juvigny
6d1431fe2a
enhancement: create dedicated preview page (#21965)
* enh: add preview page and navbar

* chore: remove header

* chore: update e2e tests

* chore: remove getDocumentStatus export

* fix: error state
2024-10-24 12:15:35 -04:00
Ben Irvin
14882e7940
enhancement(db): allow connection to be a function (#21573)
Thanks to @evan-thinksync and @fardarter for their contributions
2024-10-24 17:05:47 +02:00
Marc Roig
17dbeb2030
release: main to develop (#21963)
* fix: make contrib docs landing message clearer to users

* v5.1.1 to main (#21954)

* enhancement: ui issues and french translations (#21633)

* chore: ui issues and french translations

* chore: added missing translation

* chore: made it prettier

* fix: test CI/CD building repo 2 times (#21740)

* fix: do not display fill from locales if i18n no enabled (#21737)

* fix: do not display fill from locales if i18n no enabled

* chore: disable only if there is not i18n enabled

* fix: send ids when connecting relations to update u&p user role (#21726)

* fix:update role

* fix: send entry id when connecting/disconnecting relations

* fix: changed empty components wording (#21630)

* fix: changed empty components wording

* fix: updated selectors

* fix: made it prettier

* enhancement: add preview panel button (#21776)

* chore: add test workflow filters for each test type (#21770)

* chore: upgrade mysql2 package to 3.9.8 (#21795)

* feat: add mapping property support for documentation plugin's open api generated docs (#21752)

* feat: add mapping property support for documentation plugin's open API generated spec

Dynamic zones are reflected in the OpenAPI docs generated as an anyOf.
We can use a discriminator and mapping to improve the docs.

* fix: missing one value enum for __component property

* enhancement: extract logic to convert component names to OpenAPI names

* chore: run prettier write on clean schema attributes

---------

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>

* chore: fix mysql workflow (#21801)

* chore: upgrade koa/router to 12.0.2 (#21802)

* Update "upgrade major" rules (#21745)

* fix: broken list view pagination (#21800)

* fix: broken list view pagination

* chore: add list view pagination e2e test

* enhancement: add copy preview url button (#21780)

* enhancement: add copy preview button

* chore: remove useClipboard from upload plugin

* Add <latest> Upgrade Command (#21754)

* Make locale/localizations private for non-localized cts (#21495)

* chore: upgrade sendgrid-mail to 8.1.3 (#21797)

* chore: re-enable history e2e tests (#21739)

* fix: reenable history api tests

fix: flaky findAndClose

fix: close notifications

* chore: add test workflow filters for each test type

* chore: fix node versions

* fix: match format of test.yml

* revert: don't add test_result to skipped_tests

* fix: add new outputs vars

---------

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

* fix: search by numeric numbers in a relation (#21873)

* Sort Generated Content-Types and Components Definitions (#21868)

* fix(e2e): remove webkit skip conditions (#21611)

* fix(e2e): remove webkit skip conditions

* chore: revert uniqueness spec to test others on ci

* fix(e2e): ctb navigation

* chore: ci config to speed up testing

* chore: revert lock

* chore(e2e): wip add webkit waiting

* chore: single out history spec changes for ci

* chore(e2e): use new webkit navigation for all affected test files

* chore(e2e): revert e2e ci config so all tests run again

* chore(e2e): temp skip uniqueness to test others

* chore(e2e): revert so all tests run again

* chore(e2e): re-skip uniqueness in webkit

* chore(e2e): revert workflow yaml

* chore(e2e): pr feedback

---------

Co-authored-by: Ben Irvin <ben.irvin@strapi.io>

* fix(strapi/types): add Attribute column type (#21858)

* chore: add preview tracking (#21913)

* chore: upgrade plop to 4.0.1 (#21798)

* chore: upgrade cookie to 0.7.1 (#21833)

* enhancement: DTS assert count of items sent and received is equal (#21900)

* feat: added a count, start, finish counts to compare data recieved with data sent

* feat: refactoring

* feat: refactoring

* v5.1.1

---------

Co-authored-by: Lucas Boilly <45385696+lucasboilly@users.noreply.github.com>
Co-authored-by: Boegie19 <34578426+Boegie19@users.noreply.github.com>
Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
Co-authored-by: Pedro Cerejo <pedro.cerejo@tecnico.ulisboa.pt>
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>
Co-authored-by: Ben Irvin <ben@innerdvations.com>
Co-authored-by: Andrei Luca <1881266+iamandrewluca@users.noreply.github.com>
Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>

* fix: prettier

---------

Co-authored-by: Pierre Wizla <pwizla@users.noreply.github.com>
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
Co-authored-by: Lucas Boilly <45385696+lucasboilly@users.noreply.github.com>
Co-authored-by: Boegie19 <34578426+Boegie19@users.noreply.github.com>
Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
Co-authored-by: Pedro Cerejo <pedro.cerejo@tecnico.ulisboa.pt>
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>
Co-authored-by: Ben Irvin <ben@innerdvations.com>
Co-authored-by: Andrei Luca <1881266+iamandrewluca@users.noreply.github.com>
Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
2024-10-24 14:16:34 +02:00
Marc Roig
3db8f1fc61
fix: order when loading more than 10 relations (#21855)
* fix: relations page loading

* chore: comment

* fix: do not regenerate all keys
2024-10-22 10:45:20 +02:00
Bassel Kanso
df298029ec
enhancement: DTS assert count of items sent and received is equal (#21900)
* feat: added a count, start, finish counts to compare data recieved with data sent

* feat: refactoring

* feat: refactoring
2024-10-22 09:45:12 +03:00
Alexandre Bodin
73ff3d9f3b fix: load strapi before watch 2024-10-21 15:19:21 -07:00
Rémi de Juvigny
8aa515fdcd
chore: add preview tracking (#21913) 2024-10-21 04:05:31 -04:00
Andrei Luca
42b1f4024f
fix(strapi/types): add Attribute column type (#21858) 2024-10-18 11:08:22 +02:00
Marc Roig
c823b10e98
fix: search by numeric numbers in a relation (#21873) 2024-10-16 13:19:38 +02:00
Ben Irvin
e6d1e1e5e4
v5.1.0 release into main (#21870)
* enhancement: ui issues and french translations (#21633)

* chore: ui issues and french translations

* chore: added missing translation

* chore: made it prettier

* fix: test CI/CD building repo 2 times (#21740)

* fix: do not display fill from locales if i18n no enabled (#21737)

* fix: do not display fill from locales if i18n no enabled

* chore: disable only if there is not i18n enabled

* fix: send ids when connecting relations to update u&p user role (#21726)

* fix:update role

* fix: send entry id when connecting/disconnecting relations

* fix: changed empty components wording (#21630)

* fix: changed empty components wording

* fix: updated selectors

* fix: made it prettier

* enhancement: add preview panel button (#21776)

* chore: add test workflow filters for each test type (#21770)

* chore: upgrade mysql2 package to 3.9.8 (#21795)

* feat: add mapping property support for documentation plugin's open api generated docs (#21752)

* feat: add mapping property support for documentation plugin's open API generated spec

Dynamic zones are reflected in the OpenAPI docs generated as an anyOf.
We can use a discriminator and mapping to improve the docs.

* fix: missing one value enum for __component property

* enhancement: extract logic to convert component names to OpenAPI names

* chore: run prettier write on clean schema attributes

---------

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>

* chore: fix mysql workflow (#21801)

* chore: upgrade koa/router to 12.0.2 (#21802)

* Update "upgrade major" rules (#21745)

* fix: broken list view pagination (#21800)

* fix: broken list view pagination

* chore: add list view pagination e2e test

* enhancement: add copy preview url button (#21780)

* enhancement: add copy preview button

* chore: remove useClipboard from upload plugin

* Add <latest> Upgrade Command (#21754)

* Make locale/localizations private for non-localized cts (#21495)

* chore: upgrade sendgrid-mail to 8.1.3 (#21797)

* v5.1.0

---------

Co-authored-by: Lucas Boilly <45385696+lucasboilly@users.noreply.github.com>
Co-authored-by: Boegie19 <34578426+Boegie19@users.noreply.github.com>
Co-authored-by: Marc Roig <marc.roig.campos@strapi.io>
Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
Co-authored-by: Pedro Cerejo <pedro.cerejo@tecnico.ulisboa.pt>
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>
2024-10-16 12:33:32 +02:00
Rémi de Juvigny
a281e06e9e v5.0.6 2024-10-11 18:13:53 +02:00
Rémi de Juvigny
7e12b7a9df fix: broken list view pagination (#21800)
* fix: broken list view pagination

* chore: add list view pagination e2e test
2024-10-11 18:00:28 +02:00
Marc-Roig
9cbf0e65dc
v5.0.5 2024-10-10 20:33:17 +02:00
Convly
e97d870c8f v5.0.4 2024-10-09 17:08:23 +02:00
SamPhillemon
3e244fdb48
Merge branch 'develop' into fix/issue_21600 2024-10-09 17:29:53 +05:30
Marc Roig
d6fc84a403
fix: loading relations without DP fails after migrating to v5 (#21501)
* fix: loading entries without DP

* fix: time format

* fix: unit test

* fix: set published at with db query
2024-10-09 11:22:11 +02:00
Ben Irvin
51d9cfeaec
enhancement: add support for Node 22 (#21467) 2024-10-09 09:52:15 +02:00
Marc Roig
53c97b9b27
fix: update review workflow (#21610)
* fix: update review workflow

* chore: comment

* chore: comment
2024-10-08 15:34:28 +02:00
Marc Roig
002fc78b3c
feat: preview endpoint (#21574)
* feat: base files for static preview

* feat: preview config

* Update packages/core/content-manager/server/src/preview/routes/index.ts

Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>

* chore: empty handler

* chore: comment controllers type

* fix: remove is enabled check from load

* feat: test preview config

* chore: refactor type

* feat: preview endpoint

* feat: preview test

* fix: tests

* fix: api test

* chore: comment

---------

Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
2024-10-08 14:23:47 +02:00
Jamie Howard
52742fc75d
fix: wrong jobs value after removing a task (#21606)
Co-authored-by: Joel Tafilaj <158201282+jotafilaj@users.noreply.github.com>
2024-10-08 12:09:26 +01:00
Rémi de Juvigny
80bde34977
fix: history cron job breaking on mysql (#21616)
* fix: history cron job breaking on mysql

* fix: backend unit test

* fix: use js date instead of string
2024-10-08 06:04:23 -04:00
Marc Roig
840550dc97
feat: preview config (#21561)
* feat: base files for static preview

* feat: preview config

* Update packages/core/content-manager/server/src/preview/routes/index.ts

Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>

* chore: empty handler

* chore: comment controllers type

* fix: remove is enabled check from load

* feat: test preview config

* chore: refactor type

* fix: pr comments

---------

Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
2024-10-07 21:16:25 +02:00
SamPhillemon
c7c382f99a
Merge branch 'develop' into fix/issue_21600 2024-10-07 19:38:42 +05:30
Bassel Kanso
2e432e278a
Merge pull request #21578 from strapi/fix/install-shown-on-v4-plugins
fix: copy button shown on v4 plugins
2024-10-07 13:12:28 +03:00
SamPhillemon
c04ac81b22
Merge branch 'develop' into fix/issue_21600 2024-10-07 15:34:22 +05:30
Rémi de Juvigny
dc3f54929b
fix: history trying to restore components that were deleted (#21559)
* fix: reenable history api tests

* fix: history trying to restore components that were deleted

* Update tests/api/core/content-manager/content-manager/history/history.test.api.ts

Co-authored-by: Marc Roig <marc.roig.campos@strapi.io>

* chore: refactor to deselect component ids at version creation

* Revert "fix: reenable history api tests"

This reverts commit a35f61fbc066f8ed4d4053ee99bed5d5c4949312.

* fix: type error

---------

Co-authored-by: Marc Roig <marc.roig.campos@strapi.io>
2024-10-07 05:59:35 -04:00
Sam-Phillemon9493
b0fd28fc0e
fix: added the neutral800 for the feild title in content builder
Ref: 21600
2024-10-07 14:33:45 +05:30
Simone
df8fc36161
chore: migrate media-library hooks to Typescript (#21554)
* chore: migrate to TS useConfig

* chore: migrate to TS useCropImg

* chore: migrate to TS useRemoveAsset

* chore: migrate to TS useEditFolder

* chore: migrate to TS useMediaLibraryPermissions

* chore: migrate to TS rename-keys

* chore: migrate to TS useFolderStructure

* chore: migrate to TS useBulkRemove

* chore: migrate to TS useModalQueryParams

* chore: migrate to TS useBulkMove

* chore: migrate to TS useAssets

* chore: migrate to TS useEditAsset

* chore: migrate to TS useFolder

* chore: migrate to TS useFolders

* chore: migrate to TS useUpload

* chore: fix review's comments

* chore: fix get call response type
2024-10-07 09:29:08 +02:00
DMehaffy
b558642be8
Merge pull request #21582 from strapi/fix/20907
fix: rename file to remove spec char reserved on windows
2024-10-04 10:54:16 -07:00
Simone
38dcf9a2f0
chore: migrate media-library utils to Typescript (#21532)
* chore: migrate to TS typeFromMime

* chore: migrate to TS toSingularTypes

* chore: migrate to TS prefixPluginTranslations

* chore: migrate to TS prefixFileUrlWithBackendUrl

* chore: migrate to TS moveElement

* chore: migrate to TS getTrad

* chore: migrate to TS getFileExtension

* chore: migrate to TS containsAssetFilter

* chore: migrate to TS displayedFilters

* chore: migrate to TS downloadFile

* chore: remove findRecursiveFolderMetadatas because is unused

* chore: migrate to TS appendSearchParamsToUrl

* chore: migrate to TS formatBytes

* chore: migrate to TS formatDuration

* chore: migrate to TS urlYupSchema

* chore: migrate to TS urlsToAssets

* chore: migrate to TS rawFileToAsset

* chore: migrate to TS getFolderURL

* chore: migrate to TS getFolderParents

* chore: migrate to TS createAssetUrl

* chore: migrate to TS findRecursiveFolderByValue

* chore: migrate to TS getAllowedFiles

* chore: migrate to TS getBreadcrumbDataCM

* chore: migrate to TS normalizeAPIError

* chore: migrate to TS getAPIInnerErrors

* chore: migrate to TS getBreadcrumbDataML and change the utils imports

* chore: fix export from index

* chore: reduce the errors type definition

* chore: change Query type

* chore: change the way utils are exported in the index

* chore: reduce the code in the custom declaration type file
2024-10-04 16:57:43 +02:00
Marc Roig
43e15a3ba8
fix: v5 migration with wrong enum values (#21588)
* fix: migration with bad enum

* fix: types

* chore: comment
2024-10-04 15:54:14 +02:00
Jean-Sébastien Herbaux
39d0386301
Add Back the Deprecated Shared Populate Option for Morph Links (#21549)
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
2024-10-04 15:33:02 +02:00
Ben Irvin
006a21d394
fix: ignore order when checking index diff (#21576) 2024-10-04 15:11:11 +02:00
Jean-Sébastien Herbaux
8ee9efcbbb
Fix Internal Plugin Resolve Path (#21557) 2024-10-04 11:03:09 +02:00
Derrick Mehaffy
5cdc241348 fix: rename file to remove spec char reserved on windows 2024-10-03 12:28:34 -07:00
Bassel Kanso
902e79d1ba fix: add test and don't show tooltip 2024-10-03 21:03:47 +03:00
Bassel Kanso
21c57644b1 fix: copy button shown on v4 plugins 2024-10-03 17:49:46 +03:00
Rémi de Juvigny
0ee68f583f Merge remote-tracking branch 'origin/main' into develop 2024-10-03 12:02:55 +02:00
Marc Roig
475ef78c75
feat: base files for static preview (#21555)
* feat: base files for static preview

* Update packages/core/content-manager/server/src/preview/routes/index.ts

Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>

* chore: comment controllers type

---------

Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
2024-10-03 10:02:19 +02:00
Rémi de Juvigny
8c4b6f27a0 v5.0.2 2024-10-02 16:33:35 +02:00
Den
959c5589d0
fix: <svg> attribute width="<N>rem" errors in Safari (#21550)
* fix: <svg> attribute width="2rem" error in Safari
I changed the with and height value for all svgs used in the LeftMenu. It was changed from 2rem to 20px. Rem was leading to the error message Error: Invalid value for <svg> attribute width="2rem" in the safari browser.

* fix: <svg> attribute width="1.2rem" error in Safari
I changed the with and height value for all svgs used in the Onboarding. It was changed from 1.2rem to 12px. Rem was leading to the error message Error: Invalid value for attribute width="1.2rem" in the safari browser.

* Update packages/core/admin/admin/src/components/LeftMenu.tsx

Co-authored-by: Simone <startae14@gmail.com>

* 12px => 12

---------

Co-authored-by: Simone <startae14@gmail.com>
2024-10-02 14:24:19 +02:00
Jean-Sébastien Herbaux
7f1333f196
Fix Various Document Service Type Issues (#21533) 2024-10-01 15:45:03 +02:00
Ziyi
34ea768ed0
fix: Create table if it doesn't exist (#21542)
* fix: test create table if it doesn't exist

* fix: return if table doesn't exsist
2024-10-01 15:09:01 +02:00
Archana Agivale
3fed37db71
Fix issue #20597 by adding scroll (#21383)
* fix issue 20597 by adding scroll

* fix: fix for wrong modal height for the component field
Ref: #20597

* fix: added styled component rather than adding style

* fix: fixed lint issues
2024-10-01 10:48:40 +02:00
Archana Agivale
5007ea441d
Fixed issue 20843 : Wrong numbers are displayed media library (#21459)
* fixed issue Wrong numbers are displayed (total assets and folders) when doing bulk action in the Media Library

* fix: fix for wrong number display when bulk action in media library
#20843

* fix: fix test case for wrong number not display in media library
Ref : #20843

* fix: fix eslint issues in CI
2024-09-30 14:30:48 +02:00
Rémi de Juvigny
ebaf1403e4
fix: dynamic zones breaking layout logic (#21483)
* fix: layout panel after dynamic zone

* chore: update test
2024-09-30 04:36:44 -04:00
Ben Irvin
f91d91eef5
chore: upgrade deps and pinned subdeps for CVEs (#21425) 2024-09-27 15:43:24 +02:00
Alexandre Bodin
335b9a2962 v5.0.2-beta.0 2024-09-27 11:14:34 +02:00
Alexandre BODIN
9a4af3a3cc
Merge pull request #21428 from strapi/fix/cm-relations
fix: cm relations
2024-09-27 10:22:45 +02:00
Archana Agivale
dcdeecfbf4
fixed issue 21342: HP logos are misaligned (#21481)
* fixed issue 21342: HP logos are misaligned

* prettier changes done

* reverted last commit

* fix: fix for HP logos alignment issue
#21342
2024-09-27 10:19:25 +02:00