Notify group owners as they approach the user limit in their subscription
Problem
GitLab.com group owners do not get any alerts when they are approaching their user limit. This can cause surprises for customers at renewal, and when they are contacted or charged for overages.
Proposal
We should provide alerting to the owners via an in-app banner:
- Banner displayed to members of the parent namespace which have
owner
permissions - Banner displayed on all pages with the parent namespace, nested subgroups and projects
- Where possible we should mimic the experience created in: #217804 (closed)
- Banner should be displayed according to this threshold: #217804 (comment 346508547)
- We should be comparing the
Seats currently in use
to theSeats in subscription
counts for this threshold - Allow users to dismiss the banner
- Show the banner again after dismissal when the threshold is triggered again by additional users being added.
Availability & Testing
- Ensure tests are added that check if this banner only shows when the threshold is reached and not before.
- Frontend tests
- Validate that banner appears appropriately with close button and content.
- Validate that when closing the banner, the banner does close.
- Are we toggling something in the backend for UX that doesn't show the banner if it's already been displayed? (Something like a "Don't show again." flag)
Edited by Tatyana Golubeva