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: Workspace UI - Add second confirmation window for rebasing #5454

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

Conversation

pKallert
Copy link
Contributor

@pKallert pKallert commented Jan 29, 2025

As discussed in #5450 the "force rebase" journey is a little bit too harmless for dropping changes.

We discussed restricting the force rebase to editors but that was also not ideal since perhaps editors should not have to have admin permissions.

Changes in this PR:

  1. The popup looks more dangerous
  2. The conflicting changes are shown (just basic parsing, no details)
  3. A confirmation popup is shown

Bildschirmfoto 2025-01-29 um 10 45 59

Bildschirmfoto 2025-01-29 um 10 46 14

Bildschirmfoto 2025-01-29 um 11 20 08

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

@github-actions github-actions bot added the 9.0 label Jan 29, 2025
@pKallert pKallert changed the title Draft: FEATURE: Workspace UI - Add second confirmation window for rebasing FEATURE: Workspace UI - Add second confirmation window for rebasing Jan 29, 2025
@pKallert pKallert requested review from mhsdesign and Sebobo January 29, 2025 11:02
@mhsdesign
Copy link
Member

Thank you so much that was faaaaaast :D

And i think i found a solution for the (too technical) json blob:

image

you only see it when you fold it:

image

ill push my patch as well ok?

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.

:)

@kitsunet
Copy link
Member

I am going to say that nothing we do here will make this a useful message... node aggregate "bla-blörp-flupp-möp123" currently does not exist will not help any non neos dev.

@kitsunet
Copy link
Member

Btw. were does that text blurb come from, because "currently does not exist" implies that it might at another time, or if somehting else happens, but that is not the case?

@mhsdesign
Copy link
Member

currently does not exist

and friends come from the constraint checks - the wording currently comes from a time where the cr was more async and when creating a node and child node was not possible without blocking. But yeah nowadays misleading can be done nicer.

Copy link
Member

@Sebobo Sebobo left a comment

Choose a reason for hiding this comment

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

Thx for the change!

I added some suggestions and want to test it.


renderer = afx`
<Neos.Workspace.Ui:Component.Modal.Rebase
workspaceName={props.workspaceName}
workspaceTitle={props.workspaceTitle}
baseWorkspaceTitle={props.baseWorkspaceTitle}
conflictInformation={conflictInformation}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
conflictInformation={conflictInformation}
conflictInformation={props.conflictInformation}

Comment on lines +12 to +14
workspaceTitle={workspaceTitle}
conflictCount={conflictCount}
/>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
workspaceTitle={workspaceTitle}
conflictCount={conflictCount}
/>
workspaceTitle={props.workspaceTitle}
conflictCount={props.conflictCount}
/>

format = 'htmx'
arguments {
workspaceName = ${workspaceName}
force = true
conflictCount = ${Array.length(conflictInformation)}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
conflictCount = ${Array.length(conflictInformation)}
conflictCount = ${Array.length(props.conflictInformation)}

action = 'rebase'
format = 'htmx'
arguments {
workspaceName = ${workspaceName}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
workspaceName = ${workspaceName}
workspaceName = ${props.workspaceName}

workspaceTitle = ${workspaceTitle}
/// string
baseWorkspaceTitle = ${baseWorkspaceTitle}
/// array
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// array
/// array{error: string, affectedNode: string, event: string, eventPayload: string}

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.

4 participants