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

Frontend integration code for flagging priority questions for faculty issue #12 #14

Merged
merged 3 commits into from
Feb 28, 2025

Conversation

Sharkesh111
Copy link
Contributor

Implemented the frontend code to link backend features from pull request #13. Wrote the html code that retrieved the priority level the student assigned to their comment and then flags the comment with a color based on the priority level. Green is for priority level 1 (low priority), yellow is for priority level 2 (medium priority), red is for priority level 3 (high priority).

This is a response to issue #12.

files changed:
nodebb-theme-harmony/templates/partials/topic/post.tpl
public/src/client/topic/postTools.js

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have a stray tag after the first that could possibly be removed. Everything else structure wise looks good. Gook work!

@Caryzxy
Copy link
Contributor

Caryzxy commented Feb 27, 2025

Overall, this is clean, readable code that effectively handles the key logic for marking a question as resolved and sending notifications. For future improvements, consider extracting common functionality into helper functions to reduce repetition, and ensure that error handling is consistent throughout (e.g., standardized error messages). You might also add brief comments describing the purpose of each step to help new contributors understand the workflow at a glance.

@tjpatel04
Copy link
Contributor

I left a comment on your sort.tpl file that you edited dealing with tags and structure.

@Caryzxy Caryzxy merged commit 53ca2ed into main Feb 28, 2025
0 of 2 checks passed
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.

3 participants