335 Commits

Author SHA1 Message Date
Jean-Sébastien Herbaux
0affac04b6
docs: add strapi/permissions documentation (#23091) 2025-03-12 15:28:24 +01:00
markkaylor
24165c9d5c
chore: document the permission checker service (#22922) 2025-02-24 11:42:38 +01:00
markkaylor
2a1c7a281f
fix: flaky tests (#22829) 2025-02-13 14:35:38 +01:00
Jamie Howard
901e70c3a9
fix: note md format (#22859) 2025-02-12 13:15:46 +00:00
Alexandre Bodin
92055a7fb1 chore: use rollup
chore: fetch template only if name matches name convention

chore: linting

chore: fix tests

chore: fix npm scripts

test: try to fix test
2025-01-23 16:28:23 +01:00
markkaylor
5d0cd5a1a7
chore(docs): document traverseEntity util (#22573) 2025-01-07 19:17:11 +01:00
markkaylor
4119cc523a
fix(e2e): update data import and export scripts (#22071) 2024-11-12 18:04:44 +01:00
Ziyi
27b21b01ea
doc: add diagrams and explanations for DTS contributor doc (#22017) 2024-11-07 12:52:32 +01: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
ab23a35785
fix: remove entity service decorator (#21152)
* fix: remove entity service decorator

* fix: unused dependency
2024-09-05 12:07:25 +02:00
Alexandre Bodin
6d27139261 chore: update e2e test templates 2024-08-27 10:06:49 +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
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
Simone
22a1ad60c2
Replace lock icon with lightning icon in the Settings and Navbar links (#20486)
* feat: replace the lock icon with the new lightning icon

* feat: replace toBuy with licenseOnly
2024-06-12 09:34:18 +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
Simone
8b56147542
Replace lock icon with lightning icon in the Settings and Navbar links (#20413)
* feat(navlinks): replace lock icon with lightning icon

* Feat(navLinks): revert lockIcon property name

* feat(navlinks): fix badge icon style

* feat(navlinks): add an explicit timeout to pass e2e tests

* feat(navlinks): skip the e2e tests failing in the CI

* feat(navlinks): remove attempts to fix the e2e tests faiing
2024-06-05 17:28:39 +02:00
Ben Irvin
04c4983e3d
chore: replace plugin cli with external strapi/sdk-plugin package 2024-05-28 08:24:20 +02:00
Simone
0c9f2e7cee
fix(chore): replace use-context-selector context with React Context (#20287)
* fix(chore): replace use-context-selector context with React Context

* fix(chore): remove the selector

* fix(chore): remove use-context-selector

* fix(chore): fix prettier issue
2024-05-21 04:37:59 -04:00
Josh
5ff7024fc8
chore: update DS to 2.0.0-beta.4 (#20301) 2024-05-20 10:42:44 +01:00
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
Jean-Sébastien Herbaux
672727c8cf
docs(typescript): type system cheat sheet 2024-04-26 14:46:52 +02:00
Jean-Sébastien Herbaux
01bf5cfbe4
docs: update code formatting and minor text adjustments in type system documentation (#20186) 2024-04-23 18:19:37 +02:00
Jean-Sébastien Herbaux
2d8197cd02
docs: contributor guide for type system concepts (#20120)
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
Co-authored-by: Hannah Paine <151527179+hanpaine@users.noreply.github.com>
2024-04-19 14:33:41 +02:00
Marc Roig
01a203b446
feat: move rw to plugin (#19937)
* chore: initiate moving CM to own package

* chore: refactor to handle routes

* chore: init review-workflows-package

* chore: fix build

* chore: refactor review-workflows fe

* chore: fix unit suite

* feat: move rw to plugin

* fix: build

* fix: start up

* chore: clean things up

* fix: peer dependencies

* chore(wip): refactor rw fe

* chore: re-add admin ui

* chore: fix tests & linter

* chore: re-implement drag layer

* fix: type

* feat: review-workflow middlewares

* chore: send params to CM endpoints

* fix: use layout options as well, let that have the final say, just incase

* feat: use doc id and locale for entity assignee and stage

* fix: api tests

* fix: cm updates when we update fields

* chore: cleanup edit-view e2e tests

* fix: build

* fix: useDocumentLayout for RW options

* test: fix fe tests

* fix: ts

* test(e2e): add review-workflow e2e tests

* chore: fix bad import for cli tests

* chore: delete old e2e data

* chore: import EVERYTHING for DTS

* chore: update dataset

* fix: e2e script

* fix: stage permissions

* chore: remove duplicate settings menu link

* fix: workflow middleware

* chore: change permission

* test(e2e): fix RW tests

* chore: ignore dynamic attributes in DTS

Co-Authored-By: Jean-Sébastien Herbaux <25851739+Convly@users.noreply.github.com>

* chore: make settings rw e2e run on EE only

* test(e2e): fix them all pls

* fix: admin stage transition uid name

* chore: fix firefox e2e ce tests

---------

Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
Co-authored-by: Jean-Sébastien Herbaux <25851739+Convly@users.noreply.github.com>
2024-04-12 10:58:38 +02:00
Ben Irvin
25684038b9
chore: run prettier on docs 2024-04-11 16:14:22 +02:00
Jean-Sébastien Herbaux
2c81396eda
docs: contributor guide - philosophy (#20075) 2024-04-11 15:32:22 +02:00
Josh
f31eabd7d2
feat(admin): rbac middleware (#19949)
* feat: rbac middleware

* chore: make the entire function curried
2024-04-08 16:31:07 +01:00
Josh
df42d2ac71 Merge branch 'v5/main' of github.com:strapi/strapi into v5/main 2024-04-08 15:22:55 +01:00
Josh
e188aac623 Merge branch 'develop' into v5/main 2024-04-08 15:21:08 +01:00
Jamie Howard
16983e52f4
chore(tests): allow unknown args in e2e (#20026)
* chore(tests): allow unknown args in e2e

* chore(tests): revert and specify debug as flag

* chore: clean up

* fix: pr feedback

* chore: remove manual debug flag and document new playwright debugging process

* chore: clean up
2024-04-08 15:18:10 +01:00
Ben Irvin
5ab818b8ee
test: add e2e tests for CTB restarts from file changes 2024-04-04 18:55:24 +02:00
Alexandre Bodin
55ae34e5dc chore: introduce providers to simplify main class 2024-04-03 14:24:15 +02:00
Alexandre Bodin
eb61511884 chore: use strapi.service instead of strapi.admin.services 2024-04-03 14:24:15 +02:00
Ben Irvin
7b669622a6
chore: move cli-tests to tests/cli 2024-04-03 11:56:00 +02:00
Ben Irvin
2ef71bdf4c Merge branch 'develop' into v5/main 2024-04-02 16:25:24 +02:00
Josh
660b779c4c Merge branch 'develop' into v5/main 2024-04-02 10:11:20 +01:00
Ben Irvin
48f5eeadaf
docs: upgrade to docusaurus 3.1.1 2024-03-29 18:02:40 +01:00
Ben Irvin
b003dee48e
chore: upgrade prettier to 3.2.5 2024-03-29 14:39:52 +01:00
Alexandre Bodin
8399dcd71b chore: refactor api registry 2024-03-25 21:38:17 +01:00
Josh
e11b6f2e96
chore(helper-plugin)!: move RBAC / remove auth / remove usePersistentState (#19847)
* chore(helper-plugin)!: move useRBAC

* chore: get tests working

* chore!: remove auth

* chore!: remove usePersistentState

* fix: refactor building admin package so it shares modules with different entries

* fix: session vs local
2024-03-20 11:39:59 +00:00
Simone
e9eabddd69
chore(helper-plugin)!: move getFetchClient and useFetchClient (#19840)
* chore(helper-plugin)!: move useFetchClient and getFetchClient to the admin

* chore(helper-plugin)!: fix prettier errors

* chore(helper-plugin)!: remove useless functions
2024-03-19 15:37:20 +00:00
Josh
b17a180f13
chore!(helper-plugin): remove useLockScroll / useClipboard / useFocusWhenNavigate / useQuery / useFocusInputField (#19835)
* chore!: remove useLockScroll & useClipboard

* chore!: remove useFocusWhenNavigate

* chore!: remove useQuery

* chore!: remove useFocusInputField

* chore!: move useQueryParams

* chore: fix tests

* chore: update copy

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

* chore: pretty

---------

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
2024-03-19 09:56:07 +00:00
Simone
2b10610286
chore(helper-plugin)!: move getPrefixedId, useAPIErrorHandler, normalizeAPIError and getAPIInnerErrors (#19823) 2024-03-18 15:43:19 +00:00
Josh
82aa22ff29
chore!: remove CheckPermissions component (#19793) 2024-03-18 08:17:42 +00:00
Josh
7dc4206d08 Merge branch 'develop' into v5/main 2024-03-15 16:11:49 +00:00
Alexandre Bodin
a95285578b chore: database enhancements 2024-03-13 22:13:40 +01:00
Alexandre Bodin
5ffb3c7100 chore: deprecate entity-service and delegate to document service 2024-03-12 21:02:33 +01:00
Fernando Chavez
6a9b4d7de8 Merge branch 'develop' of github.com:strapi/strapi into feat/scheduling-with-multiple-instances 2024-03-12 10:21:58 +01:00
Ben Irvin
ab2af1e539
fix(core): use module uid for config namespace instead of dot notation 2024-03-11 12:28:46 +01:00
Alexandre Bodin
8d53207f8e chore: remove template configuration from utils 2024-03-09 13:08:41 +01:00