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

Haoyue faq tool implementation #3118

Draft
wants to merge 4 commits into
base: development
Choose a base branch
from
Draft

Conversation

oliviahyw
Copy link
Contributor

@oliviahyw oliviahyw commented Feb 2, 2025

Description

Screenshot 2025-02-01 at 10 10 29 PM

Related PRS (if any):

This frontend PR is related to the #1213 backend PR.

Main changes explained:

  • Implemented FAQ search and auto-suggest function
  • Implemented FAQ management for admin and owners to see all FAQs
  • Implemented FAQ history for change history
  • Implemented log unanswered question and email owner function
  • Added permission management for "manage FAQs"

How to test:

  1. check into current branch
  2. do npm install and ... to run this PR locally
  3. Clear site data/cache
  4. log as admin user
  5. go to http://localhost:3000/faq-management to add new FAQ first.
  6. go to http://localhost:3000/faq to test FAQ search, auto-suggest, and log unanswered FAQ function
  7. go to http://localhost:3000/faq-management to test view, update, delete FAQ function; view FAQ change history function
  8. go to http://localhost:3000/unanswered-faqs to test view all unanswered questions function; and mark as logged (deleted unanswered question) function

Screenshots or videos of changes:

faq.mov
faq-management.mov
permission-management.mov
unanswered.mov

Note:

Include the information the reviewers need to know.

Copy link

netlify bot commented Feb 2, 2025

Deploy Preview for highestgoodnetwork-dev failed.

Name Link
🔨 Latest commit 52dfffa
🔍 Latest deploy log https://app.netlify.com/sites/highestgoodnetwork-dev/deploys/679ef44353df3400081b869d

Copy link

@fangedShadow fangedShadow left a comment

Choose a reason for hiding this comment

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

When I am searching the faqs it is not showing any of the results for me. Also doesn't let me enter any new faq. I am in the Haoyue-faq-tool branch in the frontend and Haoyue-faq-for-applications branch in the backend. Let me know if it just on my end.

testing.the.update.-.Made.with.Clipchamp.mp4

@oliviahyw
Copy link
Contributor Author

When I am searching the faqs it is not showing any of the results for me. Also doesn't let me enter any new faq. I am in the Haoyue-faq-tool branch in the frontend and Haoyue-faq-for-applications branch in the backend. Let me know if it just on my end.

testing.the.update.-.Made.with.Clipchamp.mp4

Please log in as an admin user and add FAQs at /faq-management first. Once added, you should be able to search for them at /faq. I did not hardcode any FAQ data.

@fangedShadow
Copy link

When I am searching the faqs it is not showing any of the results for me. Also doesn't let me enter any new faq. I am in the Haoyue-faq-tool branch in the frontend and Haoyue-faq-for-applications branch in the backend. Let me know if it just on my end.
testing.the.update.-.Made.with.Clipchamp.mp4

Please log in as an admin user and add FAQs at /faq-management first. Once added, you should be able to search for them at /faq. I did not hardcode any FAQ data.

I did log in as admin user and also tried to add it and then check. It wasn't able to add a new faq and then view it, also shouldn't you already have faq so that everyone can see it. see the video below.

Screen.Recording.2025-02-03.124805.mp4

@oliviahyw oliviahyw marked this pull request as draft February 3, 2025 21:35
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.

2 participants