14150 Commits

Author SHA1 Message Date
Rémi de Juvigny
cd49060e03
chore: bump design system to 2.0.0-rc.12 (#22043)
* chore: bump design system dep

* fix: remove showBullet prop from Status components

* chore: snapshot updates
2024-11-04 04:00:05 -05:00
Rémi de Juvigny
3fdd03038d Merge remote-tracking branch 'origin/main' into develop 2024-10-31 17:14:27 +01:00
Simone
442516adad
chore: migrate media-library components to Typescript (#21622)
* chore: migrate to TS AudoPreview component

* chore: migrate to TS PaginationContext component

* chore: migrate to TS Pagination component

* chore: migrate to TS PaginationFolder components

* chore: migrate to TS PaginationFooter index component

* chore: migrate to TS isSelectable util

* chore: migrate to TS PageSize component

* chore: migrate to TS DialogFooter component

* chore: migrate to TS Draggable component

* chore: migrate to TS ContextInfo component

* chore: migrate to TS ContextInfo test and index component

* chore: migrate to TS PreviewBox components file

* chore: migrate to TS DialogHeader component

* chore: migrate to TS RemoveFolderDialog

* chore: migrate to TS EmptyAssetGrid

* chore: migrate to TS EmptyAssets index file

* chore: migrate to TS AssetCardBase

* chore: migrate to TS AudioAssetCard component

* chore: migrate to TS DocAssetCard component

* chore: migrate to TS ImageAssetCard component

* chore: migrate to TS AssetCard unit tests

* chore: migrate to TS SearchAsset component

* chore: migrate to TS UploadProgress component

* chore: migrate to TS FromComputerForm component

* chore: migrate to TS FromUrlForm component

* chore: migrate to TS AddAssetStep component

* chore: migrate to TS VideoPreview component

* chore: migrate to TS VideoAssetCard component

* chore: migrate to TS UploadingAssetCard component

* chore: migrate to TS PreviewCell component

* chore: migrate to TS CellContent component

* chore: migrate to TS TableRows component

* chore: migrate to TS TableList component

* chore: migrate to TS SortPicker component

* chore: migrate to TS Option component with utils

* chore: migrate to TS EmptyStateAsset and CarouselAsset

* chore: migrate to TS CopyLinkButton component

* chore: migrate to TS CarouselAssetActions component

* chore: migrate to TS FolderGridList component

* chore: migrate to TS FolderCardContext

* chore: migrate to TS FolderCard component

* chore: migrate to TS FolderCardBody component

* chore: migrate to TS FolderCardBodyAction component

* chore: migrate to TS FolderCardCheckbox component

* chore: migrate to TS FolderCard unit test

* chore: migrate to TS getFilterList

* chore: migrate to TS FilterValueInput component

* chore: migrate to TS FilterTag

* chore: migrate to TS FilterList

* chore: migrate to TS EditFolderModalHeader component

* chore: migrate to TS AssetPreview component

* chore: migrate to TS CroppingActions component

* chore: migrate to TS RemoveAssetDialog component

* chore: migrate to TS ReplaceMediaButton component

* chore: migrate to TS AssetCard component

* chore: migrate to TS AssetGridList

* chore: migrate to TS PendingAssetStep component

* chore: migrate to TS SelectedStep component

* chore: migrate to TS PreviewBox component

* chore: migrate to TS SelectTree

* chore: migrate to TS SelectTree unit test

* chore: migrate to TS BulkMoveDialog

* chore: migrate to TS EditFolderContent component

* chore: migrate to TS FilterValueInput

* chore: migrato to TS CrumbSimpleMenuAsync

* chore: migrate to TS Breadcrumbs

* chore: migrate to TS Filters component

* chore: migrate to TS EditAssetDialog

* chore: migrate to TS CarouselAssets

* chore: migrate to TS UploadAssetDialog and BrowseStep

* chore: migrate to TS BrowseStep test

* chore: migrate to TS AssetDialog component

* chore: migrate to TS MediaLibraryDialog component

* chore: migrate to TS MediaLibraryDialog component

* chore: remove a useless type guard

* chore: fix small stuff

* chore: fix BulkMoveDialog unit test

* chore: fix some types

* chore: fix prettier problems

* chore: fix review's comments

* chore: fix review comments
2024-10-31 10:00:13 +01:00
Rémi de Juvigny
c3b3af2ac5 v5.2.0 2024-10-30 16:08:15 +01:00
Marc Roig
2a1c8a222a
fix: review workflow persist data (#21984)
* fix: review workflow persist data

* fix: persist assignee

* chore: comment

* fix: typings and code simplification
2024-10-30 13:18:46 +01:00
markkaylor
08835f33dd
fix(content-manager): translate content-type and component attributes (#21951) 2024-10-30 11:40:50 +01:00
Marc Roig
011cefc73f
feat: preview content in an iframe (#22008)
* feat: preview content

* fix: pr suggestions

* fix: pr suggestions

* fix: iframe border
2024-10-30 09:01:47 +01:00
Pierre Levavasseur
36632203b1
fix: single type name not applied in the content manager (strapi#20844) (#21430) 2024-10-28 11:06:28 -04:00
Ismael Ash
15a6436eba
fix(typescript): declare modules used in @strapi/strapi (#21941) 2024-10-28 16:00:32 +01:00
Marc Roig
c222e1c4de
feat: fix filters attribute name (#21547)
* feat: fix filters attribute name

* chore: simplify test

* chore: pr suggestions

* fix: short hand populate

* chore: comment

* fix: lint

* chore: suggestions

* fix: assert
2024-10-28 09:28:04 +01:00
Rémi de Juvigny
f6dca5adf0
enhancement: add preview page header (#21983)
* enhancement: add preview header

* chore: use translations for document status

* chore: add comment with Status comp plan

* chore: update e2e tests

* fix: e2e test

* Update tests/e2e/tests/content-manager/preview.spec.ts
2024-10-25 11:12:35 -04:00
markkaylor
882aa56307
fix(e2e): enable tests for release-details-page.spec.ts (#21969)
* fix: update dataset to remove release action duplicates
* fix: return draft if a document has not been published yet
2024-10-25 10:07:53 +02:00
macco
2f7b9ae55a
chore: add isHostedOnCloud property in NPS request (#21849) 2024-10-25 09:15:35 +02:00
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