Commit Graph

32 Commits

Author SHA1 Message Date
Awais Ansari
52a4e5c94c fix: cohort name difference in filter and post view (#844) 2025-12-18 18:34:51 +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
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
1c2da56e3b fix: fix filter and sorting effect in discussion sidebar (#438)
* fix: fix filter and sorting effect in discussion sidebar

* test: fix test cases
2023-02-17 00:45:18 +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
SaadYousaf
e7a41b2391 fix: cleanup events and add filter content event to learners tab filters 2022-12-15 15:39:29 +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
ab18806fa6 fix: minor issue after MEF rollout (#358)
* fix: update most votes filter name to most likes

* fix: add sorted word infilters description

* test: fixed post filter test case after sorted word addition
2022-11-24 16:06:08 +05: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
Mehak Nasir
dfd880d4b3 feat: add unresponded posts filter 2022-11-11 15:05:34 +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
Awais Ansari
45c596b770 fix: allow actions according to user role and privileges (#260)
* fix: allow actions according to user role and privileges

* test: fix failed test case for has_moderation_privileges change
2022-08-24 12:31:31 +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
Ahtisham Shahid
5719b5ce39 fix: Reported filter for global admin (#200)
* fix: Reported filter for global admin

* fix: udpted failing unit tests

* fix: updated failing unit tests

Co-authored-by: AhtishamShahid <ahtishamshahid@A006-00850.local>
2022-06-23 16:42:55 +05:00
Awais Ansari
275dd99b18 fix: post summary card (#196)
* fix: post summery card
2022-06-16 17:23:45 +05:00
Mehak Nasir
5d342f3898 Revert "fix: post summary card (#186)"
This reverts commit 478799e728.
2022-06-13 18:51:08 +05:00
Awais Ansari
478799e728 fix: post summary card (#186)
* fix: post summery card
* test: fix post link fail test cases
2022-06-13 17:03:22 +05:00
adeel.tajamul
ad51e15409 fix: show no preview avaiable if preview has image or mathjax 2022-06-09 12:23:13 +05:00
Awais Ansari
7502006f01 feat: add cohort filter in filter action bar (#172)
* feat: add cohort filter in the filter action bar

* test: fix posts view fail test cases

* test: add test case for cohort filter
2022-06-01 13:39:33 +05:00
Mehak Nasir
2ea48f6825 Revert build fail (#179)
* fix: dropped support for better-react-mathjax as it is causing build issues

* fix: mathjax package reverted to avoid build issue
2022-06-01 12:29:18 +05:00
Mehak Nasir
8fd3ac7bd9 mathjax syntax support (#175)
* fix: mathjax syntax support extended

* fix: adding mathjax support
2022-05-30 17:02:11 +05:00
Mehak Nasir
5de4b440be Revert "fix: mathjax syntax support extended" (#171)
This reverts commit 2355c2fc37.
2022-05-27 15:10:58 +05:00
Mehak Nasir
2355c2fc37 fix: mathjax syntax support extended 2022-05-27 11:23:22 +05:00
Muhammad Adeel Tajamul
f6a65f91f5 Merge pull request #162 from openedx/inf-226
fix: change votes to likes in search filter
2022-05-26 15:24:13 +05:00
adeel.tajamul
1ed1013f6b fix: change votes to likes in search filter 2022-05-19 18:07:03 +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
e247bf859a fix: reported filter is missing for discussion moderator roles (#148)
fix: reported filter is missing for discussion moderator roles
2022-04-27 16:40:44 +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
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