change wiki permissions to be simpler and more consistent

test plan (on a course wiki and group wiki):
 - the following roles should interact with the wiki as they did before:
   - admin (non-enrolled)
   - teacher
   - student
   - member (group wiki)
   - public (non-enrolled)
 - course setting set to "Teachers and Students" (or "Anyone")
   - students (or anyone) can create pages
   - students (or anyone) can edit an existing page (unless the page is set to "Teachers only")
   - students (or anyone) cannot edit pages set as "Teachers only"
 - non-enrolled admins behave as an enrolled teacher

fixes #CNVS-7046

Change-Id: I677d52a53e83580a56aa9b5b834a50610719e42f
Reviewed-on: https://gerrit.instructure.com/22606
QA-Review: August Thornton <august@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
darken inbox header buttons

fixes CNVS-7120

test plan:
  * as a site admin, navigate to /conversations/beta
    and verify that the header buttons are sufficiently
    dark.

Change-Id: I27bcf01255ade199c029a0248001bd0a4c53111c
Reviewed-on: https://gerrit.instructure.com/22696
Reviewed-by: Braden Anderson <banderson@instructure.com>
QA-Review: Braden Anderson <banderson@instructure.com>
QA-Review: Cam Theriault <cam@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Zach Pendleton <zachp@instructure.com>
add group edit dialog for changing name

fixes CNVS-6215

testing steps:
* on the groups page, use the gear menu to edit a group
* change the group name and save it
* verify the name was changed in the display
* re-open the edit dialog, the new name should
  be displayed for editing
* cancel the edit dialog and verify no saving action
  happens
* reload the page and the name change should remain
* verify group name is required
* verify error displayed when group name is too long

Change-Id: Ic87d592ec4cfe4cba504c85762c4cc3a2b1e0358
Reviewed-on: https://gerrit.instructure.com/22583
Reviewed-by: Jon Jensen <jon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Marc LeGendre <marc@instructure.com>
QA-Review: Marc LeGendre <marc@instructure.com>
remove spurious label, fixes CNVS-6440

label was added in b6645074 in order to get the font sizes the same. now
just change it so that labels inside paragraphs have the same font size as
other text

test plan:
1. go to /profile/settings
2. the Web Services paragraph and checkbox text should be the same size
3. the paragraph should not have a label around its text

Change-Id: If6a7a98449b0f6158bda883849ebd409b140a37a
Reviewed-on: https://gerrit.instructure.com/22686
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Marc LeGendre <marc@instructure.com>
Product-Review: Marc LeGendre <marc@instructure.com>
gear menu for new conversations

fixes CNVS-7037

test plan
- ensure the gear menu is disabled when there isn't a conversation
 selected
- ensure the gear menu is enabled when a conversation is selected
- select a conversation
- ensure that clicking 'Mark as unread' marks the conversation as
 unread in the display. Note that the conversation will not
 actually be marked as unread on the backend yet
- ensure that clicking 'Forward' will bring up the compose window.
 note that the button works the same as the 'Compose' button right
 now because the compose window can't disable the subject and
 context fields yet

Change-Id: I92740643b0eed9881c5e35326be8b43fd83915fe
Reviewed-on: https://gerrit.instructure.com/22634
Reviewed-by: Zach Pendleton <zachp@instructure.com>
Product-Review: Zach Pendleton <zachp@instructure.com>
QA-Review: Cam Theriault <cam@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
add modules to assignments index page

fixes CNVS-5678

test plan
- add some assignments/quizzes/discussions to a module
(or multiple modules)
- enable draft state and load the assignments index page
- the assignments should show the correct module
- assignments with multiple modules should say so and have
a hover over that lists the modules

Change-Id: Id68aade1d32422285f2fdee10c44626e69ccbea9
Reviewed-on: https://gerrit.instructure.com/22604
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
add google analytics tracking.

now tracking "sent" filter in conversations and the
star/unstar/mark as read/mark as unread buttons on
individual conversations.

Change-Id: I36428af61451736b600ffa666530cc5d4881d11c
Reviewed-on: https://gerrit.instructure.com/22459
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Braden Anderson <banderson@instructure.com>
QA-Review: Cam Theriault <cam@instructure.com>
Product-Review: Zach Pendleton <zachp@instructure.com>
conversations beta: fix attachments focus handling

fixes CNVS-6210

test plan:
  * compose a message in the new conversations interface
  * attach files to the message, sometimes cancelling
      the file selection dialog
  * verify that after adding an attachment, focus remains
      on the add button, even if you clicked a file
  * give one of the attachments focus
  * verify that upon focus the icon is styled with
    a blue drop-shadow
  * verify that when you press "delete", focus moves
      to another element
  * verify that the attachments pane closes when all
      attachments are removed
  * verify that the delete icon shows when focused on
      an attachment and that you can tab to it with
      the keyboard (note: broken in Firefox on OS X)
  * verify that you can activate the delete control
      while it is focused by pressing enter or space
  * verify that in Chrome, you can also delete an
      attachment by cancelling the file selection dialog
  * verify that you can change an attachment by double-clicking
      or pressing enter or space while it is focused,
      with appropriate icon updates
  * verify that you can move focus with the left/right arrow keys
  * verify that focus is preserved when shift-tabbing
      in Safari through all tabbables in a modal
  * verify that the remove icon isn't underlined when hovered

Change-Id: Id99af12c5bbe07ed0cedf36fadf5e792bbb88478
Reviewed-on: https://gerrit.instructure.com/22560
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Cam Theriault <cam@instructure.com>
Reviewed-by: Zach Pendleton <zachp@instructure.com>
Product-Review: Zach Pendleton <zachp@instructure.com>
Kaltura: display error message for actionscript exception

fixes CNVS-7015

test plan:
  * open the media comments dialog, such as through conversation composing
  * don't have kaltura set up properly
  * switch to the "Upload Media" tab
  * verify that you get a useful error message
  * verify that the message shows up in IE
  * if possible, verify that you do not get the error message
      if kaltura is set up properly

Change-Id: Ib47633fab427258b35552de9a4ab6f4cb019d217
Reviewed-on: https://gerrit.instructure.com/22526
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Zach Pendleton <zachp@instructure.com>
QA-Review: Cam Theriault <cam@instructure.com>
Product-Review: Zach Pendleton <zachp@instructure.com>
people page - edit sections dialog accessibility changes

test plan:
* section search bar should have a descriptive title
* links to remove sections (the 'x' icon) should be
able to be tabbed to and triggered using the keyboard,
and should have descriptive titles

fixes #CNVS-6522

Change-Id: I9355e8705345f69bd707ed4a5b064648d3cd7640
Reviewed-on: https://gerrit.instructure.com/22327
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
re-reading a discussion topic should fulfill requirement

test plan:
* create a course with a student and a discussion topic

* as the student:
 * read the discussion topic

* as the course admin:
 * add the discussion topic as a context module item
 * add the topic as a module completition requirement
 that students "Must view" to complete

* as the student:
 * reading the discussion topic again should fulfill
 the requirement

fixes #CNVS-6987

Change-Id: I10f0113ad1b38f9bf6635cd18494a7a160ddaa3c
Reviewed-on: https://gerrit.instructure.com/22579
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
alerts are announcements

Change-Id: I4e0387d77eea0deeae3b30dff5c06118b328f584
Reviewed-on: https://gerrit.instructure.com/22687
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
quiz statistics - don't include preview data

closes #6331

test plan:
1. create a new quiz with one question
2. preview it as the teacher (and submit)
3. publish the quiz
4. take the quiz as a student (and submit)
5. go to quiz statistics as the teacher
6. click the "item analysis" link on the right
   - observe there is only one row in the csv
     download, previously quiz previews created
     new rows but shouldn't have

Change-Id: Idedd643d02d6af23006852a2e35620f430a133d8
Reviewed-on: https://gerrit.instructure.com/22527
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
Product-Review: Ryan Florence <ryanf@instructure.com>
fix more fragile specs

fixes CNVS-7158

test plan:
- watch for offending specs in the CI run
- they should pass the first time an not show up in the reruns

Change-Id: I153380a9edef68634506010e327f8fe64ddae344
Reviewed-on: https://gerrit.instructure.com/22698
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cameron Matheson <cameron@instructure.com>
Product-Review: Bryan Madsen <bryan@instructure.com>
QA-Review: Bryan Madsen <bryan@instructure.com>
change course#named_scopes specs to be more robust

fixes #CNVS-7154

Change-Id: I04a015442692332a1eb4fc3a82d490e3b793d862
Reviewed-on: https://gerrit.instructure.com/22707
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Bryan Madsen <bryan@instructure.com>
add randomly assign unassigned users functionality to new group ui

fixes CNVS-6732

normal test plan:
0) change the "true" on the first line of
    app/coffeescripts/bundles/manage_groups.coffee to "false"
    to enable the test bed (feel free to change the GroupCategory ID as well)
1) go to the new group ui test bed (http://localhost:3000/courses/1/groups)
2) ensure that the GroupCategory you pick is not student organized, nor
    self signup restricted
3) click the cog
4) click "Randomly Assign Students"
5) click "Okay"
6) verify that everything in the #content area is replaced with a progress bar
7) wait for the progress bar to reach 100%
8) verify that the #content area changes back to show the groups, with the
     previously unassigned students distributed among the available groups

api test plan:
1) ensure delayed jobs is not running
2) navigate to the new group ui test bed
3) perform a random assignment, which should result in being stuck in progress
4) open up Postman in another tab
5) perform a GET request to http://localhost:3000/api/v1/group_categories/1
     (replace the 1 with your test GroupCategory's ID)
6) verify that the response includes a progress
7) verify that if you refresh the tab you did the random assignment in, you
     still see a progress bar
8) start delayed jobs and verify that the progress bar completes
9) verify the api documentation for a GroupCategory now includes a progress
     description (look in the box under "A Group Category object looks like:")

Change-Id: Ia8b24d899f428ad8ed50a9790a03802ca60d746d
Reviewed-on: https://gerrit.instructure.com/22288
Reviewed-by: Mark Ericksen <marke@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Marc LeGendre <marc@instructure.com>
QA-Review: Marc LeGendre <marc@instructure.com>
cleanup and renaming

closes CNVS-7160

test plan:
- the new assignment index page should still load

Change-Id: I9c2cae774fbd37190b68d8f2ce2b86a15050e981
Reviewed-on: https://gerrit.instructure.com/22609
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
move published status to styleguide

closes CNVS-7161

test plan:
- check out the styleguie, and see that published buttons/text has moved to the
  'Published State' left menu
- make sure the published state still looks good at the top of the assignment
  and quiz edit pages

Change-Id: I6f22d5629b76ca9b805c51d6526cc7a46004bdc4
Reviewed-on: https://gerrit.instructure.com/22662
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
don't change case of responses in multiple FitB

fixes CNVS-7085

test-plan:
 - create a quiz with a multiple fill in the blank question with two
   blanks, each with the correct answer in mixed case
 - in a submission for that quiz
   - fill in the first blank with a correct answer but with differing case
   - fill in the second blank with an incorrect answer with mixed case
 - review the quiz submission
   - the correct answer should be marked as correct, but retain the
     casing of the response (not the key)
   - the incorrect answer should be marked as incorrect and retain the
     casing of the response

Change-Id: I1f7c1a9912c13574360203bdf943ffa25b246a1b
Reviewed-on: https://gerrit.instructure.com/22593
Reviewed-by: Stanley Stuart <stanley@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
Product-Review: Jacob Fugal <jacob@instructure.com>
update plugins to use a styleguide table

Test plan:
  - make sure the plugins index page (/plugins) looks alright.
  - make sure that all the links work ilke they did before.
  - make sure that links in the "website" column go to the rgiht place
    like they did before.
  - make sure the plugins page is still accessible.

fixes CNVS-6870

Change-Id: If5fef9193387cda033e9e94cb825f8144614d6d9
Reviewed-on: https://gerrit.instructure.com/22308
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>