Implement filter styles in the new rules view
Categories
(DevTools :: Inspector: Rules, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: ntim, Assigned: gl)
References
(Blocks 1 open bug)
Details
It was originally requested to avoid code duplication between the rules view and the computed view, see bug 1154789, so I don't see any reason not to use the shared SearchBox component in the rules view. It implements the highlight behaviour and the clear button hiding behaviour for free.
https://searchfox.org/mozilla-central/source/devtools/client/shared/components/SearchBox.js
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
•
|
||
Yes, we should use the SearchBox component when we do implement the filtering of styles in the rules view. I did attempt to use SearchBox component in my original patch, but ended up reverting when I couldn't figure which props were required to get the SearchBox to show up, but also not have any functionality.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Comment 2•5 years ago
|
||
The current filter field allows to do an exact search by using backticks. Can this functionality be kept with the shared SearchBox component? And if so, should UI improvements for this be covered by this issue or should I create a separate one? Because I'd like to suggest creating a visible UI like a button or checkbox for the exact filtering to improve the discoverability of this feature.
Sebastian
Assignee | ||
Comment 3•5 years ago
|
||
(In reply to Sebastian Zartner [:sebo] from comment #2)
The current filter field allows to do an exact search by using backticks. Can this functionality be kept with the shared SearchBox component? And if so, should UI improvements for this be covered by this issue or should I create a separate one? Because I'd like to suggest creating a visible UI like a button or checkbox for the exact filtering to improve the discoverability of this feature.
Sebastian
That's a good question. I would've implemented the same behavior that we currently have, but I am working on Fenix these days. So, I will unassign myself from this bug.
Comment 4•5 years ago
|
||
Thank you for the quick response, Gabriel! So I'll redirect the question to Tim.
Sebastian
Reporter | ||
Comment 5•5 years ago
|
||
(In reply to Sebastian Zartner [:sebo] from comment #2)
The current filter field allows to do an exact search by using backticks. Can this functionality be kept with the shared SearchBox component?
The shared SearchBox component supports an onChange property, so it should be possible.
And if so, should UI improvements for this be covered by this issue or should I create a separate one? Because I'd like to suggest creating a visible UI like a button or checkbox for the exact filtering to improve the discoverability of this feature.
A separate one would be better, since I don't think anyone is working on the rules view rewrite nowadays.
Updated•2 years ago
|
Description
•