xwikisas / application-diagram

Create various types of diagrams using draw.io
GNU Lesser General Public License v2.1
0 stars 8 forks source link

Confusing display of the current link in the "edit link" UI #234

Closed lucaa closed 1 year ago

lucaa commented 1 year ago

How to reproduce:

Expected result:

Actual result:

If the link is added on the text box itself and not on the text inside the box, there is a better display of the link allowing a clearer edit because it sports an edit button on selection: image

However, the problems above of the link editing still persist.

As a conclusion, it can be hard and confusing to know what a link links to, especially when added on the text inside an element and not on the element itself, and if a user clicks "Apply" instead of "cancel" in the edit link dialog, they may actually be making changes to the links without knowing, as the dialog does not display a valid state.

Note: this ticket may need to be split in multiple tickets.

oanalavinia commented 1 year ago

The major cause of the confusion comes from the fact that when editing a link, the correct tab is not highlighted, and instead the last active one is displayed. So when switching between external and browse tabs, it can get very annoying and lead to a lot of broken links.

The second part of the issue, related to editing links added to text, is actually a drawio bug https://github.com/jgraph/drawio/issues/3654 , so this won't be fixed as part of this issue EDIT: in the meantime, the drawio issue was already fixed (they were fast), so it will be fixed on our side after a dependency upgrade ( >= 21.3.8)