[fix bug 991553] WIP excluding invisible groups from UI

#TODO: evaluate to reuse get_annotated_groups here