| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Thanks for the pull request, @ihor-romaniuk! 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. |
Sorry, something went wrong.
Codecov ReportAttention: Patch coverage is 97.89474% with 6 lines in your changes are missing coverage. Please review.
@@ Coverage Diff @@
## master #1375 +/- ##
==========================================
+ Coverage 88.30% 88.72% +0.42%
==========================================
Files 292 302 +10
Lines 5002 5217 +215
Branches 1267 1295 +28
==========================================
+ Hits 4417 4629 +212
- Misses 569 572 +3
Partials 16 16 ☔ View full report in Codecov by Sentry. |
Sorry, something went wrong.
|
Sandbox deployment failed 💥 |
Sorry, something went wrong.
|
I was able to get this working in tutor locally by merging openedx/openedx-platform#34650 into a new branch I made off of latest edx-platform master https://github.com/brian-smith-tcril/edx-platform/tree/sidebar-early-merge I ran tutor images build openedx-dev --build-arg EDX_PLATFORM_REPOSITORY=https://github.com/brian-smith-tcril/edx-platform.git --build-arg EDX_PLATFORM_VERSION=sidebar-early-mergeand used this plugin from tutormfe.hooks import MFE_APPS
@MFE_APPS.add()
def _add_my_mfe(mfes):
mfes["learning"] = {
"repository": "https://github.com/raccoongang/frontend-app-learning.git",
"port": 2000,
"version": "romaniuk/course-outline-sidebar",
}
return mfesSince the ts-develop branch is ~150 commits behind upstream, it is not working with latest tutor nightly (I believe this is because of the move from node 16 to node 18) I believe if you rebase openedx/openedx-platform#34650 on latest upstream master and point to that branch instead of ts-develop the sandbox should deploy properly. |
Sorry, something went wrong.
|
Until the required backend PR is merged, I'm moving this to Draft status. |
Sorry, something went wrong.
|
@brian-smith-tcril Thanks for notice that. |
Sorry, something went wrong.
|
Sandbox deployment successful 🚀 |
Sorry, something went wrong.
|
Update branch with added a few UI enhancements:
|
Sorry, something went wrong.
|
Sandbox deployment successful 🚀 |
Sorry, something went wrong.
|
Update branch: made a refactoring according to changes in backend endpoints openedx/openedx-platform#34650 |
Sorry, something went wrong.
|
Sandbox deployment successful 🚀 |
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good! I find this implementation is easier to reason about than the previous one. Thank you! It will make it easier for us to revisit this later when we attempt to implement the same functionality via PluginSlots.
Oh, and I tested it against a deploy of master via Tutor nightly, and it seems to work well.
I do have a couple of nits though, if you don't mind.
Sorry, something went wrong.
| // const { container } = render( | ||
| // <Sequence {...mockData} {...{ sequenceId: sequenceBlocks[0].id }} />, | ||
| // { store: testStore, wrapWithRouter: true }, | ||
| // ); |
There was a problem hiding this comment.
Mind removing the commented out code? Unless it's here for documentation.
Sorry, something went wrong.
There was a problem hiding this comment.
Sure, I remove it
Sorry, something went wrong.
|
|
||
| it('handles loading unit', async () => { | ||
| render(<Sequence {...mockData} />, { wrapWithRouter: true }); | ||
| // render(<Sequence {...mockData} />, { wrapWithRouter: true }); |
There was a problem hiding this comment.
Another commented line.
Sorry, something went wrong.
There was a problem hiding this comment.
Also delete
Sorry, something went wrong.
| const shouldDisplaySidebarOpen = useWindowSize().width > breakpoints.extraLarge.minWidth; | ||
| const query = new URLSearchParams(window.location.search); | ||
| const initialSidebar = (shouldDisplaySidebarOpen || query.get('sidebar') === 'true') ? SIDEBARS.DISCUSSIONS.ID : null; | ||
| const isDefaultDisplayRightSidebar = useSelector(getCoursewareOutlineSidebarSettings).alwaysOpenAuxiliarySidebar; |
There was a problem hiding this comment.
| const isDefaultDisplayRightSidebar = useSelector(getCoursewareOutlineSidebarSettings).alwaysOpenAuxiliarySidebar; | |
| const alwaysOpenAuxiliarySidebar = useSelector(getCoursewareOutlineSidebarSettings).alwaysOpenAuxiliarySidebar; |
Do you mind refactoring so that we don't have a mismatch between the waffle flag name and the name we use here?
Sorry, something went wrong.
There was a problem hiding this comment.
Agree, refactored. Thanks.
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you! Approved!
Sorry, something went wrong.
|
@ihor-romaniuk 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Sorry, something went wrong.
|
This PR is the part of - openedx/platform-roadmap#329 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Settings
Description
This pull request adds an important feature to our platform: displaying a navigation sidebar within a given course.
Interaction with feature flag courseware.show_default_right_sidebar has been added to control the default display of the discussion sidebar and courseware.disable_navigation_sidebar to control of enabling the course outline sidebar.
Discussions or Notifications sidebar shouldn't be opened on Learning MFE by default. If waffle flag enabled - Discussions always opens on the pages with discussions, if user is in Audit and course has verified mode - show Notifications.
Depends on BE PRs
Design
https://www.figma.com/file/gew5tORDX4Q7wxOS8vjqZu/side-nav-OEX?type=design&node-id=318-3234&mode=design&t=rBe1ToNYP8RY6QOp-0
Testing instructions