Experiment: Ultimate Trial Benefit Modal
What does this MR do and why?
Implement the ultimate_trial_benefit_modal
experiment, which shows either the control (current path) or the candidate experience to user upon completion of trial registration.
Related to #424502
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Control | Candidate |
---|---|
How to set up and validate locally
note: apply trial to group requires local customersDot setup, so to validate the experiment, please comment out the line to check active trial in learn_gitlab_helper.rb
def show_ultimate_trial_benefit_modal?(project)
# return unless project.root_ancestor.trial_active?
experiment(:ultimate_trial_benefit_modal, group: project.root_ancestor) do |e|
e.candidate { true }
end.run
end
- Setup to simulate SaaS and restart GDK.
- In rails console, run
Feature.enable(:ultimate_trial_benefit_modal)
- Register as a new user.
- On the welcome page, select any
role
andJust me
. - Chose
Create a new project
- Click
Continue
- Fill out fields to create a group and project on the next page.
- Click
Create project
- Verify you get to the onboarding and page refreshes to provide a
Ok, let's go
button. - Click the button and verify you are dropped into the learn gitlab page and the candidate modal pops up with confetti.
- (You can create a cookie manually in dev tool:
confetti_post_signup
with valuetrue
, and refresh the learn gitlab page to experience it 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Roy Liu