Commit Graph

1648 Commits

Author SHA1 Message Date
Jenkins
d1e8026a8a chore(i18n): update translations 2023-09-20 09:21:28 -04:00
Yusuf Musleh
3eb4e0ce9c feat: Update new files notification banner styles (#33197)
Uses the updated styles for the notification based on the new designs.
Includes a button to open view the files directly in the notification.

This also fix a bug where the notification was not appearing when paste
a whole Unit.
2023-09-15 08:58:50 -07:00
Yusuf Musleh
ac9aa91eb7 fix: Vertically center align Unit paste spinner (#33169) 2023-09-13 12:22:43 -07:00
Jenkins
9bae5cd26d chore(i18n): update translations 2023-09-05 12:44:57 -04:00
Jenkins
75f24ff513 chore(i18n): update translations 2023-08-27 17:05:27 -04:00
German
3f20c75043 feat: [ACADEMIC-16209] Unit summary settings (#32855)
* feat: [ACADEMIC-16209] Unit summary settings

[https://jira.2u.com/browse/ACADEMIC-16209](https://jira.2u.com/browse/ACADEMIC-16209)

1. Add unit xpert unit summaries settings behind flag `summaryhook_summaries_configuration` added [here](https://github.com/edx/ai-aside/pull/45/files)
2. Only show the checkbox when the value is a `boolean` otherwise the feature is considerer `disabled` by the flag.
3. Update block handler to update this value via `api` exposed [here](https://github.com/edx/ai-aside/pull/43)
4. Create `AiAsideSummary` configuration class to provide access to the `ai_aside.api` endpoints.
2023-08-21 14:55:22 -03:00
Jenkins
e0ba05d657 chore(i18n): update translations 2023-08-20 17:05:35 -04:00
Yusuf Musleh
6b22286afd fix: Prevent multiple dropdowns opening at once (#33046)
This closes already open dropdown menus when opening another dropdown
menu, to prevent them from overlapping each other.
2023-08-17 11:37:57 -07:00
Jenkins
6a6ac0166c chore(i18n): update translations 2023-08-14 15:43:08 -04:00
Braden MacDonald
08fda1b3eb feat: new actions menu for copy/pasting units in Studio (behind waffle flag) (#32891) 2023-08-14 11:58:24 -07:00
Jenkins
7c41be708e chore(i18n): update translations 2023-08-07 12:05:42 -04:00
Syed Ali Abbas Zaidi
8480dbc228 chore: apply amnesty on existing not fixable issues (#32215)
* fix: eslint operator-linebreak issue

* fix: eslint quotes issue

* fix: react jsx indent and props issues

* fix: eslint trailing spaces issues

* fix: eslint line around directives issue

* fix: eslint semi rule

* fix: eslint newline per chain rule

* fix: eslint space infix ops rule

* fix: eslint space-in-parens issue

* fix: eslint space before function paren issue

* fix: eslint space before blocks issue

* fix: eslint arrow body style issue

* fix: eslint dot-location issue

* fix: eslint quotes issue

* fix: eslint quote props issue

* fix: eslint operator assignment issue

* fix: eslint new line after import issue

* fix: indent issues

* fix: operator assignment issue

* fix: all autofixable eslint issues

* fix: all react related fixable issues

* fix: autofixable eslint issues

* chore: remove all template literals

* fix: remaining autofixable issues

* chore: apply amnesty on all existing issues

* fix: failing xss-lint issues

* refactor: apply amnesty on remaining issues

* refactor: apply amnesty on new issues

* fix: remove file level suppressions

* refactor: apply amnesty on new issues
2023-08-07 19:13:19 +05:00
Jenkins
58f44a8176 chore(i18n): update translations 2023-08-06 17:05:09 -04:00
Tim McCormack
8beb6277b3 Revert "Revert "temp: remove flaky tests video/transcripts/test_views.py (#32697)" (#32719)" (#32897)
This reverts commit 86eb49a7ed.
2023-08-02 16:04:46 +00:00
Jenkins
7be5246a3a chore(i18n): update translations 2023-07-30 17:04:43 -04:00
Jenkins
d79625ee72 chore(i18n): update translations 2023-07-19 11:34:52 -04:00
Kyle McCormick
86eb49a7ed Revert "temp: remove flaky tests video/transcripts/test_views.py (#32697)" (#32719)
This reverts commit 6b19eab038.
2023-07-12 12:00:29 -04:00
Jenkins
b70e3dc6ae chore(i18n): update translations 2023-07-10 18:04:53 -04:00
Robert Raposa
6b19eab038 temp: remove flaky tests video/transcripts/test_views.py (#32697)
The JS tests for CMS.Views.Metadata.VideoList are
flaky and failing, often on Initialize, so the entire
file is being removed.

More details on the flakiness can be found here:
https://github.com/openedx/edx-platform/issues/32690

Private ticket for fixing:
https://2u-internal.atlassian.net/browse/CR-5904
2023-07-10 14:50:00 -04:00
Kyle McCormick
f4540c30e8 fix: flow ?site_theme down through Studio container preview
In ~Palm and earlier, all built-in XBlock Sass was included into CMS
(and LMS) styles before being compiled. So, if a site theme was meant to
affect built-in XBlock styling, those changes would be manifested
directly in the base CMS CSS that is included into every single Studio
page. When the user provided the `?site_theme` querystring parameter,
which is intended to allow devs & admins to view Studio through a given
theme, CMS would look up the given theme and serve the corresponding
base CMS CSS, which would affect the built-in XBlocks views (as
expected).

After ~Palm, built-in XBlocks styles are handled more similarly to to
pure XBlock styles, in that they are only requested when CMS tries to
render the block. In Studio, blocks are not rendered by the original
request, but by a subsequent AJAX request to the `/container_preview`
enpoint. Thus, passing the `?site_theme` query parameter to the original
request will apply the given theme to Studio's chrome, but the theme
will _not_ apply to built-in XBlock views, whose CSS is now loaded via
async request.

To fix this, we simply pass Studio's querystring parameters (including
`?site_theme`) along to the `/container_view` AJAX request. This will
cause CMS to correctly serve the built-in XBlock CSS from the theme
specified by `?site_theme`, rather than whatever the current theme is.

Part of: https://github.com/openedx/edx-platform/issues/32292
2023-07-06 11:58:06 -04:00
Jenkins
dab865c4ee chore(i18n): update translations 2023-07-02 17:04:33 -04:00
Braden MacDonald
12a8d99824 feat: Copy/Paste associated static assets along with components (#32346)
* refactor: improve typing of StaticFile named tuple
* feat: copy static asset files into the clipboard
* feat: paste static assets
* feat: show notification in studio about pasted assets
* fix: HTML XBlocks would lose the editor="raw" setting when copy-pasted.
* feat: copy python_lib.zip to the clipboard when it seems to be in use
2023-06-27 12:06:43 -07:00
Jenkins
22989f4fe8 chore(i18n): update translations 2023-06-22 12:34:48 -04:00
Jenkins
7a047021b1 chore(i18n): update translations 2023-06-15 07:01:31 -04:00
Jenkins
435be23d2b chore(i18n): update translations 2023-06-12 11:41:13 -04:00
Jenkins
8326c19431 chore(i18n): update translations 2023-06-04 17:04:19 -04:00
Jenkins
072df9a18b chore(i18n): update translations 2023-06-01 09:59:22 -04:00
Jenkins
689ce64361 chore(i18n): update translations 2023-05-22 11:15:31 -04:00
kenclary
5bae0c86f5 Merge pull request #32024 from open-craft/chris/FAL-3383-new-video-editor-flow
[FAL-3383] feat: New waffleflag to enable or disable new video editor flow
2023-05-18 09:56:06 -04:00
Syed Ali Abbas Zaidi
d7053a6783 fix: eslint autofixable issues (#32181)
* fix: eslint operator-linebreak issue

* fix: eslint quotes issue

* fix: react jsx indent and props issues

* fix: eslint trailing spaces issues

* fix: eslint line around directives issue

* fix: eslint semi rule

* fix: eslint newline per chain rule

* fix: eslint space infix ops rule

* fix: eslint space-in-parens issue

* fix: eslint space before function paren issue

* fix: eslint space before blocks issue

* fix: eslint arrow body style issue

* fix: eslint dot-location issue

* fix: eslint quotes issue

* fix: eslint quote props issue

* fix: eslint operator assignment issue

* fix: eslint new line after import issue

* fix: indent issues

* fix: operator assignment issue

* fix: all autofixable eslint issues

* fix: all react related fixable issues

* fix: autofixable eslint issues

* chore: remove all template literals

* fix: remaining autofixable issues

* fix: failing js test
2023-05-18 11:03:59 +05:00
Jenkins
11a4ef4780 chore(i18n): update translations 2023-05-17 05:44:42 -04:00
Jenkins
ac03146d34 chore(i18n): update translations 2023-05-14 17:04:22 -04:00
Nathan Sprenkle
f0a9ef2161 feat: add video sharing config change signal (#32211)
* feat: add tracking to video sharing options change

* test: add tracking to video sharing options change
2023-05-10 10:28:35 -04:00
Syed Ali Abbas Zaidi
adf879e8b2 Revert "fix: all auto fixable eslint issues (#31900)" (#32203)
This reverts commit 228180b1ef.
2023-05-09 13:53:54 +05:00
Syed Ali Abbas Zaidi
228180b1ef fix: all auto fixable eslint issues (#31900)
* fix: eslint operator-linebreak issue

* fix: eslint quotes issue

* fix: react jsx indent and props issues

* fix: eslint trailing spaces issues

* fix: eslint line around directives issue

* fix: eslint prefer template issue

* fix: eslint semi rule

* fix: eslint newline per chain rule

* fix: eslint space infix ops rule

* fix: eslint space-in-parens issue

* fix: eslint space before function paren issue

* fix: eslint space before blocks issue

* fix: eslint arrow body style issue

* fix: eslint dot-location issue

* fix: eslint quotes issue

* fix: eslint quote props issue

* fix: eslint operator assignment issue

* fix: eslint new line after import issue

* fix: indent issues

* fix: operator assignment issue
2023-05-09 11:57:15 +05:00
Jenkins
202b86c291 chore(i18n): update translations 2023-05-07 17:04:02 -04:00
Braden MacDonald
4b72194b98 feat: Show a preview of what's in the user's clipboard (#32132)
This also fixes Studio container view 404.
2023-05-05 17:35:03 +02:00
XnpioChV
788c092d3e chore: Navigation to the video gallery updated 2023-05-04 16:24:13 -05:00
XnpioChV
c1b701309b feat: Waffleflag added to enable the new video editor flow 2023-05-04 16:24:06 -05:00
Agrendalath
e02555816f fix: remove relative due date limit
It was an artificial limit enforced by the frontend. The backend does not have
limitations that would prevent it from using a higher value.
2023-05-04 17:20:31 +02:00
Syed Ali Abbas Zaidi
f1fb38ed83 fix: multi lines and spaces issues (#31885)
* fix: multi lines and spaces issues

* fix: eslint operator-linebreak issue

* fix: eslint quotes issue

* fix: remaining quotes issues

* fix: eslint object curly newline issue

* fix: eslint object curly spacing issue

* fix: eslint brace-style issues

* fix: react jsx indent and props issues

* fix: eslint trailing spaces issues

* fix: eslint linbreak style issue

* fix: eslint space unary operator issue

* fix: eslint line around directives issue

* fix: void and typeof space unary ops issue
2023-05-03 12:22:46 +05:00
Leangseu Kim
0dc881e25a feat: course level public sharing video options
feat: add video sharing option field course field

chore: add social sharing document url

chore: add course check because library also using this
2023-05-02 14:57:25 -04:00
Jenkins
d194c761b3 chore(i18n): update translations 2023-04-30 17:04:11 -04:00
Braden MacDonald
8ee1f66ffb feat: Paste Components (OLX) into any Unit in Studio (#31969)
* feat: Implement paste button

* chore: improve docs and add tests for python API

* fix: drive-by fix to use a better API for comparing XML

* feat: track which XBlock something was copied from

* feat: add tests

* feat: enable import linter so content_staging's public API is respected

* fix: error seen when trying to paste drag-and-drop-v2 blocks

* fix: use strip_text=True consistently for XML comparisons

* refactor: rename get_user_clipboard_status to get_user_clipboard

* feat: Better error reporting when pasting in Studio

* chore: convert new test suite to pytest assertions

* refactor: push READY status check into the API per review suggestion

* fix: use strip_text=True consistently for XML comparisons

* fix: store "copied_from_block" as a string to avoid Reference field issues

* fix: minor lint error

* refactor: move data types to data.py per OEP-49
2023-04-27 09:58:04 -07:00
Jenkins
e01afb1c3a chore(i18n): update translations 2023-04-20 17:12:22 -04:00
Braden MacDonald
2dc79bcab4 feat: New django app for copying and pasting OLX content in Studio (#31904)
[FC-0009]
2023-04-14 11:41:41 -07:00
Jansen Kantor
de047cd6f9 feat: add assignment type count warning (#32068)
* feat: add assignment type count warning

* style: quality
2023-04-14 12:26:29 -04:00
Jenkins
9caa31bb06 chore(i18n): update translations 2023-04-02 17:04:08 -04:00
Jenkins
be3f83cb25 chore(i18n): update translations 2023-03-26 17:03:56 -04:00
Jansen Kantor
150c4cb836 fix: droppable must be less than total (#31972) 2023-03-23 11:17:55 -04:00