Commit Graph

175 Commits

Author SHA1 Message Date
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
Robert Raposa
359330645f update frontend-logging and frontend-auth
- The logging service is now configured and used via an interface,
rather then from the concrete implementation.
- The logging service is passed to frontend-auth.

ARCH-687
2019-04-26 16:04:02 -04:00
Douglas Hall
638d7345a5 ARCH-642 Add Order History header menu link. 2019-04-24 14:26:57 -04:00
David Joy
3f411f3795 Miscellaneous updates to the boilerplate code. (#161)
Based on changes/things I noticed when putting together the frontend-app-account repository.
2019-04-23 15:52:32 -04:00
Adam Butterworth
9eeb61cef8 fix: loading of certificate images (#159)
Remove extra loader from webpack for svgs. Was svgr, url, and file. url and file together was creating problems.
2019-04-23 10:02:25 -07:00
Adam Butterworth
3b01e4b8f7 fix: remove use of URL which is unsupported in IE 11 (#158) 2019-04-17 11:53:15 -04:00
David Joy
1156d8e3a4 URL != Url (#157)
Pass the correct properties, sir.
2019-04-16 12:22:11 -04:00
David Joy
d009d5ce6c Organize application according to semantic modules. (#153) 2019-04-16 11:46:20 -04:00
Adam Butterworth
14023dbf32 refactor: upgrade edx-bootstrap to published version 2.0.0 (#156) 2019-04-12 17:32:08 -04:00
Adam Butterworth
ca66f20233 fix: make intl.formatMessage more resilient (#155)
* fix: shim injectIntl hoc to prevent errors with undefined
* refactor: add i18n-loader exports to i18n/index
* fix: add NewRelic logging
2019-04-12 17:28:51 -04:00
Adam Butterworth
8ff7c822f3 fix: get profile photo changes from calls back into redux store (#154)
* fix: get profile photo changes from calls back into redux store
* test: update profile actions test
2019-04-12 14:39:47 -04:00
Douglas Hall
ff9ddb54ed Upgrade frontend-auth and conform to new signature of ensurePublicOrAuthenticationAndCookies. 2019-04-11 11:38:48 -04:00
Robert Raposa
343e4cb062 use new frontend-analytics library
ARCH-517
2019-04-11 10:00:08 -04:00
Adam Butterworth
77ec435059 fix: locale loading user setting (#152)
* fix: fix locale loading from cookie

* fix: move parsing of two letter code to function
2019-04-10 16:44:13 -04:00
Adam Butterworth
7daf859622 fix: get two letter language code from cookie (#151) 2019-04-10 16:25:21 -04:00
Adam Butterworth
5e323338f4 feat: lookup language preference in cookie (#148)
* feat: lookup language preference in cookie

* fix: skip unsupported languages in user settings lookups
2019-04-10 16:09:51 -04:00
David Joy
348cd7a637 Redirect to error page on fetch user account failure (#147) 2019-04-10 14:18:42 -04:00
David Joy
1fcd236aa6 Compare the right usernames. (#146)
We can’t use isAuthenticatedUserProfileSelector before we’ve actually loaded the profile - the username will be null.  Instead, we want to compare the username of the profile we’re supposed to load with the username in the authentication part of the store.
2019-04-10 13:16:10 -04:00
David Joy
a51f08b065 Reuse userAccount data for profile if possible. (#142)
* Removing rename of “levelOfEducation” to “education”

It caused the user account and profile data to diverge, and we want to use the same data for both at the moment.

* Reuse userAccount data for profile if possible.

Don’t make a separate request to fetch the user profile if we’ve already gotten it for the current user.
2019-04-10 12:06:50 -04:00
Adam Butterworth
f150842f6d fix: handle focus control better for opening and closing forms. (#144) 2019-04-10 12:04:16 -04:00
Adam Butterworth
9db03f705b fix: fix some new line wrapping issues on visibility selector (#145) 2019-04-10 11:53:08 -04:00
Adam Butterworth
b15ba32fe8 fix: design updates (#141)
* fix: add more spacing between sections

* fix: make empty content an inline-block button

* fix: make labels and headings have same line-height

* fix: make visibility selector and submit buttons on same line in large column

* fix: update the old blue to the new navy in the hero image

* fix: make underlines stay on hover for btn-links and not on others
2019-04-10 11:39:47 -04:00
David Joy
9b6a5837d0 Render certificates after the visibility editing form. (#139) 2019-04-09 15:53:36 -04:00
Adam Butterworth
7f6ed5382f refactor: upgrade and use Paragon (#136)
* fix: upgrade paragon and use new components

* test: update snapshot to reflect minor dom changes

* fix: use transition replace from paragon

* refactor: remove unneeded class definition on EditButton

* fix: add missing margin next to pencil icon in edit button
2019-04-09 13:23:57 -04:00
Robert Raposa
7a7c7c5e3f prepare analytics for move to separate repo (take 2)
- Make analytics and segment files configurable from outside.
- Add checks for previously called identify on page/track.
- Add some additional parameters to tracking events.
- Note: fixes some loading/import issues from 'take 1'

ARCH-517
2019-04-09 12:47:12 -04:00
Robert Raposa
e1a55ea8e2 Revert "prepare analytics for move to separate repo"
This reverts commit 846cea82dd.
2019-04-09 10:40:21 -04:00
Robert Raposa
846cea82dd prepare analytics for move to separate repo
- Make analytics and segment files configurable from outside.
- Add checks for previously called identify on page/track.
- Add some additional parameters to tracking events.

ARCH-517
2019-04-09 08:29:06 -04:00
Douglas Hall
b3d43f3f91 Move LoggingService to npm package 2019-04-08 16:04:48 -04:00
edX Transifex Bot
c8ef101a2a fix(i18n): update translations 2019-04-05 16:13:12 -04:00
Adam Butterworth
599cbfc649 refactor: use raw html form elements (#123)
* refactor: use raw html for form elements

* test: update snapshot to reflect minor changes in html output

* refactor: replace all reactstrap with paragon or html

* test: update snapshot

* fix: add a noop to the button in async button if needed

This is a flaw in the Button component in Paragon. It calls props.onClick even if it doesn't exist.

* refactor: use classnames for toggling class names

* fix: remove unneeded ids. fix some form markup

* fix: update snapshot to reflect removed labels
2019-04-05 13:07:44 -04:00
David Joy
6ab28a8306 Allow languages and countries to be localized. (#125)
And also sort them by their localized values.
2019-04-05 10:42:36 -04:00
Douglas Hall
4277c742c9 Properly log request method and URL. 2019-04-04 15:52:32 -04:00
Douglas Hall
2483472f1c Attempt to log the entire error object on request errors. 2019-04-04 14:15:33 -04:00
albemarle
9c60190203 fix(i18n): add what we have in Arabic to test RTL (#130) 2019-04-04 11:56:39 -04:00
Adam Butterworth
e340fb2a84 fix: make the username bold (#129) 2019-04-04 10:41:31 -04:00
Douglas Hall
f9481dca11 Add request URL to request error logging. 2019-04-04 09:35:11 -04:00
Douglas Hall
3405e0749a Add additional data to error logging. 2019-04-03 13:39:40 -04:00