33543 Commits

Author SHA1 Message Date
Christian Capeans
17a31c60a4 fix: avoid changing better-sqlite3 version 2024-01-08 15:21:54 +01:00
Christian Capeans
b25c854cc4 fix: remove unnecessary codemod 2024-01-08 13:27:52 +01:00
Christian Capeans
08147cbfb9 chore: add comments to codemod 2024-01-08 13:17:25 +01:00
Christian Capeans
2c499f3395 Merge branch 'v5/main' of github.com:strapi/strapi into chore/sqlite3-codemod 2024-01-08 12:31:08 +01:00
Ben Irvin
7d13a12c99
feat: Upgrade Tool
* feat: upgrade tool refactor for updated specs (v5)
* chore: format code (prettier)
* chore: remove debug comments
* feat: upgrade the strapi dependencies in project's package.json
* feat: install dependencies during the upgrade process
* chore: fix lint issue
* chore: rephrase requirement sentence's sentiment
* feat: add a --yes option for the upgrade CLI
* enh: make properties readonly to avoid mutations
* chore: adding better logs to the upgrade CLI
* chore: remove unused import
* feat: add minor and patch commands
* fix: use major and minor instead of premajor and preminor
* fix: re-add type casting
* fix: make major requirements required
* chore: revert sentiment update on GIT_CLEAN requirement
* fix: make promisify working by mocking the entire file-system
* fix: yarn.lock update
* feat: Select and run codemods only (#19083)
* chore: add unit tests for upgrader tasks
* fix: rename tests
* chore: Update packages/utils/upgrade/src/tasks/__tests__/upgrade.test.ts
* chore: Add unit tests for upgrade tool (#19056)
* chore: move example codemods (#19156)
* chore: fix yarn.lock
* fix: sync glob versions
* chore: add comment
* chore: update docs

---------

Co-authored-by: Convly <jean-sebastien.herbaux@epitech.eu>
Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
Co-authored-by: Christian <christian.capeans.perez@strapi.io>
Co-authored-by: Christian Capeans <christiancp100@gmail.com>
2024-01-08 11:26:27 +01:00
Ben Irvin
d5e752fe61
test: initialize CLI e2e testing framework
* chore: lint test scripts
* chore: clone playwright tests
* chore: clean up test runner
* feat: add jest test runner with concurrency
* chore: documentation
* chore: docs
* chore: fix prettier
* chore: lint
* chore: remove log
* chore: remove console.logs
* fix: ensure enough test apps are available
* chore: add log for yalc
* chore: fix logging
* chore: tests to todos
2024-01-08 11:23:26 +01:00
Ben Irvin
3a87f3cd99
enh: add types for project configuration files
Add types for project configuration files

Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
Co-authored-by: Christian Capeans <christiancp100@gmail.com>
Co-authored-by: Christian <christian.capeans.perez@strapi.io>
2024-01-05 10:36:54 +01:00
Christian Capeans
30eebd0bcc chore: create script for sqlite migration 2024-01-04 18:36:41 +01:00
Josh
4cd75b2523 Merge branch 'develop' into v5/main 2024-01-04 08:32:19 +00:00
Rémi de Juvigny
762abbf7f8
chore(sentry): convert to typescript (#19128)
* chore(sentry): convert to typescript

* qa fixes

* josh feedback
2024-01-03 13:51:22 +01: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
Jamie Howard
9fa86dd22b
(content-manager): types for permission checker service (#19068)
* feat(content-manager): WIP types for permission checker

* fix: PR feedback
2024-01-02 09:38:40 +00:00
Christian
cb6f5d7891
Merge pull request #19111 from strapi/chore/tasks-tests
Add tests for the upgrade task
2023-12-24 16:49:17 +01:00
Christian
69a0284191
chore: Add unit tests for upgrade tool (#19056) 2023-12-22 18:29:34 +01:00
Ben Irvin
bd1faa1a29
Update packages/utils/upgrade/src/tasks/__tests__/upgrade.test.ts 2023-12-22 18:26:32 +01:00
Christian Capeans
07a9db4884 fix: rename tests 2023-12-22 17:56:07 +01:00
Christian Capeans
c2b8acad48 chore: add unit tests for upgrader tasks 2023-12-22 16:54:26 +01:00
Christian
7de4744503
feat: Select and run codemods only (#19083) 2023-12-22 15:24:11 +01:00
Alexandre BODIN
4586650c2a
Merge pull request #19091 from strapi/v5/refactor-admin-cmds
chore: move commands from admin back to strapi/strapi
2023-12-20 22:14:07 +01:00
Alexandre Bodin
3124f474fe chore: move commands from admin back to strapi/strapi 2023-12-20 11:38:58 +01:00
Josh
bdcd983c3d
fix(tooling): use nx to build & clean (#19084)
* remove pre-publish scripts

* fix: use nx to clean & build
2023-12-19 13:21:33 +00:00
Jamie Howard
b5711d6f61
[Content manager] Refactor useContentManagerInitData to remove ModelsContext (#19042)
* feat(admin): refactor useContentManagerInitData and remove ModelsContext

* chore(content-manager): cleanup

* fix(admin): restore the redux store

* fix(admin): restore the redux store GET_INIT_DATA

* chore(admin): reintroduce redux breaking changes for v5

* fix(admin): test snapshot
2023-12-19 09:44:29 +00:00
Josh
f38a1037bd
feat(strapi): add experimental plugin:verify command (#19041) 2023-12-18 09:37:23 +00:00
Arshia
aa7dc3d222
fix(content-manager): search relations with contains not startsWith (#19043)
* Improved and fixed relational input field search.

* refactor frontend tests for improved RelationInput and userRelation functionality
2023-12-15 16:00:51 +00:00
Jean-Sébastien Herbaux
9fbf22643f
Merge pull request #19053 from strapi/upgrade-tool/chores 2023-12-15 15:22:57 +01:00
Ben Irvin
ce5ef260b7
chore: lint test scripts (#19057) 2023-12-14 16:15:21 +01:00
Convly
dedf0def91 fix: yarn.lock update 2023-12-14 11:57:08 +01:00
Convly
1f39b5b904 fix: make promisify working by mocking the entire file-system 2023-12-14 11:54:11 +01:00
Convly
f646f9ceda chore: revert sentiment update on GIT_CLEAN requirement 2023-12-14 10:52:09 +01:00
Convly
a17f4e8617 fix: make major requirements required 2023-12-14 10:29:30 +01:00
Convly
c56802ae6f Merge branch 'features/upgrade-tool' of github.com:strapi/strapi into upgrade-tool/chores 2023-12-14 10:26:11 +01:00
ELABBASSI Hicham
4e6961c7b8
Merge pull request #19020 from strapi/chore/convert-audit-logs-ee-pages
chore(admin): convert auditLogs page to TS
2023-12-14 09:56:47 +01:00
HichamELBSI
c95839be4f chore(admin): Fix PR feedback (round 2) 2023-12-14 09:43:28 +01:00
Alexandre BODIN
da439790ee
Merge pull request #19031 from strapi/v5/core-refactorings 2023-12-13 17:52:58 +01:00
Alexandre Bodin
be13751233 chore: update test script 2023-12-13 17:18:25 +01:00
Alexandre Bodin
4ad8ac0235 chore: return commands to decouple code 2023-12-13 13:15:18 +01:00
HichamELBSI
341ae4df62 chore(admin): Fix PR feedback (round 1) 2023-12-13 11:49:07 +01:00
HichamELBSI
24106a1c69 chore(admin): convert auditLogs page to TS 2023-12-13 11:49:05 +01:00
Josh
240feaeb04
refactor(admin): remove some contexts and use redux instead (#19040)
* refactor(admin): move to use slice over reducer

* refactor(admin): theme into redux

* refactor(admin): remove Admin context

* chore: move api tokens context to its edit view

* chore: move injection zones up to appropriate folders

we never use shared anyway.

* chore: move Configuration to single feature file

* refactor(admin): move language to redux

* chore: add tests for redux slice
2023-12-13 10:04:43 +00:00
Jamie Howard
0d8a6e7cd6
(content-manager): types for data mapper service (#18887) 2023-12-12 15:47: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
c8f63ff188
refactor(cm): remove collection-type form wrappers (#19036)
* refactor(cm): remove collection-type form wrappers

* fix: bad import in DeleteLink

* test(e2e): tweak url we expect to wait for
2023-12-12 14:22:47 +00:00
Bassel Kanso
d4fa995454
Merge pull request #19027 from strapi/upgrade-tool/minor-patch
Upgrade tool minor and patch commands
2023-12-12 15:53:37 +02:00
Josh
5582657cb6
chore(generator): add runtime dir to gitignore (#18978) 2023-12-12 12:52:29 +00:00
Bassel Kanso
fec3b08033 fix: re-add type casting 2023-12-12 13:27:02 +02:00
Bassel Kanso
315452778c fix: use major and minor instead of premajor and preminor 2023-12-12 13:24:58 +02:00
Alexandre Bodin
8bf56b0d72 chore(strapi/strapi): simplify code 2023-12-12 09:57:35 +01:00
Alexandre Bodin
495fe3fe78 chore(content-manager): update test and snapshot 2023-12-12 09:48:49 +01:00
Bassel Kanso
8a84ee15e6 feat: add minor and patch commands 2023-12-12 00:08:46 +02:00
Josh
d23325640d
chore(cm): convert list-view to TS (#19016)
* chore(cm): convert list-view to TS

* chore: fix broken tests

* chore: remove separate recursive paths and unify
2023-12-11 18:51:25 +00:00