Commit Graph

14 Commits

Author SHA1 Message Date
Awais Ansari
1774005c7e fix: line height of header course title 2022-01-19 16:28:26 +05:00
Mehak Nasir
21b7025390 fix: header course name ui improvement 2022-01-18 19:08:47 +05:00
Mehak Nasir
a928a6fa79 test: fixed mobile header tests according to new UI 2022-01-14 17:23:22 +05:00
Mehak Nasir
9f6334b521 fix: header improvements 2022-01-14 17:23:22 +05:00
Mehak Nasir
e45dad88d8 fix: header fixes done as required in tnl-9441 2022-01-10 19:35:17 +05:00
Mehak Nasir
85596ba86a revert: css files deleted 2021-11-19 20:24:36 +05:00
Mehak Nasir
2438000960 fix: pii sharing and app config fixes 2021-11-19 20:24:36 +05:00
David Joy
749675c687 test: Use the standard data-testid attribute instead of a custom one (#93)
We don’t have any need for a custom data-testid attribute, so removing it so it matches documentation and doesn’t confuse future testers.
2021-04-22 09:07:29 -04:00
Bianca Severino
5aaee3c63f Update header logo and favicon (#54) 2021-03-10 11:36:09 -05:00
David Joy
9c63ab8044 Refactoring and organization (#41)
* Updating dependencies and removing unneeded ones.

* Fixing broken IntlProvider attribute in ProctoredExamSettings test.

* package-lock.json was out of sync - checking it in.

* Initializing an empty redux store.

* Adding model-store from frontend-app-learning.

This will let us save data from the server in a normalized way in redux, reducing boilerplate in React components.

* Fixing paragon button usage.

(also just organizing the imports while I was there…)

* Using paragon button instead of an anchor tag.

For the “New Page” button in the pages & resources view.

* Add API, reducers, and thunks to add course detail data into redux.

Subsequent PR will use this to store course detail data for use across different pages in the application.

* Prep work to add CourseAuthoringPage component.

Decided the course-detail sub-directory didn’t make much sense, given component structure, and moved it up to src.

These functions will be used in a CourseAuthoringPage component to load course detail data and display the Header and Footer in one common place, wrapping all the existing course authoring pages (proctoring and pages & resources)

It will also replace LmsApiService.js

* Minor style refactorings.

(This commit had originally made some changes to how courseId was passed in to these two components, but I decided to back it out… but the style stuff is worth adding as a fixed nit.)

* Refactor course detail loading and top-level course authoring components

This commit does a few things:

- Factors course detail data loading out of the Header.
- Loads that data in CourseAuthoringPage instead, adding it to redux and then passing it to the Header from there.
- Deletes LmsApiService, which is no longer used.
- Changes the route paths to be more canonical and entity-oriented, i.e., the first part of the route is the course, followed by the specific page about that course to load, rather than the other way around.  This more naturally allows us to use react-router to extract the common course detail loading code that only depends on the courseId.

* Refactoring routes code a bit to pass courseId into components

Didn’t like how CourseAuthoringPage, LegacyProctoringRoute, and CourseAuthoringRoutes all reached into the parent route to find the courseId, so passed it in instead.

* Updating README with more detail on routes in the MFE.
2021-01-07 13:16:35 -05:00
Bianca Severino
bf90463ec2 Rebrand (#39) 2020-12-08 09:48:21 -05:00
Michael Roytman
309aa93607 [WIP] New Header Work (#33)
* update Studio header to include dropdown menus and internationalization

* Added header improvements (#34)

Added header improvements

Squashing commits for header improvements

added header improvements

fixed typo

moved api call to separate file

added course lockup to mobile header, removed snapshot tests

fixed css for mobile header

simplified css styling

updated testing

updated css styling

updated css

simplified course lockup

removed React fragments from lockup

fixed mobile header styling

Co-authored-by: alangsto <46360176+alangsto@users.noreply.github.com>
2020-08-13 11:43:01 -04:00
Michael Roytman
a0e26ac339 only show Maintenance user menu link when the user is an administrator (edX staff) (#27) 2020-08-03 15:07:07 -04:00
Michael Roytman
991ab0ac9c Add lean Studio header component. (#24)
* add component from edx/frontend-component-header-edx

* adapt header components from edx/frontend-component-header-edx to fit the Studio header use case
2020-08-03 12:28:10 -04:00