Skip to content

Add preview alert on invite members modal

Jay Montal requested to merge 379022-add-preview-alert-on-invite-modal into master

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

image

How to set up and validate locally

  1. Simulate Saas and restart GDK

  2. 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)
  3. See screenshots here and go to that admin area.

  4. In that admin area for free user cap, Enable, set the dashboard limit to 5.

  5. Create a private top-level group

  6. Visit any group or project member pages such as http://gdk.test/groups/flightjs/-/group_members

  7. Click the invite members button.

  8. Invite 5 users.

  9. Refresh the page (separate issue to resolve modal state issue) https://gitlab.com/gitlab-org/gitlab/-/issues/323226#note_1138639667

  10. 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.

Related to #379022

Edited by Jay Montal

Merge request reports