text icon indicating copy to clipboard operation
text copied to clipboard

Replace MenuBubble with a menu bar entry for links

Open susnux opened this issue 3 years ago • 7 comments

  • Resolves: #2162, and resolves #2392, and resolves #1528 (adds the missing functionality to remove link marks)
  • Supersedes #2519
  • Target version: master

Summary

This replaces the popover MenuBubble used for inserting links with a menu entry in the menu bar. This also allows to add links also to directories, previously only files were allowed as link targets.

Added cypress tests as well. Testing inserting links to files, to directories, and also inserting links while nothing is selected to test if the correct file name is used.

Some the menu order is slightly changed to prevent the link menu to get hidden, like for the callouts Actions must not get hidden in the submenu (nesting does not work for the menu).

Another feature introduced with this change is the ability to insert links to files and automatically use the filename as the link text.

susnux avatar Jul 04 '22 12:07 susnux

/compile

susnux avatar Jul 04 '22 12:07 susnux

/compile

susnux avatar Jul 05 '22 14:07 susnux

/compile amend

susnux avatar Jul 06 '22 17:07 susnux

Any feedback on this? :)

susnux avatar Jul 06 '22 17:07 susnux

Thanks a lot for working on this @susnux! I'm much in favor of moving the link tools into the menu bar. But I'd say let's get #2611 merged first and then look at this one :relaxed:

mejo- avatar Jul 07 '22 10:07 mejo-

Thanks a lot for working on this @susnux! I'm much in favor of moving the link tools into the menu bar. But I'd say let's get #2611 merged first and then look at this one relaxed

Thank you, no problem :) I just would like to see this in one of the next releases as the menu bubble is quite annoying (I always have to scroll up for the bubble to be show even if I insert links at the bottom -.- )

susnux avatar Jul 07 '22 16:07 susnux

This is currently blocked by #2842

susnux avatar Sep 06 '22 12:09 susnux

Not blocked anymore, so read to go 😊

susnux avatar Oct 05 '22 20:10 susnux

@susnux thanks a lot! Would you mind adding a few screenshots to make it easier for our design team to review?

mejo- avatar Oct 05 '22 20:10 mejo-

/compile amend

susnux avatar Oct 05 '22 21:10 susnux

Would you mind adding a few screenshots to make it easier for our design team to review?

No problem!

Menu entry

New menu entry for links

Link submenu

submenu for the links

Enter an URL

Input for custom URL

Editing an existing link

Editing an existing link

susnux avatar Oct 05 '22 21:10 susnux

/compile

susnux avatar Oct 18 '22 13:10 susnux

/compile

susnux avatar Oct 20 '22 11:10 susnux

Thank you for the screenshots! Some feedback:

Thank you for your feedback! Fixed the first points, I will have a look at the last one soon.

susnux avatar Oct 20 '22 11:10 susnux

ActionButton and ActionInput have different min-width. Fixed this by setting the min-width of button to the input.

Link menu Link menu insert Link menu edit

susnux avatar Oct 20 '22 13:10 susnux

/compile amend

mejo- avatar Oct 20 '22 15:10 mejo-

The updated anchor link cypress test fails though. Could you take a look @susnux? Afterwards good to go from my side :+1:

mejo- avatar Oct 20 '22 15:10 mejo-

The updated anchor link cypress test fails though. Could you take a look @susnux? Afterwards good to go from my side +1

Should be fixed now, works locally waiting for CI to succeed :)

susnux avatar Oct 21 '22 13:10 susnux

/compile amend

susnux avatar Oct 21 '22 13:10 susnux

/compile

mejo- avatar Oct 21 '22 16:10 mejo-

For some reason, the node build + porcelain check CI job always reports a diff 🙁 Will have to look into it next week.

mejo- avatar Oct 21 '22 16:10 mejo-

/compile

mejo- avatar Oct 24 '22 08:10 mejo-

/compile amend

mejo- avatar Oct 24 '22 08:10 mejo-

Not sure if this can be backported to NC25, but would it be acceptable to backport at least the "link to folders" part?

susnux avatar Oct 25 '22 14:10 susnux

Usually we don't backport features to stable releases except if there's a strong reason to do so.

mejo- avatar Oct 25 '22 14:10 mejo-