Commit Graph

48 Commits

Author SHA1 Message Date
Kyle McCormick
4d51cf8855 revert: feat: added bulk delete user posts feature for privileged users (#818)
This reverts commit 909d133acc.

See https://github.com/openedx/edx-platform/issues/37402 for details

We leave the original PR's changes to Confirmation.jsx in place
because they are OK and are now tangled in with recent changes
and more difficult to revert.
2025-09-29 18:29:43 -04:00
Eemaan Amir
909d133acc feat: added bulk delete user posts feature for privileged users (#788)
* feat: added bulk delete user posts feature for privileged users
2025-07-22 19:09:48 +05:00
ayesha waris
f0a4586eed feat: modified TA icon according to role (#665)
* feat: modified TA icon according to role

* fix: fixed icon and tooltip position

* fix: fixed failing testcase

* refactor: removed duplication

* test: added testcases to check for updated user labels

* refactor: updated variables names for clarity

* refactor: moved authorLabel selection logic to utils

---------

Co-authored-by: sohailfatima <23100065@lums.edu.pk>
2024-02-15 18:12:20 +05:00
ayesha waris
f69b2c118f chore: removed eslint-disable statements (#658)
* chore: removed eslint-disable statements

* refactor: removed unnecessary files and unintentional eslint-disable statements

* refactor: removed eslint import/no-cycle error

* fix: failing testcase

* style: removed comments

* fix: failing testcase

---------

Co-authored-by: sohailfatima <23100065@lums.edu.pk>
Co-authored-by: Fatima Sohail <68312464+sohailfatima@users.noreply.github.com>
2024-01-31 16:54:03 +05:00
Syed Ali Abbas Zaidi
b35632df64 feat: upgrade react router to v6 (#542)
* feat: upgrade react router to v6

* fix: routing issues

* fix: category route should redirect to all posts

* fix: path error on routes
2023-12-07 18:10:48 +05:00
Kshitij Sobti
b36c0266fd fix: null error at useRouteMatch when running on tutor (#613)
tutor sets the PUBLIC_PATH to '/discussions' which causes frontend-platform to
treat all URLs for matching etc to be relative to this path. Since many places
include '/discussions' in the match it causes those matches to break.

This change makes the default PUBLIC_PATH in .env.development to match the one
set by tutor and removes it from the base path of the router letting frontend
platform handle the prefix.

This also allows for deployments to customise this path to be something other
than 'discussions'.
2023-12-06 17:20:28 +05:00
Muhammad Adeel Tajamul
822854953f fix: switch to use PUBLIC_PATH for routes (#525) 2023-05-23 12:21:25 +05:00
Awais Ansari
0844ee6875 Perf: improved discussions MFE's components re-rendering and loading time (#513)
* chore: configure WDYR for react profiling

* perf: reduced post content re-rendering

* perf: post content view and it child optimization

* perf: add memoization in post editor

* perf: add memoization in postCommnetsView

* perf: improved endorsed comment view rendering

* perf: improved re-rendering in reply component

* fix: uncomment questionType commentsView

* fix: removed console errors in postContent area

* perf: reduced postType and postId dependancy

* perf: improved re-rendering in discussionHome

* perf: improved re-rendering of postsList and its child components

* perf: improved re-rendering of legacyTopic and learner sidebar

* fix: postFilterBar filter was not updating

* fix: resolve duplicate comment posts issue

* fix: memory leaking issue in comments view

* fix: duplicate topic posts in inContext sidebar

* perf: add lazy loading

* chore: remove WDYR configuration

* fix: alert banner padding

* chore: update package-lock file

* fix: bind tour API call with buttons
2023-05-08 16:21:29 +05:00
Awais Ansari
7b7c249abd Revert "Perf: improved discussions MFE's components re-rendering and loading time (#485)" (#512)
This reverts commit 59b4366edd.
2023-05-08 15:34:43 +05:00
Awais Ansari
59b4366edd Perf: improved discussions MFE's components re-rendering and loading time (#485)
* chore: configure WDYR for react profiling

* perf: reduced post content re-rendering

* perf: post content view and it child optimization

* perf: add memoization in post editor

* perf: add memoization in postCommnetsView

* perf: improved endorsed comment view rendering

* perf: improved re-rendering in reply component

* fix: uncomment questionType commentsView

* fix: removed console errors in postContent area

* perf: reduced postType and postId dependancy

* perf: improved re-rendering in discussionHome

* perf: improved re-rendering of postsList and its child components

* perf: improved re-rendering of legacyTopic and learner sidebar

* fix: postFilterBar filter was not updating

* fix: resolve duplicate comment posts issue

* fix: memory leaking issue in comments view

* fix: duplicate topic posts in inContext sidebar

* perf: add lazy loading

* chore: remove WDYR configuration

* fix: alert banner padding

* chore: update package-lock file
2023-05-08 15:14:53 +05:00
Awais Ansari
e99c30f213 fix: unnamed topic/unit issue in inContext topics (#432)
* fix: unnamed topic/unit issue in incontext topics

* fix: sync topics and posts list loading for better UX
2023-02-16 20:54:53 +05:00
Awais Ansari
3f890401e8 feat: implements new v3 in-context topics structure (#371) 2022-12-30 17:15:47 +05:00
Adolfo R. Brandes
0c71e8b5b7 feat: Support runtime configuration (second attempt)
(This reintroduces the change in 9f84230c that was later reverted by
67b0b33a.)

frontend-platform supports runtime configuration since 2.5.0 (see the PR
that introduced it[1], but it requires MFE cooperation.  This implements
just that: by avoiding making configuration values constant, it should
now be possible to change them after initialization.

Almost all changes here relate to the `LMS_BASE_URL` setting, which in
most places was treated as a constant.

[1] https://github.com/openedx/frontend-platform/pull/335
2022-12-20 17:54:21 +05:00
AsadAzam
67b0b33a81 Revert "feat: Support runtime configuration"
This reverts commit 9f84230c17.
2022-12-12 15:36:40 +05:00
Adolfo R. Brandes
9f84230c17 feat: Support runtime configuration
frontend-platform supports runtime configuration since 2.5.0 (see the PR
that introduced it[1], but it requires MFE cooperation.  This implements
just that: by avoiding making configuration values constant, it should
now be possible to change them after initialization.

Almost all changes here relate to the `LMS_BASE_URL` setting, which in
most places was treated as a constant.

[1] https://github.com/openedx/frontend-platform/pull/335
2022-12-09 10:39:59 +00:00
Awais Ansari
1886b22cb3 feat: implement user interactive posts API for my-post tab (#314)
* fix: implement user interactive posts API for my-post tab

* feat: update my-post tab filter and sort according to backend

* refactor: learner posts filter API call

* test: fix post view failed test cases
2022-11-17 18:27:53 +05:00
Muhammad Adeel Tajamul
c68ed35c59 feat: added recent sort in learners area (#344)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2022-11-08 14:07:55 +05:00
Muhammad Adeel Tajamul
7ced4b292c feat: added filter options for learner posts (#340)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2022-11-03 16:54:07 +05:00
Kshitij Sobti
50b2e15731 feat: Add support for grouping at subsections (#281)
For smaller courses, there is a feature under the new provider
for grouping topics at the subsection level so that when
navigating the course, all topics under a subsection show up in
the sidebar instead of just the current unit.

This implements that functionality by checking if the discussion
is loaded in-context, and if grouping at subsection is enabled,
and if so, displaying the current subsection's topics.
2022-10-12 17:58:04 +05:00
Mehak Nasir
7017f43b35 fix: edit post action fixed in learner tab 2022-09-19 14:05:28 +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
3657767b25 feat: add a posts list back button for small devices and improve responsiveness (#230)
* feat: add a posts list back button for small devices and improve mobile responsiveness
2022-08-05 22:06:23 +05:00
Ahtisham Shahid
b15fd96108 feat: added image upload size limit (#233)
* feat: added image upload size limit
2022-08-05 15:06:38 +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
Kshitij Sobti
dbf6679c9d feat: Add support for archived topics
Topics that belong to deleted sections/subsections/units in a course are considered archived. This commit adds a new UI section for such topics and lists them there.
2022-06-29 08:41:18 +05:30
Awais Ansari
59187d2217 feat: implement learners area new UI (#197)
* feat: implement learners area new UI

* fix: learners list UI

* fix: initial learner sort based on role
2022-06-20 16:14:13 +05:00
Muhammad Adeel Tajamul
e01d413e47 Merge pull request #161 from openedx/inf-211
fix: updated post summary
2022-05-23 12:21:14 +05:00
adeel.tajamul
97f60d94f6 fix: updated post summary 2022-05-19 15:55:06 +05:00
Kshitij Sobti
c843d19ff2 fix: Don't force unread view to only discussions (#149)
Allow using the unread filter with questions.
2022-05-13 06:15:56 +00:00
Abdurrahman Asad
e2407e53e3 fix: related to field not shown on posts (#145) 2022-04-22 21:00:40 +05:00
Kshitij Sobti
c57dfc1fc5 fix: Fix constant reloading on topics page and posts links on category page [BD-38] [TNL-9868] [TNL-9846] (#128)
This fixes two issues. The first is that the topics page can cause constant requests to threads, and the second, that clicking on a post link when browsing a category can cause the application to crash.
2022-04-20 12:26:03 +00: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
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
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
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
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
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
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
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
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
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