Skip to content

Commit

Permalink
remove "Tour" functionality. nothing used it.
Browse files Browse the repository at this point in the history
closes: CNVS-28669
refs: CNVS-28781

Back in 2013 we came up with an awesome idea to have these
"Tours" to introduce new features and stuff. It was a
great idea but we don't use it anymore. it has been commented
out so it doesn't show up in the styleguide and all but one
(see below) were commented out of config/tours.rb.
so in the interest of not letting code hang around
that we don't use, I'm removing it (unless anyone is opposed
or has a good reason to leave it). If we want to do it in the
future, we can just add it back, because yay Git!

There was one place in quizzes that was still trying to
use a tour. if you go to create a quiz and edit a question
and then pick another option as the correct answer for a
multiple choice question it would try to show a tour telling
you that you could regrade all the existing submissions. but
in reality it just threw a javascript error and the tour never
popped up. So even though it was still in the code, it didn't
work. Since no one noticed that it stopped working, I'm assuming
we don't need it any more. Quizzes team and quizzes
product/QA, will you confirm this is ok?

test plan:
* no tours should show up anywhere in canvas
* read that paragraph above about the "regrade existing"
  thing in quizzes.
* try that feature, it should work but no tour should show up
  and no error should occur in the console

Change-Id: Ib2d6bbb80f93fd7ca0a33d20c1f57ee16e7027ea
Reviewed-on: https://gerrit.instructure.com/76875
Tested-by: Jenkins
Reviewed-by: Jennifer Stern <[email protected]>
QA-Review: Michael Hargiss <[email protected]>
Product-Review: Ryan Shaw <[email protected]>
  • Loading branch information
ryankshaw committed Apr 21, 2016
1 parent 2876c58 commit 80a7fb0
Show file tree
Hide file tree
Showing 28 changed files with 1 addition and 1,580 deletions.
8 changes: 0 additions & 8 deletions .fontcustom-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -678,14 +678,6 @@
"codepoint": 61853,
"source": "public/fonts/icons/toggle-right.svg"
},
"tour-info": {
"codepoint": 61854,
"source": "public/fonts/icons/tour-info.svg"
},
"tour-step-counter": {
"codepoint": 61855,
"source": "public/fonts/icons/tour-step-counter.svg"
},
"trash": {
"codepoint": 61856,
"source": "public/fonts/icons/trash.svg"
Expand Down
4 changes: 1 addition & 3 deletions app/coffeescripts/bundles/common.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ require [
# true modules that we manage in this file
'Backbone'
'compiled/helpDialog'
'compiled/tours'

# modules that do their own thing on every page that simply need to
# be required
Expand Down Expand Up @@ -47,9 +46,8 @@ require [
'vendor/jquery.pageless'
'vendor/jquery.scrollTo'
'compiled/badge_counts'
], ($, _, Backbone, helpDialog, tours) ->
], ($, _, Backbone, helpDialog) ->
helpDialog.initTriggers()
tours.init()

$('#skip_navigation_link').on 'click', ->
$($(this).attr('href')).attr('tabindex', -1).focus()
Expand Down
8 changes: 0 additions & 8 deletions app/coffeescripts/tours.coffee

This file was deleted.

54 changes: 0 additions & 54 deletions app/coffeescripts/views/TourView.coffee

This file was deleted.

94 changes: 0 additions & 94 deletions app/coffeescripts/views/tours/AgendaTour.coffee

This file was deleted.

16 changes: 0 additions & 16 deletions app/coffeescripts/views/tours/QuizRegrade.coffee

This file was deleted.

4 changes: 0 additions & 4 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ class ApplicationController < ActionController::Base
before_filter :init_body_classes
after_filter :set_response_headers
after_filter :update_enrollment_last_activity_at
after_filter :teardown_live_events_context
include Tour

add_crumb(proc {
title = I18n.t('links.dashboard', 'My Dashboard')
Expand Down Expand Up @@ -129,8 +127,6 @@ def js_env(hash = {})
@js_env[:TIMEZONE] = Time.zone.tzinfo.identifier if !@js_env[:TIMEZONE]
@js_env[:CONTEXT_TIMEZONE] = @context.time_zone.tzinfo.identifier if !@js_env[:CONTEXT_TIMEZONE] && @context.respond_to?(:time_zone) && @context.time_zone.present?
@js_env[:LOCALE] = I18n.qualified_locale if !@js_env[:LOCALE]
@js_env[:TOURS] = tours_to_run

@js_env[:lolcalize] = true if ENV['LOLCALIZE']
end

Expand Down
32 changes: 0 additions & 32 deletions app/controllers/tours_controller.rb

This file was deleted.

3 changes: 0 additions & 3 deletions app/stylesheets/components/_canvas-icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ Either use `<a>` with icon desired icon class added or insert `<i>` inside `<but
<span class="span3"><i class="icon-files-fair-use"></i> icon-files-fair-use</span>
<span class="span3"><i class="icon-files-obtained-permission"></i>icon-files-obtained-permission</span>
<span class="span3"><i class="icon-files-public-domain"></i> icon-files-public-domain</span>
<span class="span3"><i class="icon-tour-info"></i> icon-tour-info</span>
</div>
<div class="row-fluid">
<span class="span3"><i class="icon-import"></i> icon-import</span>
Expand Down Expand Up @@ -569,8 +568,6 @@ h1, h2, h3, h4, .h1, .h2, .h3, .h4, p {
.icon-timer:before { content: "\f19b"; }
.icon-toggle-left:before { content: "\f19c"; }
.icon-toggle-right:before { content: "\f19d"; }
.icon-tour-info:before { content: "\f19e"; }
.icon-tour-step-counter:before { content: "\f19f"; }
.icon-trash:before { content: "\f1a0"; }
.icon-trouble:before { content: "\f1a1"; }
.icon-twitter:before { content: "\f1a2"; }
Expand Down
1 change: 0 additions & 1 deletion app/stylesheets/components/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
@import "post-to-sis-state";
@import "pill";
@import "alerts";
@import "tour-popovers";
@import "element-toggler";
@import "ic-super-toggle";
@import "ic-image-text-combo";
Expand Down
Loading

0 comments on commit 80a7fb0

Please sign in to comment.