Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impelement the controller and backend logic for isApproved feature #41

Closed
wants to merge 86 commits into from
Closed

Conversation

Tasnim1147
Copy link

No description provided.

dmohanadi and others added 30 commits September 19, 2024 17:45
refactored code for meta tags to reduce cognitive complexity
Refactor `src/topics/unread.js`
…g it to postData object in the create file to track if a post is instructor approved
- File: ./node_modules/nodebb-theme-harmony/templates/partials/topic/post.tpl
- Lines: ~11, ~35

Changes:
1. Added if-else-end condition to check for annonymousType flag at line 11:
   - Display user avatar and profile link if annonymousType is "None".
   - Display anonymous avatar and empty link otherwise.

2. Added if-else-end condition to check for annonymousType flag at line 35:
   - Display user display name and profile link if annonymousType is "None".
   - Display "Anonymous-{posts.annonymousType}" and empty link otherwise.
- File: ./node_modules/nodebb-theme-harmony/templates/partials/topic/post.tpl
- Lines: ~11, ~35

Changes:
1. Added if-else-end condition to check for annonymousType flag at line 11:
   - Display user avatar and profile link if annonymousType is "None".
   - Display anonymous avatar and empty link otherwise.

2. Added if-else-end condition to check for annonymousType flag at line 35:
   - Display user display name and profile link if annonymousType is "None".
   - Display "Anonymous-{posts.annonymousType}" and empty link otherwise.
jdufitum and others added 21 commits October 15, 2024 16:56
Fix lost code in `node_modules/`
it was causing the nodebb build error
This commit introduces a new documentation file, UserGuide.md, which outlines the recently implemented features in the NodeBB platform. The document provides detailed instructions on the following functionalities:

1. **Marking Answers as "Instructor-Approved":** Instructors can now designate certain answers as verified to aid students in identifying accurate responses.

2. **Sharing Posts Anonymously:** Students have the option to share posts without revealing their identity, promoting a more open discussion environment.

3. **Displaying Estimated Reading Time for Posts:** Each post now features an estimated reading time, allowing students to gauge their available time before engaging with the content.

The guide includes step-by-step instructions for using these features, as well as references to the automated tests that ensure their functionality. This documentation aims to enhance user experience for both instructors and students on the NodeBB platform.
…d feature as well as correcting file directory for automated testing
…rustor-approved and estimatedReadingPost. they are all under test/newImprementedFeature file path
Implemented a new test suite for new Implemented Features under path test/newImplementedFeature :the anonymous feature post, Instructor approval post and Estimanted reading Time
Added Estimated readtime function in node_modules/nodebb-theme-harmony/templates/partials/topic/post.tpl
Improve Reading Time Display on post views
Working on the Instructor Approved Label and Button Frontend in the post.tpl file
Create API Endpoint for Approving Posts with Admin Privileges
Add UserGuide.md for additional NodeBB features
@Tasnim1147 Tasnim1147 closed this Oct 20, 2024
@Tasnim1147 Tasnim1147 reopened this Oct 20, 2024
@Tasnim1147 Tasnim1147 closed this by deleting the head repository Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants