-
-
Notifications
You must be signed in to change notification settings - Fork 135
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: Add workspace Sync button #3665
Conversation
da8091f
to
9862564
Compare
I replaced the custom Icons with default Also, the dialog looks a bit different now. |
I also taking care of the end to end tests. |
Is it OK that I additionally mark the workspace as read only, so that users cannot edit content when the workspace is falling in a conflicting state? It makes no sense to be able to edit content when it cannot be used anyway. |
/** | ||
* Rebase the user workspace | ||
*/ | ||
const rebaseWorkspace = (name: string) => createAction(actionTypes.REBASE_WORKSPACE, name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there no reducer needed for REBASE_WORKSPACE? i guess because its handled via saga?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good so far and i also like the icon and gui ❤️
But i noticed some things while testing:
- if changes were made to the currently viewed page and a rebase is excecuted the document must be reloaded (and maybe also the page tree generally?)
- when rebasing there are two spinners which seems odd?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't really judge on the ReactJS parts though and I didn't get around testing this yet but everything that I understand looks really neat and great! :)
} | ||
|
||
$success = new Success(); | ||
$success->setMessage(sprintf('Successfully synced User workspace')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that something that needs to be localized?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed will take care later!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be that those messages are not a flashmessage but just show up in the console as debug info in which case translation is irrelevant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably then also localize all of the other $success->setMessage calls in the Controller to be consistent
@mhsdesign the spinner is a known issue but as it reacts on the same states we would need a new state then for the rebase in process 🤷♂️ |
Replaces custom SVG icons with font=awesome icons.
When the workspace has conflicts that cannot be resolved, it does not make sense to be able to edit the content. Therefore, we mark the workspace as read only in this case.
bc5ae1d
to
5c590c3
Compare
@bwaidelich @mhsdesign Hope that I could fulfil your wishes :), we have now translator labels and an extra remote state and therefore also a reducer, so now the indicator is just for the rebase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me by reading! Thank you @pKallert for taking care!
This will add a rebase button to the UI for rebasing the personal workspace of a user
What I did
I added a button to the Neos UI that shows up if the personal workspace of a user is outdated or in error state.
How I did it
Neos UI when personal workspace is outdated:
Clicking on the button shows popup:
Clicking on "Synchronize now" will rebase the workspace
Neos UI when personal workspace is outdated and in error mode:
Clicking on the button shows popup:
Related: #3803