Commit Graph

94 Commits

Author SHA1 Message Date
milad-emami
212014fed9 chore: update redux-devtools-extension to @redux-devtools/extension@3.0.0 2024-11-25 12:14:34 +03:30
Diana Catalina Olarte
76f41439e9 fix: apply getPath to PUBLIC_PATH to allow use with CDN 2024-11-19 16:19:19 +03:30
alipov_d
9cfab58663 fix: request error for empty user list responses 2024-04-03 15:25:01 -03:00
Leangseu Kim
c644da3dcc fix: decodeURIComponent for locationId
Squashed commit of the following:

commit af4d469ef241a504112dceda2cb94bff24ba4a9c
Author: Vu Nguyen <vu.nguyen@dmttek.com>
Date:   Wed Oct 4 11:27:58 2023 +0700

    update test cases

commit d0c28fb99bede979fbcc8f57036ecb8027996772
Merge: 1f4d50b 5492520
Author: vunguyen-dmt <34919039+vunguyen-dmt@users.noreply.github.com>
Date:   Wed Oct 4 11:22:24 2023 +0700

    Merge branch 'openedx:master' into fix_location_id_error

commit 1f4d50b36514a6e4e9e575b938bf93b81317a21c
Merge: a280a35 eb73457
Author: Vu Nguyen <vu.nguyen@dmttek.com>
Date:   Fri Jul 21 03:45:05 2023 +0700

    Merge branch 'fix_location_id_error' of https://github.com/vunguyen-dmt/frontend-app-ora-grading into fix_location_id_error

commit a280a350fcf595dd2011018d113467a9cd88cd61
Author: Vu Nguyen <vu.nguyen@dmttek.com>
Date:   Fri Jul 21 03:44:28 2023 +0700

    fix: decodeURIComponent for locationId

commit eb734574bd0daae0c2523904763a8d755baa31f3
Author: Vu Nguyen <vu.nguyen@dmttek.com>
Date:   Fri Jul 21 03:41:28 2023 +0700

    update src/data/constants/app.test.js

commit 513dd324a5adc7312ac92c30164e0120784acd4b
Merge: e899846 78ada8c
Author: vunguyen-dmt <34919039+vunguyen-dmt@users.noreply.github.com>
Date:   Wed Jul 19 16:12:14 2023 +0700

    Merge branch 'master' into fix_location_id_error

commit e8998461de8ba9cbbe00a1726ad6266bde5d5ef5
Author: Vu Nguyen <vu.nguyen@dmttek.com>
Date:   Thu Jun 8 10:29:45 2023 +0700

    fix: decodeURIComponent for locationId
2023-10-10 11:30:26 -04:00
Emad Rad
e25a5a9549 Persian language (#246)
* fix: corrected typos

explaination -> explanation
Critera -> Criteria
addtional -> additional
arbitary -> arbitrary
penging -> pending
downladFiles -> downloadFiles
isLoadeed -> isLoaded
selectror -> selector
commnents -> comments
stirng -> string
isGragrding -> isGrading
queu -> queue
seleted -> selected
feecback -> feedback

* feat: Persian language (fa_IR) added

* chore: Persian translations added

* chore: sort language codes alphabetically

* chore: camelCase variable used for translated messages

* chore: deprecated styling updated

---------

Co-authored-by: Leangseu Kim <lkim@edx.org>
2023-09-11 09:15:52 -04:00
Bilal Qamar
b7b94531aa feat: update react & react-dom to v17 (#190)
* feat: update react & react-dom to v17

* build: update pkgs

* fix: fix lint issue

* build: update paragon

* refactor: updated edx packages

* build: update -react-redux

* refactor: updated package-lock

* refactor: updated package-lock

* refactor: updated package-lock

---------

Co-authored-by: mashal-m <mashal.malik@arbisoft.com>
Co-authored-by: Mashal Malik <107556986+Mashal-m@users.noreply.github.com>
2023-08-28 10:36:11 -04:00
Leangseu Kim
a07d6f9b80 fix: when there is no options, the validation should be valid 2023-06-07 11:04:41 -04:00
Adolfo R. Brandes
49357a4e87 feat: Support runtime configuration
frontend-platform supports runtime configuration since 2.5.0 (see the PR
that introduced it[1], but it requires MFE cooperation.  This implements
just that: by avoiding making configuration values constant, it should
now be possible to change them after initialization.

Almost all changes here relate to the `LMS_BASE_URL` setting, which in
most places was treated as a constant.

[1] openedx/frontend-platform#335
2023-05-25 11:28:28 -03:00
Eugene Dyudyunov
cc349faeb2 fix: BadOraLocationResponse error
Refactor the locationId constant for the subdirectory-based
deployments support.

Exclude the MFE's `PUBLIC_PATH` from the constant.

The `window.location.pathname` example:
```
<PUBLIC_PATH>block-v1:oragrading+oragrading+oragrading+type@openassessment+block@ee217e897a954c1faa3b29317da0f2e7
```
Where the `PUBLIC_PATH` could be:
- `'/'` - for subdomain-based deployments (default)
- `'/mfe-specifix-public-path/'` - for subdirectory-based deployments
2023-05-12 15:33:01 +03:00
Leangseu Kim
26906d45f7 fix: upgrade frontend-build to v12 2023-02-23 10:20:59 -05:00
Leangseu Kim
0b1b079abd fix: patch to name duplicate 2022-06-13 10:14:23 -04:00
leangseu-edx
0f41df2cf3 feat: add fetch submission files (#110)
chore: remove cache busting
2022-05-12 09:45:46 -04:00
Ben Warzeski
5f12c4fb8e chore: renderer test coverage (#103)
* chore: renderer test coverage

* fix: lint

* chore: api tests

* chore: tests for app reducer and StartGradeButton

* chore: lint

* fix: update reducer tests

* chore: more test coverage

* chore: test coverage

* chore: update test for merge conflicts
2022-04-29 14:54:33 -04:00
Leangseu Kim
74423bf359 feat: prevent download large files 2022-04-21 09:37:11 -04:00
leangseu-edx
91dd10917f fix: cannot select criterion (#100)
* fix: cannot select criterion

* fix: refactor fill grade data

* fix: update tests

Co-authored-by: Ben Warzeski <bwarzeski@edx.org>
2022-04-18 16:43:37 -04:00
leangseu-edx
64ac98c310 download filename, error handling and cache busting (#98)
* feat: handle download error and display them

* chore: update test environment for easier single file test

* feat: add cache bursting to the download
2022-04-14 13:52:39 -04:00
Ben Warzeski
56c6c88638 feat: connect batch unlock to the api 2022-04-07 15:55:49 -04:00
edX requirements bot
9c564c5781 build: Added support for node v16 (#54)
* feat: Added support for node v16

* test: update test for download

Co-authored-by: Leangseu Kim <lkim@edx.org>
2022-04-06 14:13:25 -04:00
Ben Warzeski
6c9673cc06 feat: Demo flag (#89)
* fix: preserve gradingData on navigation

* feat: demo linking and clear-all on close review

* fix: fix assets url

* chore: update snapshot

* fix: update routing for images

* fix: update snapshot
2022-04-05 15:11:20 -04:00
Leangseu Kim
d033fa310d feat: make zip support larger files
chore: improve code readability
2022-03-30 13:12:56 -04:00
Leangseu Kim
876f5d9413 fix: make gradeData check for empty object and null/undefined
chore: remove duplicate/unused function
2022-03-29 12:05:09 -04:00
Ben Warzeski
257849b55f Chore: Au 340 (#82)
* chore: testing update

* fix: uncomment tests
2022-03-23 13:34:20 -04:00
leangseu-edx
0de9807c94 Revert "Chore: Au 340 (#79)"
This reverts commit e1442f7890.
2022-03-18 12:24:56 -04:00
Ben Warzeski
e1442f7890 Chore: Au 340 (#79)
* chore: update tests for grading selectors

Co-authored-by: Justin Lapierre <jlapierre@edx.org>
2022-03-18 09:29:22 -04:00
Leangseu Kim
e656534a51 feat: empty submission components
chore: update usage of empty submission in list view

chore: remove unused

test: add unit testing
2022-03-15 12:20:11 -04:00
leangseu-edx
59c57028a0 chore: remove reloadSubmissions key from request and use initialize to reloadSubmissions table (#65)
Co-authored-by: Justin Lapierre <jlapierre@edx.org>
2022-02-23 09:25:34 -05:00
Ben Warzeski
42535c5f80 feat: switch over to real bff api (#56) 2022-02-10 11:25:44 -05:00
Leangseu Kim
c6ed6938af fix: update setup test to mock locationId 2022-02-02 15:09:14 -05:00
leangseu-edx
81026ae013 feat: make the app reload submission on modal close (#50)
* feat: make the app reload submission on modal close

* chore: remove reloadSubmission request and reuse initial app
2022-01-25 14:00:51 -05:00
leangseu-edx
46ebc899ee tri-fix (#49)
* fix: response display to show medium size on even the content isn't big enough

* fix: don't show download button when there isn't submission files

* feat: additional default support file for image renderer
2022-01-24 14:30:07 -05:00
leangseu-edx
f7341efc71 fix: grade data is empty object when there isn't grade data (#48)
* fix: grade data is empty object when there isn't grade data

* test: update unit testing
2022-01-21 13:36:54 -05:00
leangseu-edx
b2aac6036e feat: show file size in file popover (#47)
* feat: show file size in file popover

* chore: update file popover content's props
2022-01-19 11:13:39 -05:00
Ben Warzeski
21dcc972ed chore: update integration tests through grade submission (#43) 2022-01-13 14:18:58 -05:00
Justin Lapierre
d629e4495b chore: Implement submissions selector unit tests (#46)
* chore: Adapted the selector unit test to exercise the submissions selectors

* chore: updated linting for new submissions selector unit tests
2022-01-11 15:46:39 -05:00
Ben Warzeski
579ff50c99 feat: Zip download (#41)
* integration tests through navigation

* more tests

* download-demo

* feat: file download and tests

* fix: update manifest styling
2022-01-10 10:29:13 -05:00
leangseu-edx
771e79963e feat: txt file support (#40)
* feat: add txt renderer

* chore: remove supportedTypes and update snapshot

* chore: update css
2021-12-17 11:54:55 -05:00
Ben Warzeski
e584529cc5 feat: File Preview panel (#39)
* feat: update display preview panel

* chore: update package

* test: update unit testing

* test: update test

* test: update unit testing

* feat: update preview display to use custom renderer

* chore: use worker for react-pdf

* test: update unit testing

* chore: update requested change

* chore: update gitignore for sample files

* fix: hard-code filetype mappings

* fix: make integration test work again

* chore: update tests

* feat: add FileInfo to preview cards

Co-authored-by: Leangseu Kim <lkim@edx.org>
2021-12-10 14:57:56 -05:00
leangseu-edx
7e49670a95 feat: update lock/unlock logistic (#38)
* feat: update lock/unlock logistic

* chore: disable submit grade on lock pending

* chore: update mock for contested lock

* chore: update set lock success response

* chore: add failure reducer/action for set lock
2021-12-10 14:57:24 -05:00
Ben Warzeski
91c874e20d feat: Submit states (#37)
* feat: enable teams support

* feat: submit grade pending behavior

* feat: submit error behavior

* fix: Update src/data/services/lms/fakeData/testUtils.js

Co-authored-by: leangseu-edx <83240113+leangseu-edx@users.noreply.github.com>

Co-authored-by: leangseu-edx <83240113+leangseu-edx@users.noreply.github.com>
2021-12-06 11:02:43 -05:00
Ben Warzeski
909516dbc7 feat: enable teams support (#35) 2021-12-03 11:22:15 -05:00
Ben Warzeski
7634e0ad7e feat: Load submission pending and error states (#32)
* feat: list pending and error states

* fix: merge clunk

* feat: fetchSubmission pending and error states

* fix: lint fix

* fix: fix tests

* refactor: combined submission fetch

* fix: make merge fixes happy

* fix: linting

* fix: simplify selectors and fix action bar score

* fix: fix tests

* Update src/data/redux/requests/selectors.js

Co-authored-by: leangseu-edx <83240113+leangseu-edx@users.noreply.github.com>

Co-authored-by: leangseu-edx <83240113+leangseu-edx@users.noreply.github.com>
2021-11-24 13:05:18 -05:00
Leangseu Kim
67d91f4f98 feat: connect mfe and bff
test: update unit testing

chore: update requested change
2021-11-23 16:22:14 -05:00
Ben Warzeski
7a7c0f6b22 refactor: downloadUrl => downloadURL 2021-11-22 11:09:24 -05:00
Ben Warzeski
bfcbb50b57 refactor: update api 2021-11-22 10:51:01 -05:00
Ben Warzeski
2bf8deb216 fix: remove unused hack 2021-11-15 14:02:07 -05:00
Ben Warzeski
71dc26b7ad refactor: update grading data flow 2021-11-15 11:55:34 -05:00
Ben Warzeski
0d3678b059 fix: remove duplicate selector 2021-11-11 23:01:29 -05:00
Ben Warzeski
595148a82b fix: separate local and static grade data 2021-11-11 23:01:28 -05:00
Leangseu Kim
e620bc0f59 feat: first draft of submit
test: update unit test

chore: update requested change
2021-11-10 16:48:32 -05:00
Ben Warzeski
266ada8595 fix: merge mess lost a new selector. replaced 2021-11-05 14:14:04 -04:00