Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: add feedback to switch to new document in tree on cut and copy #3918

Open
wants to merge 1 commit into
base: 8.3
Choose a base branch
from

Conversation

pKallert
Copy link
Contributor

@pKallert pKallert commented Feb 6, 2025

see #3917

What I did
When using cut/copy in the document tree, the user is not automatically redirected to the "new" page.

How I did it
To keep it consistent with all other operations in the content/document tree I added feedback in the operations that will lead to the user being on the new page

How to verify it
When using cut/copy/create in both the document and content tree, the user is always redirected to the "new" node.

@github-actions github-actions bot added Bug Label to mark the change as bugfix 8.4 labels Feb 6, 2025
@pKallert pKallert changed the title BUGFIX: add feedback to reload document tree on cut and copy BUGFIX: add feedback to switch to new document in tree on cut and copy Feb 6, 2025
@pKallert pKallert changed the base branch from 8.4 to 8.3 February 7, 2025 12:48
@github-actions github-actions bot added 8.3 and removed 8.4 labels Feb 7, 2025
@pKallert pKallert changed the base branch from 8.3 to 8.4 February 7, 2025 12:58
@github-actions github-actions bot added 8.4 and removed 8.3 labels Feb 7, 2025
@pKallert pKallert force-pushed the bugfix/redirect-copy-cut-in-document-tree branch from b9f9c08 to 1f3f32d Compare February 7, 2025 13:01
@pKallert pKallert changed the base branch from 8.4 to 8.3 February 7, 2025 13:01
@github-actions github-actions bot added 8.3 and removed 8.4 labels Feb 7, 2025
@@ -36,6 +36,7 @@ protected function finish(NodeInterface $node): void
$updateNodeInfo->setNode($node);
$updateNodeInfo->recursive();
$this->feedbackCollection->add($updateNodeInfo);
$this->addNodeCreatedFeedback($this->getSubject());
Copy link
Member

Choose a reason for hiding this comment

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

why do we need this line here? Rest looks understandable:)!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will select the new document as active, basically does the same as Redirect (from a UI behavior standpoint).
Fun fact: This is already included in Neos 9, but there the AbstractCopy does not exist anymore: https://github.com/neos/neos-ui/blob/9.0/Classes/Domain/Model/Changes/CopyBefore.php#L88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.3 Bug Label to mark the change as bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants