Commit Graph

102 Commits

Author SHA1 Message Date
Douglas Hall
0e27cb95ce Remove render block on fetchUserAccount. 2019-05-31 16:43:32 -04:00
Douglas Hall
73ac32ac9f Move to frontend-i18n library. 2019-05-31 09:21:27 -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
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
David Joy
d009d5ce6c Organize application according to semantic modules. (#153) 2019-04-16 11:46:20 -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
Robert Raposa
343e4cb062 use new frontend-analytics library
ARCH-517
2019-04-11 10:00:08 -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
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
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
Adam Butterworth
e340fb2a84 fix: make the username bold (#129) 2019-04-04 10:41:31 -04:00
Adam Butterworth
0d20966373 fix: remove unused components (#121) 2019-04-02 15:38:34 -04:00
Adam Butterworth
2210d4f1a4 feat(test): add snapshot tests for profile page component (#120)
* feat(test): add snapshot tests for profile page component
2019-04-02 15:15:15 -04:00
Douglas Hall
3f30a84aa2 Display error page when unexpected errors occur. 2019-03-28 12:56:20 -04:00
Douglas Hall
99f569ea1a Display not found component for non-existent user accounts. 2019-03-27 12:42:43 -04:00
Douglas Hall
a1dc64ae33 Display certificate issue date on certificate cards. 2019-03-26 10:19:47 -04:00
Douglas Hall
79707d4a79 Make certificate card widths consistent. 2019-03-25 11:33:40 -04:00
Douglas Hall
c565a8773b Disable profile image editing for user's with no age or younger than 13. 2019-03-21 16:43:44 -04:00
Douglas Hall
ef7b1ea009 Display default avatar if user does not have a profile image. 2019-03-21 16:16:07 -04:00
Douglas Hall
1ae08b95e1 Default to unknown certificate type translation string. 2019-03-20 10:53:20 -04:00
Adam Butterworth
0fc8990e08 fix: use lodash.get to provide default message ids to intl.formatMessage (#108) 2019-03-19 15:22:20 -07:00
David Joy
1683bb7e51 Fix bad message ID - verified -> professional (#106) 2019-03-19 11:38:26 -04:00
David Joy
8dba3f6b40 Internationalize the certificate and education types. (#104) 2019-03-19 09:52:48 -04:00
David Joy
9c887e2ce4 Hide the view my records button if it isn’t your profile. (#105) 2019-03-18 10:40:50 -04:00
Douglas Hall
e260a35b18 Fix user menu profile link. 2019-03-15 09:59:44 -04:00
David Joy
3119df4e83 Shut off name editing and tweak visibility spacing (#95) 2019-03-14 17:23:22 -04:00
Robert Raposa
baf4989388 Fix and log more unhandled errors.
- Logs errors that fall through to the App.
- Logs unprocessed error in Saga.
- Ensures ProfileApiService throws proper errors.
- Fix LoggingService to pass through non-API errors.
- Fix LoggingService to cap length of message.

ARCH-427
2019-03-14 13:34:10 -04:00
Robert Raposa
10ca93c568 Fix and log more unhandled errors.
- Logs errors that fall through to the App.
- Logs unprocessed error in Saga.
- Ensures ProfileApiService throws proper errors.
- Fix LoggingService to pass through non-API errors.
- Fix LoggingService to cap length of message.

ARCH-427
2019-03-14 13:34:10 -04:00
Adam Butterworth
583581eb03 fix: remove the upload button background when viewing other profiles (#83)
* fix: remove the upload button background when viewing other profiles

* fix: break out function per feedback
2019-03-13 16:33:38 -04:00
Adam Butterworth
6709032aa8 fix: filter out empty social links from static display (#87) 2019-03-13 14:13:10 -04:00
David Joy
0335a8c4a2 Improve card styling. (#85)
Consistent height and watermark placement.  Also, no watermark by default.
2019-03-13 12:24:42 -04:00
David Joy
10b6a03142 Add a “View My Records” button. (#84)
Links to credentials.edx.org/records
2019-03-13 12:07:10 -04:00
Adam Butterworth
a58f0804a7 fix: ui polish (#79)
* fix: change label of language to primary language spoken

* fix: add labels to top of empty states

* fix: add help text to name field in editable or empty states

* fix: move repeated messages into separate files

* fix: translate missed string
2019-03-12 17:14:22 -04:00
Adam Butterworth
357fa88786 fix: add an app loading state (#80)
* fix: add isLoadingProfile to app state

* fix: add loading spinner
2019-03-12 15:52:19 -04:00
albemarle
971a712b04 i18n: add make targets for Transifex (#77) 2019-03-11 17:58:07 -04:00
David Joy
2ee1887b6a Adding a horizontal rule below the joined date. (#74) 2019-03-11 15:52:03 -04:00
Adam Butterworth
c8d9db2656 fix: use onChange instead of onInput to fix broken upload on mobile (#70) 2019-03-11 15:36:01 -04:00
Adam Butterworth
e54eb5ddad fix: order and vertical alignment of columns (#69) 2019-03-11 11:57:34 -04:00
Adam Butterworth
231d94911a fix: Add edit button to empty state on certs (#68) 2019-03-11 11:17:22 -04:00