Commit Graph

734 Commits

Author SHA1 Message Date
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 149595df87 replace mime-types package with mime
- ESM compatible
- Built-in Typescript types

flag=none

refs CFA-32

Change-Id: I97acf576dc14151fc00a870765cdc19926426e10
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/336024
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@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>
2023-12-29 18:03:58 +00:00
Aaron Shafovaloff c2dcd74c42 remove coffeescript from package.json and yarn.lock
test plan:
  - existing tests pass

flag=none

closes EVAL-3058
closes EVAL-3072

Change-Id: I7dd9ae41f23c7b1fb8f16f752bf17af192e15f30
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/316585
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: Jacob Burroughs <jburroughs@instructure.com>
2023-12-26 20:42:54 +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 8b50a205ee Resolve final circular package dependencies
Refs CFA-27

flag=none

Change-Id: I9787633a7deef3206f1462e8f65936dc51f1af3d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335951
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>
2023-12-24 19:37:09 +00:00
Aaron Shafovaloff fb0a34e58a specify invariant import
this is included in yarn.lock, and
imported in various files. it should also
be in package.json

flag=none

Change-Id: I4a16b16e750280892ac0c9b7e960036524a58055
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335917
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-12-22 23:43:44 +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 e385ddc2e8 upgrade karma
test plan:
  build passes

flag=none

Change-Id: I8f55629bc0967b8ffb73fd144164869efe43d064
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335099
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: Drake Harper <drake.harper@instructure.com>
2023-12-11 20:16:40 +00:00
Aaron Shafovaloff c032a919b9 install vitest-ui
test plan:
 - run:
   yarn run test:vitest:watch --ui
 - browser UI for vitest should display

flag=none

Change-Id: Ia93ed7ddf00c716fe6b7820ed08aece6b98728e7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335095
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: Drake Harper <drake.harper@instructure.com>
2023-12-11 20:07:07 +00:00
Aaron Shafovaloff d6b0d0818a upgrade vitest
also:
 - more tests passing in vitests
 - specifies which folders are left to resolve in the vitest config

test plan:
  - build passes

Change-Id: I34fee1a8b44101fec4b801fa6f67b9562df0425c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335009
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
QA-Review: Cameron Ray <cameron.ray@instructure.com>
Product-Review: Cameron Ray <cameron.ray@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-12-11 19:09:35 +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
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 d455181346 Upgrade babel-plugin-typescript-to-proptypes
flag=none

Change-Id: I19d4fc30e80d07354bad664e084eeb8b795d7315
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/333531
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Gustavo Bernardes <gustavo.bernardes@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-11-22 15:16:07 +00:00
Aaron Shafovaloff 9422c1cb14 Upgrade TypeScript
flag=none

Change-Id: I3e9dec807e073f662707f8c1e2e7673d998d52a4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/333530
Reviewed-by: Gustavo Bernardes <gustavo.bernardes@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-11-22 14:34:38 +00:00
Aaron Shafovaloff e756056f75 Upgrade Jest
Test plan:
  - build passes

flag=none

Change-Id: I3855883ee1ec15e3de8076712c399793974108ad
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/333290
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Martin Ochoa <martin.ochoa@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-11-21 23:26:21 +00:00
Aaron Shafovaloff 2927a9565a Upgrade Sentry frontend packages
Did not upgrade @sentry/fullstory

flag=none

Change-Id: I664a054e1d52366688de81f9dc61b82113500ac5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/333285
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-11-20 19:25:55 +00:00
Aaron Shafovaloff e1384057d1 Install Vitest
This does not yet change our build process

Demo:
  - yarn run test:vitest:watch ui/features/theme_editor/

Test plan:
  - build passes

Closes CFA-17

flag=none

Change-Id: I6eac4684af62525829e36f5dd0c64bb80c638ca3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/333130
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Martin Ochoa <martin.ochoa@instructure.com>
Reviewed-by: Gustavo Bernardes <gustavo.bernardes@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-11-17 14:19:22 +00:00
Chris Soto 541d6492c2 add rubric redesign react-query setup
this commit adds the foundation for react-query to the rubrics redesign.
it also uses new graphql queries to return rubric data to the front end.

closes EVAL-3616
flag=enhanced_rubrics

test plan:
- navigate to /accounts/<id>/rubrics
- verify that if the account has rubrics, they are displayed in the
  table
- navigate to /courses/<id>/rubrics
- verify that if the course has rubrics, they are displayed in the table

Change-Id: Ib340a37ad1c3a3d28413b3e8cfce359aa3f5db7a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/331718
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: Derek Williams <derek.williams@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Derek Williams <derek.williams@instructure.com>
Product-Review: Cameron Ray <cameron.ray@instructure.com>
2023-11-10 18:19:53 +00:00
Aaron Shafovaloff 203048ecfd Badge counts in SideNavBar
test plan:
  badge counts show up in navbar items in new SideNavBar

flag=instui_nav

refs FOO-3880
refs FOO-3894
refs FOO-3895

Change-Id: Iea01d6d9b5aa6aed7afe129842b17b1a6463c9b1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/331126
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Martin Ochoa <martin.ochoa@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-10-24 18:19:25 +00:00
Aaron Shafovaloff f4a1584ada Add more new SideNav scaffolding
flag=none

test plan:
  build passes

refs FOO-3642

Change-Id: I570f06af4cb85514801f8ff31eb050b5ffb283be
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/330985
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Martin Ochoa <martin.ochoa@instructure.com>
Reviewed-by: Gustavo Bernardes <gustavo.bernardes@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-10-23 22:20:27 +00:00
Ed Schiebel 0f31ee66dc Revert RceHtmlEditor to INSTUI's CodeEditor
We need more work to integrate the newer SourceCodeEditor.
Let's not do that with the clock ticking toward deployment.

closes LF-781
flag=none

test plan:
  - the RCE's pretty html editor works as expected
  - try flipping between wysiwyg and html
  - try flipping between pretty and plain html editor
  - try various combinations of fullscreen and switching
    back and forth between editors
  - insert enough html that you have to scroll, switch
    to html editor. expect the html editor to resize
    so that its scrollbar is correct.

Change-Id: Ieb0ad96ad2bb549676f7f9199d1231ece02b5aae
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/330095
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-11 18:29:17 +00:00
Aaron Shafovaloff 36abfde198 Consolidate browser router
test plan:
 - Ensure that Account Grading Settings tabs still work
 - Ensure that "Act as..." page still works
 - Ensure that group dropdown in Student Groups pages still renders

flag=none

Change-Id: If04a5faab051fab7301f0550637fd9ae489b58e8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/328746
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>
Build-Review: James Butters <jbutters@instructure.com>
2023-10-11 18:07:15 +00:00
Ed Schiebel 669de4910f Bump instui to 8.45.0
Change-Id: I9d05c3a1bf1ef9d32025688b612543dd647d8d88
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/329627
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: Ryan Norton <rnorton@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Ryan Norton <rnorton@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
2023-10-09 15:21:27 +00:00
Jackson Howe 6b587f8f99 Update node requirement in package.json
refs AE-485
flag = none

Change-Id: I823a6a7c0913b94e928c546d4cec6c944d0e2506
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/329641
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
2023-10-06 17:25:34 +00:00
Charley Kline 2848197c93 Upgrade Canvas to InstUI version 8 (second try)
Refs FOO-3190
Refs FOO-3708
Refs FOO-3913
flag=none
[fsc-max-nodes=30] [fsc-timeout=60]

Uprevs InstUI and addresses all post-uprev tasks. Also now that
InstUI is fully TypeScript, a bunch of type errors appeared
which needed to be addressed.

It builds against the commit of MRA that will have to merge
concurrently with this.

Still to do: theme -> themeOverride which is a separate commit
off of this one that is ready to go.

Test plan:
* cross your fingers
* (this will need some extensive review before merging)

Change-Id: I45a1138530d415398b019cfedcf8a3b57a051912
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/329443
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ryan Norton <rnorton@instructure.com>
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
Product-Review: Ryan Norton <rnorton@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
2023-10-06 03:07:44 +00:00
Aaron Shafovaloff 68b621566d Begin SideNav implementation
Test plan:
  - localStorage.instui_nav_dev = 'true'
   - visit /accounts/
   - click on an account
   - the SideBar component should show

flag=none

refs FOO-3868

Change-Id: I0528dc0411a63d700905c7f8780e214585f0397a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/328629
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
Reviewed-by: Charley Kline <ckline@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-09-25 22:29:48 +00:00
Charley Kline 3c5e316883 Revert "Upgrade Canvas to InstUI version 8 (frd)"
Refs FOO-3862
flag=none
[pin-commit-multiple_root_accounts=9d1698853e352f7e023e196e80cc195215a2b98c]

This reverts commit 448f1eebef.

Reason for revert: downgrade to InstUI 7 per engineering leadership

Change-Id: I89c607d09c29885da77b4474b757c7f205e51f01
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/328102
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
2023-09-22 01:35:06 +00:00
Charley Kline 57efedabff Revert "Revert RceHtmlEditor to INSTUI CodeEditor"
This reverts commit db91ea1566.

Reason for revert: downgrade to InstUI 7 per engineering leadership

Change-Id: I0e0959c5a2b90b29ea85da1c9ae310b9c88c2ef5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/328098
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-09-20 19:56:11 +00:00
Ed Schiebel db91ea1566 Revert RceHtmlEditor to INSTUI CodeEditor
The uplift to instui 8 also changed RceHtmlEditor to use
the newer instui SourceCodeEditor, which introduced a number
of new bugs. Revert and implement with the new component later.

closes LF-781
flag=none

test plan:
  - the RCE's pretty html editor works as expected
  - try flipping between wysiwyg and html
  - try flipping between pretty and plain html editor
  - try various combinations of fullscreen and switching
    back and forth between editors
  - insert enough html that you have to scroll, switch
    to html editor. expect the html editor to resize
    so that its scrollbar is correct.

Change-Id: Ib9d431c8a5051b862d2dac6d0ebb2cf36f524dbf
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/327977
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2023-09-20 12:30:59 +00:00
Aaron Shafovaloff 448f1eebef Upgrade Canvas to InstUI version 8 (frd)
Refs FOO-3190
Refs FOO-3708
flag=none
[fsc-max-nodes=30] [fsc-timeout=60]
[pin-commit-multiple_root_accounts=03b5f961bbaa28af3d43b0a6a2ab072654cc6468]

Uprevs InstUI and addresses all post-uprev tasks. Also now that
InstUI is fully TypeScript, a bunch of type errors appeared
which needed to be addressed.

NOTE:

This is an amalgam of g/314136 and g/326557 which will get abandoned
once this passes Jenkins and is merged.

It builds against the commit of MRA that will have to merge
concurrently with this.

Still to do: theme -> themeOverride which is a separate commit
off of this one that is ready to go.

Test plan:
* cross your fingers
* (this will need some extensive review before merging)

Change-Id: I860c3dc04d34237e32aeaa138f6c377a016ceeae
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/327683
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: Paul Gray <paul.gray@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
2023-09-14 14:34:45 +00:00
Sarah Gerard 0a15290373 Update ui-media-player
this should fix issues with the media player in safari

closes LF-662
flag=none

test plan:
- in a Safari browser, add some media to a page using the rce
- ensure that you can pause/play/pause again the video/audio
  as expected, both in the rce and after saving the page
- ensure otherwise that the media player is still working normally

Change-Id: I7431924592b5ae2d7c33e308673a6ca7466aacc9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/327631
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Sarah Gerard <sarah.gerard@instructure.com>
2023-09-13 17:29:18 +00:00
Aaron Shafovaloff 29ad03c5fe Harden SpeedGrader with TypeScript
Test plan:
  - Build passes

flag=none

Change-Id: Ic3ad7b7d27659741197e37169158ff4806a1dbeb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/327246
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
Reviewed-by: Derek Williams <derek.williams@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-09-12 16:07:52 +00:00
Jacob Burroughs 2f611b1765 Upgrade to node 18
refs AE-485

Change-Id: I32fe1a73dbed1b625a744efb47ca349ac6776035
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/327039
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Build-Review: Cody Cutrer <cody@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Jacob Burroughs <jburroughs@instructure.com>
Product-Review: Jacob Burroughs <jburroughs@instructure.com>
2023-09-11 17:28:59 +00:00
Ed Schiebel e76fd77358 Upgrade react-dnd to v6.0
I tried v7.5.0, the last version before the api became soley
react hook based, but it didn't work

closes LF-46
flag=none

test plan:
  - you can drag cards around on the card dashbaord

  - you can drag discussions around on the /discussion_topics page

  - check Mastery Paths in course settings
  - create a couple assignments
  - edit an assignmenet and go to the Mastery Paths tab
  - put a couple assignments in there
  - you can drag assignments between sections
  - you can drag an assignment on top of another and they will
    be joined together
  - you can drag them apart

Change-Id: Iedf956e45ebd995e6b30e7df0a993bffb3a96f4f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/327233
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2023-09-11 15:30:14 +00:00
Aaron Shafovaloff 792bfc8052 upgrade to typescript 5.2
test plan:
  build passes

flag=none

Change-Id: Ica9a47432508eeaff583ef8eaac87fbda97d84aa
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/326902
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>
2023-09-05 14:10:29 +00:00
Aaron Shafovaloff 159d647d9e Move xhr utils to ui/shared
also: isolate filter-console-messages package

test plan:
  - build passes

flag=none

Change-Id: I32942fe42b65489fc23c3ef53955803efc572473
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/325418
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-08-18 18:08:12 +00:00
Aaron Shafovaloff 74ae32c561 move planner to ui/shared
test plan:
  - smoke test of planner
  - build passes

flag=none

Change-Id: I1ccab60a53269adaa4247658696ee080e4e03fae
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/323860
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Michael Hulse <michael.hulse@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
2023-08-01 19:51:14 +00:00
Aaron Shafovaloff 3e4a278969 support .jsx
Change-Id: I131bf00133a5a14df1ce050540503f4241776a09
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/323390
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: Andrea Cirulli <andrea.cirulli@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
2023-07-21 22:56:34 +00:00
Ed Schiebel 9bcea1f53c add all the custom recurrence UI
closes LF-356
flag=none

test plan:
  - yarn storybook
  - play with all the stuff under Calendar > RecurringEvents
  - especially play with CustomRecurrenceModal, since that's
    what will go into Canvas
  > expect it to spit out correct RRULEs

  - in CustomRecurrenceModal story
  - change repeat every to Month
  - open the Select
  > expect "Monthly on day 7" and "Monthly on the first Monday"
    as the 2 options
  - in the form at the bottom of the page, change the eventStart
    string so the day of the week is the last one of the month
  > expect the Select to have 3 options for the date,
    the nth day of the week, and the last day of the week

Change-Id: Id68645399880c97d86a67fd974d06eabf58f674c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/321191
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Juan Chavez <juan.chavez@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Juan Chavez <juan.chavez@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2023-07-14 12:55:32 +00:00
Davis Hyer f0b5f584bb upgrade canvas to DateTimeInput v8
fixes LF-48
flag=none

test plan:
  - ensure BBB modal options renders correctly

qa risk: low

Change-Id: I22ac472e7eff24fcc501f9e7c97dbb616893192d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/319256
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-06-07 17:27:46 +00:00
Isaac Moore 08894e4ad1 Fix DER-encoded LDAP CA's failing to parse
This fixes an issue where DER-encoded LDAP root CA's were failing to
parse, because they were incorrectly being interpreted as UTF-8.

fixes AE-317
flag=none

test plan:
(1) upload a DER-encoded root CA
  - verify it continues to parse
(2) upload a PEM-encoded root CA
  - verify it continues to parse
(3) upload a PKCS7-encoded cert chain
  - verify the root CA continues to parse
(4) repeat steps 3 and 4 with CRLF line endings

Change-Id: I25b0fe902f37e5dc1c671555595504fef6a0b39e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/319489
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Isaac Moore <isaac.moore@instructure.com>
Product-Review: Isaac Moore <isaac.moore@instructure.com>
2023-06-01 21:42:36 +00:00
Charley Kline cf3fbd96bf Build prep and cleanup for InstUI 8
Refs FOO-3190
flag=none

Trying to uprev InstUI to version 8 revealed that our
front-end build config needs a little attention first.
Most of this was stuff that's been "wrong" for a while
but this major version upgrade of a major dependency
really uncovered where some things needed to be tweaked.

Test plan:
* This only touches build toolchain stuff, so...
* If the automated build passes, this should be good

Change-Id: I89bd29a581a8c84b7f82d319a0501a4adf59016e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/318035
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
2023-05-15 17:56:05 +00:00
Jason Gillett 755ea56ba8 add resolution to storybook ts plugin
flag = none
Test Plan:
- Existing tests pass
- Story book runs correctly
-- yarn storybook

By upgrading to typescript 5, we broke storybook.
TS 5 dropped certain methods that the storybook TS plugin relied on.
https://gerrit.instructure.com/c/canvas-lms/+/313551

more information on this issue can be found in this GitHub storybook thread

https: //github.com/storybookjs/storybook/issues/21642
Change-Id: If7f6c68b41e3e2fb35f183a825af2dff0aaa9ac1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/317575
QA-Review: Drake Harper <drake.harper@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-05-11 16:35:09 +00:00
Yona Appletree d136523768 Upgrade eslint packages, clean up ignores
Update some eslint packages removing the need for
some eslint-disable directives.

Changed react/no-unknown-property to warning since
we have several instances of it already in the
codebase.

Refs CFA-5
flag=none

Test plan:
- Automated tests pass

Change-Id: I4967d53477de7c4effe8861ee71e735be33f6b14
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/317894
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-05-10 23:22:15 +00:00
Aaron Shafovaloff ce864bb5ff turn on noImplicitAny for typescript
also: remove tsconfig-strict.json

also: remove tsc precommit hook

test plan:
  - existing tests pass

flag=none

Change-Id: Ia2b30d9d77fdb55159de4fe16f3ee1826f43aad5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/317197
Reviewed-by: Yona Appletree <yona.appletree@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>
2023-04-27 21:34:07 +00:00
Jacob Burroughs bc4e39c8d2 Exact pin outcomes-ui
closes GH-2193
closes GH-2138

Change-Id: Icf573b8662b305ff887ef246264479eb36b89410
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/317190
Reviewed-by: Alex Slaughter <aslaughter@instructure.com>
QA-Review: Jacob Burroughs <jburroughs@instructure.com>
Product-Review: Jacob Burroughs <jburroughs@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-04-27 20:31:21 +00:00
Yona Appletree 930cee9132 Update @instructure/media-capture to 9.0.0
Update media-capture to fix issues with microphone selection in
RCE media capture modal.

Closes MAT-1310

flag=none

QA Risk: Medium
 - Updates dependencies used in the RCE and Canvas,
   potentially there may be side-effects

Test plan:
 - In the RCE:
   - Open the "Upload/Record Media" dialog, select "Record" tab
   - Compare the selected microphone option to the browser
     defined one (accessible from the video icon on the
     right side of the chrome address bar)
   - Make some noise and ensure the audio indicator responds
   - Refresh the page, and ensure audio still works

Change-Id: Ia4a653ae489c3fb1ec8233207d078fd209e9c5ee
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/316209
Reviewed-by: Jacob DeWar <jacob.dewar@instructure.com>
QA-Review: Jacob DeWar <jacob.dewar@instructure.com>
Product-Review: Yona Appletree <yona.appletree@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-04-24 19:06:39 +00:00
Isaac Moore bfaff1d6fa Add internal CA upload to LDAP authentication providers
This will allow an admin to specify an internal CA that they would like to
trust when connecting to their configured LDAP instance. It also allows
an admin to explicitly opt in to TLS certificate verification prior to our
enforcement date.

closes AE-180
flag=none

test plan:
- with the `verify_ldap_certs` flag disabled:
  - verify LDAP connections succeed with bad certs
  - upload a CA certificate
  - verify LDAP connections still succeed with bad certs
  - define the `ldap_validate_tls_cert_enforcement_date` setting
    - verify the "Verify TLS Certificate" checkbox is visible, and
      editable
    - verify the help text appears
    - enable the checkbox
    - verify connections fail with bad certs
    - verify connections succeed if the cert was issued by the uploaded CA
  - clear the `ldap_validate_tls_cert_enforcement_date` setting
    - verify the "Verify TLS Certificate" checkbox is hidden
- with the `verify_ldap_certs` flag enabled:
  - verify LDAP connections do not succeed with bad certs
  - upload a CA certificate
  - verify LDAP connections succeed if the cert was issued by the uploaded
    CA
  - define the `ldap_validate_tls_cert_enforcement_date` setting
    - verify the "Verify TLS Certificate" checkbox is on, but disabled
    - verify the help text is hidden
  - clear the `ldap_validate_tls_cert_enforcement_date` setting
    - verify the "Verify TLS Certificate" checkbox is hidden

Change-Id: I41536261bdc7e5554cbf5b9915638ced996192f3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/315294
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Isaac Moore <isaac.moore@instructure.com>
Product-Review: Isaac Moore <isaac.moore@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
Migration-Review: Jacob Burroughs <jburroughs@instructure.com>
2023-04-13 13:29:06 +00:00