Commit Graph

165 Commits

Author SHA1 Message Date
Awais Ansari
a51f3ed7c6 fix: switching between subtopics are breaking the UI (#120) 2022-04-07 16:23:29 +05:00
Jawayria
7d6d2c4f79 Merge pull request #117 from openedx/jenkins/npm-8-14fe0d4
chore: Install dependencies using npm 8
2022-04-06 16:39:09 +05:00
edX requirements bot
038b8f8966 chore: Install dependencies using npm 8 2022-04-05 08:12:36 -04:00
Arunmozhi
14fe0d4ea5 feat: adds content area to browse learner contributions (#84)
When the learners tab is enabled and is accessible, the contributions of
a learner can be viewed by sorting them into Posts, Responses and
Comments, by selecting a specific learner. This implements the new
design of authored/reported tabs.

https://openedx.atlassian.net/browse/TNL-8844
2022-04-05 08:37:09 +00:00
AsadAzam
3ce19460ff Merge pull request #114 from openedx/kshitij/tnl-9585/navigation-hints
feat: send message to learning MFE on navigation [BD-38] [TNL-9585]
2022-04-04 17:27:09 +05:00
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
Abdurrahman Asad
f687b43d91 fix: post summary box size is large (#113) 2022-04-01 13:12:05 +05:00
Kshitij Sobti
c5e972bd9c Merge pull request #40 from openedx/kshitij/post-message-sidebar
feat: Add support for closing in-context sidebar [BD-38]
2022-04-01 13:41:51 +05:30
Kshitij Sobti
e43b94316c test: make tests for actions dropdown report more info on what's being tested
The generated names for actions dropdown tests weren't very helpful, this adds more details to them so you know exactly what's being tested.
2022-04-01 13:35:16 +05:30
Kshitij Sobti
7d35df12cd feat: Add support for closing in-context sidebar
Use postmessage-based API to send message to close learning MFE sidebar.
2022-04-01 13:27:16 +05:30
Kshitij Sobti
b6da098331 feat: Add support for specifying post close reasons [BD-38] [TNL-8843] [BB-5012] (#96)
Adds support for specifying an edit reason when a moderator edits a user's post.

Co-authored-by: Felipe Trzaskowski <felipe.trzaskowski@gmail.com>
2022-04-01 07:56:25 +00:00
Mehak Nasir
9f3a5ecb1e fix: color contrast improved for unread posts 2022-03-31 23:22:58 +05:00
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
Awais Ansari
c62f500875 fix: navbar shadow (#107)
* fix: navbar shadow
2022-03-31 16:52:50 +05:00
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
Mehak Nasir
a15f144120 fix: removed edit reason code 2022-03-28 23:47:39 +05:00
Kshitij Sobti
e441aa43bd fix: align empty state in the center and auto-grow container (#103)
Makes the empty page illustration be centrally aligned on the page.

Makes the content container expand to take the full vertical space.
2022-03-28 12:54:05 +00:00
Kshitij Sobti
38792dd25d fix: update post when comment is marked as answer; reload topics on open (#104)
When a comment is marked as an answer, refresh the post it's in so the answered tag appears.
When navigating to the post tab, refresh the topic list.
2022-03-28 12:53:35 +00: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
Muhammad Adeel Tajamul
067de936f2 Merge pull request #106 from openedx/tnl-9741
fix: add spacing to likes count
2022-03-28 12:07:59 +05: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
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
Abdurrahman Asad
84249b92c7 fix: UI style update of answered and endorsed banners (#98) 2022-03-22 19:08:57 +05:00
Abdurrahman Asad
e809bbdbf5 fix: revert for TNL-9612 (#97) 2022-03-22 19:08:23 +05:00
Hamza Khchine
f797c75360 fix: [BD-38] [BB-5598][TNL-9626] redirect home page to my posts, fallback to all posts if user has no content (#87)
This alters the behaviour of the base URL. Instead of navigating to the topics page, it now navigates to the user's posts page when the user has posts, and to the all posts page when the user has no posts.
2022-03-21 09:59:08 +00:00
Abdurrahman Asad
7d3a103a93 fix: send request to fetch discussion settings only for admins (#95) 2022-03-21 12:00:39 +05:00
Jawayria
12a507f12f Merge pull request #56 from openedx/jenkins/node-16-c462119
feat: Added support for node v16
2022-03-21 11:56:09 +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
3269a61dc4 fix: [BD-38] [TNL-5596][BB-5596] fix TinyMCE padding [BD-38] (#73) 2022-03-18 21:30:18 +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
Jawayria
bf1cc6120d feat: Added support for Node 16 2022-03-17 21:41:37 +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
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
Muhammad Adeel Tajamul
1d854b45b2 Merge pull request #92 from openedx/tnl-9681
fix: posts not loading when scrolled to bottom
2022-03-10 13:33:05 +05: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
Mehak Nasir
78938913c0 chore: update paragon version to 19.6.0 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
Arunmozhi
4d8dff93a6 feat: show check icons for endorsed comments (#85)
Show the CheckCircle icon for posts which are marked as answers and show
the Verified badge icon for discussion posts marked as endorsed.

https://openedx.atlassian.net/browse/TNL-9611
2022-03-09 11:08:01 +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
Mehak Nasir
b04e7e7b58 style: endorsed/unendorsed counts classfication removed from heading 2022-03-08 20:31:17 +05:00
Muhammad Adeel Tajamul
7fd95a377d Merge pull request #80 from openedx/tnl-9628
fix: post summaries disappear upon scroll to the bottom
2022-03-07 10:07:45 +05:00