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

Dragging rows in a group creates rows without IDs and causes issues #861

Closed
christian-konrad opened this issue Oct 21, 2023 · 5 comments · Fixed by #886
Closed

Dragging rows in a group creates rows without IDs and causes issues #861

christian-konrad opened this issue Oct 21, 2023 · 5 comments · Fixed by #886
Assignees
Labels
bug Something isn't working

Comments

@christian-konrad
Copy link
Contributor

Describe the Bug

Dragging rows in a group creates rows without IDs and causes issues.

  • On drag, it behaves strange, sometimes cloning the row
  • It results in rows without IDs
  • Moving the component out of the group and deleting the group, the component is deleted as well
    • Still visible in the editor, but already removed in the preview

Steps to Reproduce

See:

Bildschirmaufnahme.2023-10-21.um.10.36.40.mov
Bildschirmfoto 2023-10-21 um 10 21 42

Expected Behavior

Environment

  • Host (Browser/Node version), if applicable: [e.g. MS Edge 18, Chrome 69, Node 10 LTS]
  • OS: [e.g. Windows 7]
  • Library version: [e.g. 2.0.0]
@christian-konrad christian-konrad added the bug Something isn't working label Oct 21, 2023
@pinussilvestrus
Copy link
Contributor

Thanks for reporting, that is really cumbersome! Moving this to ready so we follow up, soon!

@pinussilvestrus pinussilvestrus added the ready Ready to be worked on label Oct 23, 2023
@pinussilvestrus pinussilvestrus self-assigned this Oct 23, 2023
@pinussilvestrus
Copy link
Contributor

Thanks for reporting. Seems like our layout updater is not working properly (missing rows set). I will investigate.

@pinussilvestrus
Copy link
Contributor

pinussilvestrus commented Oct 24, 2023

I looked a bit deeper and discovered that rendering issues only (or mostly?) occur for text views. The layout is rendered correctly, but the groups containing the dragged row with a text view disappear for some reason.

Kapture 2023-10-24 at 11 48 29

@pinussilvestrus
Copy link
Contributor

pinussilvestrus commented Oct 24, 2023

Interestingly, the fields are still visible in the preact tree, but, for some reason, not rendered in the demo.

Also, the broken behavior is not visible in the Dynamic Lists branch (#808) where we changed some things in the rendering of a group. Let's evaluate this bug once we have dynamic list merged and before we release the next version.

@pinussilvestrus
Copy link
Contributor

We pick up this again to prevent row: null from happening in the first place (cf. https://github.com/camunda/tasklist/issues/3752).

While moving fields, there might be no targetRow as we are on to create a new one. We should avoid that by creating a new row id already on move, similar we do that on create:

 row: targetRow ? targetRow.id : this._formLayouter.nextRowId()

@bpmn-io-tasks bpmn-io-tasks bot added in progress Currently worked on and removed ready Ready to be worked on labels Nov 7, 2023
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed in progress Currently worked on labels Nov 8, 2023
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants