Commit Graph

22 Commits

Author SHA1 Message Date
Janos Csizmas 09882e9fc3 ICE Tablet and mobile design for Discussions page
refs VICE-4193
flag=instui_nav

Test plan:
 - Check, than the instui_nav feature flag has been enabled
 - Visit the discussions list page under the Courses menu
 - Check the new tablet and mobile design changes based on the figma
 - Check the filter (arrow next to the title) functionalities
 - Check the search field functionality
 - Check the buttons (add, setting) functionality on the right corner

Change-Id: Ib67da73304f8083cdf21956f2704303fdca9d500
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/350559
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Daniel Matyas Vincze <daniel.vincze@instructure.com>
QA-Review: Dora Csolakov <dora.csolakov@instructure.com>
Product-Review: Roland Beres <roland.beres@instructure.com>
2024-07-16 10:17:05 +00:00
balazs.buri e7d49dfcd9 fix 'renders "Delayed" date label' test
refs LF-1439
flag=none

Test Plan:
-  'renders "Delayed" date label' test passes

Change-Id: I927d120fe83cfbe26d40942a7adbf3f290bc01fa
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348042
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Balint Kartyas <balint.kartyas@instructure.com>
Reviewed-by: Árpád Kozma <arpad.kozma@instructure.com>
QA-Review: Árpád Kozma <arpad.kozma@instructure.com>
QA-Review: Balázs Buri <balazs.buri@instructure.com>
Product-Review: Árpád Kozma <arpad.kozma@instructure.com>
Product-Review: Balázs Buri <balazs.buri@instructure.com>
2024-05-31 10:37:54 +00:00
Arpad Kozma f98b461976 Remove enzyme mount from shared tests
refs LF-1439
flag=none

Test Plan:
- TermsOfServiceModal.test.jsx - passed
- AnnouncementRow.test.jsx - passed
- CourseItemRow.test.jsx - passed
- ToggleIcon.test.jsx - passed
- TruncateWithTooltip.test.jsx - passed
- UnreadBadge.test.jsx - passed

Change-Id: I0e1c93008ec49a1efc4d9462df9a571a44c2efbd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/346597
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: Árpád Kozma <arpad.kozma@instructure.com>
2024-05-09 07:50:35 +00:00
Eric Saupe 1b41ee3d11 spec: Remove enzyme.mount from announcement specs
fixes LF-1425
flag=none

test plan:
- tests are still testing what they were before
- tests pass

Change-Id: If1c69d04d7f3a797ad6cc79665dbb36966630862
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/344442
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-09 22:25:23 +00:00
Jason Gillett da38ee2589 Update announcement index to use reply permission for reply
refs VICE-4084
flag=none

Test Plan
1. create some announcements
2. have one be locked for comments
3. Have one be open for comments
4. open announcement index as student
5. verify that locked announcement does not display reply
6. turn off permission for student to reply to discussion/announcement
7. verify that both announcements do not display reply button

Notifications will to observers will be updated in a following
patchset

Change-Id: I81d311326616c1ffb51c644e1a2628da716342d6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/340513
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Reviewed-by: Samuel Lee <samuel.lee@instructure.com>
Product-Review: Jason Gillett <jason.gillett@instructure.com>
2024-02-15 20:33:29 +00:00
Aaron Shafovaloff e0b90383b9 upgrade prettier
Change-Id: I9a0fd5a82163462822bec33fc5e39261e6adcd22
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/337220
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Derek Williams <derek.williams@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2024-01-10 18:11:55 +00:00
Aaron Shafovaloff 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
Sarah Gerard 3f0c22188f Math renders on pages with multiple user content divs
closes LF-581
closes LF-583
flag=explicit_latex_typesetting

test plan:
- with the flag on
- test out different pages with multiple user content divs
- add some math ex. \(Latex\) throughout the page
- save the page
- math should render
- places to test:
- announcements landing page (math should render in the content
  snippet of each announcement)
- classic quizzes when taking the quiz (math should render in
  the questions and the answers)
- discussions (posts and replies, etc)
- with the flags outcomes_friendly_description and
  improved_outcomes_management on
- test adding math to outcomes descriptions and friendly descriptions
- expand and un-expand the descriptions, math should still render
- try creating new outcomes, removing outcomes, and editing outcomes
- ensure that math still renders on pages with one user content div
- ex. math on a page

Change-Id: I11d7a186ce7acdbd8a8705409d25b117e7842f0d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/325861
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jonathan Guardado <jonathan.guardado@instructure.com>
Reviewed-by: Jake Oeding <jake.oeding@instructure.com>
QA-Review: Jonathan Guardado <jonathan.guardado@instructure.com>
Product-Review: Jonathan Guardado <jonathan.guardado@instructure.com>
2023-08-30 18:24:48 +00:00
Aaron Shafovaloff 11b284327c move .js files with JSX to .jsx extension
- .js files without JSX reduces unnecessary AST transformation
 - also paves way for vitest

test plan:
  - existing tests pass

flag=none

Change-Id: I392daefdfefab89e7cf511477e16c860b05519ff
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/323393
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Build-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
2023-07-24 14:59:37 +00:00
Aaron Shafovaloff 51349dfa05 remove .coffee extension from coffeescript imports
this removes annoyances when decaffeinating files

test plan:
  - all tests pass

flag=none

Change-Id: Ie3af0faf13d64a4701bb917fbcae29cb10474df1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/315484
Reviewed-by: Derek Williams <derek.williams@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Cameron Ray <cameron.ray@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-04-10 17:01:42 +00:00
Caleb Guanzon 63c8517942 respect granular course content permissions in announcements ui
flag=granular_permissions_manage_course_content
fixes VICE-3285

Since the permission explainer test specifically specifies
that announcement locking and deleting should really
affect announcements locking and deleting,

we should make it so

this fix will also work with the manage course content
combined permission

test plan:
- turn on the
granular_permissions_manage_course_content feature flag

verify the following in the course announcements index:
- the delete row item menu option only shows for roles with
the manage_course_content_delete permission
- the lock/allow row item menu option only shows for roles with
the manage_course_content_edit permission
- if user has neither of these 2 permissions, the
announcement rows do not show a checkbox, and does
not show a manage menu

Change-Id: Ia4b2eee6461b6a85ae71a8b8e5af15586b7aad23
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/310593
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: Jason Gillett <jason.gillett@instructure.com>
2023-02-08 17:07:25 +00:00
Aaron Shafovaloff ec9defc536 Prefix unsafe React methods
Test plan:
    - All existing tests pass

flag=none

Refs DE-1426

Change-Id: I02d348ea1746db648c4fae73a2e4996bb2d66ffa
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/303581
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Cameron Ray <cameron.ray@instructure.com>
2022-10-19 13:51:13 +00:00
Aaron Shafovaloff 86d0e7ced2 Update JavaScript in ui/ to latest prettier config
Test plan:
  - All existing tests pass

flag=none

[skip-eslint]

Change-Id: I36c1a2f47004185f8f02f4155b838c877ee495e3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/302256
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2022-09-29 22:04:26 +00:00
Drake Harper 5313b7a7fa Add safe nav to display_name
fixes VICE-2952
flag=none

Test Plan:
 - import an announcement
 > should load without error

Change-Id: I5fc2b4612eabd352b4785359ce9563fe0b6bf608
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/294464
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jason Gillett <jason.gillett@instructure.com>
Product-Review: Jason Gillett <jason.gillett@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
2022-06-22 15:01:51 +00:00
Charley Kline e033794e85 Fix up deprecated InstUI buttons in ui/shared
Refs FOO-2744
flag=none

This addresses all deprecated use of the `variant` prop
in Button objects in the ui/shared directory.

Test plan:
* possibly spot-check parts of the UI that use these
  components that have been touched?

Change-Id: Iefd507398c09029be03734378316bc818e8c48cf
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/293561
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: August Thornton <august@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
2022-06-10 21:04:41 +00:00
Jacob Burroughs 25be4610fe Frontend ownership attribution tooling
Also marks a handful of dirs to proove the tooling

Change-Id: I2e19b3861dbf626efd9361829454b6eb16224755
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/292044
Reviewed-by: Ahmad Amireh <ahmad@instructure.com>
Product-Review: Ahmad Amireh <ahmad@instructure.com>
Tested-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Jacob Burroughs <jburroughs@instructure.com>
2022-06-07 16:42:29 +00:00
Charley Kline f9e14b9604 Fix date/time locale data for fr-CA
Closes FOO-2921
flag=none

Our locale data overrides for Canadian French have some
minor errors in formatting and spelling of abbreviations.
This commit corrects them to the values generated by
Intl.DateTimeFormat, which should be correct since those
come directly from the Unicode CLDR.

This also fixes up a couple of the React components that
were using old-style date time formatters, so that they
will now use Intl (this also frees them from having to
import jQuery)

Test plan:
* These translations should be correct. One place to look
  for them is in the posting dates for course announcements

Change-Id: Ie81c1e327807259ea43fb128355c1e9ca728558c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/291396
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
2022-05-10 13:54:07 +00:00
Aaron Shafovaloff f8458c8699 fix formatting from useScope commits
test plan:
 - all tests pass

flag=none

Change-Id: I50e858039081b8bd0c5a497cdf9e697710a54dc5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/287364
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ahmad Amireh <ahmad@instructure.com>
QA-Review: Ahmad Amireh <ahmad@instructure.com>
Product-Review: Ahmad Amireh <ahmad@instructure.com>
2022-03-17 21:07:06 +00:00
Ahmad Amireh bf46b5cc33 rewrite i18n! to useScope in javascripts
refs FOO-2696
flag = none

applied by the codemod found here: https://github.com/instructure/canvas-i18n-loader-rewrite

this won't pass in isolation, see the mega patch that cherry-picks them
all for the status

~ test plan ~

do a cursory glance over the changes and verify we didn't miss anything

Change-Id: I9bc7dad55c7aba9053ab69c9bb477cb4ee3e78bb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286661
Tested-by: James Butters <jbutters@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
2022-03-10 21:38:25 +00:00
Drake Harper 3f6a0e53b3 Restore tool tip on discussion landing page
flag=none
closes VICE-2214

Test Plan:
 - see ticket for designs
 - create and publish a discussion
 > should see "All Sections" under topic title on landing page
 > on mouse over tool tip should render

Change-Id: I1477c016eaf1815edb8e8b663f3929524e069179
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/276741
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
2021-11-05 18:08:24 +00:00
Omar Gerardo Soto-Fortuño 9614a5fbff Remove tooltip for All Sections
fixes VICE-2081

flag=none

test plan:
  - Go to Discussions/Announcement index page
  - Notice that All Sections isn't clickable and
      has no tooltip.

qa risk: low

Change-Id: I8726de9a5dc39c2a9bc1955bc9a77705227fb1e5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274974
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>
2021-10-02 13:41:13 +00:00
Ahmad Amireh 4243097b21 rename some things
fixes FOO-1265

[skip-eslint=true]
[pin-commit-analytics=7e49eefd7f59cbf43fd03bf8957bbbfa76f8d9d5]
[pin-commit-demo_site=adade2e38e46a358a4643cd3db2fe5ccffe39ec5]
[pin-commit-instructure_misc_plugin=47a3161102b0611af56d134fbd0c828ddc1b8abf]
[pin-commit-migration_tool=0dbac2f5b421d894395605ce4b583ef0f7d60b22]
[pin-commit-multiple_root_accounts=cc96d28c0d59bbe47acc64de4fdd8e1d2b029805]

Change-Id: I14c07f20bd260cf0de1f48ceb70b3c2313edf2d2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/258807
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Ziwisky <mziwisky@instructure.com>
QA-Review: Michael Ziwisky <mziwisky@instructure.com>
Product-Review: Michael Ziwisky <mziwisky@instructure.com>
2021-04-06 01:12:49 +00:00