Add preview alert on invite members modal
What does this MR do and why?
Similar to !100733 (merged)
This adds a preview variant alert when inviting members to namespaces that have :preview_free_user_cap
feature flag enabled
Screenshots or screen recordings
How to set up and validate locally
-
Enable preview free user cap in console (
gdk rails c
)Feature.enable(:preview_free_user_cap) Feature.enable(:notification_free_user_cap_show_over_limit)
-
See screenshots here and go to that admin area.
-
In that admin area for free user cap,
Enable
, set the dashboard limit to 5. -
Create a private top-level group
-
Visit any group or project member pages such as
http://gdk.test/groups/flightjs/-/group_members
-
Click the
invite members
button. -
Invite 5 users.
-
Refresh the page (separate issue to resolve modal state issue) https://gitlab.com/gitlab-org/gitlab/-/issues/323226#note_1138639667
-
Re-launch invite modal and notice preview free user cap alert.
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 #379022