Skip to content

feat(Sylius): Move a directory#118

Open
loic425 wants to merge 2 commits into
jolicode:mainfrom
loic425:feat/move-directory
Open

feat(Sylius): Move a directory#118
loic425 wants to merge 2 commits into
jolicode:mainfrom
loic425:feat/move-directory

Conversation

@loic425
Copy link
Copy Markdown
Contributor

@loic425 loic425 commented May 13, 2026

move_folder.mov

@loic425 loic425 marked this pull request as draft May 13, 2026 15:12
@loic425 loic425 force-pushed the feat/move-directory branch from 9f60f1f to 90d7fbc Compare May 22, 2026 08:02
@loic425 loic425 marked this pull request as ready for review May 22, 2026 08:58
@damienalexandre damienalexandre requested a review from Copilot May 26, 2026 13:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support in the Sylius admin media explorer to move a directory via the existing folder selector modal, including a new controller endpoint and UI action, plus translations and a functional test.

Changes:

  • Add moveDirectory() admin endpoint (POST) that moves a folder and redirects similarly to rename.
  • Add Sylius admin UI pieces (grid action + modal via twig hooks) to select a target folder and submit the move.
  • Add EN/FR translations and a new functional test covering moving a directory.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/Bridge/Sylius/Admin/Controller/MediaAdminControllerTest.php Adds functional test for moving a directory (has issues to fix).
src/Bridge/Sylius/translations/JoliMediaSyliusBundle.fr.yaml Adds labels/messages for “move directory”.
src/Bridge/Sylius/translations/JoliMediaSyliusBundle.en.yaml Adds labels/messages for “move directory”.
src/Bridge/Sylius/templates/admin/shared/helper/move_directory_modal.html.twig Introduces shared modal + hidden move form for directory moves.
src/Bridge/Sylius/templates/admin/media/index/modal/move_directory_modal.html.twig Wires the shared modal into the media index hook context.
src/Bridge/Sylius/templates/admin/media/grid/action/rename_directory.html.twig Refactors rename action to use the shared button helper with tooltip.
src/Bridge/Sylius/templates/admin/media/grid/action/move_directory.html.twig Adds new grid action button to trigger directory move flow.
src/Bridge/Sylius/templates/admin/media/grid/action/delete_directory.html.twig Switches delete directory action to icon-only.
src/Bridge/Sylius/templates/admin/media/grid/action/create_directory.html.twig Refactors create directory action to use the shared button helper with tooltip.
src/Bridge/Sylius/src/Admin/Grid/MediaGrid.php Registers the new move_directory grid action.
src/Bridge/Sylius/src/Admin/Controller/MediaAdminController.php Adds /move-directory route and move handling logic.
src/Bridge/Sylius/config/app/twig_hooks/media/index.php Injects the move-directory modal into the media index hook.
src/Bridge/src/Twig/JoliMediaAdminExtension.php Adds a Twig filter used by the move-directory action template.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/Bridge/Sylius/Admin/Controller/MediaAdminControllerTest.php Outdated
Comment thread tests/Bridge/Sylius/Admin/Controller/MediaAdminControllerTest.php Outdated
@loic425 loic425 force-pushed the feat/move-directory branch from dc55197 to 57b6bcd Compare May 28, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants