Commit Graph

2380 Commits

Author SHA1 Message Date
Aaron Shafovaloff f2077e6639 upgrade fetch-mock
flag=none

closes CFA-36

Change-Id: I472d3474e743ca8867ea3434154aa598293f1db1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/336880
Reviewed-by: Paul Gray <paul.gray@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-08 17:41:28 +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 f87008803f remove url-encoding package
flag=none

Change-Id: Ide6e155647cad33e962058747f53e36b583eaa4f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/336861
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 01:32:52 +00:00
Aaron Shafovaloff 47f102ab41 replace underscore shim usage in obj-unflatten
refs CFA-33

flag=none

Change-Id: Ib5667b313229bd3b099e206b9f658c3f3a2fc859
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/336663
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2024-01-04 16:41:52 +00:00
Omar Gerardo Soto-Fortuño c2c081d448 Version grading-utils package
flag=none

test plan:
  - Specs pass.

qa risk: low

Change-Id: I572d35f4612a51380bb79a0450c2ca58af657399
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/336566
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
2024-01-03 19:36:10 +00:00
Aaron Shafovaloff 82f5544f62 Simplify grading-utils package
Test plan:
  - build passes

Change-Id: I7947fb068b308879ea87d5559b911c33ea2336f7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335259
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>
2024-01-02 20:42:19 +00:00
Aaron Shafovaloff b535a55f52 include minimatch in main package.json
Change-Id: I3661ac887967c3d6a4b13ba93262f79c9bb1f2cb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/336040
Reviewed-by: Michael Hulse <michael.hulse@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>
2023-12-30 00:49:42 +00:00
Aaron Shafovaloff e02388380c upgrade redux-thunk
flag=none

closes CFA-30

Change-Id: Ibdca0a4d89e2b82859dfc551227bbfe53bad0131
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335971
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
Reviewed-by: Jackson Huang <jackson.huang@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-12-26 15:01:32 +00:00
Aaron Shafovaloff 501cde202c move datetime-moment-parser
Change-Id: I6fde4cb5ebb0e4b9c51f94e9bf073e83623d307c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335932
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Build-Review: James Butters <jbutters@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-12-24 00:33:06 +00:00
Aaron Shafovaloff ddc4465585 move datetime into ui/shared
Change-Id: I141da8bb5a8b1b2e52cce821466c3b8265782d72
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335919
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>
Build-Review: James Butters <jbutters@instructure.com>
2023-12-23 17:50:24 +00:00
Xander Moffatt d5e6c6f2fb only use display=in_rce with inline LTI launches
why:
* using display=in_rce instead of borderless allows inline/iframed
LTI launches inside an active RCE to work and use postMessages
* this was mistakenly also using in_rce with link-type
LTI launches, which open in a new tab
* which meant that the new tab never replaced the iframe
with the tool entirely, so there was still a canvas wrapper
* continue using display=borderless with links that open
an LTI tool in a new tab

closes INTEROP-8379
refs INTEROP-8205
flag=none

test plan:
* in a docker container:
```
cd packages/canvas-rce
yarn build:watch
```
* you can also restart your webpack container to make sure the changes
are picked up
* install the lti 1.3 test tool or 1.1 test tool with the editor_button
placement
* launch the tool from a page that has the RCE, like a new wiki page
* pass back a content item with no iframe attribute so that it makes
a link
* change to the HTML editor - the <a> tag should have
display=borderless
* save the page, and hover over the link
* it should include display=borderless, not display=in_rce
* click on the link
* it should open in a new tab, and the URL in the address bar
should eventually be for the tool, not canvas

Change-Id: I49a7d99cc21d77540f9ea9023f4d371ad509a104
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335741
Reviewed-by: Paul Gray <paul.gray@instructure.com>
QA-Review: Paul Gray <paul.gray@instructure.com>
Product-Review: Alexis Nast <alexis.nast@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-12-21 16:29:40 +00:00
jake.oeding 90134300d2 allow width/height on source tags
closes LF-1099
flag=none

test plan:
-find an RCE, toggle to the html editor
-insert a source tag with width + height attributes
-toggle to normal editor and back to html editor
>confirm the width/height attributes weren't stripped
-save the page
-re-edit your content again
>confirm the width/height weren't stripped by the server

Change-Id: Iffc814b1a12479971ed00bda98b776a5c3a5b6de
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335334
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob DeWar <jacob.dewar@instructure.com>
QA-Review: Jacob DeWar <jacob.dewar@instructure.com>
Product-Review: Jake Oeding <jake.oeding@instructure.com>
2023-12-20 14:58:28 +00:00
Sarah Gerard 1db7aa419f Npm install verification for canvas-media script
adds the same verifier that was added to the rce
publish script to check if the package is able
to be installed outside of canvas-lms

closes LF-1091
flag=none

test plan:
- use the flags to skip parts of the script that don't need
  testing, such as SKIP_NPM_PUBLISH
- run the script, ensure that the 'Verifying NPM install...'
  works as expected, installing the package and reporting
  if it succeeds or not

Change-Id: I68ac59b6180551d4d5f9d7ba94ab6e65ac78bc9e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335113
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jake Oeding <jake.oeding@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Sarah Gerard <sarah.gerard@instructure.com>
2023-12-18 17:01:19 +00:00
Aaron Shafovaloff 40e68f737e Move jest-moxios-utils to ui/shared
Change-Id: I82012e596e264dfec8581e69d5c8e649eb2f0dc9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335270
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
Reviewed-by: Drake Harper <drake.harper@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-12-14 22:33:09 +00:00
Jacob DeWar 734eac9161 Show full file name on hover in RCE All Files tray
flag=none
closes LF-1089

Test Plan:
 - Have files in course/user with really long names
 - Go to an RCE (ex Pages)
 - Go to one of the course/user images/media/documents traya
 - Change category to "All"
 - Expand until files are shown
 - Hover over files
 * Verify hover shows full file name

Change-Id: I3eab059e7b56e35129e9d9e02ac30baf13f0c8ee
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335090
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Mysti Lilla <mysti@instructure.com>
Reviewed-by: Jake Oeding <jake.oeding@instructure.com>
QA-Review: Mysti Lilla <mysti@instructure.com>
Product-Review: Jacob DeWar <jacob.dewar@instructure.com>
2023-12-12 15:19:03 +00:00
Aaron Shafovaloff caf0320bcc Revert "Upgrade prettier"
This reverts commit 2923619f64.

Change-Id: I73be26acb7c5288293a8027bf1289b8014988935
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/334698
Reviewed-by: Michael Hulse <michael.hulse@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>
2023-12-12 02:04:14 +00:00
Aaron Shafovaloff dd3b94f910 remove scroll-into-view
scrollIntoView is supported by all our browsers now

test plan:
  - verify contentInsertion behavior

flag=none

Change-Id: I9d356ee0ec7071d0c1922f10171df67345b4947b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/334981
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
QA-Review: Jacob DeWar <jacob.dewar@instructure.com>
2023-12-12 00:17:51 +00:00
Aaron Shafovaloff 1abaa6fb1b Correct and add some folder owners
flag=none

Change-Id: I3d4ba200bac6b9efc73e8bc54c79b6ba1c9b221e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/334903
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-12-11 17:23:30 +00:00
Aaron Shafovaloff 2923619f64 Upgrade prettier
Change-Id: I214d1bf39552395013ad01fc4cbf04ab9cb57940
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335005
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Christopher Soto <christopher.soto@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-12-11 17:22:48 +00:00
Aaron Shafovaloff 7575ffb3ec Upgrade moment
Change-Id: Iafdd31a8c02a5918c6b68c234df661ed90d24032
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335007
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: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-12-11 17:22:24 +00:00
Aaron Shafovaloff 942b7755df upgrade babel-loader
Change-Id: I1520db81e141135c42799ee895d1de01ad0f9ce8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335006
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: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-12-11 17:22:14 +00:00
Aaron Shafovaloff ecceff10e3 Remove use of InferType
Also:
 - Remove some unnecessary use of @instructure/ui-themeable
 - Remove use of TsMigrationAny
 - Remove some instui-related module declarations
   (no longer needed)
 - Remove old upgrade-instructure-ui script
 - Upgrade typescript and babel-plugin-typescript-to-proptypes in RCE

Test plan:
 - Build passes

flag=none

Change-Id: I734183ed8bdf68422e4eb46285909c30bc31ee33
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/334667
Reviewed-by: Jackson Howe <jackson.howe@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>
2023-12-07 18:39:51 +00:00
Sarah Gerard d7da0c1dff Fix double ?type=* for video from all files
when choosing a video from All Files in an
RCE, the url has ?type=video?type=video, which
is incorrect

closes LF-66
flag=none

test plan:
- in an RCE, add media by clicking on the media icon,
  and then switching the file type from Media to 'All'
  in the dropdown
- after adding the media, switch to the html editor and
  notice the src should only have ?type=video once
- ensure the rest of the iframe looks the same
- ensure adding media from course media and user media
  also still results in the correct src

Change-Id: Ibaebfc4520320ce1904823bd296f9c4ff8fcbb5d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/333420
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Davis Hyer <dhyer@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-12-06 23:18:23 +00:00
Jacob DeWar 92353a1edf Show Media Captions in New Quizzes
closes LF-804
flag=none

Test Plan:
 - Add Video to a New Quiz
 - Add captions
 - Refresh the New Quiz
 - Open Video tray
 * Verify captions appear
 - Repeat with Audio

Change-Id: I1a3f0df0bfcaec7b3f456d7dcfea78017ab1a549
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/334124
Reviewed-by: Eric Saupe <eric.saupe@instructure.com>
QA-Review: Eric Saupe <eric.saupe@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Jacob DeWar <jacob.dewar@instructure.com>
2023-12-06 19:40:53 +00:00
Sarah Gerard 1cd1466252 Npm install verification step for RCE publish script
closes LF-709
flag=none

test plan:
- use the flags to skip parts of the script that don't need
  testing, such as SKIP_NPM_PUBLISH
- run the script, ensure that the 'Verifying NPM install...'
  works as expected, installing the package and reporting
  if it succeeds or not

Change-Id: Ie0fb0e5d82f27426a99044acde64d774b9837d1c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/334550
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Sarah Gerard <sarah.gerard@instructure.com>
2023-12-05 22:16:10 +00:00
Jacob DeWar f2ac6d3157 Prevent extra media upload calls
flag=none
refs ARC-9407

Test Plan:
 - Enable Assignments Enhancements - Student flag
 - Create an assignment with media recording submission
 - Take assignment as Student
 - Click Record Media and record video
 - Open Network Tab
 - Click Save Media button many times quickly
 * Verify in network tab that thousands of requests are NOT sent

Change-Id: I470d3c7e676b4db8584a05abcd415294e25bda0c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/334296
Reviewed-by: Mysti Lilla <mysti@instructure.com>
Reviewed-by: Eric Saupe <eric.saupe@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Mysti Lilla <mysti@instructure.com>
Product-Review: Jacob DeWar <jacob.dewar@instructure.com>
2023-12-02 13:33:51 +00:00
Charley Kline 5df235929f Bump InstUI to 8.49 for new nav bar stuff
Closes FOO-4017
flag=none

Several bug fixes, plus this has the requested changes
from InstUI for the new look and feel for the side and
top navigation bars.

Test plan:
* automated tests pass

Change-Id: I5292256e4e479c70837cc77b10b97dfaba235848
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/333822
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-11-29 03:56:33 +00:00
Aaron Shafovaloff 5cc6ee20ea Add @ts-nocheck to a RCE test
This fixes post-merge build failures.

New TypeScript version picked up on some naughty
assignments in a test file. But since it's a test
file we can ignore it

flag=none

Change-Id: Iacbae1a289f77f7eb14e1b176530f9469e89778f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/333535
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-22 15:42:22 +00:00
Jackson Howe 2bad036fa4 Unskip TrayController spec
closes LF-968
flag = none

Test plan: jenkins passes

Change-Id: I2c64d49a5a82b455ef6b0793d0fee23edc6aa2a1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/333284
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: Jackson Howe <jackson.howe@instructure.com>
2023-11-21 16:44:05 +00:00
Jenkins a1829c662a [i18n] Update RCE translations.
Change-Id: I738b64818e444142537a77cca7db3e7f85551b66
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/333316
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-21 04:52:05 +00:00
Jenkins ed3459993d [i18n] Update canvas-media translations.
Change-Id: I19048128cb51103dcece2cfdb7c64139e82a170e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/333315
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-21 04:51:48 +00:00
Jenkins a376fc266f [i18n] Update package translations
Change-Id: I96f6bf9dd0483f3d9f0ec7fd1464066e28ec9348
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/333314
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-21 04:51:35 +00:00
Aaron Shafovaloff abd4f77040 Localize jest-fetch-mock usage
Removes global use of jest-fetch-mock, which inhibits
migration to vitest.

Also:
  - TypeScriptify Confetti
  - more properly tests confetti with testing-library
  - removes needless setTimeout on confetti SR-only flashAlert

Test plan
  - Submit assignment as student
  - Confetti should still show

flag=none

Change-Id: I70fdc23dbc6d18a37487abeaa7625c441cc64d77
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/333193
Reviewed-by: Spencer Olson <solson@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Build-Review: James Butters <jbutters@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-20 17:42:32 +00:00
Jenkins 411edbe0df [i18n] Update RCE translations.
Change-Id: I94452b48c5966c21d652cdf6154daa2620eb4fc8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/333196
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-18 04:52:29 +00:00
Jenkins bddabbc901 [i18n] Update canvas-media translations.
Change-Id: Ia2a10586430e33324d3c9e0b292e485a52c7351d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/333195
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-18 04:52:11 +00:00
Jenkins 45c153694b [i18n] Update package translations
Change-Id: Ibb9ac1bc9691c180bbde7ee407be39465508b7ad
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/333194
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-18 04:51:57 +00:00
Sarah Gerard b915103388 Left justify the html element display
fixes LF-954
flag=none

test plan:
- create a classic quiz
- go to the questions tab and create a new
  question
- the html element display in the bottom status bar
  should be left justified
- switch to the html editor
- the "Switch to raw HTML Editor" button should be left
  justified
- ensure that rces in other places still look the same

Change-Id: Ib819fd229df4b9e1bda2b9b4ad8bdfe44c086a9c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332801
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Juan Chavez <juan.chavez@instructure.com>
QA-Review: Juan Chavez <juan.chavez@instructure.com>
Product-Review: Sarah Gerard <sarah.gerard@instructure.com>
2023-11-14 19:11:10 +00:00
Jenkins 248c7baa6e [i18n] Update RCE translations.
Change-Id: Icecdd1d905e27c94945cefb155c28b48f5e07e69
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332768
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-14 04:51:34 +00:00
Jenkins a427bda2e3 [i18n] Update package translations
Change-Id: Ica23600d63eae792e0c77d8ccf153233a03d7f28
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332767
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-14 04:51:23 +00:00
Jenkins 003d396aa4 [i18n] Update RCE translations.
Change-Id: I68c7777cf55f4792319b5076397d714a025b4631
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332602
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-10 18:50:13 +00:00
Jenkins 8da0912480 [i18n] Update canvas-media translations.
Change-Id: I4f5d406300fd5eca3eaa094864c97c598627eadd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332601
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-10 18:49:57 +00:00
Jenkins 0cc9341be4 [i18n] Update package translations
Change-Id: I4ebecf17a4143804cbfdb58e8d9cb74356fd6b42
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332600
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-10 18:49:46 +00:00
Jacob DeWar f55815f59e Add default media extension
fixes LF-906
flag=none

Test Plan:
- In an RCE, record a video and save it
- Go to course file
- Verify new file has appropriate extension
- Repeat with uploading media

- Go to submission comments
  - Submit an assignment
  - Go to speedgrader for submission
- Record media
- Go to user files
- Verify new file has appropriate extension
- Repeat with uploading media

Change-Id: Ie79209fd6bd43eb5eeaae1dbd85c89bc34f7d2a3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/331893
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Jacob DeWar <jacob.dewar@instructure.com>
Reviewed-by: Juan Chavez <juan.chavez@instructure.com>
QA-Review: Juan Chavez <juan.chavez@instructure.com>
2023-11-08 21:19:13 +00:00
Jenkins 18add0099c [i18n] Update RCE translations.
Change-Id: Ib5803c3a72abf70ec55bf91a56805ea4dc76fd9a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332352
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-08 04:51:54 +00:00
Jenkins e10aa0d4b9 [i18n] Update canvas-media translations.
Change-Id: Ifc558a21f3efdfb48331b030f5bfc145aaa38798
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332351
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-08 04:51:29 +00:00
Jenkins 25be791f2c [i18n] Update package translations
Change-Id: I4abcd1790632fc45e4390fc72934b7aab31dcdc4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332350
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-08 04:51:10 +00:00
Aaron Shafovaloff f7ba7f9a6a Use useQuery in ProfileTray; NavigationBadges
test plan:
  - smoke test badges on old and new nav
  - smoke test profile tray on old and new nav

flag=instui_nav

Refs FOO-3880
Refs FOO-3887
Refs FOO-3894
Refs FOO-3895

Change-Id: I1d3a669aee09dc67b04e798a23e016d26f398fd4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/331758
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: Gustavo Bernardes <gustavo.bernardes@instructure.com>
2023-11-01 15:32:38 +00:00
Mysti Lilla c9383c7ce1 Make API call to get attachment info
fixes LF-887
flag=media_links_use_attachment_id

Test plan
- In a Blueprint parent course, upload
  a media file and lock the file for editing
  in the children courses
- Link a child course and sync the content
  from the parent
- Link the video in the RCE in the child course
- Click on the video in the editor and go to
  Video Options
- Verify that an API response to the RCS at
  api/files/:fileId was sent
- For best results, test with g/330028 and
  g/330353 (which will actually provide the
  required API field)

Change-Id: Ib0f734ba45842c6320804c4d46516ab8b1a76304
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/330025
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Luis Oliveira <luis.oliveira@instructure.com>
QA-Review: Luis Oliveira <luis.oliveira@instructure.com>
Product-Review: Mysti Lilla <mysti@instructure.com>
2023-10-24 16:31:38 +00:00
Charley Kline e587ca6596 Bump InstUI to 8.46.1 for ui-tray bugfix
Closes FOO-3955
Refs EVAL-3613
Closes FOO-3820
Refs FOO-3947
flag=none

There's mount/unmount bug in <Tray> that was causing
some heartburn, this fixes that.

This InstUI fix exposed some broken tests which were
checking for a Tray to no longer be open; because a
tray closing is a transition, it's necessary to wait
for it to close in an asynchronous test... checking
for that immediately cannot be expected to work due
to the transition, but was accidentally working in
some cases.

Two entire Selenium specs became very flaky as a
result of this version bump; they were just skipped
for now since they're rather complex and it wasn't
obvious how to fix them. The EVAL ticket was created
so that that issue could be addressed later.

test plan:
* automated tests pass

Change-Id: I81374d0c8e783a7b0285c2cf9506153e2194fceb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/330333
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
2023-10-19 18:32:15 +00:00
Ed Schiebel c2caf68c26 Fix rce react property validation errors
I think this may be due to instui8 being fully typescript,
though I don't understand why it would affect native react
prop type validations. This commit eliminates the new
prop warning console error messages.

The real solution to this is to convert CanvasConentTray
and all the related components to typescript, but that
is way beyond the scope of this ticket.

closes LF-786
flag=none

test plan:
  - in a dev environment (so you get react console messages)
  - open a page with the rce
  - open dev tools
  - in the RCE, open the CanvasContentTray
    (e.g. Documents -> Course Documents)
  > expect the tray to open w/o bad prop error messages in
    the devtools console
  - repeat for images and media

Change-Id: I3d211eaade0f4a27fde446dfeafc27edcfb4558e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/328124
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2023-10-18 00:24:54 +00:00