Commit Graph

295 Commits

Author SHA1 Message Date
Ed Schiebel 360fb8945c Edit block or rce pages
whether a page was created with the rce or the block editor
edit with the corresponding editor

show an solid or line icon on the index page indicating whether
the page is a block or rce page respectively

closes RCX-2184
flag=block_editor

test plan: soon

Change-Id: Ia97c21c5b902affd0762ca16c6a1218db8899aa5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/354568
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Eric Saupe <eric.saupe@instructure.com>
QA-Review: Eric Saupe <eric.saupe@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2024-08-09 23:03:12 +00:00
Charley Kline 68834f7d0c Make visibleTextContent a global property on DOM nodes
Refs FOO-4582
flag=none

Michael wrote a clever little function that works like
Node.textContent to get the inner text of a DOM node,
but excludes anything that is display=none, so as not
to confuse the returned value if it has, say, some
screenreader-only stuff inside it.

I thought it would be generally useful so this commit
arranges to make it globally available on any DOM node
inside Canvas. The addition of the new property on
Node happens during UI boot time so it can just be used
naturally.

Test plan:
* automated tests pass
* you agree this is a nifty and useful addition

Change-Id: I5246c5c545d4bdca3cd344ae5c41a5b5e71998bc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/353077
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-07-19 00:50:09 +00:00
Pedro Gutierrez 7efb53039a Fix react/components/__tests__/DiscussionRow.test.jsx
closes RCX-2012
flag=none

Test plan:
- DiscussionRow.test.jsx passes

Change-Id: I285cc4cbbbdfae2ae2b4df93e3d62af4befd3137
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/350654
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Julio Alcantara <julio.alcantara@instructure.com>
QA-Review: Julio Alcantara <julio.alcantara@instructure.com>
Product-Review: Julio Alcantara <julio.alcantara@instructure.com>
2024-06-21 16:16:55 +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
Adam Molnar 4982718639 fix MessageListActionContainer tests
fixes VICE-4257
flag=none
test plan:
- run the tests in
MessageListActionContainer.test.jsx

Change-Id: Iadd28535158342e2ef97f3dbf6ed610ac20ecd53
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/349914
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
QA-Review: Jason Gillett <jason.gillett@instructure.com>
Product-Review: Jason Gillett <jason.gillett@instructure.com>
2024-06-13 09:59:22 +00:00
Aaron Shafovaloff dfb5cce47b colocate some QUnit tests
Change-Id: If111507b32fbb46603537e13768ce14e32bf2860
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/349223
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2024-06-05 17:32:28 +00:00
Adam Molnar 3a61cfb1d7 fix subscribe field when (un)archiving
fixes VICE-4182
flag=react_inbox
test plan:
- start a group conversation with 2+ users
- archive the conversation
- reply to your message from another participant's account
- the /users/YOUR_USER_ID/messages page should not show the notification
for the most recent message

Change-Id: I8027ba7d9d169cb765d0f7fa2f22be8887b31021
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/346451
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Roland Beres <roland.beres@instructure.com>
Reviewed-by: Daniel Matyas Vincze <daniel.vincze@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
QA-Review: Jason Gillett <jason.gillett@instructure.com>
Product-Review: Ádám Molnár <adam.molnar@instructure.com>
2024-05-22 09:46:23 +00:00
Roland Beres 732f7bc186 spec: Remove enzyme.mount from DiscussionRowSpec
fixes LF-1433
flags=none

test plan:
- tests pass
- tests are still testing the same things

Change-Id: I630ae7a103e9850dae36395b54589f7e69f4c3bb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/345962
Reviewed-by: Daniel Matyas Vincze <daniel.vincze@instructure.com>
Reviewed-by: Eric Saupe <eric.saupe@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Eric Saupe <eric.saupe@instructure.com>
Product-Review: Roland Beres <roland.beres@instructure.com>
2024-05-03 19:08:29 +00:00
Eric Saupe 9fc94bda39 spec: Remove enzyme.mount calls from various specs
fixes LF-1431
flag = none

test plan:
- tests pass
- tests continue testing what they did before

Change-Id: Ib77d437a5f3aed1787b63624516414fdee3782cc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/345701
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: Eric Saupe <eric.saupe@instructure.com>
2024-04-23 16:32:48 +00:00
alvaro.talavera cadcb7ed2f Fix dates fields can be blank
closes LF-1263

flag=differentiated_modules

test plan:
- In the assignment tray, check for an error when you fill
in the time field but leave the date field blank

Change-Id: I3d9010358f4cdca76364f736f36e54306e187341
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/344977
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: Alvaro Talavera <alvaro.talavera@instructure.com>
2024-04-22 16:21:48 +00:00
Jacob DeWar 8ba73f478f spec: Remove enzyme mount from assignments tests
flag=none
closes LF-1426

Test Plan: Jenkins

Change-Id: I9e84b94671c83548361e11c825f18f7c4bb04776
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/344509
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Eric Saupe <eric.saupe@instructure.com>
QA-Review: Eric Saupe <eric.saupe@instructure.com>
Product-Review: Jacob DeWar <jacob.dewar@instructure.com>
2024-04-04 22:44:35 +00:00
Jen Smith 687e787d3a spec: allow jquery-migrate warnings during jest tests
This commit allows warnings created by jquery-migrate in jest
test output.  The output is helpful, and jquery-migrate is
globally muted via jquery.instructure_jquery_patches which is
is loaded first in ui/index.ts when the app actually runs

unblocking jquery upgrade path

refs FOO-4260
flag=none

test plan: tests pass

[skip-crystalball]

Change-Id: I1c45c0ac73314269a6bc4f674868e4bc0e9d55dd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/342904
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Jen Smith <jen.smith@instructure.com>
Product-Review: Jen Smith <jen.smith@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
2024-03-14 17:06:02 +00:00
Derek Williams aadce4c6eb disable non-english captions for video_caption_service
flag=speedgrader_studio_media_capture

test plan:
- test pass

Change-Id: I024b573f20e43f1ea89ef0c0e4aefd2c8a5b863d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/342906
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rohan Chugh <rohan.chugh@instructure.com>
Reviewed-by: Christopher Soto <christopher.soto@instructure.com>
QA-Review: Derek Williams <derek.williams@instructure.com>
Product-Review: Ravi Koll <ravi.koll@instructure.com>
2024-03-14 16:42:05 +00:00
James Butters 3730f216e3 Revert "upgrade 'media-capture-new' to 9.1.2-rc.38"
This reverts commit 0e45d78165.

Reason for revert: Jenkins has been failing JS tests since the merge of this patchset. Revert is a test to see if failures might be related

Change-Id: I09ef5ecb3a9f4d8299659c5e9ba39bd7a3f8853d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/342733
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Derek Williams <derek.williams@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2024-03-13 20:21:11 +00:00
Derek Williams 0e45d78165 upgrade 'media-capture-new' to 9.1.2-rc.38
flag=speedgrader_studio_media_capture

test plan:
- test pass

Change-Id: I067343e0c9c6605b4013a956814104011d73d241
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/342121
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Christopher Soto <christopher.soto@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
Reviewed-by: Jackson Huang <jackson.huang@instructure.com>
Reviewed-by: Jacob DeWar <jacob.dewar@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Ravi Koll <ravi.koll@instructure.com>
2024-03-08 02:14:27 +00:00
Aaron Shafovaloff 3c0b43da3d upgrade msw
flag=none

closes CFA-35

closes LF-1117

Change-Id: I42e65f70ee74a2931a0a4439a4c9c0f22466ef62
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/336892
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2024-01-08 10:20:42 +00:00
Evan Battaglia 02af1dfd65 postMessage forwarder iframe: eliminate excess JS
Why:
- The current way of including the forwarder code involves using a
  bundle, All the extra unnecessary Canvas code slows things down, costs
  more to serve, and can cause errors because some things it expects to
  work don't in the iframe.
- This includes the script as a static asset which will be served from
  the CDN and only be refetched by the client when the the script
  content changes, otherwise it will be cached for a year
  (365.2425 days). It will also be gzip-compressed when delivered to
  web browsers.

Credit to Jacob Burroughs for figuring out this approach.

Test plan:
Note: this is pretty much the same test plan as the next commit so you
can test just test that commit.
- after checking out code, run `yarn gulp rev` (this may also be done as
  part of building assets?).
- to make sure you get the new code, clear your browser's cache, load a
  canvas page, and open dev tools. In Network find the (web/doc) request
  for /post_message_forwarding?target=... and visit the page to make
  sure it has the new code (with script
  src="/...lti_post_message_forwarding-1244...js" tag)
- launch an LTI tool and send messages to the forwarder iframe (platform
  storage target) and make sure you get the appropriate response. You
  can use can use messages like:
    {"subject":"lti.put_data","key":"a","value":"b","message_id":"12"}
    {"subject":"lti.get_data","key":"a","message_id":"12"}
- send messages from the tool to the parent window and make sure those
  work too.
- embed an LTI tool in RCE content and while still editing the content,
  send messages from the tool to both the platform storage target and
  the parent window, as in the previous 2 steps.

refs INTEROP-8279
flag=none

Change-Id: I0d4ced28efc3c0c7d8180e72d56bab54557d3cce
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/334733
Reviewed-by: Xander Moffatt <xmoffatt@instructure.com>
QA-Review: Xander Moffatt <xmoffatt@instructure.com>
Product-Review: Evan Battaglia <ebattaglia@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-12-20 22:37:40 +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
Davis Hyer 732d61f775 document ownership of Invariant Violation error
refs VICE-3968
flag=none

test plan:
  - n/a

qa risk: low

Change-Id: I646edb4d63aeb48691b786abc18bc8dad53c25dc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332933
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: Davis Hyer <dhyer@instructure.com>
2023-11-15 18:00:40 +00:00
Davis Hyer 5bf08c6248 update test timestamps to required moment format
flag=none

See https://momentjs.com/guides/#/warnings/js-date/ for more details

test plan:
  - tests pass

qa risk: low

Change-Id: Id6ad8cf7b5e7482104cee59d430f0f15206db759
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/331204
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-15 16:17:40 +00:00
Aaron Shafovaloff aacad46074 opt-in broadcasting with @canvas/query
test plan:
  - test inbox badge in old and new side nav in multiple tabs

flag=instui_nav

Refs FOO-3642

Change-Id: Ic17ea9bbfd8ce48b7daae4b8be19722b9e3736a8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/331894
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-02 16:56:52 +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
Aaron Shafovaloff 6cc1372314 move data loading into tray components
test plan:
  - smoke test global sidebar trays

refs FOO-3642

flag=instui_nav

Change-Id: I8154e0aac2ab5b8180e9b4ea47e02e1d65564717
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/331486
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-10-31 15:09:39 +00:00
Davis Hyer 9faf76564d remove component update warning
refs LF-46
flag=none

A previous patch upgraded the library that was the root cause of this
warning.

test plan:
  - n/a

qa risk: low

Change-Id: Id309ecb70515ff444e23a38069d7cb19ca6eefce
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/330029
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jake Oeding <jake.oeding@instructure.com>
QA-Review: Jake Oeding <jake.oeding@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-10-18 14:55:52 +00:00
Davis Hyer cee4ce6eed remove option supression
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: Ida4cbf8920f6686332e3f0ac5433dbf20f782103
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/330052
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jake Oeding <jake.oeding@instructure.com>
QA-Review: Jake Oeding <jake.oeding@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-10-18 14:55:41 +00:00
Davis Hyer c248d33ded remove contextType error suppression
flag=none

A previous patch resolved this error, removing to enforce it moving
forward

test plan:
  - n/a

qa risk: low

Change-Id: Ia270cd02f10128bce3cc91bf46fbc1c02eb75fd0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/330051
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-10-11 17:11:40 +00:00
Davis Hyer 879a982fd2 remove object error suppression
flag=none

The error has been resolved in previous commits.

test plan:
  - n/a

qa risk: low

Change-Id: Ia60581e03f420a038fd76db4ba9da30e4a658f1f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/330030
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-10-11 17:11:27 +00:00
Aaron Shafovaloff b8b77a2638 Prepare for InstUI 8 upgrade
refs FOO-3190

flag=none

Test plan:
  build passes

Change-Id: I565239c71d769a3b8359221422a972780306c04c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/327200
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
2023-09-08 15:56:48 +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 4b84bfbe37 Prepare for InstUI upgrade
Test plan
  - Build passes

flag=none

Refs FOO-3190

Change-Id: I98cffac1add43a52c2f35806022520a1bccf90e4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/325271
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2023-08-15 20:57:53 +00:00
Aaron Shafovaloff 2b67658622 Remove CJS build from RCE
test plan
 - build passes

flag=none

refs FOO-3705

Change-Id: I6d14ad05133ec09206f88a86d0cd350a030d5f72
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/324612
Reviewed-by: Jacob DeWar <jacob.dewar@instructure.com>
QA-Review: Jacob DeWar <jacob.dewar@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Build-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-08-08 19:30:56 +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 14a66cb299 .jx -> .jsx in canvas-planner
also: reduced need for specialized babel config

test plan:
  - existing tests pass

flag=none

Change-Id: I2625830f01b2d65da0dad02e740f458dfb96863a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/323643
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: Isaac Moore <isaac.moore@instructure.com>
Build-Review: Isaac Moore <isaac.moore@instructure.com>
2023-07-28 16:33: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
Matheus 57f00bb3f2 Use new media attachment route on upload
closes LF-328
flag=media_links_use_attachment_id

Test plan:
1. In the files area in a course (or user)
2. Open the preview for a video file
   (upload one if needed).
3. Try to upload a CC via the CC menu and
   check that the correct media_attachments/
   route was used and not media_objects/

Change-Id: I55e1c2fffe44de089c39b5eb96c4ba634198d242
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/319253
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Mysti Lilla <mysti@instructure.com>
QA-Review: Mysti Lilla <mysti@instructure.com>
Product-Review: Luis Oliveira <luis.oliveira@instructure.com>
2023-06-01 21:12:34 +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
Ed Schiebel c2ff3dec6c don't let users remove auto-subscribed calendars
closes LS-3986
flag=auto_subscribe_account_calendars

test plan:
  - have a student in a couple courses in different sub-accounts
  - have one sub-acccount's calendar auto-subscribe (by setting
    account_calendar_subscription_type="auto" on the account)
  - open the calendar as the student
  > expect to see the auto-subscribed calendar in the sidebar
  - hover over that calendar
  > expect no 'x' to remove the calendar
  - click the + to add other calendar to open the Select Calendars
    modal
  > expect the auto-subscribed calendar's checkbox to be disabled
  - check the other account calendar's checkbox and Save Changes
  > expect both calendars in the sidebar
  - hover over each of them
  > expect an 'x' to delete the non-auto-subscribed calendar and
    no 'x' on the auto-subscribed calendar

Change-Id: I7c22eb3a20f3cbfb0dbe04d540e31d585c0a111a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/317430
Reviewed-by: Eric Saupe <eric.saupe@instructure.com>
QA-Review: Eric Saupe <eric.saupe@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-05-08 20:56:10 +00:00
Yona Appletree e115c330ca Type safety and prop cleanup for RCE components
Closes MAT-453
flag=none

QA Risk Low

Test plan:
- automated tests pass

Change-Id: I615b91dd03fb865bf5b4390702d320e2b88feb39
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/316757
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: Yona Appletree <yona.appletree@instructure.com>
2023-04-27 19:39:52 +00:00
Yona Appletree 3def613a93 Allow disabling the Jest timeout limit
Introduces DISABLE_JEST_TIMEOUT_LIMIT which disables the jest test
timeout limit, useful for local debugging in some IDEs
(such as RubyMine)

flag=none

Closes MAT-1063

Test plan:
  - Tests pass
  - Run a jest test in RubyMine with and without
    DISABLE_JEST_TIMEOUT_LIMIT=true
  - Without it, tests won't run
  - With it, they do

Change-Id: I5f422dad4476bb1824dfb487baf24fc53570a4cc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/314983
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Product-Review: Yona Appletree <yona.appletree@instructure.com>
QA-Review: Juan Chavez <juan.chavez@instructure.com>
2023-04-05 20:45:14 +00:00
Jonathan Guardado ddc4378142 Resolve console errors for Pure Functions
Avoid updating the parent component state in the component body, use
a react hook instead

closes: LS-3840
flag=none

Test plan:
- Tests pass
- Confirm the unread notifications in the navigation
work as usual.
- Confirm the shared contents table works as usual,
and contents are announced by VO

Change-Id: Id50d7330b6f8759ab4ad021325a416d350da259c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/314325
Reviewed-by: Luis Oliveira <luis.oliveira@instructure.com>
QA-Review: Luis Oliveira <luis.oliveira@instructure.com>
Product-Review: Luis Oliveira <luis.oliveira@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-04-05 17:11:28 +00:00
Jackson Howe 12d953f899 Convert DashboardCardReordering specs to jest
refs LS-3841
flag = none

Test plan: specs pass

Change-Id: I0f6fa423cbac705d4e61d7be4946ee303fd17f18
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/314573
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: Davis Hyer <dhyer@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-03-30 00:00:16 +00:00
Davis Hyer 1bac89d31b remove CheckboxGroup usage error suppression
fixes VICE-3378
flag=none

The issue was originally introduced in
https://gerrit.instructure.com/c/canvas-lms/+/278783 and removed in
https://gerrit.instructure.com/c/canvas-lms/+/278998

test plan:
  - tests pass

qa risk: low

Change-Id: I8042a1680992c4756e2c663465c67b3782b8a5f1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/314610
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>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-29 22:00:53 +00:00
Jonathan Guardado 96c6b2c6bf Refactor ObsererOptions to use valid children
Use a callback to notify the observer picker when the highlighted
option changes, so we no longer need to use a function as a child
to access this value.

refs LS-3837
flag=none

test plan:
- Tests pass
- Expect the observer picker to behave and look as usual in normal
canvas and k5.
- Expect not to see errors associated with the observer picker in the
console

Change-Id: Ic205828bed4882f27ff874b3eef28fd043b19b6d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313385
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-03-17 18:09:57 +00:00
Davis Hyer 474eb6b92d document ownership of componentWillReceiveProps warnings
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: Idc9d75d0862752568aac7f042ba106af4bc890ac
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312454
Reviewed-by: Mysti Lilla <mysti@instructure.com>
QA-Review: Mysti Lilla <mysti@instructure.com>
Product-Review: Mysti Lilla <mysti@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-04 00:55:28 +00:00
Davis Hyer db11c4b31e remove unnecessary media_objects warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I80094c9d8ca9c5fb86ff87b4a7677ebf8b4b3704
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312456
Reviewed-by: Mysti Lilla <mysti@instructure.com>
QA-Review: Mysti Lilla <mysti@instructure.com>
Product-Review: Mysti Lilla <mysti@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-04 00:39:13 +00:00
Davis Hyer 64942de114 document ownership of CheckboxGroup console errors
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I79472034c3ac42a44d25c45cc66339236ff3967d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312450
Reviewed-by: Jake Oeding <jake.oeding@instructure.com>
QA-Review: Jake Oeding <jake.oeding@instructure.com>
Product-Review: Jake Oeding <jake.oeding@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-03 23:45:32 +00:00
Davis Hyer 6cfc2542d8 document ownership of 'pure functions' errors
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I8cde1ed1d1f51da8d18ee710c53f4149a8eaa14d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312409
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jake Oeding <jake.oeding@instructure.com>
QA-Review: Jake Oeding <jake.oeding@instructure.com>
Product-Review: Jake Oeding <jake.oeding@instructure.com>
2023-03-03 23:29:17 +00:00
Davis Hyer b6a226bc3b ensure all Option components are provided with required id prop
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I34c2c9a9214c23db59a2cdeb5b40c0f273e102bd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312441
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jake Oeding <jake.oeding@instructure.com>
QA-Review: Jake Oeding <jake.oeding@instructure.com>
Product-Review: Jake Oeding <jake.oeding@instructure.com>
2023-03-03 23:29:06 +00:00
Davis Hyer b19262e832 remove unnecessary heuristic warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I078b51df01866a44d3d2ffa322efa7cf987b4c72
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312437
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-03-03 20:34:40 +00:00
Davis Hyer e1c4dd7704 ensure all FormField components have required id prop
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I941fbf3c12f422a76d9224a75bd17701e6277493
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312436
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-03-03 20:22:53 +00:00