Add Tanuki Logo to Usage Quotas page for no Duo Pro subscription
What does this MR do and why?
Solves https://gitlab.com/gitlab-org/gitlab/-/issues/454593
We are missing Tanuki Ai logo for Duo Pro Usage Quotas page
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
General setup
Enable the following feature flags in the Rails console (bundle exec rails c
):
Feature.enable(:code_suggestions)
Feature.enable(:code_suggestions_tokens_api)
Feature.enable(:purchase_code_suggestions)
Feature.enable(:self_managed_code_suggestions)
Feature.enable(:hamilton_seat_management, <group-id>)
- We need a group with a subscription that isn't free, you can comment out the below if you do not have a group with a subscription: Edit groups_helper.rb
def show_code_suggestions_tab?(group)
true
# gitlab_com_subscription? && gitlab_duo_available?(group) && !group.has_free_or_no_subscription?
end
- Visit
http://localhost:3000/groups/duo-pro/-/usage_quotas#code-suggestions-usage-tab
- You should see the tanuki logo as seen in screenshots.
Related to #454593
Edited by Minahil Nichols