Autocomplete recently typed values in filter input
Categories
(DevTools :: Console, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: past, Unassigned, Mentored)
References
Details
(Whiteboard: [lang=js])
Attachments
(2 files, 6 obsolete files)
16.97 KB,
patch
|
Details | Diff | Splinter Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Comment 1•12 years ago
|
||
Reporter | ||
Comment 2•12 years ago
|
||
Updated•12 years ago
|
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
Comment 6•11 years ago
|
||
Comment 7•11 years ago
|
||
Comment 8•11 years ago
|
||
Comment 9•11 years ago
|
||
Comment 10•11 years ago
|
||
Comment 11•11 years ago
|
||
Updated•11 years ago
|
Comment 12•11 years ago
|
||
Comment 13•11 years ago
|
||
Comment 14•11 years ago
|
||
Comment 15•11 years ago
|
||
Reporter | ||
Comment 16•11 years ago
|
||
Comment 17•11 years ago
|
||
Comment 18•11 years ago
|
||
Comment 19•11 years ago
|
||
Comment 20•11 years ago
|
||
Comment 21•11 years ago
|
||
Comment 22•11 years ago
|
||
Comment 23•11 years ago
|
||
Comment 24•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Comment 25•10 years ago
|
||
Reporter | ||
Comment 26•10 years ago
|
||
Comment 27•10 years ago
|
||
Reporter | ||
Updated•10 years ago
|
Reporter | ||
Comment 28•10 years ago
|
||
Comment 29•9 years ago
|
||
Comment 30•9 years ago
|
||
Reporter | ||
Comment 31•9 years ago
|
||
Comment 32•9 years ago
|
||
Comment 33•9 years ago
|
||
Updated•7 years ago
|
Comment 34•7 years ago
|
||
Comment 35•7 years ago
|
||
Comment 36•7 years ago
|
||
Comment 37•6 years ago
|
||
Comment 38•6 years ago
|
||
Hi Miguel,
Are you still interested in working on this bug?
I see it is assigned to you now but hasn't been updated for 2 months.
If you need more time, or help, no worries, let's keep it assigned and feel free to reach out to Nicolas for help.
If, however, you don't think you'll be working on this bug, please let me know so I can unassign you from it and so it becomes available to others.
Thanks!
Comment 39•6 years ago
|
||
Hey Patrick,
I would like to work on this issue, if none is working.
Can you assign it to me?
Comment 40•6 years ago
|
||
Hi Paarmita. Seems like Miguel isn't going to work on this after all. So I'll assign this to you.
Comment 41•6 years ago
|
||
Hey Patrick,
Thanks for assigning.
As I am not very familiar with the codebase so can you please help me in finding the files and understand the problem better.
Thanks in advance.
Updated•6 years ago
|
Comment 42•6 years ago
|
||
Hi Paarmita, sure, let me pass the needinfo on to Nicolas who will be better equipped than me to answer this question.
Comment 43•6 years ago
|
||
Hello, sorry I was moving to another country. No problem if I lost the bug, I'm here to offer any help.
Comment 44•6 years ago
|
||
Paarmita, you have 5 other bugs assigned to you, and maybe this one would be a bit too challenging for you.
Would you mind if I give it back to Miguel (if you want to Miguel!)
Comment 45•6 years ago
|
||
Yes, I would like to implement it for the new Devtools
Comment 46•6 years ago
|
||
It's yours Miguel :)
Comment 47•6 years ago
|
||
Thanks, is there any other component where I can look to have an idea on how to implement a search?
To confirm, I'll save recent search values so it appear in the searchbox. right?
Comment 48•6 years ago
|
||
I'll add a needinfo to Nicolas for this question to make sure he sees it.
Comment 49•6 years ago
|
||
Hello Miguel, thank you for your patience.
So the webconsole now uses the SearchBox component (devtools/client/webconsole/components/FilterBar.js#250-254 ), which should have all we need to display autocompletion items.
You can take some inspiration on how it's done in the Netmonitor for example (See devtools/client/netmonitor/src/components/Toolbar.js#368 ).
I think we'll need to modify the SearchBox component to automatically show the last 4 entries when it is focused.
Then, we need to save the filter list in some storage so we can reuse it.
We also need to decide when we should put something in the stored list (we can't do that on every key stroke).
Let me know if you need more information to start working on this, thanks!
Comment 50•6 years ago
|
||
No activity for 4 months. Unassigning this bug. Anyone should feel free to claim it and resume the work here.
Comment 51•5 years ago
|
||
Hi I want to try so the main challenge with this is about , when will be storing and where will be storing it ,what i have in mind is to store them as comma separated values and some pref. which will be stored in variable during lifespan of component
componentDidMount() { this.filteredTerms = Services.prefs.getCharPref(this.PREFERENCE_KEY).split(","); } componentWillUnmount() { Services.prefs.setCharPref(this.PREFERENCE_KEY, this.filteredTerms.join(",")); }
now about updating this.filteredTerms
we can use debounce in combination with filterText.split(/\s+/g);
debounce((text) => { if(text == "") return; if(text.split(/\s+/g).length != this.filteredTerms[this.filteredTerms.length -1 ].split(/\s+/g); { this.filteredTerms.shift() this.filteredTems.push(text) } else { this.filteredTerms[this.filteredTerms.length -1 ] = text; } }, 500)
we can limit the length of filteredTerm to 5 what do you say
Comment 52•5 years ago
|
||
Hey Nicolas,
I have a solution for this issue too, are you able to assign this to me?
Best,
Adam
Comment 53•5 years ago
|
||
(In reply to Adam Hammad from comment #52)
Hey Nicolas,
I have a solution for this issue too, are you able to assign this to me?
Best,
Adam
sure, thanks :)
Comment 54•5 years ago
|
||
Comment 55•5 years ago
|
||
Nicolas, could you please help Adam with the patch?
Honza
Comment 57•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:nchevobbe, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Comment 58•3 years ago
|
||
hello, if you need help with this I can help. I've free time to work on a new patch if needed.
Comment 59•3 years ago
|
||
Hi, any status about this bug? I would like to contribute on this.
Comment 60•3 years ago
|
||
Hello Miguel, sorry I missed your previous message, I'm assigning the bug to you
I think you can try to start from what was done in https://phabricator.services.mozilla.com/D68006
Comment 61•3 years ago
|
||
Just a quick flyby comment, I see the preference in the current patch is currently handled as a char pref, I feel like for this kind of content, a string pref will be safer.
Comment 62•3 years ago
|
||
Comment 63•3 years ago
|
||
Hello,
I've sent a new patch at https://phabricator.services.mozilla.com/D155931
It's based on the work made by @adamham but I made some minor changes:
- Changed pref to string as @jdescottes recommended.
- Fixed selection bug from previous patch.
- Fixed term deletion bug from previous patch.
Also, in order to make it work. On SearchBox component I need to trigger the search. I copied the same code from onChange event. But now the timeout code to initiate the search it's repeated. Do I need to make a function to search and call it from onChange and onSelect events?
.
This is the repated code is located at devtools/client/shared/components/SearchBox.js line 160.
Updated•3 years ago
|
Comment 64•2 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Comment 65•2 years ago
|
||
Hi @nchevobbe! somehow I didn't got that notification. Seems like I got removed from this bug, What's the final status on this? Do I need to add stuff from 1801877?
Updated•2 years ago
|
Updated•2 years ago
|
Comment 66•2 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Comment 67•1 year ago
|
||
Hi, I just wanna say that I've time to work in this issue. I've learned more about React and I'm in parental leave so I can finish this.
My only question is where could I save the limit of suggested terms? seems like the place for storage settings changed.
Description
•