Commit Graph

63 Commits

Author SHA1 Message Date
Dave St.Germain
7824f58777 Added a verified upgrade component (#14)
* Added a verified upgrade component

* Internationalize course sock
2020-03-04 13:06:09 -05:00
David Joy
4c09d49532 Adding userHasAccess to redux so we can use it in our components. 2020-02-28 13:54:35 -05:00
David Joy
2f90b78814 If the user does not have access to the course, then redirect to the course outline. (#13)
* If the user does not have access to the course, then redirect to the course outline.

In a subsequent PR, if this API call is made on the course outline page in the MFE, we’ll need to be able to prevent the redirect.  But that view of the MFE doesn’t exist yet.

* Moving course outline redirect logic into CourseContainer.

This way, depending on the page calling fetchCourseMetadata, we can make an intelligent choice about whether we want to redirect, show a message, etc.  By redirecting in the API call handler, then we took that choice away from ourselves.
2020-02-28 12:25:03 -05:00
Adam Butterworth
ba6764de43 feat: add link to unit in existing experience (#12)
* feat: add instructor toolbar with link to lms

* fix: right align user account menu dropdown
2020-02-14 13:05:25 -05:00
Adam Butterworth
46cd511e15 feat: add bookmarking for units (#11)
* feat: add bookmarking for units

* refactor: add redux for state management
2020-02-14 09:10:43 -07:00
David Joy
ab3d3e8834 fix: updating URL when unit changes. 2020-02-04 15:00:21 -05:00
David Joy
ec7166ad5d fix: lint both js and jsx files.
Updating jsx to pass linter, too.
2020-02-04 14:58:19 -05:00
David Joy
ee4908565f Updating to use frontend-build 3.0.0. 2020-02-04 14:38:19 -05:00
David Joy
437f50b261 Fixing linting errors. 2020-01-30 18:14:47 -05:00
Dave St.Germain
dc2971870f Use the new API urls (#10) 2020-01-29 12:50:28 -05:00
Adam Butterworth
5d4d196e0b fix: make iframe width better match parent page (#9) 2020-01-29 12:45:44 -05:00
David Joy
304850b7d1 Listen for iframe resize messages from vertical xblock. 2020-01-27 17:01:40 -05:00
Adam Butterworth
3afac3bcdc Allow fullscreen on unit iframe 2020-01-23 17:23:40 -05:00
David Joy
cf4d63ac99 Removing stub “resume your last course” link for now.
Will be added in TNL-7062
2020-01-17 13:00:52 -05:00
David Joy
637af82873 Passing org, course number, and course name to the CourseHeader. 2020-01-17 11:23:27 -05:00
David Joy
740e22e4c8 Getting course tabs working. 2020-01-16 17:05:03 -05:00
David Joy
83f69dcbfc Connect to courses endpoint and print out the result. 2020-01-16 16:30:49 -05:00
David Joy
3cf204fad3 Bit of styling and propTypes 2020-01-16 15:11:14 -05:00
David Joy
e104674bd1 Adding some missing propTypes 2020-01-16 10:45:33 -05:00
David Joy
869eb9da38 Fixing disabled-when-active unit button. 2020-01-16 10:35:30 -05:00
David Joy
501500f116 Adding hard-coded application header. 2020-01-15 15:51:18 -05:00
David Joy
ed2a14de95 Sequence level messaging works from bannerText. 2020-01-15 14:10:14 -05:00
David Joy
d36b5bd0b0 Adding user-messages module and implementing course-level messaging. 2020-01-15 13:59:05 -05:00
David Joy
2fba819c34 Assume a position of 0 if position is null. 2020-01-15 12:44:30 -05:00
David Joy
c48d2ab9a2 Getting ready to deploy to staging.
Adding a staging course link.
Fixing some errors that occurred when using the demo/staging course links.
2020-01-15 12:29:07 -05:00
David Joy
a19903c0b1 Route and breadcrumb cleanup. 2020-01-15 12:00:29 -05:00
David Joy
9d9b65ceb9 Cleaning up old implementation code. 2020-01-15 11:08:01 -05:00
David Joy
41ab9fc68e Fixing breadcrumbs so they contain the unit. 2020-01-14 17:21:48 -05:00
David Joy
0b171ac9f9 Adding the exam redirect back in. 2020-01-14 17:18:03 -05:00
David Joy
89830af45a Refactoring to use containers and components 2020-01-14 17:11:03 -05:00
David Joy
f756299975 Getting gated content and “goto prereq” working.
Also allowing partially defined URLs - it will fill in the sub section or unit ID if it’s missing.
2020-01-13 16:52:19 -05:00
David Joy
d097617feb Locking the current unit and sub section nav when we’re on gated content.
Will follow up with a “locked content” UI in the next commit.
2020-01-13 11:22:30 -05:00
David Joy
afa4c51a13 Fixing camelCasing of savePosition. 2020-01-10 16:42:27 -05:00
David Joy
4f920e52d4 camelCasing metadata response. 2020-01-10 16:41:27 -05:00
David Joy
78cf72737a Merge branch 'master' of https://github.com/edx/frontend-app-learning 2020-01-10 16:39:52 -05:00
David Joy
2c009b51b0 Include gated sections in blocks API response. 2020-01-10 16:39:41 -05:00
Adam Butterworth
5a964476d3 feat: save unit position in sequence on navigate (#7) 2020-01-10 15:28:36 -05:00
David Joy
ebff3e142c Using core-js and regenerator-runtime instead of babel-polyfill. 2020-01-10 14:27:15 -05:00
David Joy
69f5abb040 Hooking up the unit buttons. 2020-01-10 13:00:27 -05:00
David Joy
78c22dfc01 Cleaning up CSS and implementing unit nav. 2020-01-10 12:52:32 -05:00
David Joy
04754e5832 Fixing previous/next buttons - were loading the wrong subsection. 2020-01-10 12:51:46 -05:00
David Joy
990cef31a3 Improving file organization. 2020-01-10 11:52:37 -05:00
Adam Butterworth
0db7cabf29 feat: add hard-coded course tabs (#6)
* feat: add hard-coded course tabs

* fix: add key to course nav tabs

* refactor: split NavTab from CourseTabsNavigation

* refactor: alphabetize props
2020-01-10 11:32:25 -05:00
David Joy
1f79bead57 SubSection nav next/previous buttons work again.
Still working on the unit button rendering.
2020-01-10 11:30:10 -05:00
Adam Butterworth
07776c2173 fix: remove missing import 2020-01-09 18:04:18 -05:00
David Joy
52e144d8a6 Refactoring data management. Using context now.
Ripped out the subSection and unit code for the moment to refactor it to use the context - breadcrumbs is currently working with it, though.
2020-01-09 16:41:28 -05:00
David Joy
69c14ab6a1 Fixing breadcrumb key warnings. 2020-01-08 15:43:26 -05:00
David Joy
76ced07513 feat: Using the page URL to inform subSections/units. 2020-01-06 16:32:45 -05:00
David Joy
446367e56c feat: sub section navigation working, allows navigating between all units 2020-01-06 15:43:13 -05:00
David Joy
829d848eff Removing unneeded api strawman doc. 2020-01-03 16:36:18 -05:00