Skip to content

Experiment: Add Billing to a top-level navigation item

Doug Stull requested to merge 338540-add-billing-to-side-nav into master

What does this MR do and why?

Screenshots or screen recordings

In side bar

expanded collapsed
Screen_Shot_2021-11-23_at_4.18.58_PM Screen_Shot_2021-11-23_at_4.19.07_PM

after clicking

expanded collapsed
Screen_Shot_2021-11-23_at_4.21.05_PM Screen_Shot_2021-11-23_at_4.21.19_PM

Mobile

Screen_Shot_2021-11-23_at_4.22.30_PM

How to set up and validate locally

  1. Turn on billing features in the app(via rails console)
    ApplicationSetting.first.update(check_namespace_plan: true)
  2. Enable the experiment fully(via rails console)
    Feature.enable(:billing_in_side_nav)
  3. Visit any group or project pages such as http://localhost:3000/flightjs
  4. Observe the Billings link in the side nav
  5. Click link and see that your are redirected to the top level group's billing page with correct highlighting.

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

Edited by Doug Stull

Merge request reports

Loading