Commit Graph

604 Commits

Author SHA1 Message Date
Tobias Macey
a4826ae62d fix: prevent generatePath error when author is invalid in AuthorLabel (#821)
Wrap learnerPostsLink creation in useMemo with guard to prevent
'Missing :learnerUsername param' error. The generatePath function
was being called unconditionally during render even when the link
wouldn't be displayed, causing errors when author was null, undefined,
or the 'anonymous' string.

The fix ensures generatePath is only called when showUserNameAsLink
is true, which validates that author is a valid username.
2025-11-13 16:08:51 -05:00
Ehtesham Alam
231c15aa6d Merge pull request #808 from Alam-2U/ealam/LP-85
fix: resolve InContext Sidebar post menu dropdown clipping that triggered scroll
2025-10-06 19:30:21 +05:00
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
vladislavkeblysh
899d1fafcd feat: Profile image on user posts (#574)
* feat: add env variable to display image

* feat: refactor after review, updated tests
2025-09-25 23:09:37 +05:00
oleksandr.buhaienko
7ca3d9bc32 build: Upgrade to Node 24 2025-09-23 15:46:55 -03:00
Diana Villalvazo
5bef624714 refactor: Replace injectIntl with the useIntl() hook (#798)
* refactor: Replace of injectIntl with useIntl

* test: improve coverage
2025-08-26 14:58:53 -04:00
Ahtisham Shahid
28b1b1973b feat: updated v2 captcha to v3 in post editor (#803)
* feat: updated v2 captcha to v3 in post editor

* feat: added google captcha v3 for comment

* test: added test cases

* test: added test case to update the post

* test: updated test case for preview node

* test: updated test case for comment error

* test: removed mock file

* fix: removed comments

---------

Co-authored-by: sundasnoreen12 <sundasnoreen12@gmail.com>
2025-08-22 16:54:52 +05:00
Eemaan Amir
76fabbf7a6 feat: added confirm email banner for unverified users (#801)
* feat: added confirm email banner for unverified users

* test: improved test coverage

* refactor: refactored code
2025-08-14 22:32:40 +05:00
sundasnoreen12
5d13622172 fix: make learner name capitalized (#800)
* fix: make learner name capitalized

* test: fixed test cases
2025-08-13 13:40:28 +05:00
sundasnoreen12
9e7b7ae7bb feat: added tooltips for like and follow button (#799)
* feat: added tooltips for like and follow button

* test: added test cases for like and follow buttons
2025-08-13 00:00:32 +05:00
sundasnoreen12
ec800dd048 fix: fixed rate limit dialogue for edit contents (#797) 2025-08-05 15:57:40 +05:00
sundasnoreen12
a0269115b4 feat: added rate limit dialogue (#796)
* feat: added rate limit dialogue

* test: added test cases for post comment

* test: added test for content creation dialogue

* test: added test cases for empty topics

* test: added test cases

* feat: added content rate limit dialogue on post API for post and comment

* fix: fixed editor close issue on submit

* test: addd test cases
2025-08-05 12:31:12 +05:00
sundasnoreen12
3b527d9e60 feat: added tooltip for author role (#795) 2025-07-30 15:37:58 +05:00
sundasnoreen12
d36c4af4e9 feat: captcha only for learners (#792)
* feat: captcha only for learnerS

* test: fixed test cases

* test: fixed test cases for post editor
2025-07-28 21:53:22 +05:00
sundasnoreen12
fa772053c4 fix: fixed email confirmation params issue (#791)
* fix: fixed email confirmation params issue
2025-07-23 20:32:11 +05:00
sundasnoreen12
76da74ae20 feat: Modified discussions FE so that ONLY users with verified emails (#789)
* feat: Modified discussions FE so that ONLY users with verified emails can create content

* feat: added comment and response functionality

* test: fixed test cases

* refactor: refactor code and added HOC

* test: added test cases

* test: added test cases for failed and denied

* feat: added states for button

* refactor: added callback function

* test: added test case to close the dialogue

* refactor: refactor function
2025-07-23 17:24:57 +05:00
Eemaan Amir
750720f648 fix: fixed disappering modal description while deleting (#790) 2025-07-23 12:16:31 +05: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
Brayan Cerón
3cda02be76 fix: add replace prop to fallback route (#782)
This to avoid adding unnecesary logs to the history, so back button goes previous page properly
2025-07-21 16:01:19 -04:00
sundasnoreen12
806c989eac fix: fixed captcha issue with response (#787)
* fix: fixed captcha issue with response

* fix: fixed test case
2025-07-17 19:41:19 +05:00
Ahtisham Shahid
2241575cc0 feat: added captcha to discussion post creation (#785)
* feat: added captcha to discussion post creation

* feat: added captcha for comment and response

* fix: removed learner check

* test: fixed test cases

* fix: removed comment and added check for empty sitekey

* fix: fixed translation issue

* test: added test cases for recaptcha

* test: should allow posting a comment with CAPTCHA

* test: added submit post test cases

* test: test edge cases for api

* test: added test cases for react-google-recaptcha

* test: added test case for default values for captcha

* fix: removed unused catch

---------

Co-authored-by: sundasnoreen12 <sundasnoreen12@gmail.com>
Co-authored-by: Awais Ansari <awais.ansari63@gmail.com>
2025-07-17 18:55:16 +05:00
sundasnoreen12
8618e8cfe9 fix: fixed active state border issue for add a new post button (#784) 2025-07-15 14:05:42 +05:00
sundasnoreen12
3b7239d72c feat: added product tour to notify all learners (#783)
* feat: added product tour to notify all learners

* fix: removed unused function
2025-07-03 17:10:09 +05:00
ayesha waris
7ebdf1be3e feat: Add notify all learners discussion post checkbox (#779)
* feat: Add notify all learners discussion post checkbox

* refactor: refactored post editor

* test: added test cases

* fix: fixed lint errors

---------

Co-authored-by: Hassan Raza <h.raza@arbisoft.com>
Co-authored-by: Ayesha Waris <ayesha.waris@192.168.10.6>
2025-06-27 19:42:39 +05:00
Eemaan Amir
5d75e0361d fix: fixed camel case issue so profile image shows for all users (#781) 2025-06-24 13:54:34 +05:00
Eemaan Amir
edd3f73211 feat: made user profile image visible (#778)
* feat: made user profile image visible

* refactor: updated selector name

* refactor: updated selector name
2025-06-20 12:18:53 +05:00
Brian Smith
33375a51e0 feat!: add design tokens support (#777)
BREAKING CHANGE: Pre-design-tokens theming is no longer supported.

Co-authored-by: Diana Olarte <dcoa@live.com>
2025-06-18 15:45:26 -04:00
Zameel Hassan
f04429f6f7 fix: add null check for post objects in usePostList hook (#752)
Adds defensive null checks when accessing post properties in the posts
forEach loop to prevent potential errors in the MFE discussion sidebar.
This addresses the issue reported in #751.
2025-05-12 18:47:17 +05:00
Brian Smith
bad12462f5 feat: import FooterSlot from component package instead of slot package (#765) 2025-04-24 11:50:49 -04:00
Hunia Fatima
05cf174335 feat: upgrade react to v18 (#759) 2025-04-09 10:11:28 -04:00
Brian Smith
ff72dab001 chore(deps): update @openedx dependencies to versions that support React 18 (#758) 2025-03-27 16:16:13 -04:00
Ihor Romaniuk
3ef8515891 fix: block overflow when editing comment (#706) 2024-12-10 12:19:40 +05:00
Farhaan Bukhsh
3cc39d83c4 fix: Adds a fix to remove "Add a post" button when discussion is restricted (#742)
"Add a post" button  was visible even though the banner says that posting is
restricted. This change helps in removing the button when posting is restricted.

Signed-off-by: Farhaan Bukhsh <farhaan@opencraft.com>
2024-11-21 18:11:30 +05:30
sundasnoreen12
3391e966f3 feat: added help section for post documentation (#733)
* feat: added help section for post documentation

* refactor: refactor code
2024-08-08 18:13:08 +05:00
sundasnoreen12
db883ca7cd feat: added draft functionality for comment and responses (#727)
* feat: added draft functionality for comment and responses

* fix: fixed comment update issue:

* test: added draft test case

* test: added mock conditions for tinymce

* refactor: refactor code

* test: added test cases

* refactor: refactor hook file

* refactor: fixed review issues

* refactor: memoize function

* refactor: refactor code

* test: added update comment test case

* refactor: refactor remove hook method

* test: fixed test cases issue
2024-07-24 17:24:23 +05:00
ayesha waris
422fbf6173 fix: fixed author liking its own post (#720) 2024-06-26 17:13:52 +05:00
Ahtisham Shahid
e862ee6fb1 fix: post editor breaking for moderator (#717)
fix: updated unit tests

fix: updated unit tests
2024-06-21 12:29:27 +05:00
ayesha waris
71b88bcea3 fix: fixed sidebar inconsistent font size (#716) 2024-06-11 18:25:33 +05:00
Ahtisham Shahid
c808069fe1 Revert "feat: updated course config api version (#702)" (#715)
This reverts commit 8d86e6dcc0.
2024-06-11 15:25:41 +05:00
ayesha waris
b9543c6d9c fix: fixed font-size of load more buttons and add a post heading (#708)
* fix: fixed font-size of load more buttons and add a post heading

* fix: fixed font-size of time stamps

* fix: fixed width of actions dropdown modal
2024-05-28 18:13:03 +05:00
ayesha waris
a545d0b9f6 fix: responsiveness of MFE discussions (#697)
* fix: fixed sidebar xl screen width

* fix: fixed failing test runs

* refactor: removed unused css classes
2024-05-27 16:48:53 +05:00
Ahtisham Shahid
8d86e6dcc0 feat: updated course config api version (#702) 2024-05-24 05:38:30 -04:00
sundasnoreen12
37781566f5 fix: fix redirection to new tab issue (#704) 2024-05-22 12:59:45 +05:00
Brian Smith
50948acfeb feat: import FooterSlot from frontend-slot-footer package 2024-05-17 09:39:00 -03:00
Awais Ansari
4de1011780 Revert "feat: use frontend-plugin-framework to provide a FooterSlot" (#700)
This reverts commit d7474782b4.
2024-05-13 18:16:56 +05:00
Brian Smith
d7474782b4 feat: use frontend-plugin-framework to provide a FooterSlot 2024-05-10 11:21:26 -03:00
ayesha waris
e1c78dda6e fix: fixed limited content visibility due to oversized sidebar (#692)
* fix: fixed limited content visibility due to oversized sidebar

* refactor: changed names of constants

---------

Co-authored-by: Awais Ansari <79941147+awais-ansari@users.noreply.github.com>
2024-04-08 23:43:24 +05:00
ayesha waris
f282da52c1 fix: fixed commentsInThreads[s] is not iterable (#693) 2024-04-08 22:48:27 +05:00
sundasnoreen12
d7fcc86847 fix: fixed api calling issues for admin (#691)
* fix: fixed api calling issues for admin

* test: fixed test case

* refactor: fixed review issue

---------

Co-authored-by: Awais Ansari <79941147+awais-ansari@users.noreply.github.com>
2024-04-05 16:48:36 +05:00
Danyal Faheem
c0873df575 fix: render favicon and siteName in title (#668)
* fix: render favicon and siteName in title

* fix: remove translation files
2024-04-05 16:09:53 +05:00