Skip to content

Add usage quota & feature limitation banner to personal projects

What does this MR do and why?

Adds a banner message to the Project › Settings › Usage Quotas page within personal namespace projects. As seen here:

banner message design spec

Note: We do not need a changelog for this change as it is all behind a feature flag that is off by default.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Start in SaaS mode
  2. Turn on the feature flag: Feature.enable(:free_user_cap)
  3. Sign in as a user or create a new account
  4. Create a personal project (i.e. one attached to the user’s namespace)
  5. Navigate to the project’s Settings › Usage Quotas page
  6. Observe the banner
  7. If you like, you can make a second personal project and see that the banner shows up on its Usage Quotas page, too
  8. Also, if you like, you can create a project within a group and notice that the banner does not show up on its Usage Quotas page
  9. Dismiss the banner and refresh the page – it doesn’t come back
    • If you did step 7, you can refresh the other personal project’s Usage Quotas page too – the banner should not be shown again

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 #362258

Edited by Dallas Reedy

Merge request reports