feat: Added Schedule and Details MFE page - #547
Conversation
* feat: Create MFE page with base structure for schedule and details
* feat: Add Course schedule section to the MFE page * fix: after demo and resolve discussions * resolve discussions round 2
#12) * feat: Add default views for Course Details and Introduce Your Course sections * fix: resolve discussions
…ourse sections (#13)
* feat: Add Requirements and Licensing section * fix: add stateful button for saving advanced settings
d33b237 to
c14da57
Compare
fix: discussions on schedule and details page, hide cancel button, show success alert, internet connection
48f492c to
88981a3
Compare
88981a3 to
29fb06e
Compare
8e93a8e to
8ca4e48
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #547 +/- ##
==========================================
+ Coverage 79.48% 81.32% +1.83%
==========================================
Files 145 234 +89
Lines 2710 3812 +1102
Branches 636 873 +237
==========================================
+ Hits 2154 3100 +946
- Misses 526 675 +149
- Partials 30 37 +7
☔ View full report in Codecov by Sentry. |
8ca4e48 to
611bdda
Compare
* fix: console errors on schedule and details page * fix: schedule and details input border color * fix: initial state for wysiwyg fix: [2U-270] requirements section with disabled flags (#34) feat: 2u-237 add minHeigh prop to component
611bdda to
9554703
Compare
|
Thanks for the pull request, @ruzniaievdm! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
There was a problem hiding this comment.
Depending on the page certain links should not show. For example, on the Schedule and details page the user should not see a link for the Schedule and details page
| <Hyperlink | ||
| destination={creativeCommonsAboutURL} | ||
| target="_blank" | ||
| showLaunchIcon={false} | ||
| > |
There was a problem hiding this comment.
| <Hyperlink | |
| destination={creativeCommonsAboutURL} | |
| target="_blank" | |
| showLaunchIcon={false} | |
| > |
There was a problem hiding this comment.
I've removed it, but there should still be this link with comparing it to the legacy version
| /> | ||
| ))} | ||
| </ul> | ||
| <Button iconBefore={AddIcon} variant="outline-success" onClick={handleAdd}> |
There was a problem hiding this comment.
| <Button iconBefore={AddIcon} variant="outline-success" onClick={handleAdd}> | |
| <Button iconBefore={AddIcon} variant="primary" onClick={handleAdd}> |
There was a problem hiding this comment.
As i understand, we have already approved style design. Do we really need to apply these changes?
There was a problem hiding this comment.
You can skip these changes
| <ul className="learning-outcomes-list"> | ||
| {learningInfo.map(renderLearningOutcomeItem)} | ||
| </ul> | ||
| <Button iconBefore={AddIcon} variant="outline-success" onClick={handleAdd}> |
There was a problem hiding this comment.
| <Button iconBefore={AddIcon} variant="outline-success" onClick={handleAdd}> | |
| <Button iconBefore={AddIcon} variant="primary" onClick={handleAdd}> |
| </Card.Body> | ||
| <Card.Divider /> | ||
| <Card.Footer className="p-0 mt-2.5"> | ||
| <Button variant="outline-danger" onClick={() => onDelete(idx)}> |
There was a problem hiding this comment.
| <Button variant="outline-danger" onClick={() => onDelete(idx)}> | |
| <Button variant="outline-primary" onClick={() => onDelete(idx)}> |
| onChange={(e) => onChange(e.target.value, 'introVideo')} | ||
| /> | ||
| <Button | ||
| variant="outline-danger" |
There was a problem hiding this comment.
| variant="outline-danger" | |
| variant="outline-primary" |
| onChange={(e) => handleInputChange(e.target.value, idx)} | ||
| /> | ||
| <Button | ||
| variant="outline-danger" |
There was a problem hiding this comment.
| variant="outline-danger" | |
| variant="outline-primary" |
|
What was the reasoning behind using |
|
I also recommend merging in the latest release of |
|
@KristinAoki in my opinion we used Dropdown only because of the styling of the components, if we don't have a need for it, I can rewrite it to custom select |
|
@KristinAoki referring to these changes we need to delete MFE urls. After these changes utility So can you explain me why during developing MFE pages we should remove In this case where should the links to the pages in the sidebar to MFE or LEGACY lead to? |
You can continue to use the Dropdown component. I was just curious since they both offer the same functionality and most forms use select. |
Sorry for the confusion. When TNL was originally setting up the course authoring MFE we thought env variables would be the best way to control access to the new pages. However, we have changed our approach and are going to rely exclusively on Django waffle flags and page redirects. Now all the links should lead to the LEGACY page. |
|
@KristinAoki thank you for your reply, I see your point, then in that case I remove the utility with the MFE/LEGACY selection and leave only references to LEGACY. |
|
@ruzniaievdm 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
* feat: configuration for xpert unit summaries (openedx#540) Adds setting modal for Xpert unit summaries Includes hiding the config section for xpert summary - this is done based on a flag from edx/ai-aside@3d113d2 * fix: load up-to-date config on studio fetch (openedx#548) * refactor: added PropTypes declarations * feat: add files and uploads page (openedx#541) * fix: remove env variable for files and uploads (openedx#549) * Update verbiage for Xpert Settings (openedx#550) * chore: Update verbiage for Xpert configuration screen * fix: Change "generate" to "display" in xpert modal text * fix: Updated learn more link * fix: Change link and add targets * test: added test cases for hide discussion tab (openedx#552) Co-authored-by: SundasNoreen <sundas.noreen@arbisoft.com> * feat: upgrade frontend-lib-content-components (openedx#554) * feat: bump frontend-lib-content-components (openedx#559) * fix: Change wording to not crowd xpert tile in preferences page (openedx#560) * fix: width and height of asset preview (openedx#558) * feat: flcc to 1.168.0 (openedx#561) * feat: bump frontend-lib-content-components (openedx#562) * fix: overflow-y scroll behavior (openedx#565) * test: added test cases of discussion restriction (openedx#556) * test: added test cases of discussion restriction * refactor: added null default value for dataTestId --------- Co-authored-by: SundasNoreen <sundas.noreen@arbisoft.com> * fix: Add enabled badge to xpert settings tile (openedx#566) * feat: Add "Enabled" badge to xpert settings tile * fix: Update model with state instead of non-existent prop from response * feat: bump frontend-lib-content-components (openedx#569) * feat: Added Schedule and Details MFE page (openedx#547) * refactor: some refactoring --------- Co-authored-by: David Nuon <davidnuongm@gmail.com> Co-authored-by: Zachary Hancock <zhancock@edx.org> Co-authored-by: Kristin Aoki <42981026+KristinAoki@users.noreply.github.com> Co-authored-by: sundasnoreen12 <72802712+sundasnoreen12@users.noreply.github.com> Co-authored-by: SundasNoreen <sundas.noreen@arbisoft.com> Co-authored-by: Raymond Zhou <56318341+rayzhou-bit@users.noreply.github.com> Co-authored-by: ruzniaievdm <ruzniaievdm@gmail.com>
* feat: moving new commits from upstream repository (#62) * feat: configuration for xpert unit summaries (openedx#540) Adds setting modal for Xpert unit summaries Includes hiding the config section for xpert summary - this is done based on a flag from edx/ai-aside@3d113d2 * fix: load up-to-date config on studio fetch (openedx#548) * refactor: added PropTypes declarations * feat: add files and uploads page (openedx#541) * fix: remove env variable for files and uploads (openedx#549) * Update verbiage for Xpert Settings (openedx#550) * chore: Update verbiage for Xpert configuration screen * fix: Change "generate" to "display" in xpert modal text * fix: Updated learn more link * fix: Change link and add targets * test: added test cases for hide discussion tab (openedx#552) Co-authored-by: SundasNoreen <sundas.noreen@arbisoft.com> * feat: upgrade frontend-lib-content-components (openedx#554) * feat: bump frontend-lib-content-components (openedx#559) * fix: Change wording to not crowd xpert tile in preferences page (openedx#560) * fix: width and height of asset preview (openedx#558) * feat: flcc to 1.168.0 (openedx#561) * feat: bump frontend-lib-content-components (openedx#562) * fix: overflow-y scroll behavior (openedx#565) * test: added test cases of discussion restriction (openedx#556) * test: added test cases of discussion restriction * refactor: added null default value for dataTestId --------- Co-authored-by: SundasNoreen <sundas.noreen@arbisoft.com> * fix: Add enabled badge to xpert settings tile (openedx#566) * feat: Add "Enabled" badge to xpert settings tile * fix: Update model with state instead of non-existent prop from response * feat: bump frontend-lib-content-components (openedx#569) * feat: Added Schedule and Details MFE page (openedx#547) * refactor: some refactoring --------- Co-authored-by: David Nuon <davidnuongm@gmail.com> Co-authored-by: Zachary Hancock <zhancock@edx.org> Co-authored-by: Kristin Aoki <42981026+KristinAoki@users.noreply.github.com> Co-authored-by: sundasnoreen12 <72802712+sundasnoreen12@users.noreply.github.com> Co-authored-by: SundasNoreen <sundas.noreen@arbisoft.com> Co-authored-by: Raymond Zhou <56318341+rayzhou-bit@users.noreply.github.com> Co-authored-by: ruzniaievdm <ruzniaievdm@gmail.com> * fix: Course updates - wrong datepicker value (#65) * fix: [2u-631] fixed date checking * fix: [2u-631] fixed validation schema * fix: [2u-631] fixed indents * feat: Course outline - Section highlights (#60) * feat: [2u-336] add tests * feat: [2u-271] fix button * feat: [2u-336] add component, refactor header * feat: [2u-342] add modal * fix: [2u-342] fix translates and indents * feat: [2u-342] add modal * feat: [2u-342] add api * feat: [2u-342] add tests and translates * feat: [2u-342] fix indents * fix: [2u-342] fix indents, variant and utils * feat: [2u-342] fixed slice, thunks, hooks * fix: [2u-342] fix translates * fix: [2u-342] fix api --------- Co-authored-by: Vladislav Keblysh <vladislavkeblysh@Vladislavs-MacBook-Pro.local> * feat: create organization filter on home page --------- Co-authored-by: Peter Kulko <93188219+PKulkoRaccoonGang@users.noreply.github.com> Co-authored-by: David Nuon <davidnuongm@gmail.com> Co-authored-by: Zachary Hancock <zhancock@edx.org> Co-authored-by: Kristin Aoki <42981026+KristinAoki@users.noreply.github.com> Co-authored-by: sundasnoreen12 <72802712+sundasnoreen12@users.noreply.github.com> Co-authored-by: SundasNoreen <sundas.noreen@arbisoft.com> Co-authored-by: Raymond Zhou <56318341+rayzhou-bit@users.noreply.github.com> Co-authored-by: vladislavkeblysh <138868841+vladislavkeblysh@users.noreply.github.com> Co-authored-by: Vladislav Keblysh <vladislavkeblysh@Vladislavs-MacBook-Pro.local>
Description
Please merge it after
frontend-lib-content-componentsPRedx-platformPR