Commit Graph

11 Commits

Author SHA1 Message Date
Ryan Florence d321342929 switched custom course list graphic to checkboxes
the + - metaphor was confusing (was it a status?
was it an action?)

Change-Id: I0a8ed3dd894509ec8c2e1d0ba4d9e3cf1dce7a9d
Reviewed-on: https://gerrit.instructure.com/6848
Reviewed-by: Zach Wily <zach@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
2011-11-10 10:43:10 -07:00
Brian Whitmer 6b83b9227c basic lti navigation links
By properly configuring external tools (see
/spec/models/course_spec/rb:898 for examples) they can
be added as left-side navigation links to a course,
an account, or to the user profile section of Canvas.

testing notes:
- you have to manually set options on the external tool:
- for user navigation the tool needs to be created on the root account
  with the following settings:
  {:user_navigation => {:url => <url>, :text => <tab label>} }
  (there are also some optional language options you can set using
  the :labels attribute)
- for account navigation it's the same
- for course navigation it's the same, except with :course_navigation
  there's also some additional options:
  :visibility => <value> // public, members, admins
  :default => <value> // disabled, enabled

test plan:
- configure a user navigation tool at the root account level,
  make sure it shows up in the user's profile section

- configure a course navigation tool at the account level,
  make sure it shows up in the course's navigation

- configure a course navigation tool at the course level,
  make sure it shows up in the course's navigation

- make sure :default => 'disabled' course navigation tools don't
  appear by default in the navigation, but can be enabled on
  the course settings page

- make sure :visibility => 'members' only shows up for course members

- make sure :visibility => 'admins' only shows up for course admins

- configure an account navigation tool at the account level,
  make sure it shows up in the account's navigation, and
  any sub-account's navigation

Change-Id: I977da3c6b89a9e32b4cff4c2b6b221f8162782ff
Reviewed-on: https://gerrit.instructure.com/5427
Reviewed-by: Brian Whitmer <brian@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
2011-11-04 17:07:17 -06:00
Jon Jensen 395b0fdb07 only load course list when menu first opens
previously it did the ajax query on every page load, and always
regardless of whether anything could be customized. this seems like
a reasonable compromise to ensure there is no noticeable wait when
clicking on the customize link.

also fixed a display issue where the custom list editor got clipped
if you had no accounts or groups.

test plan:

1. regression test of menu customization
 1. add courses
 2. remove courses
 3. reset list
2. ensure menu works as expected for users w/ <= 8 courses
3. ensure menu customization ui works for teachers w/ > 8 courses
   and who are not account admins (i.e. no managed accounts)

Change-Id: I390806e6a05211fae9a7375490ca2036774edc7c
Reviewed-on: https://gerrit.instructure.com/6607
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Ryan Florence <ryanf@instructure.com>
2011-11-03 09:14:59 -06:00
Ryan Florence 8e3067e44b added favorite courses option to main menu
Features
--------

- The course menu shows the top 12 courses in
  alphabetical order

- Users with > 12 courses will get a button to
  edit the courses in their menu.  Any courses
  they add become favorites and will remain
  in the course menu, and visa versa for those
  they remove

- Users can reset the menu to the default 12

Noteworthy Ruby changes:
------------------------

- Added Favorites model
  Favorites are polymorphic so we can save other
  contexts as favorites in the future.

- Added FavoritesController

- Added User#menu_courses
  This opens up some room to remove lots of code
  that's used to build the main menu, but that
  isn't in this commit.  Gives a list of all the
  courses that show up in the user's menu.

- Added User#favorites

- Added User#favorite_courses

- Refactored Enrollment::readable_type to cache


Noteworthy JavaScript changes:
------------------------------

- Jasmine specs are totally working

- Added CustomList constructor

- Added courseList (CustomList instance)

- Added objectCollection
  Utility function that extends an array with
  methods useful for collections of objects.
  Used to manage the data state in CustomList

Fixes #4827

Change-Id: I59468e517ad07678741402bf9cf479cba1dfeaa1
Reviewed-on: https://gerrit.instructure.com/5982
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
2011-10-24 15:50:34 -06:00
Ryan Shaw f9acb060ed upgrade compass to latest version
Change-Id: Idc2281df9d35ca8ec9713050fafd6bd1c32d0da3
Reviewed-on: https://gerrit.instructure.com/5851
Reviewed-by: Zach Pendleton <zachp@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
2011-09-29 12:44:23 -06:00
Ryan Shaw 3266429c32 some css classes to make tables pretty
Change-Id: Idb791b38131170e9a9d67251d83beb0199c2a35d
Reviewed-on: https://gerrit.instructure.com/5789
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Ryan Florence <ryanf@instructure.com>
2011-09-26 17:27:53 -06:00
Brian Whitmer 0848a7aa21 change 'feedback' dialog to 'help' dialog
Changed the "feedback" link to say "help" instead, and put a
dialog in front of the original feedback dialog which helps
point users to additional useful resources.

Also added account#custom_feedback_links so that plugins can
optionally add other useful links to this help dialog.

fixes #177

Change-Id: I31e855cbf83475006dd530cd027aff123a75d56a
Reviewed-on: https://gerrit.instructure.com/5310
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2011-09-15 16:01:23 -06:00
Ryan Shaw 1ae02291f0 fix tiny resizer
(also added a selenium test for loading the file
tree tab async)

Change-Id: Ia39172e349b9cb977fb43c051e598b35dd62c155
Reviewed-on: https://gerrit.instructure.com/3023
Tested-by: Selenium <selenium@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Zach Wily <zach@instructure.com>
2011-05-23 08:16:42 -06:00
Brian Whitmer e0bdaf3071 ignore link in To Do stopped working
Change-Id: I12798b20fa23aeb00c40b402dd9d2f7d2ec7c8d5
Reviewed-on: https://gerrit.instructure.com/2692
Reviewed-by: Zach Wily <zach@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
2011-03-18 14:19:29 -06:00
Ryan Shaw c0a4463176 More simple footer links
Change-Id: I33908099d5b532e7932b63cfb375ff9f3ce75804
Reviewed-on: https://gerrit.instructure.com/2141
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: JT Olds <jt@instructure.com>
2011-02-03 10:24:15 -07:00
Brian Whitmer 8b8173dcc9 Initial commit.
closes #6988138
2011-01-31 18:57:29 -07:00