Add free user limit information banner to project members page
What does this MR do and why?
Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/365375 (Eng: Add banner to Members page for users)
This MR adds a new alert component to the projects members page if the namespace has reached its free user limit.
Alert will only be shown if the following criteria is met:
- Free user cap is enforced for the namespace
- Free users in namespace is over the limit of 5
- User has not already dismissed alert
Screenshots or screen recordings
How to set up and validate locally
-
Start GDK in SaaS mode
-
Enable free_user_cap feature:
Feature.enable(:free_user_cap)
-
Option 1: Add a minimum of 6 users to namespace.
Option 2: Flip the logic of
namespace_over_limit?
inrender?
method inee/app/components/namespaces/free_user_cap/free_user_limit_alert_component.rb
-
Navigate to the Project > Members page
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #365375