Commit Graph

38 Commits

Author SHA1 Message Date
Jansen Kantor
2208737a69 fix: incorrect key crashes page 2024-09-12 16:01:02 -04:00
Bilal Qamar
5bcb6fe6f3 refactor: updated snapshots for failing tests 2024-04-15 15:44:02 +05:00
Mashal Malik
f67ffdd480 refactor: replace @edx/paragon and @edx/frontend-build (#294)
* refactor: replace @edx/paragon and @edx/frontend-build

* refactor: updated edx packages

* fix: fixed failing test cases by remmoving paragon mock

* fix: updated lock file to fix build issues

---------

Co-authored-by: mashal-m <mashal.malik@arbisoft.com>
Co-authored-by: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com>
Co-authored-by: Muhammad Abdullah Waheed <abdullah.waheed@arbisoft.com>
2024-02-28 13:04:23 -03:00
Syed Ali Abbas Zaidi
5bed90b659 feat: migrate enzyme to edx/react-unit-test-utils (#295)
* feat: migrate enzyme to edx/react-unit-test-utils

* refactor: remove shallowWrapper usage

* refactor: remove unnecessary _instance usage
2024-02-10 00:35:02 +05: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
leangseu-edx
78ada8ce34 chore: disable cycle dependency error for eslint (#227)
* chore: disable cycle dependency error for eslint

* chore: remove done from async function

* chore: downgrade @testing-library/react to 12 for react@16 support

* fix: update integration test selection and waiting

---------

Co-authored-by: Ben Warzeski <bwarzesk@gmail.com>
2023-07-17 11:17:58 -04:00
leangseu-edx
a1436c3266 chore: update header and footer package (#195)
* chore: update header and footer package

* chore: unit test
2023-06-30 13:00:29 -04:00
Leangseu Kim
26906d45f7 fix: upgrade frontend-build to v12 2023-02-23 10:20:59 -05:00
Diana Olarte
c646b88543 feat: allow runtime configuration (#144)
* feat: allow runtime configuration

* test: organize Head test
2022-11-21 10:06:24 -05:00
Ben Warzeski
15e756673f fix: remove return from useEffect call (#131)
* fix: remove return from useEffect call

* fix: text renderer tests
2022-07-20 13:29:26 -04:00
Leangseu Kim
956dee9a6d chore: change card body to card section 2022-07-19 11:28:15 -04:00
leangseu-edx
4f7d3aeb57 leangseu edx/header footer dependency (#127)
* chore: update dependency

* fix: update dependency to match deploy package for header and footer

* chore: update linting

* chore: update datatable filter for paragon upgrade
2022-07-15 11:02:44 -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
8a80e2a70e chore: update package 2022-04-12 10:36: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
Ben Warzeski
38d40342db feat: demo mode (#78)
* feat: demo mode

* chore: update i18n for demo mode

* chore: re-use demo design

* fix: update snapshots
2022-03-29 11:56:05 -04:00
leangseu-edx
e8550af85d fix: scroll enable on smaller screen (#51)
* fix: scroll enable on smaller screen

* fix: fixed review error width

* fix: make rubric and review error width align

* fix: rubric position to be sticky

* fix: remove double scroll bar at the bottom for small screen

* fix: make submission more response on small screen

* fix: rubric sticky and margin correctly on smaller screen

* chore: linting and update snapshot

* fix: make submission title resize to smaller on smaller screen

* fix: miss align rubic and submission file on the top

* fix: padding size on small screen

* feat: add optional on feedback comment for clarity

* chore: update test
2022-02-08 10:33:42 -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
c5bf0a7d11 feat: add file renderer that support common error handling and loading banner (#42)
* feat: add file renderer that support common error handling and loading banner

* chore: use axios instead of get from utils

* chore: fixed typo and update snapshots
2022-01-19 12:34:44 -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
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
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
Ben Warzeski
9a1a7cd892 refactor: centralize paragon mocking 2021-11-05 16:04:55 -04:00
leangseu-edx
d8ff52ab10 feat: updated submission display (#21)
* feat: first draft of updated submission display

* chore: update unit test

* fix: update requested change

* chore: internationalize the label
2021-11-03 15:19:47 -04:00
Ben Warzeski
db959f18f0 feat: i18n-ize messages (Merge pull request #20 from muselesscreator/i18n)
Feat: I18n-ize messages
2021-11-02 10:43:20 -04:00
Leangseu Kim
5361080bc3 feat: submission files overview
chore: refactor css and file locations

chore: update fake data and file props

chore: create functional component for showing submission files

chore: update ResponseDisplay test

fix: fix bad snapshot

chore: update linting because husky does do it

chore: update snapshot

chore: update requested change

chore: update mock and snapshot
2021-10-29 11:01:46 -04:00
Ben Warzeski
7d0b281dd0 feat: i18n ListView and StatusBadge labels 2021-10-29 10:26:06 -04:00
Ben Warzeski
3f497295f4 feat: i18n InfoPopover 2021-10-29 10:24:49 -04:00
Ben Warzeski
19f5181ecf fix: add onClose methods (dummies) to IconButton and AlertModal
these 2 snapshots have anonymous functions... trying to decide
if those should be made classes to notate the stub method...
2021-10-26 12:17:41 -04:00
Leangseu Kim
fde93273e3 feat: Adding husky and update pre-push hook
testing linting husky
2021-10-20 12:16:25 -04:00
leangseu-edx
02b29830cf Rubric feedback (#9)
* add feedbackPrompt to selector

* create info popover component and radio criterion

* update criterion container to use new component instead

* remove unused components

* update rubric feedback to use gradeState

* update to test for bound method

* update info popover and the test

* implement review criterion

* remove gradeStatus from rubric feedback and criterion feedback

* use gradeStatus to show review criterion

* update selector testing naming
2021-10-08 14:41:09 -04:00
Ben Warzeski
e7ae3b9194 ReviewActions re-org and adding ConfirmModals 2021-10-05 16:26:09 -04:00
Ben Warzeski
bf094b047a update ResponseView to use new selector 2021-09-29 13:58:04 -04:00
Ben Warzeski
b771250632 data constants to support status display consistency 2021-09-28 11:34:04 -04:00
Ben Warzeski
fe6753b259 incorporate leangseu rubric and navigation PR 2021-09-28 11:34:04 -04:00
Ben Warzeski
585e33720b update api to match docs 2021-09-28 11:34:04 -04:00
Ben Warzeski
0eed5fdf6f container organization 2021-09-28 11:34:04 -04:00