When user selects "Other Education" and clicks save - error occurs.
It's caused by the wrong API call payload value `'o'`
Fix: use the `'other'` payload value instead (the valid one).
* fix: adjust header height and content when window is medium in width or less
* feat: convert stepper header's contents to compact view for medium windows (or less)
---------
Co-authored-by: Jason Wesson <jwesson@2u.com>
* feat: add unit tests for LearningGoal component
* feat: add LearningGoals component to Profile
---------
Co-authored-by: Jason Wesson <jwesson@2u.com>
[APER-2240]
The Profile MFE no longer needs to understand anything about the Learner Record MFE. The Credentials IDA now has logic to determine if a request should be redirected to the Learner Record MFE so we can remove these changes from the Profile MFE.
* refactor: migrated StatusAlert deprecated package to Alert in AgeMessage component
* refactor: migrated StatusAlert deprecated package to Alert for remaining components
* refactor: changed snapshot to unit test to fix ci issue
* fix: updated unit test scrip to make it consistent to timezone differences and fixed snapshot issue
* feat: added unit tests of SocialLinks component to fix ci issue and improve coverage
* refactor: used aria-labelledby in place of ID as suggested in PR
* fix: unnecessary removal of coverage from test script
* fix: typo
* build: adding nvmrc, bumping paragon to latest
Adding .nvmrc is a nicety. Bumping paragon to latest is necessary to ensure compatiblity with the edX override header (frontend-component-header-edx).
* test: snapshot needed updating to account for new data-testid
This is the result of upgrading to the latest paragon. Presumably some test IDs were added.
* fix(deps): update font awesome
* test: fixing broken snapshot from font-awesome upgrade
I visually verified the facebook icon is fine by loading up the app.
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: David Joy <davjoy@gmail.com>
[MICROBA-1321]
* Add two new configuration settings: `ENABLE_LEARNER_RECORD_MFE` and `LEARNER_RECORD_MFE_BASE_URL`
* Add function to `ProfilePage.jsx` to determine where learners should be routed (Credentials or Learner Record MFE) when the `View My Records` button is pressed on the profile page.
* build: upgrades frontend build to v7 and paragon to v16
* test: update test snapshots
Three things happening here:
- The implementation of the external link icon in Hyperlink was updated to have an SVG icon instead of font-awesome
- The implementation of StatefulButton also changed to use SVG icons instead of font-awesome
- Dropdown appears to be setting an onKeyDown handler that it wasn’t before. This is fine.
* fix: fixing broken linter script and linting
The linter script in package.json didn’t specify which files to lint, so it never linted anything. As soon as I fixed the script line, there was suddenly a ton of stuff that needed linting.
This fixes the script and cleans up all the things that needed linting. The vast majority were formatting auto-fixes in VSCode for me.
* fix: setting NODE_ENV to production in .env
Without this change, the NODE_ENV comes through as “null” (a string!) in the app. This causes a number of third party dependencies like React and Redux to potentially go into development mode, slowing them down, or to not realize they’re in production mode, causing them to throw some warnings.
* style: some additional linting
* feat: upgrading to modern paragon and a brand package
This commit updates the app from Paragon 7 to 12 and fixes the breaking changes in between. Mostly small changes to Button and Dropdown, as well as using “container” instead of “container-fluid” to preserve the page’s width as closely as possible.
It also adds the brand package, which is why it’s a feature. Using the brand package allows the MFE to be rebranded by using an npm alias to override the source of the brand.
* test: fixing test snapshots that failed when updating paragon
The test snapshots got a bit out of date when updating paragon. Also removing an unncessary “type” from Dropdown.Toggle which does nothing.
- container has been replaced by container-fluid
- The Button component is a different implementation, which adds slightly different properties to the rendered button. i.e., onKeyDown and disabled, but doesn’t add the id or onBlur.
- The Dropdown doesn’t render its contents until it’s opened, which is why “Upload Photo” and “Remove” are no longer in the snapshot.
-
* build: bumping paragon to 13
* fix: fixing broken test snapshot
btn-outline is definitely not a correct button type.
* fix: using the ‘size’ property on Button
* fix: updating dependencies
We needed to upgrade paragon to 13.1.2 to fix a transpilation issue that was causing ES6 code to be included in the build artifact. All other upgrades here were attempts at fixing that, but they’re all also perfectly valid and good to update, so I left them.
babel-polyfill has been replaced by including core-js and regenerator-runtime.
Upgrading frontend-build fixed an issue with eslint configuration that emerged during the other upgrades.
* fix: switch back to container-fluid
We want to leave it as container-fluid and solve the max width problem through paragon.
* style: cleanup and formatting of SCSS
Also removing an unnecessary variant of primary on a button.
* test: fix broken snapshot test
* fix: bump version of frontend-base to 4.0.0
* fix: bumping a few other versions
* fix: bump footer version and lock travis npm version
* fix: use dist not src for header/footer styless
* Moving files to their new homes.
Subsequent commit will wire everything up again.
* Relink files and split stylesheet.
Requires adding resolve-url-loader to fix sass import relativity.
* Remove browserslist warning.
* Remove the need for ProfileMain
* Fix test issues - needed thunk.
* Adding frontend-builder and frontend-core stubs
* gatsby stub added
* Remove gatsby stuff.
* Reorganization of top level app.
Some naming TBD.
* Review feedback.
* Various config improvements
- Adding APP_ERROR handler for top level errors.
- Splitting footer config out of main app config.
- Simplifying config variables and deriving some from others in the files that need them.
* Use App.error()
* Improving exports/imports from frontend-core
* Moving header and footer out of src.
Getting rid of “common”
* Setting authentication directlty from App.authentication in AppProvider.
* Switching over to using frontend-base.
Updating a bunch of dependencies to their latest versions in the process.
* Bumping versions of frontend-base and frontend-auth
* Getting tests working again.
* Addressing review feedback and bumping to a newer version of frontend-base.
* Removing unneeded eslint disable lines.
* Updating usage of frontend-logging to remove deprecated method names.
* Bumping node-sass version to 4.12.0 - hopefully fixes node 12 build
* css-loader now requires cssnano for minification
* fix: couldn’t set preferred language visibility.