8e3067e44b
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> |
||
---|---|---|
.. | ||
fixtures | ||
unit |