Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.1] Corrected different multi-select behavior in media manager. #39824

Open
wants to merge 25 commits into
base: 5.1-dev
Choose a base branch
from

Conversation

rajputanuj31
Copy link
Contributor

@rajputanuj31 rajputanuj31 commented Feb 8, 2023

Pull Request for issue #33637
Summary of Changes
Multi select without using shift key

Testing Instructions

Open Media
Try to Select media manager files.

Actual result BEFORE applying this Pull Request

You can not select multiple items without holding the shift key.

Expected result AFTER applying this Pull Request

You can select multiple items by holding ctrl key & clicking on items.
You can also select all files between two selected files by holding shift key.

Media.-Trim-2.mp4

@richard67
Copy link
Member

@rajputanuj31 When you create a PR, why do you delete stuff which is prepared in the description, like e.g. the "Pull request for issue #..." at the top, or the section about documentation, which requires the right check boxes to be checked? We do not have that stuff for nothing in our pull request description template. So please add the Pull Request for issue #33637 to the top so we know for which issue the pull request is made, and add back the documentation section and check the right check boxes. Thanks in advance.

@brianteeman
Copy link
Contributor

brianteeman commented Feb 8, 2023

There are unrelated files in this pull request :(

@rajputanuj31
Copy link
Contributor Author

There are unrelated files in this pull request :(

Fixed.

@dgrammatiko
Copy link
Contributor

@rajputanuj31 can you check if the rtl languages need any adjustment? Other than that this seems ready for some testing

@rajputanuj31
Copy link
Contributor Author

rajputanuj31 commented Feb 9, 2023

@rajputanuj31 can you check if the rtl languages need any adjustment? Other than that this seems ready for some testing

it's working fine.
@dgrammatiko could you please test this PR.

@laoneo
Copy link
Member

laoneo commented Feb 10, 2023

Please add some inline comments, so we can follow your code. Actually it is hard to understand what exactly is going on with all these if else conditions. I would also recommend that you do early return instead of so many else statements.

@brianteeman
Copy link
Contributor

brianteeman commented Feb 10, 2023

I have tested this and it works perfectly apart from on the first page which is very weird.

In this video I am shift clicking on the last image and then on the image before it and you will see that a third image is also selected. I can't replicate that on any other screen.

shift

shift2

@rajputanuj31
Copy link
Contributor Author

rajputanuj31 commented Feb 10, 2023

I have tested this and it works perfectly apart from on the first page which is very weird.

In this video I am shift clicking on the last image and then on the image before it and you will see that a third image is also selected. I can't replicate that on any other screen.

@brianteeman It's working perfectly in my local machine. what should I do now?
@dgrammatiko @laoneo can you please confirm this issue.

@brianteeman
Copy link
Contributor

do you have exactly the same images as I have?

@rajputanuj31
Copy link
Contributor Author

do you have exactly the same images as I have?

Yes I do have the same images.

@brianteeman
Copy link
Contributor

do you have exactly the same images as I have?

Yes I do have the same images.

all three?

@rajputanuj31
Copy link
Contributor Author

do you have exactly the same images as I have?

Yes I do have the same images.

all three?

Yes now I am also facing the same issue. I am trying to debug it.

rajputanuj31 and others added 2 commits February 17, 2023 17:04
…s/browser/utils/utils.es6.js

Co-authored-by: Dimitris Grammatikogiannis <dg@dgrammatiko.dev>
@rajputanuj31
Copy link
Contributor Author

@dgrammatiko @laoneo @brianteeman please test the PR.

@Hackwar Hackwar added the bug label Apr 7, 2023
@rajputanuj31
Copy link
Contributor Author

Hey @laoneo @dgrammatiko @brianteeman @Hackwar I think this PR is ready so please test it. If PR is not ready please leave a comment.

@obuisard obuisard changed the base branch from 4.3-dev to 5.0-dev July 15, 2023 21:45
@ceford
Copy link
Contributor

ceford commented Sep 15, 2023

I have tested this item 🔴 unsuccessfully on f971327

There is something wrong here. I applied the patch and ran npm ci (and even npm install). I am using Firefox on a Mac with 5.0.0-beta2-dev and I see no difference in the behaviour with the patch installed and hard page reload. The Ctrl key has no effect. I checked the code to see that all the patches were applied. On Mac/Firefox the Ctrl key brings up a browser dialog (Back, Reload, etc). I could not find a combination of keys that select/deselect an image that does not deselect previously selected images.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39824.

@HLeithner
Copy link
Member

@rajputanuj31 can you look at the response by @ceford please?

@HLeithner HLeithner added the Maintainers Checked Used if the PR is conceptional useful label Oct 5, 2023
@rajputanuj31
Copy link
Contributor Author

@rajputanuj31 can you look at the response by @ceford please?

Its working perfectly in my local machine.
Screencast from 05-10-23 06:23:07 PM IST.webm

@dgrammatiko
Copy link
Contributor

Mac ctrl (in this context) is the apple button (command)

@HLeithner HLeithner added this to the Joomla! 5.0.1 milestone Oct 7, 2023
@Quy Quy added PR-5.0-dev and removed PR-4.3-dev labels Oct 19, 2023
@richard67 richard67 changed the title [4.3]Corrected different multi-select behavior in media manager. [5.0]Corrected different multi-select behavior in media manager. Oct 23, 2023
@richard67 richard67 changed the title [5.0]Corrected different multi-select behavior in media manager. [5.0] Corrected different multi-select behavior in media manager. Oct 23, 2023
@bembelimen bembelimen removed this from the Joomla! 5.0.2 milestone Jan 23, 2024
@bembelimen bembelimen changed the base branch from 5.0-dev to 5.1-dev March 14, 2024 09:07
@HLeithner HLeithner changed the title [5.0] Corrected different multi-select behavior in media manager. [5.1] Corrected different multi-select behavior in media manager. Apr 24, 2024
@webmasterab
Copy link
Contributor

I tested it and it didn't pass.
See video.
Windows PC
Chrome latest version
CTRL pressed

patchtest.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Maintainers Checked Used if the PR is conceptional useful NPM Resource Changed This Pull Request can't be tested by Patchtester PR-5.1-dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet