131 Commits

Author SHA1 Message Date
Ben Irvin
fbbccd06ea
feat!: document service query param validation (#21034) 2024-09-02 14:03:26 +02:00
Alexandre BODIN
79313050d9
Merge pull request #20913 from strapi/v5/templates
templates v5
2024-08-30 18:22:41 +02:00
Jamie Howard
0a7ae2bd75 chore(e2e): cover ctb tab state management 2024-08-29 11:18:24 +01:00
Alexandre BODIN
09bf01fa4c
Merge branch 'v5/main' into v5/templates 2024-08-29 11:18:06 +02:00
Jamie Howard
69590e70d5
feat(i18n): add bulk unpublish locales edit view action (#21030)
* feat(i18n): add bulk unpublish locales edit view action

* fix(e2e): i18n bulk actions

* chore(e2e): skip for webkit

* chore: clean up

* fix(i18n): fixes and e2e test coverage for bulk locale unpublish

* fix(e2e): content manager edit view

* fix(content-manager): incorporate edit view notification fix

* chore(i18n): clean up
2024-08-27 12:04:59 +01:00
Alexandre Bodin
6d27139261 chore: update e2e test templates 2024-08-27 10:06:49 +02:00
Alexandre Bodin
c641525963 chore(create-strapi-app): implement new templates system 2024-08-26 14:57:45 +02:00
Fernando Chávez
45c8d25668
fix(content-manager): error when content type has no i18n enabled (#21026)
* fix(content-manager): error when content type has no i18n enabled

* fix(content-manager): history check if CT has D&P and i18n

* fix api tests
2024-08-23 13:31:42 +02:00
Jamie Howard
686101fc1f
chore: Disable draft relation counts (#21044)
* chore: wip disable draft relation counts

* chore: clean up

* chore(e2e): skip another draft relation test
2024-08-23 11:20:42 +01:00
Jamie Howard
21e6c55c2a
fix(e2e): i18n bulk actions (#21036)
* fix(e2e): i18n bulk actions

* chore(e2e): skip for webkit

* chore: clean up
2024-08-21 16:35:57 +01:00
Ben Irvin
8210c57d20
enhancement!: restrict strapi prefixes in CTB (#20999) 2024-08-21 13:36:12 +02:00
Marc Roig
4f54945deb
fix: trigger review worklfow webhooks (#21001)
* fix: trigger review worklfow webhooks

* Update packages/core/review-workflows/server/src/services/document-service-middleware.ts

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

---------

Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
2024-08-13 15:05:13 +02:00
RufusLeTerrible
6e80fa164c
test: add smoke test for settings menu (#19585)
Co-authored-by: RufusLeTerrible <MarionLemaire@users.noreply.github.com>
Co-authored-by: Ben Irvin <ben@innerdvations.com>
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
2024-08-13 11:08:38 +02:00
Rémi de Juvigny
ed2f056a39
fix: don't check uniqueness for empty strings (#20985)
* fix: don't check uniqueness for empty strings

* chore: add api test
2024-08-09 11:23:55 -04:00
Marc Roig
1eda518789
fix: draft validations (#20892)
* fix: draft validations

* chore: unit tests

* fix: api tests

* chore: pr suggestions

* fix: unit

* V5/fix-unique-e2e (#20939)

* fix(e2e): remove uniqueness expectations on draft entities

* chore: clean up

* fix(e2e): repeatables

---------

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
2024-08-08 08:56:21 +02:00
Marc Roig
e281ba8e37
fix (content-manager): load relation main fields on all pages (#20946) 2024-08-07 14:34:15 +02:00
Jean-Sébastien Herbaux
3ad6bddd75
RBAC Action Aliases - v5 (#20878) 2024-08-06 15:16:25 +02:00
Jean-Sébastien Herbaux
a0578ca560
Fix Failing E2E Tests (#20691) 2024-08-05 15:44:16 +02:00
Rémi de Juvigny
5f2ac8148d
chore: delete api tests for deleted review workflows route (#20926) 2024-08-01 10:45:29 -04:00
Rémi de Juvigny
0f4c208520 Revert "chore: delete api tests for deleted review workflows route"
This reverts commit 2b4e5ebd4101eb6e15ae45791ae0ff56e0208e6f.
2024-08-01 16:11:21 +02:00
Rémi de Juvigny
2b4e5ebd41 chore: delete api tests for deleted review workflows route 2024-08-01 16:07:59 +02:00
Fernando Chávez
533533434d
fix(content-releases): add bulk add to release to v5 (#20848)
* fix(content-releases): add bulk add to release to v5

* tests(content-releases): enable API tests

* fix(content-releases): add to release button UI

* fix: test typo

---------

Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>
2024-07-26 04:33:32 -04:00
Jamie Howard
4ae4275bbc
Validation of unique fields within dynamic zones (#20687)
* feat(core): wip validate unique fields within dynamic zones

* feat(core): use db query layer to find conflicting components

feat(core): api test for dynamic zone unique fields

* feat(core): wip query builder option for dynamic zones validation

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

* chore(core): clean up

* chore(core): reduce to db query option

* chore(core): clean up

* chore(core): clean up and add comments

* fix(core): only select the id of nested dz components

---------

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2024-07-25 11:15:00 +01:00
Marc Roig
2403a57adf
feat: history version on bulk publish locales (#20847)
* feat: history version on bulk publish locales

* fix: await create version
2024-07-23 09:40:46 +02:00
Jamie Howard
961ab18775
fix(e2e): dont expect document actions to be disabled because of releases (#20667)
* fix(e2e): dont expect document actions to be disabled because of releases

* fix(e2e): remove other expectations
2024-07-22 10:05:00 +01:00
Marc Roig
8ddb1ecebc
fix: inconsistent publish permissions (#20668)
* fix: inconsistent publish permissions

* fix: tests

* fix: api tests

* fix: is create should be is nil

* fix: publish and update by using locale

* fix: remove some conditions to the Document actions

---------

Co-authored-by: Simone Taeggi <startae14@gmail.com>
2024-07-22 10:03:14 +02:00
Marc Roig
8ad1ccbb99
chore: run relation permissions test (#20674) 2024-07-03 15:34:49 +02:00
Jamie Howard
5efc3fc695
fix(e2e): new data set to fix shop single types (#20670) 2024-07-03 10:02:35 +01:00
Jamie Howard
6f2b4bfee0
feat(content-manager): warn when publishing an entry with draft relations (#20610)
* feat(content-manager): warn when publishing an entry with draft relations

* feat(content-manager): warn about draft relations when directly publishing new entry

* feat(content-manager): improve relation counting logic and add e2e test

* fix: clean up

* fix(content-manager): separate server and local relation logic

* chore(content-manager): wip e2e test covering dynamic zones

* chore(content-manager): remove loading dependency from effect

* chore: remove onlys

* chore: re organise tests

* fix: clean up
2024-06-26 13:41:12 +01:00
Marc Roig
099cbbec8e
Merge branch 'develop' into v5/main (#20566)
* Merge branch 'develop' into v5/main

* fix: missing dependency

* fix: yarn lock

* fix: prettier

* fix(cloud-cli): update types and structure for v5 (#20567)

* chore: skip cloud deployment until ready

* fix: webhook tests

* chore: revert schema changes

* fix: versions

---------

Co-authored-by: Nathan Pichon <nathan.pichon@strapi.io>
2024-06-21 13:38:56 +02:00
Alexandre Bodin
3aee925501 fix: several media lib ui issues
fix: using open prop does not clear any state and create a lot of bugs

fix: crop
2024-06-20 17:27:42 +02:00
Jean-Sébastien Herbaux
5285f8db42
Fix Duplicate Rows on Deep Sorting (#20543) 2024-06-20 14:46:31 +02:00
Jamie Howard
92fb9e9b23
Component unique fields (#20427)
* feat: wip component unique fields

* feat: wip component unique fields e2e test

* feat: repeatable component unique fields e2e test

* chore: update contributor docs

* chore: update types

* feat: e2e for repeatables

* chore: pr feedback

* chore: types

* chore(core): clean up entity validator unt tests

* Fix/nested-form-errors (#20496)

* fix(core): only highlight the relevant repeated values in components

* chore(core): set up component context for dynamic zones
2024-06-18 14:55:34 +01:00
Ben Irvin
8d90d8866a
test(e2e): fix releases-page and listview (#20507) 2024-06-17 12:50:43 +02:00
Fernando Chávez
5b211b3891
chore(content-releases): releases migration to v5 (#20259)
* chore: migrate bulk publish & unpublish to v5

* chore: change findLocales type to accept arrays

* chore: fix lint error

* chore: migrate bulkDelete to v5 (#20161)

* chore: migrate bulkDelete to v5

* chore: change findLocales type to accept strings array

* fix: docs prettier styles

* chore: remove console.log

* enhancement: migrate countManyDraftRelations to v5

* chore(content-releases): v5 migration

* chore(content-releases): remove CMReleasesContainer

* fix(content-releases): singleType works with v5 changes and e2e tests enabled

* fix(content-releases): apply josh & marc comments

* apply comments

* fix(content-releases): tests

* fix(content-releases): create custom populate object for each content type to handle relations

* fix(content-releases): build problem

* fix(content-releases): editing lifecycles

* fix(content-releases): details view table columns

* feat: releases settings (#20354)

* feat: releases settings

* feat: test nulling default timezone

* chore: refactor tests

* fix: remove async from describe

* chore: OneOf type for response

* chore: move OneOf utility to types package

---------

Co-authored-by: Fernando Chavez <fernando.chavez@strapi.io>

* feat: content releases settings permissions (#20357)

* feat: releases settings

* feat: test nulling default timezone

* chore: refactor tests

* fix: remove async from describe

* feat: content releases settings permissions

* chore: test for unauthorized role

---------

Co-authored-by: Fernando Chavez <fernando.chavez@strapi.io>

* fix(content-releases): run settings api tests only on ee edition

* fix(content-releases): apply mark comments

* fix(content-releases): remove releases box when there are no releases related to the entry

* fix(content-releases): relation between actions and documents (#20424)

* fix(content-releases): refactor relation with entries

* fix(content-releases): refactor relation with entries

* fix(content-releases): lint & unit tests errors

* fix(content-releases): add migration for releases actions coming from v4

* fix(content-releases): apply multiple suggestions

* fix(content-releases): new test data for e2e tests

* fix(content-releases): fix test data

* fix(content-releases): handle edge cases

* fix(content-releases): apply marc suggestions

* fix(content-releases): add modified status on validation column

* fix(content-releases): fix releases menu button

* fix(content-releases): use documents middleware instead of db lifecycles

* fix(content-releases): invalidate releases tags on some content manager queries

* fix(content-releases): using contentType utils and make afterDeleteMany lifecycle async

* fix(content-releases): ui fixs

* fix(content-releases): removing not needed axios from releases plugin

* fix(content-releases): invalidate tags on release service

* fix(content-releases): fix dependencies

* feat(release-settings): remove navbar link release purchase page in CE (#20498)

---------

Co-authored-by: Marc Roig <marc.roig.campos@strapi.io>
Co-authored-by: Simone <startae14@gmail.com>
2024-06-13 11:12:38 +02:00
Rémi de Juvigny
d739cd3dce
feat: add language selector to the blocks code editor (#20469)
* feat: display code language selector in blocks

* chore: rename syntax to language

* chore: use slate for state

* chore: add blocks e2e test

* fix: unit test

* chore: move language list to constants file

* fix: unused import
2024-06-11 06:05:01 -04:00
markkaylor
395a47681f
chore: test e2e history version can be restored (#20401)
* chore: test e2e history version can be restored

* fix: use save and wait for save alerts with findAndClose

* fix: add missing await

---------

Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>
2024-06-11 05:35:34 -04:00
Ben Irvin
df8bac0784
test: fix some broken e2e tests (#20485) 2024-06-11 11:18:50 +02:00
markkaylor
d3775ccc16
Merge pull request #20458 from strapi/chore/merge-develop-to-v5-main
chore: merge develop into v5/main
2024-06-07 17:29:48 +02:00
Mark Kaylor
896e24a2ea fix: skip ctb tests 2024-06-07 16:20:11 +02:00
Mark Kaylor
4293686486 fix: broken e2e tests 2024-06-07 11:09:15 +02:00
Alexandre Bodin
6c6d15ada7 chore: update tests 2024-06-06 17:05:20 +02:00
Alexandre Bodin
799c526386 enhancement: rework cli UX 2024-06-06 17:04:38 +02:00
Mark Kaylor
94657d7e77 Merge branch 'develop' of github.com:strapi/strapi into chore/merge-develop-to-v5-main 2024-06-06 17:03:30 +02:00
Jean-Sébastien Herbaux
adb9db5660
Fix: Query Validation in Files' Admin API (#20389)
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
2024-06-05 15:47:11 +02:00
Rémi de Juvigny
dd3311938a
fix: prevent duplicate history versions on publish (#20415)
* fix: prevent duplicate history versions on publish

* fix: build failing

* chore: fix e2e tests
2024-06-04 08:28:29 -04:00
Ben Irvin
b87c442c30
test: fix ctb edit collection type (#20426) 2024-06-04 10:02:31 +02:00
Fernando Chavez
8f5f6b58d5 chore(content-releases: skip api tests until releases is migrated to v5 2024-05-31 14:53:19 +02:00
Convly
33413bf56c fix: style 2024-05-30 13:34:00 +02:00
Convly
51ac889697 Merge branch 'v5/main' of github.com:strapi/strapi into v5/main 2024-05-30 13:12:39 +02:00