-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
18 changed files
with
136 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
body { | ||
@include sc-responsive-typography; | ||
background: $near-white; | ||
font-family: $primary-font-stack; | ||
min-width: $app-min-width; | ||
} | ||
|
||
.Body { | ||
&--nearWhite { | ||
background: $near-white; | ||
} | ||
&--white { | ||
background: $white; | ||
} | ||
} | ||
|
||
$font-medium: 400; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,37 @@ | ||
<% content_for :body_layout_body_color, 'white' %> | ||
<% content_for :page_title, "Split Details: #{@split.name}" %> | ||
|
||
<div class="TakeoverText"> | ||
<h1 class="TakeoverText-title sc-m-v--l">Reassign Visitors to <%= @split.name %></h1> | ||
</div> | ||
|
||
<div class="InfoCard"> | ||
<%= simple_form_for(@bulk_assignment_creation, url: admin_split_bulk_assignments_path) do |f| %> | ||
<%= f.input :identifiers_listing, as: :text, label: 'IDs To Assign', :input_html => {:rows => 10} %> | ||
<%= simple_form_for(@bulk_assignment_creation, url: admin_split_bulk_assignments_path) do |f| %> | ||
<%= f.input :identifiers_listing, as: :text, label: 'IDs To Assign', :input_html => {:rows => 10} %> | ||
<% if @bulk_assignment_creation.new_identifier_creation_ratio_above_warning_threshold? %> | ||
<div id="identifier_creation_warning"> | ||
<p> | ||
<%= percentage @bulk_assignment_creation.new_identifier_creation_ratio %> | ||
(<%= @bulk_assignment_creation.new_identifier_count %> of <%= @bulk_assignment_creation.total_identifiers_to_assign_count %>) | ||
of the identifiers provided will be <em>created</em> as part of this operation. | ||
<br> | ||
That's unusual. Please verify that you selected the correct <strong>Identified By</strong> below | ||
and double-check that the IDs listed above are correct. | ||
Do you still wish to proceed? | ||
</p> | ||
<% if @bulk_assignment_creation.new_identifier_creation_ratio_above_warning_threshold? %> | ||
<div id="identifier_creation_warning"> | ||
<p> | ||
<%= percentage @bulk_assignment_creation.new_identifier_creation_ratio %> | ||
(<%= @bulk_assignment_creation.new_identifier_count %> of <%= @bulk_assignment_creation.total_identifiers_to_assign_count %>) | ||
of the identifiers provided will be <em>created</em> as part of this operation. | ||
<br> | ||
</div> | ||
<div class="sc-m-l--s"> | ||
<%= f.input :force_identifier_creation, as: :boolean, label: 'YES', wrapper_html: { class: "has-error" } %> | ||
</div> | ||
<% end %> | ||
<div class="IdentifierTypeSelection sc-m-v--s"> | ||
<%= f.input :identifier_type_id, label: 'Identified By', collection: identifier_types, label_method: :name, value_method: :id, include_blank: true %> | ||
That's unusual. Please verify that you selected the correct <strong>Identified By</strong> below | ||
and double-check that the IDs listed above are correct. | ||
Do you still wish to proceed? | ||
</p> | ||
<br> | ||
</div> | ||
<div class="fs-VariantOptions"> | ||
<%= f.input :variant, label: "To Variant", include_blank: false, collection: @split.variants, as: :radio_buttons %> | ||
<div class="sc-m-l--s"> | ||
<%= f.input :force_identifier_creation, as: :boolean, label: 'YES', wrapper_html: { class: "has-error" } %> | ||
</div> | ||
<%= f.input :reason, placeholder: "e.g. Turn FeatureX on" %> | ||
<%= render "shared/form_footer", f: f, submit_text: "Assign To Split", submit_disable_with_text: "Assigning..." %> | ||
<% end %> | ||
</div> | ||
<div class="IdentifierTypeSelection sc-m-v--s"> | ||
<%= f.input :identifier_type_id, label: 'Identified By', collection: identifier_types, label_method: :name, value_method: :id, include_blank: true %> | ||
</div> | ||
<div class="fs-VariantOptions"> | ||
<%= f.input :variant, label: "To Variant", include_blank: false, collection: @split.variants, as: :radio_buttons %> | ||
</div> | ||
<%= f.input :reason, placeholder: "e.g. Turn FeatureX on" %> | ||
<%= render "shared/form_footer", f: f, submit_text: "Assign To Split", submit_disable_with_text: "Assigning..." %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
<% content_for :body_layout_body_color, 'white' %> | ||
<% content_for :page_title, "Split Details: #{@split.name}" %> | ||
|
||
<div class="TakeoverText"> | ||
<h1 class="TakeoverText-title sc-m-v--l">Decide '<%= @split.name %>'</h1> | ||
</div> | ||
|
||
<div class="InfoCard"> | ||
<%= simple_form_for(@decision, url: admin_split_decisions_path) do |f| %> | ||
<p class="title">Deciding this split in favor of a variant will have two immediate consequences:</p> | ||
<ol class="ExplanationList sc-m-l--s sc-p-l--xs"> | ||
<li>This split will be re-weighted so that all <span class="u-emphasis">future</span> assignments will be to the variant specified.</li> | ||
<li>All visitors currently assigned to any other variant in this split will be <span class="u-emphasis">re-assigned</span> to the variant specified.</li> | ||
</ol> | ||
<%= simple_form_for(@decision, url: admin_split_decisions_path) do |f| %> | ||
<p class="title">Deciding this split in favor of a variant will have two immediate consequences:</p> | ||
<ol class="ExplanationList sc-m-l--s sc-p-l--xs"> | ||
<li>This split will be re-weighted so that all <span class="u-emphasis">future</span> assignments will be to the variant specified.</li> | ||
<li>All visitors currently assigned to any other variant in this split will be <span class="u-emphasis">re-assigned</span> to the variant specified.</li> | ||
</ol> | ||
|
||
<div class="InfoCard-row sc-m-t--m"> | ||
<strong>Current Population: <%= @split.assignments.count %></strong> | ||
</div> | ||
<div class="fs-VariantOptions"> | ||
<%= f.input :variant, label: 'Target Variant', collection: @split.variants, as: :radio_buttons, include_blank: false %> | ||
</div> | ||
<div class="sc-m-t--m"> | ||
<strong>Current Population: <%= @split.assignments.count %></strong> | ||
</div> | ||
<div class="fs-VariantOptions"> | ||
<%= f.input :variant, label: 'Target Variant', collection: @split.variants, as: :radio_buttons, include_blank: false %> | ||
</div> | ||
|
||
<%= render "shared/form_footer", f: f, submit_text: "Decide Split", submit_disable_with_text: "Saving your Split Decision...", confirm_text: "\nYou are deciding '#{@split.name}'.\nDo you wish to proceed?" %> | ||
<% end %> | ||
</div> | ||
<%= render "shared/form_footer", f: f, submit_text: "Decide Split", submit_disable_with_text: "Saving your Split Decision...", confirm_text: "\nYou are deciding '#{@split.name}'.\nDo you wish to proceed?" %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
<% content_for :body_layout_body_color, 'white' %> | ||
<% content_for :page_title, "Split Details: #{@split_creation.name}" %> | ||
|
||
<div class="TakeoverText"> | ||
<h1 class="TakeoverText-title sc-m-v--l">Split: <%= @split_creation.name %></h1> | ||
</div> | ||
|
||
<div class="InfoCard"> | ||
<%= simple_form_for(@split_creation, url: admin_split_split_config_path) do |f| %> | ||
<% f.simple_fields_for :weighting_registry do |ff| %> | ||
<% if @split_creation.errors.include? :weighting_registry %> | ||
<div class="sc-flash sc-m-b--s error"> | ||
<%= @split_creation.errors.full_messages_for(:weighting_registry).join(', ') %> | ||
</div> | ||
<% end %> | ||
<%= simple_form_for(@split_creation, url: admin_split_split_config_path) do |f| %> | ||
<% f.simple_fields_for :weighting_registry do |ff| %> | ||
<% @split_creation.weighting_registry.each do |variant, weight| %> | ||
<%= ff.input variant, as: :percent, input_html: { value: weight, class: "weight-input" } %> | ||
<% end %> | ||
<% if @split_creation.errors.include? :weighting_registry %> | ||
<div class="sc-flash sc-m-b--s error"> | ||
<%= @split_creation.errors.full_messages_for(:weighting_registry).join(', ') %> | ||
</div> | ||
<% end %> | ||
<%= render "shared/form_footer", f: f, submit_text: "Edit", submit_disable_with_text: "Changing..." %> | ||
<% @split_creation.weighting_registry.each do |variant, weight| %> | ||
<%= ff.input variant, as: :percent, input_html: { value: weight, class: "weight-input" } %> | ||
<% end %> | ||
<%= render "shared/form_footer", f: f, submit_text: "Edit", submit_disable_with_text: "Changing..." %> | ||
<% end %> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,21 @@ | ||
<% content_for :page_title, @split_detail.split.name %> | ||
<% content_for :body_layout_body_color, 'white' %> | ||
<% content_for :page_title, "Split Details: #{@split_detail.split.name}" %> | ||
|
||
<div class="TakeoverText"> | ||
<h1 class="TakeoverText-title">Context and outcomes</h1> | ||
</div> | ||
|
||
<div class="InfoCard"> | ||
<%= simple_form_for @split_detail, url: admin_split_details_path, method: :put do |f| %> | ||
<%= f.error :base %> | ||
<%= f.input :owner, label: "Squad Name" %> | ||
<%= f.input :platform, collection: Split.platforms.keys %> | ||
<%= f.input :location, label: "Location", hint: "Example: Sign Up" %> | ||
<%= simple_form_for @split_detail, url: admin_split_details_path, method: :put do |f| %> | ||
<%= f.error :base %> | ||
<%= f.input :owner, label: "Owner" %> | ||
<%= f.input :platform, collection: Split.platforms.keys %> | ||
<%= f.input :location, label: "Location", hint: "Example: Sign Up" %> | ||
<%= f.input :description, as: :text, hint: "Example: Users often get confused during the account creation process when reaching step 2, 'Personal Details'. We are testing two different versions of this page that aim to clear up that confusion." %> | ||
<%= f.input :description, as: :text, hint: "Example: Users often get confused during the account creation process when reaching step 2, 'Personal Details'. We are testing two different versions of this page that aim to clear up that confusion." %> | ||
<%= f.input :hypothesis, as: :text, hint: "Example: By rearranging some of the fields and adding helper text we can improve sign up completion rates and decrease the amount of support tickets we receive." %> | ||
<%= f.input :hypothesis, as: :text, hint: "Example: By rearranging some of the fields and adding helper text we can improve sign up completion rates and decrease the amount of support tickets we receive." %> | ||
<%= f.input :assignment_criteria, as: :text, hint: "Example: Assigned when any user enters the first step of the signup flow. Mobile users are not affected." %> | ||
<%= f.input :assignment_criteria, as: :text, hint: "Example: Assigned when any user enters the first step of the signup flow. Mobile users are not affected." %> | ||
<footer class="sc-TakeoverFooter"> | ||
<div class="sc-TakeoverFooter-content"> | ||
<%= link_to "Back", admin_split_path(id: @split_detail.split.id), class: 'sc-TakeoverFooter-ctaBack sc-Link sc-Link--arrowLeft ft-backButton' %> | ||
<%= f.submit "Update Details", data: { disable_with: "Updating Split..." }, class: 'u-button ft-confirmButton' %> | ||
</div> | ||
</footer> | ||
<% end %> | ||
</div> | ||
<%= render "shared/form_footer", f: f, back_path: admin_split_path(@split_detail.split.id), submit_text: "Update Details", submit_disable_with_text: "Updating Split...", submit_disable_with_text: "Assigning..." %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
<% content_for :body_layout_body_color, 'white' %> | ||
<% content_for :page_title, "Split Details: #{@split.name}" %> | ||
|
||
<div class="TakeoverText"> | ||
<h1 class="TakeoverText-title">Details for variant: <%= @variant_detail.variant %></h1> | ||
</div> | ||
|
||
<div class="InfoCard"%> | ||
<%= simple_form_for @variant_detail, url: admin_split_variant_detail_path(@split, @variant_detail.variant), method: :put do |f| %> | ||
<%= f.error :base %> | ||
<%= f.input :display_name %> | ||
<%= f.input :description, label: 'Short description', hint: 'For example: There are FAQ links in a sidebar on the Activity Tab' %> | ||
<%= simple_form_for @variant_detail, url: admin_split_variant_detail_path(@split, @variant_detail.variant), method: :put do |f| %> | ||
<%= f.error :base %> | ||
<%= f.input :display_name %> | ||
<%= f.input :description, label: 'Short description', hint: 'For example: There are FAQ links in a sidebar on the Activity Tab' %> | ||
|
||
<div class="sc-TakeoverFooter"> | ||
<div class="sc-TakeoverFooter-content"> | ||
<%= link_to 'Back', admin_split_path(@split), class: 'sc-TakeoverFooter-ctaBack sc-Link sc-Link--arrowLeft ft-backButton' %> | ||
<%= f.submit 'Continue', data: { disable_with: 'Updating variant...' }, class: 'u-button ft-confirmButton' %> | ||
</div> | ||
<div class="sc-TakeoverFooter"> | ||
<div class="sc-TakeoverFooter-content"> | ||
<%= link_to 'Back', admin_split_path(@split), class: 'sc-TakeoverFooter-ctaBack sc-Link sc-Link--arrowLeft ft-backButton' %> | ||
<%= f.submit 'Continue', data: { disable_with: 'Updating variant...' }, class: 'u-button ft-confirmButton' %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.