Closed Bug 1272254 Opened 8 years ago Closed 8 years ago

Create a search field widget

Categories

(DevTools :: Shared Components, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 908307

People

(Reporter: sebo, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [devtools-ux])

A general search field widget should be created, which can be reused by all the panels.

It's features would include:
- single content search
- multiple content search
- filtering instead of searching
- search/filter options
- search suggestions
- showing number matches
- indication for no matches
- focus shortcut
- clearing the field
- go to line feature

This was first proposed at https://groups.google.com/d/msg/mozilla.dev.developer-tools/hH_VBUx_rZA/TiD3gY0rIwAJ.

Sebastian
This might be a duplicate, I'm pretty sure Helen has done some design work around Search / Filter
Whiteboard: [devtools-ux]
(In reply to Sebastian Zartner [:sebo] from comment #0)
> A general search field widget should be created, which can be reused by all
> the panels.
> 
> It's features would include:
> - single content search
> - multiple content search

What is the difference between single content search and multiple content search?

> - filtering instead of searching
> - search/filter options

Search and filter are two distinct actions that I think should ultimately live in two different UI components.  For some tools one makes more sense than the other, and if they both have meaning then they would likely be two different inputs (how else would you toggle the 'mode' between them?)

> - search suggestions
> - showing number matches
> - indication for no matches
> - focus shortcut
> - clearing the field
> - go to line feature

"Go to line" only makes sense for tools who are primarily showing a source.  Are you thinking this component would only be used for those kinds of tools?  Also, how would you trigger 'go to line' from the search box?
Flags: needinfo?(sebastianzartner)
This might be a dupe of Bug 1265759
(In reply to Brian Grinstead [:bgrins] from comment #2)
> (In reply to Sebastian Zartner [:sebo] from comment #0)
> > A general search field widget should be created, which can be reused by all
> > the panels.
> > 
> > It's features would include:
> > - single content search
> > - multiple content search
> 
> What is the difference between single content search and multiple content
> search?

The multiple content search means to search within several files. In the Debugger's search field this is called 'Search in all files'.

> > - filtering instead of searching
> > - search/filter options
> 
> Search and filter are two distinct actions that I think should ultimately
> live in two different UI components.

Probably, yes, I was unsure about that.

> > - go to line feature
> 
> "Go to line" only makes sense for tools who are primarily showing a source. 
> Are you thinking this component would only be used for those kinds of tools?

Yes, might be a specialized component.

> Also, how would you trigger 'go to line' from the search box?

Like it's done now within the Debugger's search field, writing a colon and then the line number.

Sebastian
Flags: needinfo?(sebastianzartner)
(In reply to Brian Grinstead [:bgrins] from comment #3)
> This might be a dupe of Bug 1265759

Could be, though bug 1265759 comment 2 sounds like this only targets the Inspector panel's search fields.
Feel free to mark it this one as a duplicate if bug 1265759 should cover all fields.

Sebastian
(In reply to Brian Grinstead [:bgrins] from comment #3)
> This might be a dupe of Bug 1265759

We're drowning in search box/filter box bugs, so Nicolas and I have made bug 908307 a metabug for all of these. I would consider this bug a dupe of that one.

I'll be attaching a better spec sheet on that bug.

Sebastian, would you be willing to move relevant comments over to that bug and close this one out?
Flags: needinfo?(sebastianzartner)
(In reply to Helen V. Holmes (:helenvholmes) (:✨)(pls ni?) from comment #6)
> Sebastian, would you be willing to move relevant comments over to that bug
> and close this one out?

Done in bug 908307 comment 8.

Sebastian
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(sebastianzartner)
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.