Closed Bug 1059318 Opened 11 years ago Closed 11 years ago

The drop-down box for components doesn't scroll

Categories

(bugzilla.mozilla.org :: Extensions, defect)

Production
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: kats, Assigned: dkl)

References

Details

Attachments

(2 files, 2 obsolete files)

We have so many components and products now that the component dropdown doesn't show them all, and it doesn't scroll to show the rest. It's kind of annoying, specially when all the components listed are from the same product and the component you want is in a different product entirely. (If it happens to be in the same product you can just click on a different component and then change it on the bug entry page. But you can't change the product as easily). It would nice to either allow scrolling that dropdown box, or limit the number of components from any given product so that all the matching products are represented there.
Attached patch 1059318_1.patch (obsolete) — Splinter Review
Assignee: nobody → dkl
Status: NEW → ASSIGNED
Attachment #8493350 - Flags: review?(dylan)
Comment on attachment 8493350 [details] [diff] [review] 1059318_1.patch Review of attachment 8493350 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, but I wonder if we'll get complaints on shorter screens such as 1366x768. r=dylan
Attachment #8493350 - Flags: review?(dylan) → review+
Comment on attachment 8493350 [details] [diff] [review] 1059318_1.patch Review of attachment 8493350 [details] [diff] [review]: ----------------------------------------------------------------- due to the large number of components we have (1800), returning _all_ results isn't useful. eg. searching for "moz" returns 1434 components. i'd prefer to retain the upper limit on our search results but increase the limit (to, say, 100), and add an indication that the limit has been hit. eg. "More than 100 components found .." while you're there, can you please pass maxResults to the webservice method; while looking at this i realised we don't set the limit parameter for the call, resulting in a lot of unnecessary data in the response. ::: extensions/ProdCompSearch/web/styles/prod_comp_search.css @@ +15,5 @@ > width: 360px; > } > > +#prod_comp_search_form .yui3-aclist-content { > + height: 500px; this should be "max-height". if only one component is found, this div doesn't need to be 500px high.
Attachment #8493350 - Flags: review-
Attached patch 1059318_2.patch (obsolete) — Splinter Review
New patch with suggested changes.
Attachment #8493350 - Attachment is obsolete: true
Attachment #8493888 - Flags: review?(dylan)
Comment on attachment 8493888 [details] [diff] [review] 1059318_2.patch Review of attachment 8493888 [details] [diff] [review]: ----------------------------------------------------------------- I like that when there are fewer results, the height is shorter. But I concur with glob's previous review that we need some sort of indicator when more than the max results are returned. Perhaps you could request max_results + 1, and when the web service returns that number, display ""More than 100 components found .."?
Attachment #8493888 - Flags: review?(dylan) → review-
Attached patch 1059318_3.patchSplinter Review
Ah meant to add that in the last revision but forgot. Added the message about > 100 comps.
Attachment #8493888 - Attachment is obsolete: true
Attachment #8494563 - Flags: review?(dylan)
Comment on attachment 8494563 [details] [diff] [review] 1059318_3.patch Review of attachment 8494563 [details] [diff] [review]: ----------------------------------------------------------------- ship it :-D r=dylan
Attachment #8494563 - Flags: review?(dylan) → review+
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git 550d53c..9f07124 master -> master
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Component: Extensions: ProdCompSearch → Extensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: