Commit Graph

60 Commits

Author SHA1 Message Date
Bianca Severino
5aaee3c63f Update header logo and favicon (#54) 2021-03-10 11:36:09 -05:00
edX Transifex Bot
14d7e17dde fix(i18n): update translations 2021-02-28 16:28:51 -05:00
David Joy
013aba58a6 Discussions LTI config UI. (#50)
* Adding font-awesome so we can use it with StatefulButton

* Rudimentary discussion config UI with mocked APIs.

* Updating Yellowdig logo URL

* Bumping and locking dependencies, adding formik and yup

* Wiring up the “Enable” button to go to the discussions config.

* Refactoring DiscussionConfig to use formik and yup.

* Using more paragon components - Card, CardGrid, and DataTable

* Adding keys to arrays of rendered components.

* Ignore module.config.js file.

* Bumping frontend-build to the latest version.

* Removing font-awesome again - it’s no longer necessary.

The latest version of Paragon uses <FontAwesomeIcon> for its closing “X”, rather than using CSS class names directly.

* Splitting discussion app list cards out into their own component.

They used to, but were folded in while refactoring to use Card and CardGrid.

* Adding comments to FeaturesTable.
2021-02-26 13:45:56 -05:00
edX Transifex Bot
275013f914 fix(i18n): update translations 2021-01-17 16:28:08 -05:00
David Joy
aaccd53fd1 fix: forgot to update PageCard to match new props (#48)
The PageCard code wasn’t updated to match the right props - it was still expecting “coursePage” when the new prop was “page”.  It was also lacking some other misc refactoring from earlier.
2021-01-12 11:54:53 -05:00
David Joy
9b2ad5e95d Backing discussions with data API/thunks/reducer. (#47)
* Backing discussions with data API/thunks/reducer.

This pulls all the data loading logic out of the React components and makes it significantly more flexible.

- Both apps and features have IDs and can be looked up in the store.
- The API layer is currently just returning hard coded data.
- LOADED and LOADING statuses are available to implement loading spinners and feedback.
- The taxonomy has been changed a bit - “forums and “tools” are now consistently referred to as “apps” - this code is almost completely agnostic to discussions, meaning that it could easily be repurposed for other kinds of apps, such as proctoring providers.

* Using ‘app’ and ‘name language in DiscussionAppCard messages.

* Using the selectedApp’s name for the Configure button.

* Misc review fixes

- better comment on error handling
- Fixing some CSS class names.
2021-01-11 15:52:24 -05:00
David Joy
cb11c1dd01 Further pages & resources naming and organization (#46)
* Fixing package SCSS imports.

They need tildas.  This ensures webpack knows to look for them in the node_modules folder, and also enables webpack resolve aliases to function (which is the mechanism that module.config.js works on)

* Renaming course-page-resources to pages-and-resources

It’s all course stuff in the end.

* Renaming CoursePageResources to PagesAndResources

To match its parent directory and the page’s user-facing name.

* Simplifying name of CoursePageConfigCard to PageCard

Also moving into a sub-directory where we’ll put components for the “pages” part of the UI.

* Remove data README from example app.

* Moving discussion-tool-selector directory

Adding it as a child of the pages-and-resources module.

* Organizing SCSS.

* Simplifying discussions module structure.

- Combining “container” and discussion tool selector into DiscussionAppList.
- Removing some sub-directories that feel a bit too granular.

* Splitting out some sub-components from PagesAndResources.

* Removing unnecessary scss extension on import.
2021-01-11 12:05:03 -05:00
edX Transifex Bot
62c7e49c3d fix(i18n): update translations 2021-01-10 16:28:42 -05:00
David Joy
78667fa972 Discussion tool selection page skeleton (#44)
* Added new components for Discussion Tool Selection

* Incorporating discussion tool selector page into CourseAuthoringRoutes

* Improving tool selection - will now unselect

Also using a pointer cursor.

* Styling tweaks, logo size and text color

Making the logo so it doesn’t scale vertically - picked 100px arbitrarily.  It will be changed, but is now at least a little more inline with how the Pages & Resources view behaves.

Also darkening text color - it looked disabled.

* Adding a “Configure forum” button

It appears when a tool is selected.

This is a temporary location, depending on whether or not we insist on this page being a full-page modal.  In my opinion we should just keep it a normal page.

Co-authored-by: Aayush <ayush@opencraft.com>
2021-01-08 14:07:24 -05:00
David Joy
9c63ab8044 Refactoring and organization (#41)
* Updating dependencies and removing unneeded ones.

* Fixing broken IntlProvider attribute in ProctoredExamSettings test.

* package-lock.json was out of sync - checking it in.

* Initializing an empty redux store.

* Adding model-store from frontend-app-learning.

This will let us save data from the server in a normalized way in redux, reducing boilerplate in React components.

* Fixing paragon button usage.

(also just organizing the imports while I was there…)

* Using paragon button instead of an anchor tag.

For the “New Page” button in the pages & resources view.

* Add API, reducers, and thunks to add course detail data into redux.

Subsequent PR will use this to store course detail data for use across different pages in the application.

* Prep work to add CourseAuthoringPage component.

Decided the course-detail sub-directory didn’t make much sense, given component structure, and moved it up to src.

These functions will be used in a CourseAuthoringPage component to load course detail data and display the Header and Footer in one common place, wrapping all the existing course authoring pages (proctoring and pages & resources)

It will also replace LmsApiService.js

* Minor style refactorings.

(This commit had originally made some changes to how courseId was passed in to these two components, but I decided to back it out… but the style stuff is worth adding as a fixed nit.)

* Refactor course detail loading and top-level course authoring components

This commit does a few things:

- Factors course detail data loading out of the Header.
- Loads that data in CourseAuthoringPage instead, adding it to redux and then passing it to the Header from there.
- Deletes LmsApiService, which is no longer used.
- Changes the route paths to be more canonical and entity-oriented, i.e., the first part of the route is the course, followed by the specific page about that course to load, rather than the other way around.  This more naturally allows us to use react-router to extract the common course detail loading code that only depends on the courseId.

* Refactoring routes code a bit to pass courseId into components

Didn’t like how CourseAuthoringPage, LegacyProctoringRoute, and CourseAuthoringRoutes all reached into the parent route to find the courseId, so passed it in instead.

* Updating README with more detail on routes in the MFE.
2021-01-07 13:16:35 -05:00
David Joy
eaefefda26 Upgrading axios to latest. (#43) 2021-01-05 16:13:02 -05:00
edX Transifex Bot
7bec6674f5 fix(i18n): update translations 2020-12-27 16:27:51 -05:00
David Joy
c7c7ec70fc Update README.rst 2020-12-21 10:50:22 -05:00
David Joy
aedfe9dc12 Update README.rst 2020-12-21 10:49:19 -05:00
David Joy
4a7e76ec48 Update README.rst 2020-12-21 10:48:51 -05:00
Jawayria
94be7d8183 Updated the build status badge to point to travis-ci.com (#38) 2020-12-21 08:41:57 -05:00
dependabot[bot]
559deb1380 Bump codecov from 3.6.5 to 3.7.1 (#8)
Bumps [codecov](https://github.com/codecov/codecov-node) from 3.6.5 to 3.7.1.
- [Release notes](https://github.com/codecov/codecov-node/releases)
- [Commits](https://github.com/codecov/codecov-node/compare/v3.6.5...v3.7.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-15 10:24:12 -05:00
Bianca Severino
bf90463ec2 Rebrand (#39) 2020-12-08 09:48:21 -05:00
edX Transifex Bot
730703c63d fix(i18n): update translations 2020-10-18 17:28:00 -04:00
stvn
9989cb7ae6 Merge PR #2 open-craft/rushal/BB-2542-discussion-configuration-UI
* Commits:
  Add wireframe views for configuring course apps
2020-10-14 06:57:15 -07:00
rusrushal13
09a21c96ff Add wireframe views for configuring course apps
Adds views (with test data) for the course apps configuration pages.
2020-10-08 03:14:00 +05:30
edX Transifex Bot
2339dc574a fix(i18n): update translations 2020-08-16 17:33:00 -04:00
Michael Roytman
309aa93607 [WIP] New Header Work (#33)
* update Studio header to include dropdown menus and internationalization

* Added header improvements (#34)

Added header improvements

Squashing commits for header improvements

added header improvements

fixed typo

moved api call to separate file

added course lockup to mobile header, removed snapshot tests

fixed css for mobile header

simplified css styling

updated testing

updated css styling

updated css

simplified course lockup

removed React fragments from lockup

fixed mobile header styling

Co-authored-by: alangsto <46360176+alangsto@users.noreply.github.com>
2020-08-13 11:43:01 -04:00
alangsto
bb4ab0368f improved focus management and help text (#32) 2020-08-10 10:27:21 -04:00
edX Transifex Bot
9a5542c1ed fix(i18n): update translations 2020-08-09 17:31:17 -04:00
alangsto
66f20ba4ec Submit form when enter key is pressed (#30)
* Submit form when enter key is pressed

* updated based on feedback
2020-08-07 10:58:37 -04:00
Zachary Hancock
535293d46d test fix (#29) 2020-08-05 15:30:56 -04:00
Zachary Hancock
0094f7c30f Translation Support (#25) 2020-08-05 12:30:13 -04:00
Michael Roytman
490b66db58 consistently POST back null for proctoring_escalation_email when no email is specific and omit proctoring_escalation_email when proctoring provider is not proctortrack (#26) 2020-08-05 11:36:54 -04:00
alangsto
747cdb4380 Prevent non edX staff from requesting changes to certain settings via POST request (#28)
* modify post data based on user

* added spacing
2020-08-03 16:57:42 -04:00
Michael Roytman
a0e26ac339 only show Maintenance user menu link when the user is an administrator (edX staff) (#27) 2020-08-03 15:07:07 -04:00
Michael Roytman
991ab0ac9c Add lean Studio header component. (#24)
* add component from edx/frontend-component-header-edx

* adapt header components from edx/frontend-component-header-edx to fit the Studio header use case
2020-08-03 12:28:10 -04:00
alangsto
899dd9a17b updated paragon version (#23)
updated paragon version

improved focus indicators

improved focus indicators

added newline

reverted package.json to master

updated way to access border styling

changed testing library for style

fixed typo

another typo

updated styling

prevents fields from shifting

removed tests

removed packages

removed package

updated paragon version
2020-07-31 14:10:15 -04:00
Michael Roytman
7a5f3c7827 add improved focus management for error, improved error message handling, and improved error messages (#20) 2020-07-28 18:35:39 -04:00
Simon Chen
3dcdb774e6 MST-342 Hide all other fields if enableProctoredExam is false (#21) 2020-07-28 16:55:54 -04:00
alangsto
987fd4d1ba Changes what fields are displayed depending on user role (#22)
* hides fields based on user permissions

* updates for requested changes
2020-07-28 16:43:16 -04:00
Simon Chen
3184a2be78 MST-335 Hide the Proctortrack Escalation Email field if the Provider backend is not Proctortrack (#19)
* MST-335 Hide the Proctortrack Escalation Email field when the provider backend is not proctortrack

* review
2020-07-28 12:44:51 -04:00
Simon Chen
221c9a35ca MST-334 Add submission in progress treatment to submit button (#18)
* MST-334 Add submission in progress treatment to submit button

* review feedback
2020-07-27 10:42:33 -04:00
alangsto
80dcbb2bfb Added unit tests for validation and defaults (#17)
* added unit tests for implemented features

* simplified tests
2020-07-27 10:38:07 -04:00
Simon Chen
9352ab3178 MST-334 Implement the settings post back functionality (#16)
* MST-334 Implement the settings post back functionality

* fix

* take in feedback

* feedback
2020-07-24 16:46:53 -04:00
Simon Chen
171a054ce5 Add unit tests for connection states of the component (#15) 2020-07-24 09:33:01 -04:00
Simon Chen
d4b50c46a5 Switch from enzyme to testing-library/react (#14) 2020-07-23 21:15:46 -04:00
Michael Roytman
39b0320ae8 update version of Paragon, change some checkboxes to radio buttons to match wireframes, and update remaining Paragon components to use React-Boostrap passthrough components (#12) 2020-07-23 14:07:14 -04:00
alangsto
8aef7877d9 Added validation logic for parity (#9)
Removed merge conflict

resolved merge conflict

added validation logic for enforcing proctortrack escalation email

added dependencies for email validator and testing, added code and tests for requiring valid email

added validation for editing proctoring provider field

added validation for editing proctoring provider field

Add error handling code to the Exam settings page. Also include spinners for loading (#10)

updated help text

updated comment

added unit tests

updates for requested changes

removed unnecessary line

trying to see if tests will rerun

testing for travis build

adding another test

adding another test for travis

uncommented last test

updated tests

trying to fix test

removed tests

This change would fix tests so they are actually doing the testing job (#11)

Update the error messages based on copy provided by Deen (#13)
2020-07-23 13:51:02 -04:00
Simon Chen
0f08aa66fd Update the error messages based on copy provided by Deen (#13) 2020-07-22 15:26:41 -04:00
Simon Chen
b40204285c This change would fix tests so they are actually doing the testing job (#11) 2020-07-22 14:53:04 -04:00
Simon Chen
74f5a44d83 Add error handling code to the Exam settings page. Also include spinners for loading (#10) 2020-07-22 09:43:49 -04:00
alangsto
3fe529dc12 Add Frontend Proctoring Provider Specific Defaults for Exam Settings (#7)
* added frontend behavior

* added testing

* fixed text to resemble original

* separated unit tests
2020-07-20 09:30:13 -04:00
alangsto
f9d297a613 Updated Route for new URL scheme (#6)
* Changes copied from Michael's PR

* Modifications for URL scheme

* renamed variable

* added prop type

* updated variable name

* fix(i18n): update translations

* added newline

* updated variable name

Co-authored-by: edX Transifex Bot <learner-engineering@edx.org>
2020-07-14 15:30:06 -04:00
Michael Roytman
500eba661e add Studio base URL to configuration and add Proctored Exam Settings component (#4) 2020-07-14 14:24:30 -04:00