211 Commits

Author SHA1 Message Date
David Joy
16d179d9b0 fix: upgrades frontend build to v7 and paragon to v16 (#439)
* 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.
2021-07-07 16:01:45 -04:00
Matjaz Gregoric
8ae748c6f7 fix: hide 'View My Records' button if no credentials service (#421)
This hides the 'View My Records' button from users profile page if
`CREDENTIALS_BASE_URL` is not configured.
2021-06-04 12:22:36 -04:00
David Joy
e3b692b9f2 Update Paragon to 13 and make the app brandable (#397)
* 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
2021-02-05 13:38:36 -05:00
edX Transifex Bot
fb508152f3 fix(i18n): update translations 2020-12-27 15:40:47 -05:00
Zainab Amir
2f9f573698 feat: add hotjar suppression to PII (#385) 2020-09-22 11:13:01 +05:00
edX Transifex Bot
67c23630b9 fix(i18n): update translations 2019-12-04 16:18:11 -05:00
edX Transifex Bot
b5607e9b83 fix(i18n): update translations 2019-12-03 13:55:04 -05:00
David Joy
645f378600 fix: updating frontend-platform required small refactorings (#328) 2019-12-02 17:28:32 -05:00
edX Transifex Bot
04d51ffee1 fix(i18n): update translations 2019-12-01 15:40:22 -05:00
Adam Butterworth
db4b082247 feat: use frontend-platform for runways (#318)
Move logging, analytics, auth, base, and i18n to implementations in frontend-platform.
2019-11-25 09:29:14 -05:00
David Joy
f266bba04c fix: initialize redux in prod mode by default (#303)
We were accidentally initializing in dev mode in production.

Also cleaning up some other misc detritus.
2019-10-22 15:11:35 -04:00
David Joy
e4f1a6100a feat: add a favicon to the distribution (#297) 2019-10-11 13:25:15 -04:00
David Joy
b66cbb3eb6 fix: frontend-base 4.0.0 and a few others (#288)
* 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
2019-10-02 15:54:25 -04:00
Adam Butterworth
cd2fdae725 feat: use openedx footer by default (#282)
* feat: use openedx footer by default

* fix: delete footer directory and update package-lock
2019-09-30 16:53:31 -04:00
David Joy
3317d2b148 fix: bump frontend-base to 2.2.0 to initialize segment (#272)
frontend-base 2.1.x had a bug where segment wasn’t being initialized.  Now it is.

Also allowing frontend-base to use its default logging service, which is NewRelicLoggingService.
2019-09-25 13:40:33 -04:00
Adam Butterworth
be67c13914 feat: delegate build scripts to edx/frontend-build (#257) 2019-09-25 11:54:49 -04:00
David Joy
4802da816b feat: publish profile module as an npm module (#263)
* feat: publish profile module as an npm module

* fix: add semantic-release for publishing
2019-09-24 13:03:22 -04:00
David Joy
8f37cc1a8d Organize the repo and export profile module properly (#262)
* 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.
2019-09-23 13:50:56 -04:00
David Joy
9b126281f1 fix: updating profile to use latest frontend-base (#259) 2019-09-23 11:56:05 -04:00
edX Transifex Bot
cce6f64d58 fix(i18n): update translations 2019-09-22 16:40:17 -04:00
Adam Butterworth
cd2bee4686 feat: add open edx header (#254)
* feat: add open edx header

ARCH-1151: Add the open edx header. edX pipelines should be configured to override it with the edx header in the deployment pipeline

* fix: upgrade frontend-base for merge messages update

* Update package.json

* Update package.json

* Update package-lock.json
2019-09-18 14:36:54 -04:00
David Joy
5ac0558a92 Use frontend-base! (#220)
* 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.
2019-09-16 16:49:16 -04:00
Adam Butterworth
6dd2a0c78e fix: add empty options to dropdowns (#246)
ARCH-1165: Add an empty option so that users can delete values they set for education, spoken language, and country of origin
2019-09-11 12:54:17 -04:00
edX Transifex Bot
2dd5dd1f16 fix(i18n): update translations 2019-08-13 14:18:58 -04:00
Robert Raposa
f8b570b8d3 temporary addition of debugging info for auth state
Looking into an issue where the auth state might not match.  This is
a temporary change that should ultimately be reverted once the issue
is fully involved.

This includes an upgrade to @edx/frontend-logging which does not need
to be reverted.

ARCH-982
2019-07-27 13:07:25 -04:00
edX Transifex Bot
7cffcd3e76 fix(i18n): update translations 2019-07-21 16:39:19 -04:00
Douglas Hall
30ce220eb3 Send event when discover new header link clicked 2019-06-26 13:00:23 -04:00
edX Transifex Bot
894ea2c553 fix(i18n): update translations 2019-06-16 16:39:50 -04:00
Douglas Hall
beef64246a Update header links. 2019-06-12 14:22:08 -04:00
Douglas Hall
f0fd8865c8 Fix identityAuthenticatedUser call. 2019-06-12 10:39:25 -04:00
edX Transifex Bot
041ae51413 fix(i18n): update translations 2019-06-09 16:45:01 -04:00
David Joy
a4dc1bcdf8 Update frontend-i18n version and use scripts. (#203) 2019-06-07 11:13:58 -04:00
Douglas Hall
32027572ca Render ErrorPage component via app-level error boundary. 2019-06-06 14:10:24 -04:00
Douglas Hall
8d968e14ad Handle Google Translate DOM manipulation error scenario. 2019-06-05 15:43:08 -04:00
Douglas Hall
899857e40e Move monkey patch of Node manipulation higher in the call stack. 2019-06-05 12:01:23 -04:00
Douglas Hall
5389446996 Fix JS error possibly caused by browser plugins. 2019-06-04 14:52:32 -04:00
Adam Butterworth
14dbceb9b1 feat: use postcss to handle rtl (#194)
* feat: use postcss to handle rtl

* fix: move autoprefixer into webpack config file

* fix: update i18n package
2019-06-03 13:19:07 -06:00
edX Transifex Bot
6a018e12a7 fix(i18n): update translations 2019-06-02 16:45:02 -04:00
Douglas Hall
0e27cb95ce Remove render block on fetchUserAccount. 2019-05-31 16:43:32 -04:00
Douglas Hall
439b5a74ff Remove @edx/frontend-i18n alias. 2019-05-31 12:11:52 -04:00
Douglas Hall
73ac32ac9f Move to frontend-i18n library. 2019-05-31 09:21:27 -04:00
Douglas Hall
19124bed69 Remove country and language list sorting. 2019-05-30 10:45:06 -04:00
Adam Butterworth
c955fdfd12 fix: remove use of margin auto for layout where it breaks in ie11 (#182) 2019-05-29 09:51:42 -06:00
Douglas Hall
85d8e31201 Reduce bundle size by upgrading frontend-component-footer. 2019-05-28 09:33:08 -04:00
edX Transifex Bot
164f83170e fix(i18n): update translations 2019-05-19 16:40:26 -04:00
Christopher Pappas
3610a167a3 feat: updating enterprise marketing link logic in footer
fix: Removing a diff thing i missed

fix: minor variable tweaks in webpack

fix: minor variable tweaks in webpack
2019-05-16 11:12:36 -04:00
Douglas Hall
0c689d92a2 Upgrade frontend-component-footer 2019-05-15 16:52:56 -04:00
Robert Raposa
4e8be3611d fix(i18n): remove i18n source file from repo
Since the Jenkins job builds and pushes this file without committing
it, we'll remove this file from the repo.

ARCH-748
2019-05-14 16:43:35 -04:00
albemarle
89e77ee8c9 fix(i18n): manually update messages file (#170) 2019-05-06 17:10:45 -04:00
Adam Butterworth
63880ae05a fix: delay closing a form on success so a user can read the message (#167)
* fix: delay closing a form on success so a user can read the message

* fix: update test
2019-05-02 14:07:53 -04:00