-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
V8: Change "Include subfolders in search" to "Search only in this folder" #4720
V8: Change "Include subfolders in search" to "Search only in this folder" #4720
Conversation
Hiya Kenn, Thanks for all the work on this. We look forward to testing it. Speak soon, Em |
Hey @kjac , Testing this on the starter kit and this what I noted. I searched for the word "Lee" from within the product folder in the media section , with the checkbox unchecked and I couldnt find the image. However if I am on the root (Media) I can find it. I can also find the image if I search for the word "Lee" in the people folder. Basically I cannot search for a media item in another folder if I am inside a folder. But isnt that the point of the checkbox, to limit it, rather than the search doing so? Am I getting the idea of the PR totally wrong here? Poornima |
Hi @poornimanayar. Sounds like a bug in the PR. Good job 👍 I'll investigate and get back. |
… just the current folder and all subfolders
@poornimanayar my bad, sorry. I misunderstood the intentions of #4707. Here's how it's (hopefully) implemented now:
|
Hey Kenn, I set up 2 datatypes using Media Picker - one with a start folder and one without and here are my findings
Searching when on Media/Design Folder(I choose a folder and start searching from there)
Media Picker with Start Searching when on Media/Design Folder(I choose a folder and start searching from there)
Do you think I have covered it all? Poornima |
Hi again. Could you re-verify your scenario Searching when on Media/Design Folder(I choose a folder and start searching from there) with the checkbox unchecked? When the checkbox is unchecked and there is no start node set for the media picker, it should search the entire media library regardless of your currently selected folder. |
My turn to apologise @kjac ! Its all good. When I am within a folder, given the "search within this folder only" is unchecked, it searches the entire media library. Great great work! I am just loving testing and reviewing your PRs, quite a PR hero you are pal! Poornima |
Whoo 😆 |
Hey @kjac thanks for this so far! In #5356 @uniquelau makes a good suggestion, when checking on the checkbox, can we remember that for the current session so you don't have to keep enabling it for each search? |
@nul800sebastiaan sure, shouldn't be a problem. I'll add it to this PR 👍 |
@nul800sebastiaan all done; works like this: |
Fixed merge conflicts |
PR updated with latest v8/dev |
PR updated with latest v8/dev |
# Conflicts: # src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/mediapicker/mediapicker.controller.js # src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/mediapicker/mediapicker.html # src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
@kjac If I'm reading the comments correctly, it's not possible to search a part of the tree (anymore)? So if you have the following structure:
After opening the Products folder and entering the search query And should the plain checkbox be converted into a toggle? |
Hi @kjac and @ronaldbarendse, Ronalds comment gave me some attention to this PR. I now understand that the wording "Search only this folder" could be misunderstood, which is the case here. My intention of the behavior was to mimic the behavior of Mac OS. When searching in Mac OS Finder you can choose to search the computer or the current folder. When searching the current folder you will find files in the given folder and files of sub-folders. I was dreaming about the same for this one. I understand that it would have been nice if I had specified that in the issue, sorry for that. I also understand that some users might find the wording misleading, so inputs on wording are very welcome. I do though think the current wording is okay — Users will try and learn how it works. Its all in the interpretation of what you think lies within a folder. I'm not feeling super strongly for it, but I'm currently feeling like 80% for that sub-folders is part of the given folder. But well, what does my opinion mean, so please give me your point of view on this, if you have some Content Managers around, could you then ask them? thanks! :-) |
@nielslyngsoe right 👍 I'll dig into it and make sure that "Search only this folder" does indeed search the entire subtree below the current folder. The wording... well, it works - for now at least, until someone comes up with something better 😄 |
PR in #8197 |
@kjac Super great, thanks for looking into it this fast, then we will have it corrected for next release :-D |
Prerequisites
If there's an existing issue for this PR then this fixes: #4707
Description
#4707 outlines the requirements for this PR 😄 here's how it looks when applied:
While I was at it I found some unused localization going on in the media picker controller, so I removed that as well.