Commit Graph

17 Commits

Author SHA1 Message Date
Maxim Beder
491f7cd92c test: add simple test for DiscussionsHome 2021-10-26 03:25:04 +02:00
Maxim Beder
93ae8bcffe feat: add pagination to comments responses
This change adds pagination to comments responses.

When viewing a post with a comment or comments that has more than one
page of responses, initially users will only see the first page of the
responses under each comment, and can load more comments by clicking
"load more responses" button under already displayed responses for that
comment.
2021-10-06 18:44:17 +02:00
Kshitij Sobti
d237be78b6 feat: add support for loading endorsed and un-endorsed comments separately for question type posts 2021-10-06 18:26:06 +05:30
Maxim Beder
929c859046 feat: Add pagination to posts' comments
This change adds pagination to posts' comments.

When viewing a post, if there are more than one page of comments,
initially users will only see the first page of the comments, and can
load more comments by clicking "load more comments" button.

This change only affects comments to posts. For comments that are
responses to other comments the pagination has not been implemented.
2021-09-24 14:13:06 +02:00
Kshitij Sobti
16e5901a46 feat: Add a reply editor and hook to API
This change uses the TinyMCE editor for editing comments and making comments and replies to existing threads.
2021-09-22 19:35:31 +05:30
Kshitij Sobti
5db87f54bb feat: Add post actions dropdown menu
Adds a dropdown menu for comments and posts to perform actions like pinning, unpinning, reporting etc.
2021-09-20 14:52:19 +05:30
Kshitij Sobti
586cf3e581 Remove Object.assign
Use arrays for pages instead of a map
2021-09-14 21:51:09 +05:30
Kshitij Sobti
582a5fd3ae refactor: update normalisation code to work in thunks instead of reducers 2021-09-14 19:22:47 +05:30
Kshitij Sobti
a1148867ca feat: Update the post editor to include TinyMCE and connect to API
This change adds the TinyMCE editor for editing posts and connects the post editor to the API, allowing adding new posts and editing existing ones.
2021-09-14 19:16:28 +05:30
Kshitij Sobti
3395a1b381 refactor: update navigation paths for a more consistent experience
Navigation paths have now been structured such that you can move between tabs and topcis without losing the current page.
2021-09-07 21:18:18 +05:30
Kshitij Sobti
bd79e6b45b Merge pull request #11 from open-craft/kshitij/mark-as-read
feat: Mark posts as read after a delay of 2 seconds [BD-38] [TNL-8658] [BB-4734]
2021-09-07 15:38:30 +00:00
tinumide
9a4fe0fdb3 feat: added author label markers to UI
feat: added author label markers to UI

feat: added author label to message.postedOn object

feat: added author label to reply component

fix: changed bracket for author label in reply component

fix:fixed lint error
2021-09-06 10:12:24 +00:00
Kshitij Sobti
818a49fbf8 feat: Mark posts as read after a delay of 2 seconds
This commit adds support for automatically marking a post as read after it's been open for 2 seconds. The delay value is customisable.
2021-09-06 11:43:19 +05:30
João Cabrita
7138e63cf0 fix: Bring UI closer to mockups
This makes many tweaks to get the UI closer to
the mockup and using Paragon components as much as possible.

Related tickets:
* [TNL-8427](https://openedx.atlassian.net/browse/TNL-8427)
* [BB-4417](https://tasks.opencraft.com/browse/BB-4417)
2021-08-10 15:00:58 +05:00
Patrick Cockwell
93d10f9280 feat: Add major UI components and functionality
This adds a major chunk of UI code to the application covering topic listing,
topic filtering, subtopic browsing, browsing posts by topic, filtering unread
posts, filtering followed posts, sorting posts by recent activity, most activty
and most votes, liking/unliking a post, following/unfollowing a post, listing
comments and replis in a post.

Co-authored-by: Kshitij Sobti <kshitij@sobti.in>
2021-07-12 11:02:48 +05:30
Kshitij Sobti
27b5f48907 Add code for interacting with Discussions API
This commit adds code for interacting with the Discussions API, along with the
associated reducers, thunks, selectors etc.
2020-11-05 15:50:38 +05:30
Kshitij Sobti
491f7b7acd Basic discussions forum framework
Adds the basic structure for the Discussions MFE around which future development
will happen.
2020-10-21 23:59:23 +05:30