RealRaven2000 / quickFilters

Thunderbird Add-on: quickFilters
http://quickfilters.quickfolders.org/
Other
46 stars 11 forks source link

Make quickFilters compatible with Thunderbird 115 (SuperNova UI) #181

Open RealRaven2000 opened 1 year ago

RealRaven2000 commented 1 year ago

Various things break in Thunderbird beta 112 and higher, so they need to be reimplemented:

What parts are currently working

Below is a bumped version which only works partially in the current beta: quickFilters-wx-6.0pre1.zip

to install in Thunderbird beta, download the zip file and drag into Add-ons Manager (do not extract contents).

I made a new code branch for development (the code will be fundamentally different and thus needs to be forked from here on forward): https://github.com/RealRaven2000/quickFilters/tree/ESR115

RealRaven2000 commented 1 year ago

We made some strides testing the menu integration yesterday - defining the button through the manifest with a html popup will give it the chevron style that we desire for the dropdown. However I still need to figure out a way to trigger an event for showing the popup. In the meantime I managed to wrap the move and copy message functions (from the context menu) so that we can soon start using the assistant this way. Once the menu is functional we will be able to trigger the assistant once again.

Caveats: the event handlers in this version only deal with existing Thunderbird tabs, when a new tab is opened the wrapped code doesn't propagate there - I still need to figure out how to do this. Styling was fixed by injecting the old id into the button. The button is added automatically (to the right of the new mail toolbar area) and needs to be moved to the desired location by the user - again this is a standard in web extensions that cannot be changed at the moment.

Screenshot (Thunderbird 113.0b1) :

image

The "hasNews" flag (which makes the toolbar button a purple color) will later be able to be removed by triggering the menu and looking at the splash screen (WIP). For the moment, one can edit it in about:config if necessary: extensions.quickfilters.hasNews = false

Experimental version: quickFilters-wx-6.0pre10.zip

To install, download the zip file and drag into Thunderbird Add-ons Manager (without extracting contents)

note: tree listeners stuff doesn't work yet (so drag+drop of mails is currently not detected), and there are some kinks with removing the popup.

RealRaven2000 commented 1 year ago

Next experimental version. I had to eliminate quite a few global variables that do not exist anymore on account of each mail tab having it's own tree and dbView.

quickFilters-wx-6.0pre20.zip

I have tested as far as this:

To install, download the zip file and drag into Thunderbird Add-ons Manager (without extracting contents)

note: tree listeners stuff doesn't work yet (so drag+drop of mails is currently not detected), and there are some kinks with removing the popup, which is lower priority right now. Let's get the assistant working first.

RealRaven2000 commented 1 year ago

Next version - this one prepares filter based on archiving - but this will only work once FiltaQuilla has been ported to Thunderbird 115, which may take a little while. I also made sure the filter assistant is switched off when the Add-on is shutdown to avoid unpredictable behavior when updating quickFilters. Slowly removing all deprecated global objects that give access to the old folder tree and selected messages.

quickFilters-wx-6.0pre27.zip

To install, download the zip file and drag into Thunderbird Add-ons Manager (without extracting contents)

RealRaven2000 commented 1 year ago

quickFilters-wx-6.0pre28.zip

To install, download the zip file and drag into Thunderbird Add-ons Manager (without extracting contents)

RealRaven2000 commented 1 year ago

I pulled a half-nighter yesterday and managed to implement the folder Tree drop handlers:

quickFilters-wx-6.0pre31.zip

To install, download the zip file and drag into Thunderbird Add-ons Manager (without extracting contents)

RealRaven2000 commented 1 year ago

New version:

tested in Thunderbird 113.0b1

quickFilters-wx-6.0pre33.zip

To install, download the zip file and drag into Thunderbird Add-ons Manager (without extracting contents).

RealRaven2000 commented 1 year ago

Thunderbird 103.0b3 broke a lot of UI / toolbar button stuff

Here is a version that fixes most of these. Problem: if you update an existing instance of quickFilters the changes are not shown (button is not available when pathcing), this may be a problem of the WindowLoader (to investigate) - restart Thunderbird to see the changes.

quickFilters-wx-6.0pre45.zip

Previews: image image image

Regressions:

To install, download the zip file and drag into Thunderbird Add-ons Manager (without extracting contents)

RealRaven2000 commented 1 year ago

New regression in Thunderbird 114 beta - the menu is not added to the button when the Add-on is updated / installed from the Add-on Manager tab. This is because the button does not exist in the document at this stage and so cannot be customized with the file menu. We likely need to move the UI modification code (and possibly any code that patches folder tree) into a tab listener.

RealRaven2000 commented 1 year ago

New regression in Thunderbird 114 beta - the menu is not added to the button when the Add-on is updated / installed from the Add-on Manager tab. This is because the button does not exist in the document at this stage and so cannot be customized with the file menu. We likely need to move the UI modification code (and possibly any code that patches folder tree) into a tab listener.

Here is a new fixed version - this time I had to modify the action button by patching in the menu again whenever a mail tab is activated. I then enabled displaying the button both in mail and settings tab (mainly for testing).

I also had to re-initialize the label in order to keep messages such as "license expires in 5 days" - because Thunderbird just simply overwrites the label (with the Add-on name) if a tab from a different space is activated..

quickFilters-wx-6.0pre67.zip

To install, download the zip file and drag into Thunderbird Add-ons Manager (without extracting contents)

RealRaven2000 commented 1 year ago

The first compatible version quickFilters 6.0 was reviewed on addons.thunderbird.net and is now available for compatible versions of Thunderbird (115). I am going to continue compatibility work on this issue as there are still some open items (see below).

RealRaven2000 commented 1 year ago

Fixed the integration of mini-toolbar buttons into the QuickFolders Navigation bar (Current Folder toolbar):

image

this has to be loaded into a different window / document to be visible in the 3pane are of Thunderbird 115

quickFilters-wx-6.1pre9.zip

To install, download the zip file and drag into Thunderbird Add-ons Manager (without extracting contents)

RealRaven2000 commented 1 year ago

improved support for QuickFolders Current folder bar - in the new version of thunderbird, this is now in a different document (3pane) and there is one instance in every Thunderbird Tab that shows a folder.

image

quickFilters-wx-6.1pre13.zip

There are still some issues on the QuickFolders side (such as loading order) which should be resolved until QuickFolders 6.0 is released. For a compatible version to test, check this comment on the QF github.

To install, download the zip file and drag into Thunderbird Add-ons Manager (without extracting contents)

Amoeba00 commented 12 months ago

Using v6.1pre13.zip

image

Changed the manifest.json max version to 116 and it installed.

RealRaven2000 commented 12 months ago

Using v6.1pre13.zip

image

Please instead use the official version 6.0 that's already released on ATN:

https://addons.thunderbird.net/en-US/thunderbird/addon/quickfilters/versions/

I am not quite sure why it still doesn't show on the front page, it may be related to the strict_max_version of 115.0 (which is still current for the next 4 weeks)

Lab-doc commented 12 months ago

Setting up from scratch Betterbird 115.0-bb6. Quickfilters 6.0 fails to install. Error message is 'quickFilters could not be installed because it is not compatible with Betterbird 115.0' I realize both Betterbird and Quickfilters are under current revision, so this is a report offered in case you can find a solution in Quickfilters

Lab-doc commented 12 months ago

As already noted, editing manifest.json max version from 115 to 116 "fixes" the failure to install. It seems to work OK (very limited test)

RealRaven2000 commented 12 months ago

Setting up from scratch Betterbird 115.0-bb6. Quickfilters 6.0 fails to install. Error message is 'quickFilters could not be installed because it is not compatible with Betterbird 115.0' I realize both Betterbird and Quickfilters are under current revision, so this is a report offered in case you can find a solution in Quickfilters

I need to do some in depth testing, maybe there is a problem with Betterbird's versioning schema. When I release a version on ATN I can only use compatible version numbers of existing versions as strict_max_version, so I only have the choice between 115.0 or 115.*. My guess is that Betterbird's version (115.0-bb6) doesn't properly compare the version number (115.0 should be larger than any beta / derivative version)

the version hierarchy should work something like this: 115.* > 115.1 > 115.0.1 > 115.0 > 115.0b1 > 115.0a1

Betterbird commented 12 months ago

Betterbird 115.0 uses (surprise) 115.0 as version: console.log(AppConstants.MOZ_APP_VERSION). Add-ons compatible with that version will work, try: https://www.betterbird.eu/downloads/Addons/qfm-classic-1.103.0@betterbird.eu.xpi

pgnd commented 12 months ago

@RealRaven2000

I need to do some in depth testing, maybe there is a problem with Betterbird's versioning schema. When I release a version on ATN I can only use compatible version numbers of existing versions as strict_max_version, so I only have the choice between 115.0 or 115.*. My guess is that Betterbird's version (115.0-bb6) doesn't properly compare the version number (115.0 should be larger than any beta / derivative version)

the version hierarchy should work something like this: 115.* > 115.1 > 115.0.1 > 115.0 > 115.0b1 > 115.0a1

fyi

not just Betterbird ... here, same issue -- incompatible version, can't install -- with release channel TB 115 on linux + QF from ATN, Application Basics

Name: Thunderbird
Version: 115.0
Build ID: 20230711125218
Distribution ID:

Update Channel: release
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0 Thunderbird/115.0
OS: Linux 6.3.12-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul  6 04:05:18 UTC 2023

... Add-ons ... quickFilters extension 6.0 false quickFilters@axelg.com ...

RealRaven2000 commented 12 months ago

Betterbird 115.0 uses (surprise) 115.0 as version: console.log(AppConstants.MOZ_APP_VERSION). Add-ons compatible with that version will work, try: https://www.betterbird.eu/downloads/Addons/qfm-classic-1.103.0@betterbird.eu.xpi

@Betterbird: that installer has strict_max_version = 115.* (not 115.0). but patching it down it still stats compatible. strangely this one isn't:

quickFilters-wx-6.0.zip

If it's not strict_max_version, what else prevents it from being compatible?

Betterbird commented 12 months ago

https://addons.thunderbird.net/thunderbird/downloads/file/1022147/quickfilters-6.0-tb.xpi?src=version-history has this:

      "strict_min_version" : "112.0",
      "strict_max_version" : "115.0"

It still says: image

Looks like a bug in ATN! Sorry, can't help, two comments up a TB user reported the same.

RealRaven2000 commented 12 months ago

For those users who encounter the compatibility bug I here is a patched version with that sets strict_max_ver = 115.*

quickFilters-wx-6.1pre21.zip

To install, download the zip file and drag into Thunderbird Add-ons Manager (without extracting contents)

pgnd commented 12 months ago

@RealRaven2000

For those users who encounter the compatibility bug I here is a patched version with that sets

thanks, that does the trick for QuickFilters.

SmartTemplates is already 'happy'; QuickFolder is not, yet ... I'll jump over there.

RealRaven2000 commented 12 months ago

@RealRaven2000

For those users who encounter the compatibility bug I here is a patched version with that sets

thanks, that does the trick for QuickFilters.

SmartTemplates is already 'happy'; QuickFolder is not, yet ... I'll jump over there.

yeah there is no active prerelease on ATN anyway, I am going to bump to 115.* before I release beta1.

RealRaven2000 commented 12 months ago

I just released 6.0.1 to ATN today, should be reviewed by EOB.

wa4zlw commented 11 months ago

... tree listeners stuff doesn't work yet (so drag+drop of mails is currently not detected), and there are some kinks with removing the popup.

will check this out too thanks

leon

PotatoCarl commented 11 months ago

Hi, I just received Thunderbird 115.0.1 an immediately started to hate it. I saw that the toolbar and folder tab display is missing in Quickfilters, as well as any icon or "jump to" the folders. Is there any chance to get this back? Thanks.

RealRaven2000 commented 11 months ago

Hi, I just received Thunderbird 115.0.1 an immediately started to hate it. I saw that the toolbar and folder tab display is missing in Quickfilters, as well as any icon or "jump to" the folders. Is there any chance to get this back?

jump to, a.k.a. quickJump and the Navigation Bar (which can integrate commands of quickFilters in the center of the screen) are features of QuickFolders, which will be released for Thunderbird soon.

You can install the latest prerelease from here:

https://github.com/RealRaven2000/QuickFolders/issues/351#issuecomment-1646973067

the latest version there is 6.0 pre 303. the Navigation toolbar still needs some improvements as it is not in the correct position when in vertical view. Leave a comment there to discuss please.

RealRaven2000 commented 11 months ago

There is new version over at #203 which adds some of the missing menu items of the old versions.

RealRaven2000 commented 11 months ago

To do: the button "Custom Variables" in the custom templates editor has to be styled again. Probably add a focus color to attract attention.

image

RealRaven2000 commented 10 months ago

Just released a new version 6.2 with lots of bug fixes. Awaiting review on ATN right now.