Closed Bug 717264 Opened 13 years ago Closed 12 years ago

Move Quick Filter Bar toggle button from tab toolbar to mail toolbar

Categories

(Thunderbird :: Mail Window Front End, defect)

12 Branch
defect
Not set
normal

Tracking

(thunderbird11+ fixed, thunderbird12 fixed)

RESOLVED FIXED
Thunderbird 13.0
Tracking Status
thunderbird11 + fixed
thunderbird12 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

Details

Attachments

(1 file, 2 obsolete files)

The current placement of the QFB toggle button doesn't make a whole lot of sense.  It exists outside of the tab that it belongs to, and is disabled unless that tab is selected.

Blake and I are toying with the idea of removing the Quick Filter Bar button from the tab toolbar, and just having it exist as an optional button in the Customize Toolbar dialog.
CC'ing some folks who might be interested.  I'm including davida, since it was a discussion with him that precipitated this idea.
I think we should keep it, since the button is actually useful on other tabs (potentially). Both Lightning calendar and task tabs have UI that works basically like the QFB, and it just needs to be hooked up to take advantage of the toggle button (the task tab already responds to Ctrl+Shift+K; not sure on the calendar tab).
I don't know if I understand your comment…  Are you suggesting that we have the QFB toggle button do different things per-tab?
Correct. I think the QFB toggle should be a toggle for anything in a tab that works as a filter you can show/hide. Both kinds of Lightning tabs have something like this. The address book tab might also have something like this, though maybe we just want an always-present search box for that.

I know the Lightning devs have expressed interest in doing this before, but I think they ran into an issue with it (which might be fixed by now).
Philipp:

Did you have some input on this?

-Mike
Given we have a search feature both in calendar and task tab, I wouldn't object to keeping it. I understand that other tab types may not profit from this though.

If you plan to remove it from the tab toolbar anyway, I'd appreciate if you could add an optional toolbar button to Lighting (both tabs) too.

squib is right though, I think Ctrl+Shift+K is not hooked up on the calendar tab. We should fix that, maybe as part of a different bug.
Blocks: tb-tabsontop
Hardware: x86_64 → All
Assignee: nobody → mconley
Summary: Remove Quick Filter Bar toggle button from tab toolbar → Move Quick Filter Bar toggle button from tab toolbar to mail toolbar
Jb wants this for 11.
Attached patch Patch v1 (obsolete) — Splinter Review
Here's my first run at this.

I'm wary of landing stuff on beta, but a swath of local testing seems to indicate that this patch does what it's supposed to do.  I've written a simple test case for custom toolbars as well.
Attachment #597914 - Flags: review?(squibblyflabbetydoo)
Attached patch Patch v2 (obsolete) — Splinter Review
Whoops - forgot to include my tests with that last patch.
Attachment #597914 - Attachment is obsolete: true
Attachment #597914 - Flags: review?(squibblyflabbetydoo)
Attachment #597919 - Flags: review?(squibblyflabbetydoo)
Attached patch Patch v3Splinter Review
So I was a bit overconfident when I pushed to try so soon - I just ran all Mozmill tests locally, and I had a failure in the old migration tests for TB 2 to TB 3.

This version of the patch fixes it.  The rest of the failures I got locally were random oranges we sometimes happen to get.

I'm going to hold off requesting review until I see the test results that try spits out.  If it's just the same migration test failure as I got here, then I'll go ahead and r?.  Until then, I'd rather not stuff squib's inbox with more bugmail than he needs.  :D

-Mike
Attachment #597919 - Attachment is obsolete: true
Attachment #597919 - Flags: review?(squibblyflabbetydoo)
Attachment #597947 - Flags: review?(squibblyflabbetydoo)
After this patch, can users customize the mail toolbar to remove the quick filter button altogether? Chances are that many users (like me :) will never use the button because it's such a frequent action that it's really worth remembering the keyboard shortcut...
Thomas,

Yes! The Quick Filter toggle will be like any of the other toolbar buttons - you can move it to other toolbars, or get rid of it altogether.

-Mike
Comment on attachment 597947 [details] [diff] [review]
Patch v3

Review of attachment 597947 [details] [diff] [review]:
-----------------------------------------------------------------

Aside from the question below, I'm happy with this.  r=me, and I think ui-r=me, just in case you need it…

::: mail/base/modules/mailMigrator.js
@@ -197,0 +197,12 @@
> > +      // In UI version 3, we move the QFB button from the tabbar toolbar to
> > +      // to the mail toolbar.
> > +      if (currentUIVersion < 3) {
> > +        let currentSetResource = this._rdf.GetResource("currentset");
NaN more ...

Wouldn't that replace "a,qfb-show-filter-bar,b" with "a,,b"?  Do we not care, because this._setPersist will take care of it for us?
Attachment #597947 - Flags: ui-review+
Attachment #597947 - Flags: review?(squibblyflabbetydoo)
Attachment #597947 - Flags: review+
The lines of code that was referring to was supposed to be:
    currentSet = currentSet.replace(/(^|,)qfb-show-filter-bar($|,)/,
    "$1$2");
:P
Blake:

I borrowed this technique from the Firefox version of migrateUI, where they do the same thing (see:  http://mxr.mozilla.org/comm-central/source/mozilla/browser/components/nsBrowserGlue.js#1183)

That, coupled with the fact that the migration seems to work and the test passes, suggests to me that setPersist takes care of this for us.

-Mike
Comment on attachment 597947 [details] [diff] [review]
Patch v3

I believe we want this for TB 11.
Attachment #597947 - Flags: approval-comm-beta?
Attachment #597947 - Flags: approval-comm-aurora?
Landed on comm-central as http://hg.mozilla.org/comm-central/rev/78966d586c8a
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 13.0
Attachment #597947 - Flags: approval-comm-beta?
Attachment #597947 - Flags: approval-comm-beta+
Attachment #597947 - Flags: approval-comm-aurora?
Attachment #597947 - Flags: approval-comm-aurora+
Depends on: 730072
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: