Commit Graph

11 Commits

Author SHA1 Message Date
Kshitij Sobti
daacdbea1a feat: send message to learning MFE on navigation
Sends the current path to the learning MFE, so it can maintain the path on reload.
2022-04-01 16:41:27 +05:30
Kshitij Sobti
6bc0065259 feat: use resize postmessage API to send size hints to parent (#100)
When the post list is resized, send a size hint to the parent window (LMS/Learning MFE) so it can resize the discussions MFE iframe dynamically.
2022-03-30 11:10:42 +00:00
Hamza Khchine
2c40685932 feat: Add Learners list [BD-38] [TNL-8841] (#83)
Adds a new tab and listing view for learners in a course that have interacted with the discussions forums. It reports stats about the learner's created posts, comments, and reported content. 

Co-authored-by: Kshitij Sobti <kshitij@sobti.in>
2022-03-28 05:53:26 +00:00
Abdurrahman Asad
7d3a103a93 fix: send request to fetch discussion settings only for admins (#95) 2022-03-21 12:00:39 +05:00
Felipe Trzaskowski
194a3f2485 feat: Add support for specifying edit reasons (#46)
Adds support for specifying an edit reason when a moderator edits a user's post.

Co-authored-by: Kshitij Sobti <kshitij@opencraft.com>
2022-03-17 12:41:47 +00:00
Kshitij Sobti
d802e5331f fix: filtering by post type wasn't working [BD-38] [TNL-9609] (#82)
Fixes an issue where filtering by post type wasn't working, since the filter wasn't being passed to the API.
It also simplifies the code a bit and adds tests.
2022-03-14 05:36:28 +00:00
Keith Grootboom
c65230d5da feat: show empty state on posts pages [BD-38] [TNL-9484] [SE-5347] (#65)
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.
2022-03-09 12:15:32 +00:00
Kshitij Sobti
d31c438fc1 feat: add support for new provider and new topic api (#54)
Adds support for the new openedx provider and the new topics structure it introduces which ses the new topics v2 API.
2022-03-02 08:13:44 +00:00
Kshitij Sobti
b07b4043b0 test: tests 2021-12-06 15:45:14 +05:30
Kshitij Sobti
ceea220d62 feat: Fully implements support for cohorts
Uses the discussions settings API to fetch course division configuration and makes the cohort selection dynamic based on if a topic is divided.
2021-12-06 11:15:01 +05:30
Kshitij Sobti
18d19369a9 feat: add support for anonymous posting
Hooks up the configuration API to allow posting threads anonymously.
2021-11-16 10:54:48 +05:30