Project

General

Profile

Actions

Feature #34714

closed

Move delete button for issues and journals to the dropdown menu

Added by Mizuki ISHIKAWA about 3 years ago. Updated about 3 years ago.

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

0%

Estimated time:
Resolution:
Fixed

Description

I would like to include infrequently used link such as Delete and Copy in Actions Dropdown.
This is a patch that is based on the current features of the wiki.

The reason for making this issue:
  • There are many icons on the view, so I would like to make it a little simpler.
  • I am trying to increase the number of "copy links" links in #34703. Then there will be more icons than now.
  • Journal action links only show icons, but there are some features that are difficult to understand with just the icons.

Concern:
The same icon is used for the context menu of related issues on the page, and it may be misunderstood that the link added this time also opens the context menu.


Files

screenshot_2021-02-12_15.41.37.png (88.8 KB) screenshot_2021-02-12_15.41.37.png Mizuki ISHIKAWA, 2021-02-12 07:52
screenshot2.png (93.8 KB) screenshot2.png Mizuki ISHIKAWA, 2021-02-12 07:54
screenshot1.png (126 KB) screenshot1.png Mizuki ISHIKAWA, 2021-02-12 07:54
34714.patch (6.25 KB) 34714.patch Mizuki ISHIKAWA, 2021-02-12 07:54
34714-v2.patch (5.98 KB) 34714-v2.patch Mizuki ISHIKAWA, 2021-02-22 01:48
screenshot_2021-02-22_9.49.20.png (14.1 KB) screenshot_2021-02-22_9.49.20.png Mizuki ISHIKAWA, 2021-02-22 01:51
34714-v3.patch (5.61 KB) 34714-v3.patch Mizuki ISHIKAWA, 2021-03-03 01:47
screenshot_2021-03-03_9.54.32.png (11 KB) screenshot_2021-03-03_9.54.32.png Mizuki ISHIKAWA, 2021-03-03 01:54
34714-move-copy.patch (2.51 KB) 34714-move-copy.patch Mizuki ISHIKAWA, 2021-03-22 09:22
screenshot_2021-03-22_17.02.20.png (21.3 KB) screenshot_2021-03-22_17.02.20.png Mizuki ISHIKAWA, 2021-03-22 09:23
34714-after.png (23.1 KB) 34714-after.png Go MAEDA, 2021-03-25 05:25

Related issues

Related to Redmine - Feature #34703: "Copy link" feature for issue and issue journalClosedMizuki ISHIKAWA

Actions
Actions #1

Updated by Mizuki ISHIKAWA about 3 years ago

I have attached a patch.

The following image is the issues / show page after applying the patch.

Actions #2

Updated by Go MAEDA about 3 years ago

I think it is better to put "Edit" in the menu instead of "Quote"

  • In my opinion, "Quote" is a more frequently used feature than "Edit"
  • "Edit" is displayed only for users who have appropriate permission. If the current user does not have permission, no button is displayed there
Actions #3

Updated by Mizuki ISHIKAWA about 3 years ago

Go MAEDA wrote:

I think it is better to put "Edit" in the menu instead of "Quote"

  • In my opinion, "Quote" is a more frequently used feature than "Edit"
  • "Edit" is displayed only for users who have appropriate permission. If the current user does not have permission, no button is displayed there

Thank you for your feedback.
I agree with your opinion and modified the patch as shown in the image below.

Actions #4

Updated by Marius BĂLTEANU about 3 years ago

I use quite a lot the "Edit" link, mostly to edit my own comments (eg: fix typos). I think we should hide under the dropdown only the "Delete" link.

Actions #5

Updated by Mizuki ISHIKAWA about 3 years ago

It seems that both "Quote" and "Edit" are used frequently, so I made a patch that puts only Delete in the dropdown.
It may seem that you don't need to change to the dropdown as there are only "Delete" dropdown items, but once this patch is committed, you want to put the "CopyLink" under development in #34703 into the dropdown. think.

Actions #7

Updated by Marius BĂLTEANU about 3 years ago

  • Related to Feature #34703: "Copy link" feature for issue and issue journal added
Actions #8

Updated by Marius BĂLTEANU about 3 years ago

  • Target version set to 4.2.0

The patch looks good to me with one exception, there are 3 Rubocop offences that should be fixed.

I'm assigning this to 4.2.0, it's an useful change.

Actions #9

Updated by Go MAEDA about 3 years ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch after fixing RuboCop offenses. Thank you.

Actions #10

Updated by Mizuki ISHIKAWA about 3 years ago

Thank you for your code review and commit :)

Actions #11

Updated by Marius BĂLTEANU about 3 years ago

  • Status changed from Closed to Reopened

A system test fails:


IssuesSystemTest#test_removing_issue_shows_confirm_dialog:
Capybara::ExpectationNotMet: expected to find visible css "#content a.icon-del" at least 1 time but there were no matches. Also found "", "", which matched the selector but not all filters. 
    test/system/issues_test.rb:241:in `block (2 levels) in <class:IssuesSystemTest>'
    test/system/issues_test.rb:240:in `block in <class:IssuesSystemTest>'
bin/rails test test/system/issues_test.rb:237
.[Screenshot]: tmp/screenshots/failures_test_bulk_edit.png
Actions #12

Updated by Mizuki ISHIKAWA about 3 years ago

Marius BALTEANU wrote:

A system test fails:

I missed the result of the system test. Thank you for reporting.
The test will work by adding the following line.

diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb
index f1f355d0d..0e37ae77d 100644
--- a/test/system/issues_test.rb
+++ b/test/system/issues_test.rb
@@ -238,6 +238,7 @@ class IssuesSystemTest < ApplicationSystemTestCase
     log_user('jsmith', 'jsmith')
     visit '/issues/1'
     page.accept_confirm /Are you sure/ do
+      first('#content span.icon-actions').click
       first('#content a.icon-del').click
     end
   end
Actions #13

Updated by Go MAEDA about 3 years ago

  • Status changed from Reopened to Closed

Mizuki ISHIKAWA wrote:

Marius BALTEANU wrote:

A system test fails:

I missed the result of the system test. Thank you for reporting.
The test will work by adding the following line.

[...]

Committed the fix in r20805.

Actions #14

Updated by Mizuki ISHIKAWA about 3 years ago

This is a feature that has already been committed, but I thought it would be better if the issue copy link wasn't in the dropdown.
If you move the copy link out of the dropdown, the content of the dropdown will match between the journal and the issue for a unified look.

Actions #15

Updated by Robert Korulczyk about 3 years ago

If you move the copy link out of the dropdown, the content of the dropdown will match between the journal and the issue for a unified look.

I don't think that it is valid reason to move this action outside of the dropdown. Dropdown should contain less frequently used items, it should be the last thing that you want to keep unified across different views.

Actions #16

Updated by Go MAEDA about 3 years ago

Mizuki ISHIKAWA wrote:

This is a feature that has already been committed, but I thought it would be better if the issue copy link wasn't in the dropdown.
If you move the copy link out of the dropdown, the content of the dropdown will match between the journal and the issue for a unified look.

+1

After applying r20765 to my company's production server, team members started to complain that accessing the "Copy" button requires one more click is very inconvenient because they use the feature frequently.

Actions #17

Updated by Go MAEDA about 3 years ago

  • File 34714-after.png 34714-after.png added
  • Subject changed from Move some action links for issues and journals to the dropdown menu to Move delete button for issues and journals to the dropdown menu
  • Status changed from Reopened to Closed

Committed the fix #34714#note-14 in r20842.

Before (pre r20765):

[Edit] [Log time] [Watch] [Copy] [Delete] 

After (r20805):

[Edit] [Log time] [Watch] [Copy] […]
                                 [Copy link]
                                 [Delete]

Actions

Also available in: Atom PDF