1915 Commits

Author SHA1 Message Date
Fernando Chávez
1df99d479d
docs(content-releases): add missing endpoints to backend docs (#19302)
* docs(content-releases): add missing endpoints to backend docs

* Update docs/docs/docs/01-core/content-releases/01-backend.md

Co-authored-by: markkaylor <mark.kaylor@strapi.io>

* Update docs/docs/docs/01-core/content-releases/01-backend.md

Co-authored-by: markkaylor <mark.kaylor@strapi.io>

* Update docs/docs/docs/01-core/content-releases/01-backend.md

Co-authored-by: markkaylor <mark.kaylor@strapi.io>

* apply marks feedback

---------

Co-authored-by: markkaylor <mark.kaylor@strapi.io>
2024-01-30 09:24:06 +01:00
Josh
e1ede8c55a
feat(strapi): add experimental pluginlink command to CLI (#19143)
* feat(strapi): add plugin:link-watch command to CLI

* chore: skip assertion of strapi project if its the plugin:init command

* fix: add yalc

* fix: add yalc files/folders to ignore list to avoid restarting strapi when using

* chore: don't use run-action on plugin:init

* chore: add yarn dlx command to yarn suggestion
2024-01-11 16:00:54 +00:00
Josh
09b9d36b22 Merge branch 'main' into develop 2024-01-10 14:37:01 +00:00
Josh
22f3123e94
refactor(admin): add auth provider & move to use redux-toolkit-query (#19062)
* feat(admin): add Auth feature

* refactor: authentication to use redux-toolkit

* chore(admin): convert admin data-fetching to use redux-toolkit-query

* chore: add docs

* fix: default logo would not show on login page

* fix: app flashes on logout

* fix: logout should work across browsers
2024-01-02 17:01:58 +00:00
Josh
ddbb55f2eb Merge branch 'main' into releases/4.17.0 2024-01-02 13:41:57 +00:00
Josh
f38a1037bd
feat(strapi): add experimental plugin:verify command (#19041) 2023-12-18 09:37:23 +00:00
Madhuri Sandbhor
17801215c6
Feat(blocks): move blocks (#18852)
* feat: updated useDragAndDrop hook to enable DND for blocks where path is not a number but number[], wrapped renderElement with Dnd component to have ability to move blocks around in editor

* fix: useDragandDrop hook updated to accept number[] for moving heirarchy of nodes, cmd/ctrl + shift + up/down arrow to move blocks around using keyboard, set live text on moving blocks for accessibility

* fix: when node is dragged downwards inside list convert it to list-item

* fix: index type updated

* style: margin added to preview block as droppable area needs some height to drop the item

* refactor: updated context, code optimisation, added necessary comments

* docs: updated use-drag-and-drop hook doc

* fix: type NonSelectorBlock

* Revert "fix: type NonSelectorBlock"

This reverts commit c3cb3c15442ba0008c650cbe38e993b0aa44817c.

* fix: block value type

* fix: type of onMoveItem() in useKeyboardDragAndDrop

* fix: selection issue resolved, ondragstart styling updated, grab cursor added back, missing comments added

* update: VisuallyHidden with aria-hidden attr added

* fix: minor fix

* update: link block dropped from dnd, test cases updated

* fix: if list node is empty after dragging remove it, drag handle aligned at the start

* update: link is inline block so skip wrapping dnd component

* Update: comment

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

* fix: types updated, disabled state managed for drag item

* update: IconButton is used for drag handler, refered getAttributesToClear from utils

* update: on drop blocks are moved, updated useDragAndDrop hook and related changes, instead of blue line showing border box around drop target for now

* update: canDrag, canDrop options removed, as its not required for onDropItem()

* fix: dragging is enabled only on drag button

* fix: quote block padding and margin reduced

* update: useDragAndDrop hook doc

* update: useDragAndDrop hook doc with onDropItem usage

* update: drop placeholder added

* fix: missing condition check added

* update: useDragAndDrop hook doc

* update: useDragAndDrop and useKeyboardDragAndDrop hook converted to TS, styling changes related to list and quote

* fix: types updated for useDragAndDrop hook, tooltip disabled for drag button

* fix: mock event typecasted as its not possible to add all required props for type event

* fix: deleted useDragAndDrop js file

* fix: drag handle is made visible on hover, hide on selection change

* fix: history undo

* fix: dragging block into list-item, drop item at right position

* fix: placeholder margin adjusted for list items

* fix: cloned drag item extracted

* fix: dragging list-item out of block downward

* chore: refactor dnd hook to use generics (#18994)

* fix: required block types exported, manual id creation replaced with useId

* update: drag handle top margin added for few headings

* fix: extended useDropAndDropOptions callback types, comments updated

* fix: drag handle top margin added for all required blocks, selection bug fixed

* fix: reordering between different list-items

---------

Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2023-12-12 15:51:37 +01:00
Josh
46e6ffbb44
feat(strapi): add experimental plugin init command (#18970) 2023-12-11 09:53:59 +00:00
Fernando Chávez
35f56a0444
feat(core): add feature flags (#18871)
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2023-12-08 09:19:31 +01:00
Fernando Chávez
1cab7003f9
feat(content-releases): publish a release (#18973)
* feat(content-releases): publish a release

* feat(content-releases): publish is enabled if you have releases publish permissions

* chore(content-releases): Mark's feedback

* Update packages/core/content-releases/server/src/services/release.ts

Co-authored-by: markkaylor <mark.kaylor@strapi.io>

---------

Co-authored-by: markkaylor <mark.kaylor@strapi.io>
2023-12-07 09:35:57 +01:00
markkaylor
f803c8a5b6
feat(content-releases): add delete release action endpoint (#18943) 2023-12-05 11:00:29 +01:00
markkaylor
76f8b2fb15
feat(content-releases): add endpoint to update a release action (#18946) 2023-12-04 14:14:00 +01:00
Josh
eb7b88426d
fix(pack-up): ensure we pass the tsconfig file name, not a path to it (#18875)
* fix(pack-up): ensure we pass the tsconfig file name, not a path to it

fix(admin): annotate return type on createBuildContext

fix(admin): ensure shared is a the base folder not importing from server

chore(pack-up): PRINT MOREEEE

fix(ctb): export required type

chore: refactor tsconfigs

* chore: pr amends
2023-11-23 09:16:25 +00:00
Fernando Chávez
1efe5dcdd1
feature(content-releases): Add update release service/endpoint (#18829)
* feature(content-releases): Add update release service/endpoint

* chore(Content-releases): create update release contract

* chore(content-releases): Add right type to params id
2023-11-21 13:06:24 +01:00
markkaylor
30e8a6321d
feat(content-releases): add findOne endpoint (#18821) 2023-11-21 09:18:12 +01:00
Josh
a549feb253
chore: pretty codebase (#18835) 2023-11-17 14:48:05 +00:00
markkaylor
dda47a7a76
chore(docs): initialize contributor docs for content releases (#18777) 2023-11-16 15:22:02 +01:00
Josh
175b72af9d
fix(admin): admin build errors (#18764)
* fix(admin): import & pass user customisations for admin panel

* fix(admin): modules should be resolved with module paths not system paths

* fix(admin): ensure webpack config is a type of function before calling, warn otherwise

* fix: convert the pluginPath to a system path before trying to resolve relative

* chore: update documentation
2023-11-13 10:21:24 +00:00
Josh
116339ad86
refactor: admin build pipeline (#18539)
* chore(admin): refactor admin develop/build pipeline

chore: remove `webpackChunkName` comments

chore: reuse admin tsconfig where possible

chore: add .strapi to gitignore

chore(admin): pack-up

feat(admin): inject commands into strapi from admin for building

feat(admin): move watch command to admin

chore: keep backward compat API available

Update packages/core/admin/_internal/cli/index.ts

docs(admin): document the build & develop process and pipeline

test(admin): fix StrapiApp tests

chore: fix build

* Update skipped_tests.yml

* test(e2e): fix e2e setup

feat: add dependency installation

fix: mjs webpack resolution

* chore: fix server exports

* fix: typescript project type generation

* fix: development watch mode

* fix: connect to hot middleware – anywhere

* Update packages/core/admin/_internal/node/core/monorepo.ts

Co-authored-by: Marc Roig <marc12info@gmail.com>

* fix(admin): theme toggle type export

* chore: fixes

* chore: pr amends

Co-Authored-By: Ben Irvin <ben@innerdvations.com>

---------

Co-authored-by: Marc Roig <marc12info@gmail.com>
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-10-30 11:36:16 +00:00
Sora Morimoto
a8cb502824
chore(deps): update yarn to v4.0.0 (#18530)
* Update Yarn to v4.0.0

Signed-off-by: Sora Morimoto <sora@morimoto.io>

* `yarn format`

Signed-off-by: Sora Morimoto <sora@morimoto.io>

---------

Signed-off-by: Sora Morimoto <sora@morimoto.io>
2023-10-24 12:43:07 +01:00
Maxime Castres
dfc4d17eb4
feat(admin): add promoting EE features in CE projects by default (#18179)
* Add: promoting EE features in CE projects by default

* Add: pages

* Update: first review modifications

* Update: integrate locked features pages

* Update: rename pages + update links to the website

* Update: append config to default files

* Update: implement flags logic

* Update: implement promoteEnterpriseFeatures flag

* Update: revamp variable + add doc

* Update: add documentation

* Delete: ContentTypes.d.ts file
2023-10-23 17:20:59 +01:00
Josh
5978c13ec4
feat(pack-up): add the ability to pass plugins via the config (#18486)
* feat(pack-up): add the ability to pass plugins via the config

* refactor: make plugins a func or array
2023-10-18 12:01:17 +01:00
Josh
5d12a35806
feat(strapi): add plugin:watch command (#18462) 2023-10-18 11:23:59 +01:00
Ben Irvin
79f24e9f2b update pack-up node versions 2023-10-17 16:38:34 +02:00
Josh
e5078d5f4d
feat: add pack-up package (#18233)
* feat(pack-up): add build command (#18058)

* chore: lint order of imports

* feat(pack-up): add watch command (#18121)

* feat: add watch command

feat: add ts watch task

* chore: pr amends

* fix: promptUser linter

* chore: remove \n with os.EOL

* feat(pack-up): add init command (#18133)

* feat(pack-up): add build command (#18058)

* feat(pack-up): add watch command (#18121)

* feat: add watch command

feat: add ts watch task

* chore: pr amends

* fix: promptUser linter

* chore: remove \n with os.EOL

* feat: add init command

fix: build

feat: add default template and tests

* chore: pr amends

* Update packages/utils/pack-up/tests/console.ts

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

* chore: re-add mock

* chore: fix tsconfig

* chore: fix inquirer types due to rxjs inclusion

* Update packages/utils/pack-up/src/node/templates/internal/files/typescript.ts

* chore: fix inquirer types

---------

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

* feat(pack-up): add check command (#18183)

* feat: add check command

* chore: reintroduce CLI tests

* fix: add build command to `prepublishOnly`

* docs(pack-up): add readme and contributor docs (#18237)

* chore: update README

* docs(pack-up): add contributor documentation

* chore: update overview doc to be clearer

* fix(pack-up): init command (#18245)

* fix: init command bugs

* fix: node tests

* fix: template exports ordering & file extensions

* test(upload): double timeout on UploadAssetDialog test

---------

Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-10-05 09:38:29 +01:00
Jamie Howard
cca4181f28 chore(docs): RBAC for stages in content manager docs 2023-09-14 09:10:12 +02:00
Jamie Howard
33d090f98d chore(docs): extend contributor docs by RBAC for stages backend 2023-09-14 09:10:12 +02:00
Gustav Hansen
f385aa6c8c chore(docs): extend contributor docs by RBAC for stages 2023-09-14 09:10:12 +02:00
Gustav Hansen
0064623cff
Merge branch 'main' into feature/rw-stage-rbac 2023-09-06 08:21:02 +02:00
Josh
9756cafa00
feat(experimental): add plugin:build command (#17747)
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
2023-09-05 10:25:14 +01:00
Gustav Hansen
b6b5cfc8a4 Merge branch 'main' into feature/rw-stage-rbac 2023-08-30 12:46:54 +02:00
Marc Roig
84c0b9f710
Merge pull request #17699 from strapi/feature/stage-rbac-partial-permission-updates 2023-08-30 09:41:01 +02:00
Ben Irvin
716e78bbc6
Merge pull request #17639 from strapi/fix/sanitization-throw-instead-of-filter 2023-08-25 14:22:08 +02:00
Josh
d2491f8cdf
docs: add fe coding guidelines (#17739) 2023-08-25 09:33:49 +01:00
Ben Irvin
aedf994e20
Merge branch 'main' into fix/sanitization-throw-instead-of-filter 2023-08-24 14:35:58 +02:00
Alexandre Bodin
60f5155c4f Merge branch 'main' into releases/4.12.6 2023-08-23 15:55:24 +02:00
Marc-Roig
71ab6118cf
doc: document action parameters 2023-08-22 16:30:58 +02:00
Gustav Hansen
4341b3db4c Merge branch 'main' into feature/rw-stage-rbac 2023-08-22 13:46:35 +02:00
Josh
dc02df8b42
feat: add auto-focussing via URLSearchParam to content-manager (#17613)
Co-authored-by: Gustav Hansen <gustav.hansen@strapi.io>
2023-08-22 12:18:06 +01:00
Simone
5785e8f4f0
Feature/nps (#17570)
Co-authored-by: markkaylor <mark.kaylor@strapi.io>
Co-authored-by: Gustav Hansen <gustav.hansen@strapi.io>
Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
Co-authored-by: Fernando Chavez <fernando.chavez@strapi.io>
Co-authored-by: Madhuri Sandbhor <madhurisandbhor@gmail.com>
2023-08-22 12:59:43 +02:00
Ben Irvin
9aa41eff5e add docs and fix broken require 2023-08-11 16:05:11 +02:00
Gustav Hansen
2bf2534aeb Chore: Consolidate role and permission data fetching hooks 2023-08-07 13:43:09 +02:00
Fernando Chávez
f426350b85
Docs: add audit logs to contributor docs (#17522)
* add audit logs to contributor docs

* improve audit logs docs with gustav's feedback

* add more context about audit logs provider
2023-08-04 14:35:34 +02:00
Ben Irvin
b5d94c2ff2 fix some spelling errors and standardiZe regional usages 2023-07-28 11:12:04 +02:00
Marc-Roig
44b62b3870
Merge branch 'main' into releases/4.12.0 2023-07-27 16:59:14 +02:00
Josh
f45146aa97 chore: pr amends
Update docs/docs/guides/e2e/02-data-transfer.md

Update docs/docs/guides/e2e/01-app-template.md

Update docs/docs/guides/e2e/00-setup.md

Update docs/docs/guides/e2e/00-setup.md

Update docs/docs/guides/e2e/02-data-transfer.md

Update test/scripts/run-e2e-tests.js

Co-Authored-By: Ben Irvin <ben@innerdvations.com>
2023-07-25 14:20:49 +01:00
Alexandre Bodin
4a615f2db4 test: add e2e tooling
Remove old cypress related files

Update config and reorg tests

Run test app before running playwright tests

feat: add beginning of authentication test

feat: add app template with database dumping ability

chore: pr amends

Run test app before running playwright tests

feat: add beginning of authentication test

feat: add app template with database dumping ability

chore: pr amends

init deits

fix: e2e test

chore: rename to e2e

chore: commit tar for data

Init playwright

Run test app before running playwright tests

feat: add beginning of authentication test

feat: add app template with database dumping ability

chore: pr amends

chore: remove unneeded workflow

fix: add private: true to the template so `test-apps` aren't published

docs: add docs

chore: add warning about DTS caveats

chore: tweak docs

docs(e2e): add correct route to api example for template

chore: fix package.json tests

chore: update from feature/DEITS

chore: updates from DTS

chore: update data-transfer

Update yarn.lock

fix: remove duplicate type

chore(e2e): set up folder structure

fix(e2e): avoid clearing 'admin_' DB tables through DTS or DB Dump

feat(e2e): DTS scripts and backup files

add route to change rate limit

fix wront appPath for API test in CI

no template by default when creating a test app

Fix typo double equal

fix template path for e2e tests

chore(e2e): fix broken signup spec

feat(e2e): basic logout test spec

Login e2e tests

globalSetup attempt

use withAdmin backup

cleanup

fix playwright config & rate limit test

remove example.spec.js

refactor and merge some login tests

Chore: Cleanup login and signup specs

feat(e2e): sign up password error cases

feat(e2e): add homepage expectation to signup spec

refactor(e2e)

refactor(e2e): signUp

refactor(e2e): use global login util for logout and logins specs

Init playwright

fix: remove duplicate type

chore: uncomment transfer route registering

Update yarn.lock

chore: update data-transfer

chore: updates from DTS

chore: update from feature/DEITS

chore: fix package.json tests

docs(e2e): add correct route to api example for template

chore: tweak docs

chore: add warning about DTS caveats

docs: add docs

fix: add private: true to the template so `test-apps` aren't published

chore: remove unneeded workflow

chore: pr amends

feat: add app template with database dumping ability

feat: add beginning of authentication test

Run test app before running playwright tests

Init playwright

chore: commit tar for data

chore: rename to e2e

fix: e2e test

init deits

chore: pr amends

feat: add app template with database dumping ability

feat: add beginning of authentication test

Run test app before running playwright tests

chore: pr amends

feat: add app template with database dumping ability

feat: add beginning of authentication test

Run test app before running playwright tests

Update config and reorg tests

Remove old cypress related files

chore(e2e): cleanup e2e dir

chore(docs): improve e2e testing documentation

chore(docs): PR feedback

chore: tweak action to run browsers in matrix & build packages

chore: fix tests based on merge

chore: shuffle e2e tests and add first conent-type

fix: tests

Make use of yarn linking for api & e2e tests

Chore: Fix running backend unit tests

Chore: Bring opts.run back

Chore: Update playwright

Chore: Update Playwright setup

fix: workflow

chore: fix path to package.json

chore: build ts projects before tests

chore: update e2e workflow

chore: add no-immutable

Use simpler transfer token to avoid misinterpretation

Remove console.log

Ensure that the custom transfer token exists in the e2e test app's database upon startup

Use the custom transfer token for transferring data to the e2e test app

Fix code analysis warning

Define and export a constant for the custom transfer token

Allow passing a custom access key for the transfer token service

chore: add test-apps to workspace

chore: update lockfile
Co-Authored-By: Josh <37798644+joshuaellis@users.noreply.github.com>
Co-Authored-By: Gustav Hansen <gu@stav.dev>
Co-Authored-By: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
Co-Authored-By: Jean-Sébastien Herbaux <25851739+Convly@users.noreply.github.com>
2023-07-25 14:20:49 +01:00
Gustav Hansen
3a0d905f2d Chore: Move user RBAC conditions out of useLicenseLimits 2023-07-19 11:58:39 +02:00
Gustav Hansen
72cc277165 Merge branch 'main' into feature/review-workflow-multiple-merge-17-07-23 2023-07-17 13:38:35 +02:00
Gustav Hansen
27ed22ba71
Merge pull request #17278 from strapi/feature/review-workflow-multiple-contrib-doc-backend
docs(review-workflows): update contrib doc with multiple workflows info
2023-07-12 09:36:11 +02:00