This change adds a "Groups" tab to the subject homepage. The tab appears
for students, and displays group information, if there is at least one
active group in the course. The tab always appears for instructors, but
does not display group information. Instead, it displays a welcome page,
with a button that links to the group management page.
closes LS-2578
flag=none
test plan:
- as a student, view a K5 subject with no groups present
- verify that the groups tab is not displayed
- as an instructor with permission to manage groups, view the same K5
subject
- verify that the groups tab is displayed, contains a welcome message, and
contains a button with the text "Manage Groups"
- click on the "Manage Groups" button, and add a group to the subject
- re-visit the subject as the student; confirm that the groups tab is
displayed, and lists the group that was just added
- as an instructor, re-order the Groups tab in subject settings
(navigation order)
- verify that the new navigation selection is effective when viewing the
subject
- remove group management permissions from the instructor
- verify that they still see the welcome message on the groups tab, but
that the button text now displays "View Groups"
Change-Id: I3809ac60c7ee988bd05ebe59ea70129fabad1d6b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/273139
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jeff Largent <jeff.largent@instructure.com>
QA-Review: Jeff Largent <jeff.largent@instructure.com>
Product-Review: Peyton Craighill <pcraighill@instructure.com>