Add a user overage modal
What does this MR do and why?
Introduce a feature flag overage_members_modal and show a modal confirmation window when adding new members to a group.
The modal will be shown if the group has a subscription and adding a new member to it will cause overage.
This is a first part of implementing this modal, currently we show the overage modal on every addition if the FF is turned on. There is be a backend follow-up MR to add a proper check.
| Step | Status |
|---|---|
| Introduce a FF and a modal on FE |
|
| Add logic to when we show overage modal and calculate the amount of users for overage | !78287 (merged) workflowin dev |
Related to #348486 (closed)
Screenshots or screen recordings
Screen_Recording_2022-02-15_at_19.34.14
How to set up and validate locally
-
If the feature flag is not enabled user won't see an overage modal
-
Enable the overage modal
Feature.enable(:overage_members_modal) -
Visit any group page, then Group Information -> Members
http://localhost:3000/groups/<your-group>/-/group_members. -
Click the
Invite membersbutton -
Add a user and click
Invite. -
Check the modal.
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.