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

FEATURE: New workspace overview UX #5132

Open
wants to merge 139 commits into
base: 9.0
Choose a base branch
from

Conversation

Sebobo
Copy link
Member

@Sebobo Sebobo commented Jun 5, 2024

Resolves: #4255

A new HTMX based UI with improved usability for the workspace overview based on the package https://github.com/Sebobo/Shel.Neos.WorkspaceModule.

This change is the first milestone and contains the basic extraction of the module from the Neos.Neos package into a separate package and the rewrite of the templates to Fusion and the usage of HTMX.

Upgrade instructions:

If any part of the module was overwritten in a project, the change will break any of those adjustments.
But the module is now easier to adjust from the outside than before as it uses Fusion based rendering which can be extended by including additional Fusion paths via a Views.yaml.

Workspace disappears after changing visibility

This can happen for previously created workspaces or if the workspace was manipulated via CLI too.
For that case look into

./flow workspace:show

If it says "There are no role assignments" or if no "USER" has the "ROLE" set to "MANAGER", then assign a user this workspace to make it effectively working (and private) again:

./flow workspace:assignrole <workspace> <user name> manager --type user

@Sebobo Sebobo added the 9.0 label Jun 5, 2024
@Sebobo Sebobo requested a review from ahaeslich June 5, 2024 13:47
@Sebobo Sebobo force-pushed the feature/4255-new-workspace-management-ui branch from 04aaa45 to 8b34b1d Compare June 17, 2024 14:53
@Sebobo Sebobo force-pushed the feature/4255-new-workspace-management-ui branch from 8a7ea9f to 5f7e14b Compare June 27, 2024 11:58
@Sebobo Sebobo force-pushed the feature/4255-new-workspace-management-ui branch from ec3d275 to da2a0bc Compare July 5, 2024 15:21
@Sebobo Sebobo force-pushed the feature/4255-new-workspace-management-ui branch 2 times, most recently from 57a021d to 658a0e2 Compare July 18, 2024 19:33
@Sebobo Sebobo requested a review from bwaidelich August 1, 2024 18:11
@pKallert
Copy link
Contributor

Created PR for updating URL for new review in Neos UI: neos/neos-ui#3904

@mhsdesign
Copy link
Member

I extracted the obsolete policy yaml removals into

as i felt they were to big to include here and deserve some additional information.

They can be merged later.

…nged changes

This hack originally made in 4fe6b98 got lost due to parallel work and is herby reintroduced
Comment on lines +21 to +22
// todo fixme
@process.addQuery = ${value + '?node=' + document.document.documentNodeAddress}
Copy link
Member

Choose a reason for hiding this comment

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

will be fixed via #5419

mhsdesign and others added 9 commits January 6, 2025 12:14
Overhauls b830ee8 to use the translation helper to avoid duplicating code. This is done also in other places in php already.
Because of changes the base workspace will not be selectable
> You cannot change the base workspace of workspace with unpublished changes.

And thus also not part of the payload which crashes with a bad request (400):

> Required argument "baseWorkspace" is not set.

Instead, we make this parameter optional.

Additionally, we ensure that the base workspace is different before issuing any change.
…update was not sorted ASC by title

instead the order was slightly different ... neither ASC nor DESC.

to ensure we dont have to deal with that we remove the update response by just using `forward()` letting the index action handle everything correctly
Copy link
Member

@mhsdesign mhsdesign left a comment

Choose a reason for hiding this comment

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

Thanks to everyone who participated here or in all the discussions! Great to have this on the finish line!!!

I tested it out and fixed some bugs:

And also resolved the last todos or made a followup pr. The code is now polished and can be merged!! :)

@mhsdesign mhsdesign force-pushed the feature/4255-new-workspace-management-ui branch from 3fbdfe4 to c2a4e0e Compare January 8, 2025 16:56
…accessible

we do this by checking if a workspaces base workspace does not appear in the list of workspaces.

This is also true for the live workspace as its not part of the list so the

`entryWorkspace.baseWorkspaceName == 'live'` check is now obsolete but it shows better what we are trying to do here for the normal case :D

Also the dropdown of base workspaces must always show the current option even if it would not be re changeable in the current permission set from the current user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New workspace module
6 participants