[APER-2262]
- add a utility function to retrieve product recommendations based on skills from a job a learner is interested in
- add additional tests and coverage around new utility functions in `search.jsx`
[APER-2261]
* rename `hooks.jsx` to `search.jsx` as this is more of a collection of utilities for working with Algolia
* add a utiltiy function for returning job info (from our "job" Algolia index) based on a list of jobs a learner is interested in
* add a utility function for formatting job names based on the syntax Algolia expects
[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-2258]
This PR adds the SkillsBuilderHeader component to the profile MFE.
There was also some additional refactoring work required to display the header in the modal. The FullscreenModal component is not flexible enough to allow custom header designs to be displayed (only text). We have to pivot to using the `ModalDialog` family of components instead.
[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.
* 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.