Skip to content

Conversation

@tekig
Copy link

@tekig tekig commented Feb 1, 2022

Adds the ability to (un)select multiple objects with single tap while holding the shift key.

@tekig
Copy link
Author

tekig commented Feb 2, 2022

Test passed without errors
tekig#1

@prakashsvmx
Copy link
Member

@tekig Thank you for the PR.

User Experience feedback:

When using Shift key along with Ctrl Key for selection/de-selection

it results in undesired selection of rows.

in case of more rows ( range) to be skipped, it is more difficult to get the desired selection/deselection.

  • Holding and Clicking on the same Row does not un select
  • Shift + Selection requires at least 1 row selection without holding Shift
  • Mix and match Ctrl + Selection and Shift + Selection is in-consistent. ( some times the selection does not respond)

@tekig
Copy link
Author

tekig commented Feb 2, 2022

@prakashsvmx thank you for feedback

  • Holding and Clicking on the same Row does not un select

I agree, now I cancel the effect of shift if it is the same element

  • Shift + Selection requires at least 1 row selection without holding Shift

If there was no previous selection, must select from the beginning

  • Mix and match Ctrl + Selection and Shift + Selection is in-consistent. ( some times the selection does not respond)

I found an error, most likely it was not due to ctrl

@harshavardhana harshavardhana force-pushed the select-multiple-objects branch from 6cca160 to fa11a3d Compare February 4, 2022 17:11
@tekig tekig force-pushed the select-multiple-objects branch from fa11a3d to b456efa Compare February 4, 2022 19:59
@prakashsvmx
Copy link
Member

I have tested this further.
There are inconsistencies with Select/Unselect with range select / skip select.
Please have a look.

@tekig
Copy link
Author

tekig commented Feb 9, 2022

I can not reproduce, can you write detailed steps, please

2022-02-09.mp4

@prakashsvmx
Copy link
Member

@tekig
As you can observe,
( just ignore the cursor position in the video)

some times the selection does not select or results in un expected selection:

MinIO-Console.mp4

@tekig
Copy link
Author

tekig commented Feb 10, 2022

Shift makes the last action repeat from the previous element to the current one.
If the action was selected, it will select all elemen in rangets.
if the previous action was unselected, it will unselect all elements in range.

If that doesn't make sense, i can force Shift to only select?

@prakashsvmx
Copy link
Member

It is critical when we select and delete with scrolling in the list. So it would be great to have a standard selection patterns.
@tekig . Thank you for the improvements.

@tekig
Copy link
Author

tekig commented Feb 16, 2022

I don't know how to do differently. My version works like an analogue of explorer in Windows with ctrl + shift pressed.

I don't understand why it can be difficult to press shift when you need to duplicate an action on the following objects?

@prakashsvmx
Copy link
Member

@tekig Sorry for going back and forth and thank you for the patience and improvements

In Linux Files ( Explorer) for example:

( For example, if we have files from 1-10)

Hold Ctrl

Select 1, 2

Select 9, 10

Now Leave Ctrl hold only Shift
Select 5

Observe that 5 -10 only gets selected.
1-2 get un-selected.

  • this could not be achieved in the object list

@tekig
Copy link
Author

tekig commented Feb 16, 2022

Thank you, as there will be free time, I will try to add the ctrl key for interaction.

My idea was that selection already works like ctrl so it doesn't need to be pressed.

@tekig
Copy link
Author

tekig commented Feb 20, 2022

I have an idea in the form of improving the selection:

  • Remove checkboxes
  • Change background color of selected objects
  • By clicking on an object, it becomes selected

It seems to me that this is a global change, so I want to consult with you first.

@tekig tekig force-pushed the select-multiple-objects branch from 2f0e8ac to 9cd84e8 Compare February 20, 2022 16:33
Copy link
Member

@prakashsvmx prakashsvmx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some times holding ctrl while un-selecting requires double click which requires a fix.
otherwise changes look good to me. 👍

@tekig thank you for the improvements.

@tekig
Copy link
Author

tekig commented Mar 11, 2022

@prakashsvmx I can't reproduce this, can you write the steps to reproduce it please?

@prakashsvmx
Copy link
Member

@tekig Please resolve the conflicts , i shall upload the video to demonstrate the same.

@prakashsvmx
Copy link
Member

I see one more issue:

On initial load, hold Shift -> click on 2nd Row of the object List
Actual: 2 rows get selected.
Expected: Only one row should be selected.

Shift_Click_2nd_row_selects-1st_row_as_well.mp4

@tekig
Copy link
Author

tekig commented Mar 15, 2022

I see one more issue:

On initial load, hold Shift -> click on 2nd Row of the object List Actual: 2 rows get selected. Expected: Only one row should be selected.

Shift_Click_2nd_row_selects-1st_row_as_well.mp4

I specifically did that by default I chose from the beginning of the list. I will fix it soon)

@tekig tekig requested a review from prakashsvmx March 16, 2022 18:15
Copy link
Member

@prakashsvmx prakashsvmx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tekig
Tested. Changes look good to me 👍 :

  • Chrome
  • Firefox
    On Ubuntu

Copy link
Collaborator

@dvaldivia dvaldivia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2022-04-13 16-54-47 2022-04-13 16_55_06
I feel it's confusing to be using the select box UI element to indicate you can select multiple, but by default it's not selecting multiple, even if you try, I think this will confuse a lot of people. I did tried while pressing shift and it let me, wasn't the original goal to give an un-select capability?

@prakashsvmx prakashsvmx requested a review from dvaldivia April 14, 2022 04:37
@dvaldivia
Copy link
Collaborator

I think due to the confusion of the implementation of the feature we are not going to take this PR for the time being, if you re-work it in a way that makes sense with the current multi-checkbox implementation please re-open the PR

@dvaldivia dvaldivia closed this May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants