Hey! I'm a contributor of `org-super-agenda` https://github.com/alphapapa/org-super-agenda, `org-super-agenda` lets you group tasks into blocks. However, `org-super-agenda` doesn't consider filtering, which might leave you with empty groups.
To solve that, I created a PR (https://github.com/alphapapa/org-super-agenda/pull/77) which advices `org-agenda-filter-apply` and `org-agenda-finalize` (https://github.com/alphapapa/org-super-agenda/pull/77/files#diff-465f82cd8ad2c42f0cebb190be6f58abR305). Both are calling the same function `org-super-agenda--hide-or-show-groups` (https://github.com/alphapapa/org-super-agenda/pull/77/files#diff-465f82cd8ad2c42f0cebb190be6f58abR1114). In that function I check for the property `'invisible`. If all tasks in a group are invisible the group gets hidden too. The question is now, is it possible to further reduce the advised functions to just one advised function. best, Christian