(This reintroduces the change in 9f84230c that was later reverted by
67b0b33a.)
frontend-platform supports runtime configuration since 2.5.0 (see the PR
that introduced it[1], but it requires MFE cooperation. This implements
just that: by avoiding making configuration values constant, it should
now be possible to change them after initialization.
Almost all changes here relate to the `LMS_BASE_URL` setting, which in
most places was treated as a constant.
[1] https://github.com/openedx/frontend-platform/pull/335
frontend-platform supports runtime configuration since 2.5.0 (see the PR
that introduced it[1], but it requires MFE cooperation. This implements
just that: by avoiding making configuration values constant, it should
now be possible to change them after initialization.
Almost all changes here relate to the `LMS_BASE_URL` setting, which in
most places was treated as a constant.
[1] https://github.com/openedx/frontend-platform/pull/335
When a user browses the discussion pages, show a page showing
that there is no data, rather than a blank page.
This PR implements the designs for this page while refactoring the
DiscussionHome component so that it doesn't get much larger.
- Created a hooks file and move some of the larger hooks in there.
- Added selectors for the state that would be needed for the
components.
- Split the DiscussionHome into DiscussionContent and
DiscussionSidebar to make it clearer where certain things get
rendered.
- Adds a message to the sidebar to display No Results when
appropriate.
- Added the NoResults component to show when filtering posts and there
is nothing to show.