Commit Graph

77 Commits

Author SHA1 Message Date
Abdurrahman Asad
b6eff472c5 fix: UI adjustments to post summary and post details (#110)
* fix: UI adjustments to post summary and details
2022-03-31 18:35:07 +05:00
Mehak Nasir
a15f144120 fix: removed edit reason code 2022-03-28 23:47:39 +05:00
Arunmozhi
45b17a5983 fix: show message outline icon when thread is read (#102)
The message icon in the posts list on sidebar will be filled when there
are unread comments and it will be an outline when all the comments are
marked read.

https://openedx.atlassian.net/browse/TNL-9574
2022-03-28 11:13:51 +00:00
Awais Ansari
3074ae807b fix: post summaries are being repeated in the list (#105)
* fix: post summaries are being repeated in the list
2022-03-28 15:31:42 +05:00
Kshitij Sobti
c4c001ac95 fix: update icons to match mockups better (#94)
Temporary icons were in use while certain icons were unavailable in Paragon. They have now been updated to use more appropriate icons.
2022-03-28 08:58:55 +00:00
adeel.tajamul
4de3305a5a fix: add spacing to post count 2022-03-25 16:48:20 +05:00
Abdurrahman Asad
4b17de8c13 fix: answered marker not right aligned correctly (#101)
fix: spacing between answered and reported markers
2022-03-24 18:25:45 +05:00
Abdurrahman Asad
465d5af980 fix: spacing between answered and reported markers (#99) 2022-03-22 20:55:13 +05:00
Hamza Khchine
6f88e41bde fix: [BD-38] [BB-5599] [TNL-9629] fix Follow button on post summary (#74)
* fix: [BD-38] [BB-5599] [TNL-9629] fix Follow button on post summary

* test: add tests
2022-03-18 21:46:26 +05:30
Hamza Khchine
26b661c6b1 fix: [BB-5597][TNL-9618] text leaking out from post summary (#91) 2022-03-18 21:05:46 +05:30
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
935d0c5e3e fix: clear saved post or comment on submit (#88)
If a post or comment has been submitted, clear it from autosaved drafts so that it doesn't show up anymore.
2022-03-17 06:20:22 +00:00
Kshitij Sobti
ce293e53c0 fix: related link for posts should open in top frame (#93)
Opening the related link in the 'top' frame avoids an issue where the LMS
attempts to load the learning MFE in the discussions tab.
2022-03-17 06:19:58 +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
adeel.tajamul
30afbfb7b8 fix: posts not loading when scrolled to bottom 2022-03-10 12:26:47 +05:00
Muhammad Adeel Tajamul
e791a06370 Merge pull request #86 from openedx/tnl-9648
fix: report indicator showing different on post summary
2022-03-10 06:29:03 +05:00
Mehak Nasir
3cbb7e0fc3 fix: card component update to handle paragon breaking changes 2022-03-09 19:02:15 +05: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
adeel.tajamul
5470a217ae fix: report indicator showing different on post summary 2022-03-09 10:43:02 +05:00
Mehak Nasir
f50334f434 fix: hover style added for card component 2022-03-08 20:31:17 +05:00
adeel.tajamul
bb73bdb9df fix: post summaries disappear upon scroll to the bottom 2022-03-04 16:52:59 +05:00
Mehak Nasir
f4f7c61c7a style: action bar and radio button fixes 2022-03-02 20:42:47 +05:00
Arunmozhi
ac54d25be8 feat: replace cohort text with icon & overlay in posts (#69)
This implements the new UI design of showing an icon for posts that are
specific to a cohort. The icon upon mouse-over shows the name of the
cohort as an overlay.

https://openedx.atlassian.net/browse/TNL-9483
2022-03-02 14:02:46 +00:00
Mehak Nasir
20cc3e9827 style: search bar and add post button fix 2022-03-02 16:12:33 +05: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
Arunmozhi
04547ef96e feat: adds a badge to post links showing unread comments (#72)
This adds a badge in the PostFooter component if there are new comments
in a post that is unread by the user. For eg., "3 new".

https://openedx.atlassian.net/browse/TNL-9573
2022-03-01 13:11:22 +00:00
adeel.tajamul
ab601d3abb fix: removed legacy indicator of unread post 2022-02-24 16:54:46 +05:00
Muhammad Adeel Tajamul
b56c420a7e Merge pull request #67 from openedx/tnl-9570
[TNL-9570] Message icon showing in the absense of comments or responses on the post.
2022-02-24 16:05:10 +05:00
adeel.tajamul
d996914009 fix: added check to display message icon 2022-02-24 14:56:42 +05:00
Abdurrahman Asad
06c9d967dd fix: display non-breaking space entity properly in post summary 2022-02-24 13:05:24 +05:00
Keith Grootboom
789d468440 fix: Like count should not display is zero (#62)
When there are no likes just show the empty like icon.
2022-02-22 11:56:44 +00:00
Awais Ansari
bc610e579c Revert "feat: integrate feedback google form (#60)" (#61)
This reverts commit 54f02377f0.
2022-02-15 16:21:25 +05:00
Awais Ansari
54f02377f0 feat: integrate feedback google form (#60)
* feat: integrate google feedback form

* test: fix discussion home fail test cases
2022-02-11 12:40:37 +05:00
Awais Ansari
d02a5ef6a6 Revert "feat: integrate feeder package" 2022-02-07 15:06:11 +05:00
Awais Ansari
c0f2e305c2 test: add postActionsBar test cases 2022-02-04 18:23:47 +05:00
Awais Ansari
880c061e9f feat: integrate feeder package 2022-02-03 23:08:24 +05:00
Kshitij Sobti
9ba94966f1 feat: delete confirmation dialogs [BD-38] [TNL-9351] (#49)
Adds delete confirmation dialogs for posts, comments and replies.
2022-01-27 07:18:43 +00:00
Kshitij Sobti
55c37db023 fix: remove discussions from the base path [BD-38] [TNL-9347] (#47)
* fix: remove discussions from the base path

Remove the discussions prefix from the base path to avoid potential repeat of that
word the path when deployed.
2022-01-07 04:54:36 +00:00
Kshitij Sobti
2ed5aee9e7 fix: fixes issues with redirects
Currently redirecting doesn't preserve query parameters. This change fixes this and fixes all usages of history.push
2021-12-28 16:37:15 +05:30
Kshitij Sobti
ea1031e2bf Merge pull request #43 from edx/kshitij/fix-topic-search
fix: starting a search redirects you to the all posts page [BD-38] [TNL-9336]
2021-12-28 11:04:05 +00:00
Kshitij Sobti
a6f7187893 fix: starting a search redirects you to the all posts page 2021-12-10 00:23:10 +05:30
Kshitij Sobti
4763702bd3 fix: fix autosaving 2021-12-09 11:27:41 +05:30
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
e7a0eba5ef feat: Make UI more responsive to smaller screens and embeds
Updates the UX so that on a smaller screen eitherthe topic/post sidebar is displayed or the post view to give each more space.

Also adds support for an in-context view where the header and navigation is replaced with a sidebar-specific header.
2021-11-25 12:38:11 +05:30
Kshitij Sobti
c9cb8dd0e7 feat: Add new breadcrumb navigation
Adds the new breadcrumb dropdown-based navigation UI. This allows browsing the category and topic structure using dropdowns.
2021-11-23 14:43:53 +05:30
Kshitij Sobti
7f26f3a6ca feat: Add topic link to discussion post
Refactors the topics code and adds the topic relation box to posts.
2021-11-17 09:11:10 +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
Kshitij Sobti
6bd7ce929d Merge pull request #33 from edx/kshitij/post-ui-updates
feat: Show cohort info in posts [BD-38] [TNL-8694]
2021-11-09 13:58:29 +00:00
Awais Jibran
681bc4de67 Merge pull request #27 from open-craft/felipetrz/bb-4961-tiny-mce-improvements
feat: TinyMCE improvements [BD-38] [TNL-8779] [BB-4961]
2021-11-04 09:47:10 +05:00