[APER-2261]
This PR adds Algolia support to the Profile MFE and the upcoming Skills Builder feature.
* Adds new dependency for the `algoliasearch` package
* Add new config to support Algolia
* Update MFE configuration so we can access the new configuration variables
* Add hook to initialize Algolia client and return job and product Algolia indexes (based on settings)
* Update SkillsBuilderModal to add test code that displays the results of querying Algolia
* 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.
* build: switch from travis to Github actions.
Subsequent commits will clean up some of the 'npm-dist' code that we're no longer using.
* build: remove npm distribution from repository
Once upon a time, we published the components of the profile MFE to NPM because we believed we might want to embed them in frontend-app-learner-portal. We abandoned that idea about two years ago, but never cleaned up the experiment of publishing the MFE to npm.
This commit does that. The prior commit on this branch disabled it by cutting over from travis to github actions - this commit just finishes the job.
* fix: cleaning up a bad URL for order history.
* docs: cleaning up a documentation URL in openedx.yml
* fix: removing download of Roboto font
None of our other MFEs do this; it was left over from an early design decision. It also doesn't appear to be having any effect, as I think this font is included via Paragon, if at all. It may also be that it's a secondary font choice after something else already available. Regardless, removing these two lines had no effect on the look and feel of the MFE, and reduces bundle size.
* fix: using updated logo instead of pre-rebrand edX logo.
This now uses the FAVICON_URL environment variable like all our other MFEs.
* build: cleanup environment variables
Setting 'null' to an empty string '' (which is falsy and the right thing here)
* fix: clean up unused dependencies
- Removing a number of packages from dependencies that simply were not in use.
- Removing 'font-awesome' dependency which we didn't actually need in our stylesheet - we don't use it, though we were importing it and setting a variable from it. Not sure why it was ever there.
* fix: remove unused dependency
We get 'history' through frontend-platform.
[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.