Commit Graph

50 Commits

Author SHA1 Message Date
Bilal Qamar
5c6e40bc48 feat: upgraded to node v18, added .nvmrc and updated workflows (#471)
* feat: upgraded to node v18, added .nvmrc and updated workflows

* refactor: updated packages

* refactor: resolved eslint issues
2023-06-09 09:12:08 +02:00
Eugene Dyudyunov
0e2bd9480d fix: post sharing URL (#519) 2023-05-31 13:57:50 +05:00
ayesha waris
39da42ee3f fix: fix post height and remove overstate from author label (#472)
* fix: fixed post length according to figma

* fix: remove hoverstate from author label and author icon

* style: adds tooltip in hovercard for endorsemment icon

* test: fix test cases

* test: adds test cases for descreaased coverage

* refactor: updated api call to a method for reusability

* refactor: changed test descriptions
2023-03-22 17:19:15 +05:00
Muhammad Adeel Tajamul
1db94718c8 fix: more actions dropdown was not visible (#461) 2023-03-07 06:22:31 +05:00
ayesha waris
24d02350a8 fix: fix topic info for course-wide discussion topics (#458)
* fix: fix topic info for course-wide discussion topics

* refactor: removed const and used url directly

* test: adds test cases for topic info

* test: updated test cases
2023-03-06 21:10:49 +05:00
ayesha waris
be1a2ccaab fix: fixed post coment actions menu accessibilty for keyboard (#456) 2023-03-01 21:46:23 +05:00
Muhammad Adeel Tajamul
eacc16b7f1 fix: copy link not working in in-context discussion (#439)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2023-02-16 15:33:23 +05:00
ayesha waris
f7740de54a fix: topic info is fixed from posts in incontext discussions (#433) 2023-02-14 18:17:53 +05:00
ayesha waris
71931c83de refactor: hovercard hover state refactoring (#425)
* fix: peoples icon fixed to proper height and width

* refactor: reduced lines of codes aand changed some classes

* fix: fixed side bar peoples icon height and width

* test: fix test cases

* style: add wrapper around add response button

* test: add and fix test cases for hover card

* refactor: change line height class and view to hovercard
2023-02-09 23:30:16 +05:00
ayesha waris
f9ca375853 style: in-context discussions style updates (#426)
* style: change size of postactionbar in incontext discussions

* style: change postfilterbar text color and style

* style: change side bar icon sizes accoording to figma

* style: change margin for post aacording to figmaa

* style: change add a post style aaccording to figma

* refactor: remove unnecessary spaces

* refactor: use lineheight24 aand fontstyle class

---------

Co-authored-by: Mehak Nasir <67791278+mehaknasir@users.noreply.github.com>
2023-02-09 16:08:22 +05:00
ayesha waris
62ebd4450f style: post content style updates (#407)
* style: post content design updates

* fix: fixing test cases

* fix: preview p changed from capital to small and 2px focus state border

* style: comment time moved next to author name

* fix: fixed post style according to figma

* test: added test cases for hover card component

* refactor: added utility func to check if last element of list

* fix: fixed blur event for actions dropdown

* fix: review fixees

* test: fixed test cases post mathjax-v3 merge

---------

Co-authored-by: Mehak Nasir <mehaknasir94@gmail.com>
2023-01-30 17:30:12 +05:00
Mehak Nasir
2a187ca1df Mathjax v3 fix (#423)
* feat: added mathjax v3 support in platform

* fix: overwriting of comments and responses fixed
2023-01-27 16:49:38 +05:00
Awais Ansari
6e03d5bfe8 fix: update post delete function to async (#404) 2023-01-09 16:55:19 +05:00
Awais Ansari
fd4dbef2e0 fix: deleting a post from sidebar renders entire MFE in the sidebar (#403) 2023-01-09 14:35:54 +05:00
Awais Ansari
3f890401e8 feat: implements new v3 in-context topics structure (#371) 2022-12-30 17:15:47 +05:00
ayeshoali
9d9377bb8c refactor: used classname in conditional class 2022-12-01 16:31:48 +05:00
ayeshoali
f45f47f2e0 style: 3 level topic hierarchy accomodated when incontext discussions is enabled 2022-12-01 16:31:28 +05:00
ayeshoali
7912d70388 refactor: handled confirm action to functions 2022-11-30 19:04:32 +05:00
ayeshoali
42f1efd0a0 refactor: confirmation modal modified to handle variants 2022-11-30 19:04:32 +05:00
ayeshoali
8e449acde7 refactor: changed deleteconfirm and reportconfirm rename to comfirmAction and made it required 2022-11-30 19:04:32 +05:00
ayeshoali
b72dbae4f0 style: confirmation modal added when reporting content 2022-11-30 19:04:32 +05:00
ayesha waris
f686fb40a1 Revert "Topic information moved next to username" 2022-11-14 18:11:31 +05:00
ayeshoali
41f9e5b30a style: Topic info moved next to username 2022-11-14 17:38:53 +05:00
Muhammad Adeel Tajamul
b774b6bab1 feat: copy post functionality (#280)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2022-09-12 12:31:14 +05:00
Awais Ansari
d3adb8b3e7 fix: response and comment UI according to Figma (#220)
* fix: response and comment UI according to Figma
* test: add test cases for endorse alert banner
2022-07-27 15:32:34 +05:00
Awais Ansari
67b634d391 fix: Update post content UI according to Figma (#209)
* fix: Update post content UI according to Figma

* test: update post view test case
2022-07-14 11:57:39 +05:00
Mehak Nasir
e6bb13d4c3 fix: image rendering fix for those uploaded using legacy experience (#165) 2022-05-26 15:22:39 +05:00
Mehak Nasir
2d1c41b698 Fix: for rendering latex in comments and responses and support for special symbols in TinyMCE (#160)
* fix: for for rendering latex in comments and responses

* fix: component is seperated for loading html in dom

* feat: added special characters support in tiny-mce
2022-05-23 12:36:10 +05:00
Mehak Nasir
fd984c6ed6 [INF154, 203]: tinyplugins support for mathjax and preview issues (#156)
* feat: mathjax support issues

fix: preview package removed

* fix: preview issue fixed with npm pac

* fix: unused plugin removed

* fix: package-lock fix

* fix: import fix

* test: increased timeout limit for testcases

* style: fix sidebar summary card heigh issue

* fix: fixed npm package version

* fix: fixed npm package version
2022-05-12 13:09:09 +05:00
Awais Ansari
3be40852eb fix: make the post, comment, response content images responsive (#147) 2022-04-25 15:12:51 +05:00
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
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
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
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
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
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
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
c8c3bb925c feat: Improve UX to match new mockups
Uses new API features for preview, deleting, pinning, and closing. Refactors and improves styling to match new mockups.
Adds the new post filter bar element.
2021-10-28 16:43:28 +05:30
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
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
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
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
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