auto-managed shared "Show all tasks" filter on every board + config toggle v1.5

This commit is contained in:
2026-07-08 21:09:30 -03:00
parent 8a97c5cb94
commit bc266ff969
6 changed files with 110 additions and 2 deletions

View File

@@ -57,6 +57,13 @@ class Plugin extends Base
'template' => 'plugins/OrganonTweaks/Asset/js/enhance-recurrence.js',
));
}
// Tweak: keep a shared "Show all tasks" custom filter (empty query -> open + closed) on every
// board as a one-click "clear the filter". Ensured lazily when a project header renders, so
// it covers old and new boards. The config toggle bulk-adds/removes them (ConfigController).
if ((int) $this->configModel->get('organon_tweaks_show_all_filter', 1) === 1) {
$this->template->hook->attach('template:project:header:before', 'organonTweaks:project_header/show_all_filter');
}
}
public function getHelpers()
@@ -83,7 +90,7 @@ class Plugin extends Base
public function getPluginVersion()
{
return '1.4.2';
return '1.5.0';
}
public function getPluginHomepage()