Closed Bug 1838589 Opened 1 year ago Closed 1 year ago

Items in the view button are not persistent - when switching between folders the last view for the specific folder should be applied

Categories

(Thunderbird :: Folder and Message Lists, defect, P2)

Thunderbird 115
Desktop
All

Tracking

(thunderbird_esr102 unaffected, thunderbird_esr115+ fixed, thunderbird117 wontfix, thunderbird119 wontfix)

RESOLVED FIXED
120 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird_esr115 + fixed
thunderbird117 --- wontfix
thunderbird119 --- wontfix

People

(Reporter: pascalc, Assigned: mkmelin)

References

(Blocks 1 open bug)

Details

(Keywords: regression, triaged, Whiteboard: [Supernova3p])

Attachments

(3 files)

Attached image View drop down list

Thunderbird 1150b2, Linux.

The items you select via the view drop down button should persist. This is a regression from 110 beta (I went from 110beta to 115beta2).

STR:
1 Select Unread messages from the view
2 See that now unread messages only are displayed
3 click on another folder and click back to the folder you were in

ER:
Only unread messages are displayed

AR:
All messages are displayed

km, does this reproduce for you with 115.0b2?

related? Bug 1823182 - Nothing in the View toolbar button works - e.g. Not Deleted / Unread / Tags / Customize

Flags: needinfo?(km)
Flags: needinfo?(geoff)

I just updated to 115.0b2 from b1 which did in fact fix Bug 1823182 and the view menu now works. As far as Bug 1838589 I cannot reproduce the problem. I tried switching between different folders and the view choice for that folder sticks.

Flags: needinfo?(km)
Whiteboard: [Supernova3p]

Tentatively marking this as WFM as per comment 2, we can reopen it if needed.

Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(geoff)
Resolution: --- → WORKSFORME

This is still broken for me in 115b4.

Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---

Is the original STR still valid?
I can't reproduce it either.

Flags: needinfo?(pascalc)

Yes, the steps are still valid.

Flags: needinfo?(pascalc)

Steve, can you reproduce?

Flags: needinfo?(steve)
Attached image Filter bar

Sorry if I sound a bit vague, where is the view drop down list shown in the initial post?
If I select "unread" and "sticky" buttons only unread messages are shown, including changing folders, until I deselect "sticky" or "unread"

Flags: needinfo?(steve)

(In reply to Steve Edmonds from comment #8)

Sorry if I sound a bit vague, where is the view drop down list shown in the initial post?

Not quick filter bar.
The View widget is a toolbar button, which must be added to the unified toolbar. The icon is an eye.

Flags: needinfo?(steve)
Duplicate of this bug: 1843033

Reproduces easily

Flags: needinfo?(steve) → needinfo?(alessandro)
OS: Linux → All
Severity: -- → S3
Priority: -- → P2
See Also: → 1821623

Martin, I know the "View" button is our favourite toolbar widget.
Would you be able to tackle this?

Flags: needinfo?(alessandro) → needinfo?(martin)
Keywords: triaged
Duplicate of this bug: 1853086
Duplicate of this bug: 1850720
Duplicate of this bug: 1849712
Duplicate of this bug: 1849843
Duplicate of this bug: 1849827

Martin writes in matrix "I have no idea at least for me it wouldn't be easy." So this is stalled.

Flags: needinfo?(alessandro)
See Also: → 1823182

This is a very irritating bug but, having upgraded, I guess I have to live with it until it is fixed.

I took the 115.3.1 update in the faint hope it was sorted but no.

Is this a hard one to fix or are only a few people affected? I notice it is Priority 2 so I guess I will have to be patient.

This bug affects me also.
Version 115.3.1
Windows 11
I typically use Custom View - Recent or Important. This selection is not saved when Thunderbird is closed.
If I can provide any info to help fix this bug, let me know.

Duplicate of this bug: 1858433
Duplicate of this bug: 1858111

Until the patch from the betterbird project above in comment #20 (or whatever patch that turns into) gets delivered through all the right channels, here's a workaround:

For each folder that you vitally depend on keeping its custom view setting, open that folder in its own tab, and then in each such new tab turn off the folder pane so that you won't accidentally switch the tab to looking at a separate folder. You can still switch folders in your main tab.

This seems like it will be a "good enough for a few weeks" solution for me, because I mainly depend on setting persistent custom views for just a few folders.

Any better suggestions?

Status: REOPENED → NEW
Summary: Items in the view button are not persistent → Items in the view button are not persistent - when switching between folders the last view for the specific folder should be applied

Gah, the whole View widget is really quite confusing now in 115 since it doesn't show what view is applied :/
In 102 it showed View: [<name in dropdown>].

Flags: needinfo?(martin)
Flags: needinfo?(alessandro)
Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED

(In reply to Magnus Melin [:mkmelin] from comment #25)

Gah, the whole View widget is really quite confusing now in 115 since it doesn't show what view is applied :/
In 102 it showed View: [<name in dropdown>].

ah, I wasn't aware of that and I guess we never fixed it when we hooked the widget back up again. Would probably require a new string though, unless the old one is still around.

(The folder location button updates its label based on the selection, for example)

EDIT: shouldn't actually need any string changes if it follows the location button functionality.

Attachment #9357993 - Attachment description: Bug 1838589 - Restore the View button settings for the folder when revisiting it - when switching between folders the last view for the specific folder should be applied. r=freaktechnik → Bug 1838589 - Restore the View button settings for the folder when revisiting it. r=freaktechnik
Target Milestone: --- → 120 Branch
See Also: → 1858750

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/7d5e44997df5
Restore the View button settings for the folder when revisiting it. r=freaktechnik

Status: ASSIGNED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED

I'll back this out. It causes at least one regression and test failure. Our tree has several failures, I haven't yet checked if it's reponsible for other failures, too.

You can reproduce by building on Linux, running test comm/mail/test/browser/folder-display/browser_openingMessages.js
which gives:
FAIL uncaught exception - TypeError: can't access property "isVisible", top.ViewPickerBinding is undefined at get shouldUseMailViews@chrome://messenger/content/mailCommon.js:915:5

Pushed by kaie@kuix.de: https://hg.mozilla.org/comm-central/rev/171df021eb70 Backed out changeset 7d5e44997df5 for test failures.

This probably should get a try run before relanding.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Sorry about that, we suggest to use:

  get shouldUseMailViews() {
    return top.ViewPickerBinding?.isVisible || false;
  },

Pushed by brendan@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/e8de928f24a9
Restore the View button settings for the folder when revisiting it. r=freaktechnik

Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED

Comment on attachment 9357993 [details]
Bug 1838589 - Restore the View button settings for the folder when revisiting it. r=freaktechnik

[Approval Request Comment]
Regression caused by (bug #): supernova
User impact if declined: view is not restored when moving between folders
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): safe

Attachment #9357993 - Flags: approval-comm-esr115?
Attachment #9357993 - Flags: approval-comm-beta?

Comment on attachment 9357993 [details]
Bug 1838589 - Restore the View button settings for the folder when revisiting it. r=freaktechnik

[Triage Comment]
no betas left in this cycle

Attachment #9357993 - Flags: approval-comm-beta? → approval-comm-beta-
Whiteboard: [Supernova3p] → [Supernova3p][TM:115.4.1]

(In reply to Magnus Melin [:mkmelin] from comment #35)

Risk to taking this patch (and alternatives if risky): safe

Agree this should be safe, and it's totally broken now anyway, so taking this for 115.4.0.

Whiteboard: [Supernova3p][TM:115.4.1] → [Supernova3p]

Comment on attachment 9357993 [details]
Bug 1838589 - Restore the View button settings for the folder when revisiting it. r=freaktechnik

[Triage Comment]
Approved for esr115

Attachment #9357993 - Flags: approval-comm-esr115? → approval-comm-esr115+
Duplicate of this bug: 1861781
See Also: → 1858695
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: