Problem/Motivation
Currently it can be somewhat painful to find the content element you're searching for in the add content modal dialog.
Proposed resolution
Add a javascript based simple search function to the dialog to filter the list of contents. The solution attached in the patch was made on the fly while I felt the pain. I guess the solution could be nicer but it definitely eases the pain a lot ;)
Remaining tasks
Reviews needed - suggestions of how to improve functionality or JS very welcome.
User interface changes
New filter area in the dialog:

API changes
none
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | panels-add-quick-filter-to-add-content-dialog-2011814-5.patch | 3.35 KB | jerrylow |
| panels_quick_filter.png | 15.57 KB | das-peter |
Comments
Comment #1
das-peter commentedAdded another convenience function: If only one item is left you can hit enter to select it right away.
Comment #2
kopeboythis is nice, why not review it and add?
Comment #3
joelpittetI forgot that you had already done this @das-peter, thanks for the bump @kopeboy.
I'm going to try this patch out for real this time.
A suggestion:
I believe I was told when working on this in D8 that we can use debounce for this performance issue.
https://www.drupal.org/node/1919470#comment-7555491
https://www.drupal.org/node/1889394
This doesn't exist in D7, but maybe it can provide some inspiration and maybe add to ctools even?
Comment #4
joelpittetThis thing is working like a charm!
Thanks, just some CSS/JS suggestions, I'll gladdly roll them into a patch if you are ok with them @das-peter.
Maybe put .form-text on the field? Then there is less specific styles to override?
Maybe want to container-inline here and put a label for="quick-filter"
Doesn't need the language attribute.
Comment #5
das-peter commented@joelpittet Thanks for the review. I totally forgot about this patch too - I just use our panels fork anyway... So feel free to adjust the patch. Enhancements & feedback are always welcome!
Comment #6
jerrylow commentedRe-rolling the patch with three changes.
1. Recommendations from @joelpittet
2. Slight visual touch up for equal padding
3. Changing the js .on to .bind because .on doesn't work with jQuery 1.5 out of the box.
Comment #7
jerrylow commentedFixed the label to be inline.
Comment #8
jerrylow commentedWrong patch.
Comment #10
joelpittetBeauty thanks @jerrylow, this is a nice addition, don't want to nitpick further, this is RTBC.
Just re-iterating my points:
container-inline?
Maybe let the .form-text styles form the admin theme deal with the bg colors and border?
Comment #11
jerrylow commented@joelpittet good point, I had something oddly different because of the admin theme I was using. Cleaned it up against bartik.
Comment #12
joelpittetThanks @jerrylow, still RTBC:)
Comment #13
dasjoGave it a quick try and seemed to work nicely.
I created a related ticket that from my perspective would really greatly improve the add dialog, it might be more complex to implement though :)
#2479777: Allow to globally search within the add content modal dialog
Comment #14
das-peter commented@dasjo Ha! I originally wanted a global search too :) - but it was to complex for a quick win. And especially the ton of fields bothered me ;)
Btw. I've another small JS that adds an "remove" button next to the settings button of panes. So you can get rid of automatically added panes fast, if someone is interested I'd try to create a proper patch.
Comment #15
japerryLooks and works great! Fixed.
Comment #18
joelstein commentedNeat feature!
However, it caused a JS error when using with Panels IPE. I opened a new issue at #2505641: Panels base JS needs to be added for Panels IPE.