Project

General

Profile

Actions

Feature #34703

closed

"Copy link" feature for issue and issue journal

Added by Mizuki ISHIKAWA almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
UI
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

When you are looking at a issue with Redmine and want to share the URL, if you copy the URL with a browser, it will be a long URL with many unnecessary parameters such as issue_count and prev_issue_id.

I think it would be convenient to be able to copy a simple URL from the view.

  • URL of the issue to be copied: https://<your redmine>/issues/1
  • URL of the issue journal to be copied: http://<your redmine>/issues/1#note-1

Files


Related issues

Related to Redmine - Feature #34714: Move delete button for issues and journals to the dropdown menuClosedGo MAEDA

Actions
Related to Redmine - Feature #34932: "Copy link" feature for issues listClosedGo MAEDA

Actions
Actions #1

Updated by Mizuki ISHIKAWA almost 4 years ago

When I added the "Copy link" icon, it was crowded with many icons displayed on the view.
So this patch hides infrequently used action links in actions-dropdown, just like wiki pages.


If it is better to separate the patch that adds the function to copy the URL and the patch that combines the Action icons, it will be supported.
This patch contains an icon image, so apply it with the git apply command.

Actions #2

Updated by Mizuki ISHIKAWA almost 4 years ago

For your reference, I've attached a patch with a pattern that doesn't combine the "Copy link" icon into actions-dropdown. (I don't like this UI very much)

Actions #3

Updated by Marius BĂLTEANU almost 4 years ago

I really like the ideea of moving the Delete icons under the actions dropdown, I think we should extract it from your patch and added a separat tichet. From my point of view, this solution is a good fix for #31278.

Also, having the copy link it's a nice and useful feature.

Actions #4

Updated by Bernhard Rohloff almost 4 years ago

Marius BALTEANU wrote:

I really like the ideea of moving the Delete icons under the actions dropdown, I think we should extract it from your patch and added a separat tichet. From my point of view, this solution is a good fix for #31278.

Good point there.

Also, having the copy link it's a nice and useful feature.

I like the feature, too. Sharing a link in a chat is a bit tedious at the moment.

I've tried your patch and it worked quite well. The only thing I've missed was some kind of feedback after copying the URL to the clipboard. On all web applications which allowed me to copy stuff to the clipboard I got a toast or little message, that the job has finished. So I felt a bit awkward after clicking the copy link without anything happening.

Actions #5

Updated by Mizuki ISHIKAWA almost 4 years ago

Thank you for your feedback.

Marius BALTEANU wrote:

I really like the ideea of moving the Delete icons under the actions dropdown, I think we should extract it from your patch and added a separat tichet. From my point of view, this solution is a good fix for #31278.

I split the patch and attached it to the #34714 issue.

Bernhard Rohloff wrote:

I've tried your patch and it worked quite well. The only thing I've missed was some kind of feedback after copying the URL to the clipboard. On all web applications which allowed me to copy stuff to the clipboard I got a toast or little message, that the job has finished. So I felt a bit awkward after clicking the copy link without anything happening.

I think if I put the "Copy link" link inside the Actions dropdown, pressing the copy button will close the Dropdown as feedback that the work is done.
GitHub and Gitlab also put a "Copy link" in the dropdown and do not show the message that the work is completed.
However, if you accidentally click outside the dropdown, the dropdown will close, which may be incomplete feedback in that you don't know if the copy is really complete.

In the patch for #34703#note-2, I have implemented a mechanism to display a message after the copy is completed, so I will try if I can incorporate that into the patch for #34703#note-1.

Actions #6

Updated by Marius BĂLTEANU almost 4 years ago

  • Related to Feature #34714: Move delete button for issues and journals to the dropdown menu added
Actions #7

Updated by Mizuki ISHIKAWA almost 4 years ago

Since #34714 was committed, I modified feature-34703-1.patch accordingly.
I also added a System test.

Actions #8

Updated by Go MAEDA almost 4 years ago

Bernhard Rohloff wrote:

The only thing I've missed was some kind of feedback after copying the URL to the clipboard. On all web applications which allowed me to copy stuff to the clipboard I got a toast or little message, that the job has finished. So I felt a bit awkward after clicking the copy link without anything happening.

I agree that it would be even better to have feedback when the link is copied.

But how about committing the current patch first, and improving the feedback display in the future? I think the feature is useful even without feedback. And as Mizuki already wrote, the equivalent feature of GitHub and Gitlab also don't show feedback when a link is copied.

Actions #9

Updated by Bernhard Rohloff almost 4 years ago

Go MAEDA wrote:

But how about committing the current patch first, and improving the feedback display in the future? I think the feature is useful even without feedback. And as Mizuki already wrote, the equivalent feature of GitHub and Gitlab also don't show feedback when a link is copied.

Of course! It's a useful feature and we should add it to Redmine. A bit of feedback would just be the icing on the cake. :-)

Actions #10

Updated by Go MAEDA almost 4 years ago

  • Target version set to Candidate for next major release
Actions #12

Updated by Mizuki ISHIKAWA almost 4 years ago

Bernhard Rohloff wrote:

Go MAEDA wrote:

But how about committing the current patch first, and improving the feedback display in the future? I think the feature is useful even without feedback. And as Mizuki already wrote, the equivalent feature of GitHub and Gitlab also don't show feedback when a link is copied.

Of course! It's a useful feature and we should add it to Redmine. A bit of feedback would just be the icing on the cake. :-)

I've also written a patch that adds feedback, but I'm a little confused about how to implement it, so I'm thinking of making another issue after this feature is committed.

Actions #13

Updated by Mizuki ISHIKAWA almost 4 years ago

Mizuki ISHIKAWA wrote:

I changed the icon to an image created by combining a copy icon and a link icon.

I accidentally attached an old patch.

Actions #14

Updated by Go MAEDA almost 4 years ago

  • Target version changed from Candidate for next major release to 4.2.0

Setting the target version to 4.2.0.

Actions #15

Updated by Go MAEDA almost 4 years ago

  • Assignee set to Mizuki ISHIKAWA

test/system/copy_to_clipboard_test.rb fails on macOS. Could you fix the test to support macOS? Probably source:trunk/test/system/keyboard_shortcuts_test.rb@20729#L125 is helpful.

[Screenshot]: tmp/screenshots/failures_test_copy_issue_url_to_clipboard.png
F

Failure:
CopyToClipboardSystemTest#test_copy_issue_url_to_clipboard [test/system/copy_to_clipboard_test.rb:40]:
Expected false to be truthy.

bin/rails test test/system/copy_to_clipboard_test.rb:29

[Screenshot]: tmp/screenshots/failures_test_copy_issue_journal_url_to_clipboard.png
F

Failure:
CopyToClipboardSystemTest#test_copy_issue_journal_url_to_clipboard [test/system/copy_to_clipboard_test.rb:54]:
Expected false to be truthy.

bin/rails test test/system/copy_to_clipboard_test.rb:43
Actions #16

Updated by Mizuki ISHIKAWA almost 4 years ago

Go MAEDA wrote:

test/system/copy_to_clipboard_test.rb fails on macOS. Could you fix the test to support macOS? Probably source:trunk/test/system/keyboard_shortcuts_test.rb@20729#L125 is helpful.

[...]

I think it will be fixed by applying this patch in addition to the 0001 patch.

Actions #17

Updated by Go MAEDA almost 4 years ago

  • Subject changed from Add a link to copy the issue URL and issue journal URL to the clipboard to "Copy link" feature for issue issue journal
  • Status changed from New to Closed
  • Resolution set to Fixed

Committed the patch. Thank you for your contribution.

Users can copy a URL of an issue or an issue journal by clicking "Copy link" in the action menu.

Actions #18

Updated by Go MAEDA almost 4 years ago

  • Subject changed from "Copy link" feature for issue issue journal to "Copy link" feature for issue and issue journal
Actions #19

Updated by Go MAEDA almost 4 years ago

  • Related to Feature #34932: "Copy link" feature for issues list added
Actions

Also available in: Atom PDF