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

TASK: Move node creation dialog stuff to the Neos.Neos.Ui #4630

Merged
merged 5 commits into from
Mar 15, 2024

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Oct 20, 2023

Will be handled in the ui neos/neos-ui#3519

I thought a lot about where the NodeCreation handlers should reside. After discussion this matter with a few people and also extensively with Wilhelm we are sure they should stay in the Neos.Ui. Thats why we move the handling over there.

All the node creation stuff will be moved to the neos ui, even parts of the node type post processors:

Neos.Neos/Classes/NodeTypePostprocessor/CreationDialogPostprocessor.php

  • -> only contained showInCreationDialog: true logic, moved fully to ui
  • -> \Neos\Neos\Ui\Infrastructure\ContentRepository\CreationDialog\CreationDialogNodeTypePostprocessor
    Neos.Neos/Classes/NodeTypePostprocessor/DefaultPropertyEditorPostprocessor.php
  • -> contained editor mapping for the creationDialog, this part was incorporated into the CreationDialogNodeTypePostprocessor
  • -> class still exists and is used for the "normal" properties but nothing inside of ui.creationDialog

Declarations and configurations in the node types have also been migrated.

Upgrade instructions

Review instructions

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

@mhsdesign mhsdesign marked this pull request as draft February 2, 2024 08:37
@mhsdesign mhsdesign marked this pull request as ready for review February 17, 2024 14:34
@mhsdesign mhsdesign force-pushed the task/removeDeclarationOfUiNodeCreationHandler branch from 5d6d737 to 4ef534b Compare February 17, 2024 14:35
Copy link
Contributor

@grebaldi grebaldi left a comment

Choose a reason for hiding this comment

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

Oh, yes :D 👍

@mhsdesign mhsdesign force-pushed the task/removeDeclarationOfUiNodeCreationHandler branch from 4ef534b to 2341cfe Compare February 28, 2024 21:25
NodeType configuration, which resides in `ui.creationDialog` is part of the Neos.Neos.Ui
Copy link
Member

@kitsunet kitsunet left a comment

Choose a reason for hiding this comment

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

Not merging so the UI change comes in at the same time.

…sor` to Neos.Ui

There it will reside in the `CreationDialogPostprocessor`

NodeType configuration, which resides in `ui.creationDialog` is part of the Neos.Neos.Ui
... as the Neos Ui class will be named something with `PromotedElementsCreationHandler`
The translation of the `creationDialog` will also be removed as we will not require it anymore in order to fix this bug:
neos/neos-ui#3509
@mhsdesign mhsdesign changed the title TASK: Remove declaration of ui nodeCreationHandlers TASK: Move node creation dialog stuff to the Neos.Neos.Ui Mar 1, 2024
@mhsdesign
Copy link
Member Author

Okay i was able to move all node creation stuff to the neos ui, even parts of the node type post processors:

Neos.Neos/Classes/NodeTypePostprocessor/CreationDialogPostprocessor.php

  • -> only contained showInCreationDialog: true logic, moved fully to ui
  • -> \Neos\Neos\Ui\Infrastructure\ContentRepository\CreationDialog\CreationDialogNodeTypePostprocessor
    Neos.Neos/Classes/NodeTypePostprocessor/DefaultPropertyEditorPostprocessor.php
  • -> contained editor mapping for the creationDialog, this part was incorporated into the CreationDialogNodeTypePostprocessor
  • -> class still exists and is used for the "normal" properties but nothing inside of ui.creationDialog

@mhsdesign mhsdesign merged commit 3095406 into 9.0 Mar 15, 2024
12 checks passed
@mhsdesign mhsdesign deleted the task/removeDeclarationOfUiNodeCreationHandler branch March 15, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants