Visibility Badge: handle active view changes, add a setter
Move handling of the active view change to the VisibilityBadge, and remove from the resource browser.
Also add setPhraseVisibility
to allow external control of the badge state per phrase.