Introduce wallet agnostic view behind a feature flag

What does this MR do and why?

This creates a new feature flag to switch the GitLab Credits Dashboard view to a new one that we'll develop in https://gitlab.com/groups/gitlab-org/-/work_items/21464

References

Screenshots or screen recordings

For Group (SaaS)

FF off FF on
group_new_dashboard_ff_on group_new_dashboard_ff_off

For Instance (SM)

FF off FF on
admin_new_dashboard_ff_off admin_new_dashboard_ff_on

How to set up and validate locally

Turn on/off the wallet_agnostic_credits_dashboard FF: https://gdk.test:3443/rails/features/

  1. For Group (SaaS)
    1. Make sure you're simulating SaaS
    2. Have a paid group
    3. Navigate to Group > Settings > GitLab Credits: https://gdk.test:3443/groups/<your-group>/-/settings/gitlab_credits_dashboard
    4. Ensure it behaves like the screenshots
  2. For Instance (SM)
    1. Make sure you're NOT simulating SaaS
    2. Have a license applied to your instance
    3. Navigate to Admin > GitLab Credits: https://gdk.test:3443/admin/gitlab_credits_dashboard
    4. Ensure it behaves like the screenshots

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Sheldon Led

Merge request reports

Loading