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

[Feat] Implement a FAQ forum #465

Closed
5 tasks done
ShivanshPlays opened this issue Nov 5, 2024 · 0 comments · Fixed by #520
Closed
5 tasks done

[Feat] Implement a FAQ forum #465

ShivanshPlays opened this issue Nov 5, 2024 · 0 comments · Fixed by #520
Assignees
Labels
enhancement New feature or request gssoc-ext GirlScript Summer of Code Extended 2024 hacktoberfest-accepted Hacktoberfest level3 GirlScript Summer of Code Level 3 Issue

Comments

@ShivanshPlays
Copy link
Contributor

ShivanshPlays commented Nov 5, 2024

Description

In the FAQ forum, questions about the website can be raised by the users who are authenticated and other users can answer that particular question and the question and answer will be reflected in a new forum page. I will implement this functionality end to end with the frontend and backend logic with Q&A schema of DB, email functionality, etc

PR1:

  • Schema Definition: The schema for Question and Answer has been added to the database.

  • Backend Actions:

    • createQuestion: A backend action that allows authenticated users to create questions.
    • createAnswer: A backend action that allows authenticated users to answer questions.
    • getAnsweredQuestions: A backend action to fetch all answered questions, available to all users.
    • getUnansweredQuestions: A backend action to fetch all unanswered questions, available to all users.
    • deleteQuestion: A backend action to delete a specific question along with its related answers. This is an admin-only action.
  • API Endpoints:

    • The endpoints for testing all routes (except the admin-protected delete route) have been created. Since the admin feature is not yet implemented, the delete question action is not available in the current API testing but has been set up for future use.

PR2:

  • add link in footer
  • make forum page in 3 parts :
  1. Answered Questions: Displays questions that have already been answered.
  2. Unanswered Questions: Lists questions that have not yet received an answer, allowing authenticated users to submit answers directly.
  3. Ask a Question: Provides a form for authenticated users to post new questions to the forum.

Additionally, appropriate messages are shown to unauthenticated users in sections where authentication is required.

Screenshots

No response

Checklist

  • I have checked the existing issues
  • I have read the Contributing Guidelines
  • I'm a GSSoC'24-Extd contributor
  • I'm a Hacktoberfest'24 contributor
  • I am willing to work on this issue (optional)
@ShivanshPlays ShivanshPlays added the enhancement New feature or request label Nov 5, 2024
@github-actions github-actions bot added gssoc-ext GirlScript Summer of Code Extended 2024 hacktoberfest-accepted Hacktoberfest labels Nov 5, 2024
@swarooppatilx swarooppatilx added the level3 GirlScript Summer of Code Level 3 Issue label Nov 5, 2024
This was referenced Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gssoc-ext GirlScript Summer of Code Extended 2024 hacktoberfest-accepted Hacktoberfest level3 GirlScript Summer of Code Level 3 Issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants