Commit Graph

60 Commits

Author SHA1 Message Date
juan.chavez 00455b4620 Fix issue when creating groups in assignment edit page
closes LX-2002

flag=selective_release_ui_api
flag=selective_release_edit_page

pre-requisites:
- Have a course with students and without group sets.
test plan:
- Navigate to an assignment creation page.
- Click on "This is a Group Assignment".
> Notice that the group set dropdown IS NOT visible.
- Click on New Group Category.
- On the modal, add a name, select "Split students in
groups" and set the number to 1.
- Save the modal.
- Wait until creation process ends.
> Verify that the group set dropdown IS visible.
> Verify that the new group set is automatically selected.
> Save.
> Verify on the edit page that the group set selection
is persisted.

NOTE: The original issue is reproducible without the
selective_release_edit_page FF so you can test this
with the FF disabled.

Change-Id: Ib1141736efb3f7ad48aac1646b23233573ed2d23
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/355734
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Juan Chavez <juan.chavez@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-08-23 16:27:48 +00:00
alvaro.talavera 448355b4b9 Fix when Group sets are updated for assign to cards
closes LX-1961

flag=selective_release_ui_api
flag=selective_release_edit_page

test plan:
- create a new assignment
- mark as group and select a group set
- add one group to the asignees in the cards
- save it
- go back to edit and try to change the set group
- an error should appear

Change-Id: I29779795b301e9a9d56188abf0843ef2f3459238
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/355465
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jonathan Guardado <jonathan.guardado@instructure.com>
QA-Review: Jonathan Guardado <jonathan.guardado@instructure.com>
Product-Review: Alvaro Talavera <alvaro.talavera@instructure.com>
2024-08-21 02:25:13 +00:00
Aaron Shafovaloff a09e3372c7 move query-string-encoding
Change-Id: Iac755b5473e0b4d307a403db11b7c763d013be77
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/355211
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2024-08-15 18:29:41 +00:00
Aaron Shafovaloff 7ac2dfd206 replace QUnit specs with Jest tests
Change-Id: Ib8c50e84add9ba27f24ee823d7ab49dc4385ebeb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/350579
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-20 12:06:21 +00:00
Aaron Shafovaloff 1533bfff0c replace QUnit specs with Jest tests
Change-Id: Ib1fd168baa69029230214ed68a46b417ec433ada
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/350527
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-19 20:22:26 +00:00
Aaron Shafovaloff e4f9877286 replace some QUnit specs with Jest
Change-Id: Iac2c227b766f1410e8250aeac72268dc5e5034b8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/350474
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rohan Chugh <rohan.chugh@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2024-06-18 21:54:49 +00:00
Aaron Shafovaloff d8e8722e5b @canvas/test-utils and @canvas/package-tests
Change-Id: Icc92f295327d605fcd8792babba5f0ed64dd30f0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/350010
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2024-06-13 11:41:10 +00:00
Aaron Shafovaloff 6d77f25bc8 finish colocating QUnit test files
also:
  - remove spec/coffeescripts
  - remove most contents of spec/javscripts/
  - remove unused helpers

Change-Id: Ib07411a9d98083688b3f3eb56a9d9eb9fc2601eb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/349993
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Build-Review: James Butters <jbutters@instructure.com>
2024-06-13 11:40:57 +00:00
Mario Hegyi 7241115442 Show proper error message for duplicate group names
fixes VICE-4308
flag=none

Test plan:
- Go to a course's people page
- Create a group set
- Create another group set with the same name
- A proper error message should show the name is already in use

Change-Id: Idb0875ad9ed0716b7918ea24965703e5a93061f9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/349591
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jason Gillett <jason.gillett@instructure.com>
Product-Review: Mario Hegyi <mario.hegyi@instructure.com>
QA-Review: Roland Beres <roland.beres@instructure.com>
2024-06-11 07:41:00 +00:00
Aaron Shafovaloff 0e872dee09 colocate Backbone collection specs
Change-Id: I8602495b46a72b05de1ce23cf858046270c4ee30
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/349460
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2024-06-06 19:29:58 +00:00
Aaron Shafovaloff 94eec36cb6 run prettier on ui/ and spec/
Change-Id: If7c95860bab3791a5be1dea1961d83dbb6a5dd50
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/347401
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2024-05-15 15:31:35 +00:00
Jason Perry 08441503cf Fix missing translation for group manage link
Fixes FOO-4376
flag=none

Test Plan:
  - Best a student who manages a group
  - Go to the group page, see the manage link is
    translated now.

Change-Id: I340e447ade7c17fe34ac7b53458e1d896e133632
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/347305
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ryan Norton <rnorton@instructure.com>
Product-Review: Ryan Norton <rnorton@instructure.com>
QA-Review: Jason Perry <jason.perry@instructure.com>
2024-05-15 14:37:20 +00:00
Ryan Norton c54ef5af33 fix missing translation
Change-Id: I253d4a8fdcd99268ef436598feed05ea6de14b52
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/343012
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
Reviewed-by: Gustavo Bernardes <gustavo.bernardes@instructure.com>
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
QA-Review: Ryan Norton <rnorton@instructure.com>
Product-Review: Ryan Norton <rnorton@instructure.com>
2024-03-15 20:18:23 +00:00
Michael Hulse 240e7d7314 add jquery ui dialog options to each instance
Each instance of the jQuery UI dialog will now incorporate
specific options that were previously implemented through
custom modifications to the source code. This update aims
to streamline our codebase by directly applying critical
customizations, such as z-index and modal type, to the
instantiation calls themselves. By doing so, we eliminate
the need to maintain separate versions of the library
source code with one-off modifications.

refs FOO-4258
flag=none

test plan: tests pass

[skip-crystalball]

Change-Id: I213cfd8d7b754c3d9ca202bc70a2fe563ccaff57
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/340323
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Michael Hulse <michael.hulse@instructure.com>
Product-Review: Michael Hulse <michael.hulse@instructure.com>
Reviewed-by: Jen Smith <jen.smith@instructure.com>
2024-02-13 05:07:36 +00:00
Aaron Shafovaloff 8516408005 capture more errors with sentry
Change-Id: I63427f6a762d35e8cb479a17a7458814b89b3865
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/339287
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2024-01-30 22:51:12 +00:00
Aaron Shafovaloff 044a49c143 replace use of $.param
this resolves some test failures with jquery 1.8

it also reduces jquery usage

refs FOO-3741

Change-Id: Ic9d77395d15f28db5252a6d5221f30c69b2f5796
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/338463
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2024-01-23 18:18:01 +00:00
Aaron Shafovaloff e0b90383b9 upgrade prettier
Change-Id: I9a0fd5a82163462822bec33fc5e39261e6adcd22
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/337220
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Derek Williams <derek.williams@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2024-01-10 18:11:55 +00:00
Aaron Shafovaloff b980ed6839 move $.raw to independent function
also adds jsdoc comments to @instructure/html-escape

closes FOO-4193

flag=none

Change-Id: Iff1779c18320d84f43d39c0bca5f91410c77ec0d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/336857
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2024-01-06 05:43:58 +00:00
Aaron Shafovaloff 2193317c01 reduce JS linting noise
flag=none

flag=none

Change-Id: I54e0c3e4403b14ead4476937aba2a0db24c40f37
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/336817
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-01-05 21:14:49 +00:00
Aaron Shafovaloff edf1991434 replace misc underscore shim usage with lodash
refs CFA-33

flag=none

Change-Id: Id11635a0a34183b9a3408bdfb5ad2b471f39d48f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/336735
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-01-04 23:54:43 +00:00
Aaron Shafovaloff 8666d5d97d replace misc use of underscore shim with lodash
Change-Id: I3af178ae7e66ca2aa9b515e3b5e1359d501b778c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/336518
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2024-01-03 18:52:20 +00:00
Aaron Shafovaloff df5d37c54b move jquery.instructure_forms
This is part of a larger effort to remove
cyclical dependencies.

Refs CFA-27

flag=none

Change-Id: I69471400e98e67a3b0d19877a3833e6ef1ba8286
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335934
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
2023-12-24 01:03:45 +00:00
Chawn Neal 217b453516 Do not shift focus into Group when expanding a group as a student
flag = none
fixes VICE-3741

Test Plan:
0) Make a course,
make sure on more options you allow for students
and teachers.
1) Go to /courses/1/groups as a student.
2) Test tabbing doesn't go into sub menu.

Change-Id: Ieb467c482bf8f568a91914bde64bebecc62fcb75
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332597
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Jason Gillett <jason.gillett@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
2023-11-14 19:14:33 +00:00
Drake Harper 06d864bd7d Add search icon to group page search
fixes VICE-3742
flag=none

Test Plan:
- as a student
- go to the people page
- select the group tab
- the search bar should function as expected
- search icon should render before input

Change-Id: I27f3e1b2adfd3725c2f95b60cfb5eb4019a6f0cb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/331639
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Sam Garza <sam.garza@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Chawn Neal <chawn.neal@instructure.com>
2023-10-30 21:50:22 +00:00
Drake Harper df8a0b2c83 Make name field obioulsy required in group set modal
closes VICE-3738
flag=none

Test Plan:
- go to groups page
- click create set button
- submit without filling in any fields
- name field should show bright red
- lable should show with '*'

Change-Id: I113d98a9c007c64b912c83871c429486fe010651
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/330125
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Sam Garza <sam.garza@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
2023-10-12 16:19:25 +00:00
Aaron Shafovaloff 4101f38e11 Prepare for InstUI upgrade
Test plan
  - Build passes

flag=none

Refs FOO-3190

Change-Id: I719cf17c01bd791a1052e14d43b76327c1cda9e7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/325941
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-08-23 19:07:06 +00:00
rohan.chugh b2d4fc4c5d update group search to filter on backend
modifies the REST API endpoint that the student view groups page uses
to fetch groups to add a filter query param. this param filters
groups by group name or the names of the users of the group.

closes EVAL-3254
refs EVAL-3253

flag=none

test plan:
- go to a canvas course that has a large number of groups (e.g. 100+)
- go to the people tab of the course
- click on student view at the top right
- go to the groups section on the people page of the student view
- search for a group name or a user's name that is in the group
- ensure that only one request is made to find those filtered groups
- ensure that the groups that are returned are filtered by the search
  term
- enter another search term
- ensure that only one request is made to find those filtered groups
- ensure that the groups that are returned are filtered by the search
  term and NOT the previous search term

Change-Id: Iaa62024aaef7f1db50d5cf7029bc590cf31c396b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/324188
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
2023-08-15 18:13:46 +00:00
Aaron Shafovaloff 11b284327c move .js files with JSX to .jsx extension
- .js files without JSX reduces unnecessary AST transformation
 - also paves way for vitest

test plan:
  - existing tests pass

flag=none

Change-Id: I392daefdfefab89e7cf511477e16c860b05519ff
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/323393
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Build-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
2023-07-24 14:59:37 +00:00
Aaron Shafovaloff c400f929e2 decaf Group.coffee
test plan:
  - existing tests pass
  - substantial comments are preserved

flag=none

refs FOO-3470

Change-Id: I7f7a55884a5ab976c31d4dbcb4d8e7c9612976dc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/316437
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
QA-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
2023-04-19 20:51:55 +00:00
Aaron Shafovaloff 34f9e9493c decaf GroupUser.coffee
test plan:
  - existing tests pass
  - substantial comments are preserved

flag=none

refs FOO-3470

Change-Id: I5d47a7921a473caaf5a36cda214a3a8a4300cc29
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/316432
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2023-04-19 20:24:44 +00:00
Aaron Shafovaloff 174627b725 decaf GroupCategoryEditView.coffee
test plan:
  - existing tests pass
  - substantial comments are preserved

flag=none

refs FOO-3470

Change-Id: I9463b140cc342b19c73bac2a7988d6403a534b51
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/316301
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2023-04-18 22:21:05 +00:00
Aaron Shafovaloff 8776de0175 decaf ui/shared (7)
test plan:
  - existing tests pass
  - substantial comments are preserved

flag=none

refs FOO-3470

Change-Id: I67e0ad6f20debb31fa6d764ac12f5ab55872a90e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/316269
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2023-04-18 21:04:02 +00:00
Aaron Shafovaloff c08eb6a7e4 decaf ui/shared (6)
test plan:
  - existing tests pass
  - substantial comments are preserved

flag=none

refs FOO-3470

Change-Id: I246b0b3615f83c0fff80218ec1648cfaf9ff7c7a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/316207
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-04-18 15:43:26 +00:00
Aaron Shafovaloff ecbc1a034c decaf ui/shared (5)
test plan:
  - existing tests pass

flag=none

refs FOO-3470

Change-Id: I4cc0c6412b879689b1aa179c8ee73f4a3d07dbcc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/316194
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
QA-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
2023-04-18 14:10:48 +00:00
Jackson Huang b3055bea55 fixes alignment of assignment edit page
we want the fix some inconsistencies in the assignment
edit page

fixes EVAL-2613
flag=

test plan:
- create an assignment
- click on the edit button
- make sure assignment boxes are aligned

Change-Id: I6d9d3e1c002832bc6b5ce810bae921eb3d36d35c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/314202
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Cameron Ray <cameron.ray@instructure.com>
2023-04-12 16:24:00 +00:00
Aaron Shafovaloff 51349dfa05 remove .coffee extension from coffeescript imports
this removes annoyances when decaffeinating files

test plan:
  - all tests pass

flag=none

Change-Id: Ie3af0faf13d64a4701bb917fbcae29cb10474df1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/315484
Reviewed-by: Derek Williams <derek.williams@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Cameron Ray <cameron.ray@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-04-10 17:01:42 +00:00
Kai Bjorkman fa30e3c603 group assignment checkbox fixed for chrome screenreaders
In this one instance, the checkbox was using an attribute called
`aria-checked`. This is currenlty having bugs within chrome and is no
longer needed as screen readers can now user the normal `checked`
attribute.

closes EVAL-2945
flag=none

Test Plan:
- test using Chrome and FF, create an assignment in a course
- Using a supported screen reader, tab to the Group Assignment option
and enable it
- Tab to the Assign Grades Individually option
- Tab back to the Group Assignment option and ensure it annouces
correctly whether the box is checked.

Change-Id: I04cc6ec14867892794104ef2889b3fc3168fd5b0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/314475
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: Derek Williams <derek.williams@instructure.com>
QA-Review: Derek Williams <derek.williams@instructure.com>
Product-Review: Cameron Ray <cameron.ray@instructure.com>
2023-04-06 19:45:33 +00:00
Omar Gerardo Soto-Fortuño 2c5396f0ec Show error if the user tries to set the limit group members to 1
closes VICE-3380
flag=none

test plan:
  - Specs pass.
  - Go to the People's Page.
  - Create a group set.
  - Enable “Allow Self Sign-up”.
  - Enter a name and set the “Limit Group Members” to 1.
  - Click Save and it should show an error message.

qa risk: low

Change-Id: Ie667f5828ff0aa10b4e56849289c669ca606791b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313620
QA-Review: Jason Gillett <jason.gillett@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-20 17:47:45 +00:00
Davis Hyer 7fc3922300 inject referenced screenreader alert containers
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I1c05f6fb2e304784963a02ea68facc89ce32cc7d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312005
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-03-03 15:54:02 +00:00
Caleb Guanzon fe13297e6a simplify string for ssu hover text
fixes VICE-3292
flag=none

turning it into a plain string should lessen the
risk of issues when compiling for translations.

the next round of 3rd party spanish translations
should be able to translate it when they get to it

test plan:
- start canvas server
   LOLCALIZE=true bundle exec rails s
- visit the people page of a course
- create a new group set
- in the create group set modal, hover over
the info icon
- verify all the text inside the popup
is LOLCALIZED

Change-Id: Iedb72e20dd0d157be9ba22b2e310953a07600130
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/308785
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jason Gillett <jason.gillett@instructure.com>
Product-Review: Jason Gillett <jason.gillett@instructure.com>
QA-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
2023-01-13 17:08:06 +00:00
Jason Gillett 77191a1ecf Respect section_restricted_students in certain groups
closes VICE-3036
flag=none

Currently this patchset only removes groups inside of group_categories that:
1. Are self-signup
2. Require students to be in the same section
OR
1. Are not self-signup

Test Plan
1. Create a self-signup group set that requires students to be in the same section
2. Create a student that is limited to interact with students in their own section
3. Make sure the created student is in their own section
4. Make 3 groups
4a. Have a group with the ceated student
4b. Have a group with any other student
4c. Create an empty group
5. As the created student view your groups
6. Only the empty group and the group you are in should be visible

Change-Id: I084aedfb3e10b129618eff0fa4d1c1bb0561fecc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/302420
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
2022-11-08 17:08:34 +00:00
Aaron Shafovaloff 07d238b148 Resolve or disable misc eslint errors
Test plan:
    - All existing tests pass

flag=none

Refs DE-1426

Change-Id: Ic0ac4708089120ad83a6e7bd24eec1eaf4b310a2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/303859
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Derek Williams <derek.williams@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Deborah Kwak <deborah.kwak@instructure.com>
2022-10-25 14:10:39 +00:00
Aaron Shafovaloff 36e62f2c0d Disable anchor-is-valid rule on some lines
Test plan:
    - All existing tests pass

flag=none

Refs DE-1426

Change-Id: I30b7b12ed645cead7a43a7c0c7205a810475cf67
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/303677
Reviewed-by: Derek Williams <derek.williams@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
Product-Review: Cameron Ray <cameron.ray@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-10-20 14:33:03 +00:00
Aaron Shafovaloff dbe72511dd Stop using named refs
Test plan:
    - All existing tests pass

flag=none

Refs DE-1426

Change-Id: I4e28d6432d32c2a514e89df01c5114a6647756e5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/303578
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Eduardo Escobar <eduardo.escobar@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
Product-Review: Cameron Ray <cameron.ray@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2022-10-20 13:46:01 +00:00
Aaron Shafovaloff f1c4d0546b Resolve or disable misc eslint errors
Test plan:
    - All existing tests pass

flag=none

Refs DE-1426

Change-Id: I806e470973b36f68ba928b0a6347bc43ce96277b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/303511
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
Reviewed-by: Derek Williams <derek.williams@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Cameron Ray <cameron.ray@instructure.com>
2022-10-19 13:50:32 +00:00
Aaron Shafovaloff 03e16bc261 Resolve misc eslint errors
Test plan:
    - All existing tests pass

flag=none

Refs DE-1426

Change-Id: I888971eb3febd69fce08ed7c14990faedcb81336
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/303406
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Christopher Soto <christopher.soto@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Deborah Kwak <deborah.kwak@instructure.com>
2022-10-18 02:27:29 +00:00
Aaron Shafovaloff 86d0e7ced2 Update JavaScript in ui/ to latest prettier config
Test plan:
  - All existing tests pass

flag=none

[skip-eslint]

Change-Id: I36c1a2f47004185f8f02f4155b838c877ee495e3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/302256
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2022-09-29 22:04:26 +00:00
Drake Harper aef678ff68 Fix auto assign students to same sections
fixes VICE-2960
flag=none

Test Plan:
  Setup:
    - create a course
    - create multiple sections in the course
    - enroll students in the course in the various
       sections

  - go to the people page of the course
  - open create new group modal
  - change "create groups later" to "split by # of groups"
  - check the require students to be in the same section box
  - save the group
  > students should only share a group with students from
     same section

Change-Id: I304eb49baf7d62aef71e01ae4e8497c66321e8ba
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/294959
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Chawn Neal <chawn.neal@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Chawn Neal <chawn.neal@instructure.com>
QA-Review: Chawn Neal <chawn.neal@instructure.com>
2022-06-30 14:56:19 +00:00
Drake Harper 2ef503ef7f Update new group modal for accessibility
closes VICE-2671
flag=none

Test Plan:
 - able to create groups using self sign up flow

Change-Id: Ide308d2835ede3599bed161175cd16cae18645a4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/294680
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Jeffrey Johnson <jeffrey.johnson@instructure.com>
Product-Review: Jeffrey Johnson <jeffrey.johnson@instructure.com>
2022-06-27 16:37:35 +00:00
Drake Harper b64642d9fc Update react group modal for accessiblity
refs VICE-2671
flag=none

Test Plan:
 - can create groups by member count
 - can create groups by group count

Change-Id: If697cf6789c360f8456aaf56b5caf7bfebf6e965
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/294171
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Jeffrey Johnson <jeffrey.johnson@instructure.com>
Reviewed-by: Jeffrey Johnson <jeffrey.johnson@instructure.com>
2022-06-23 20:08:34 +00:00