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

Add UI for displaying question status as 'Resolved' or 'Not Resolved' #14

Merged
merged 3 commits into from
Sep 22, 2024

Conversation

luciafang
Copy link

@luciafang luciafang commented Sep 22, 2024

Description:
I implemented a UI feature in the General Discussion section that displays the resolved status of questions, based on backend logic. If a question is answered, it is marked as 'Resolved'. If not, it is marked as 'Not Resolved'.
The resolved status is displayed next to topics in the topic list.

I made the following changes:

  1. {{{if}}}, {{{else}}}, {{{end}}}. for display backend logic
  2. Added logic to display a status badge next to each topic in the topic list.
  3. If the question is resolved, display a green "Resolved" badge. Else, display a gray "Not Resolved" badge.

Overview:
The resolved status badge is visible in the topic list, making it easier for users to identify which discussions have been resolved at a glance.
Screenshot 2024-09-22 at 2 13 37 PM

Related Issues:
#1 #2

How to Test:

  1. Navigate to the General Discussion section.
  2. For topics that have been answered, you should see a green "Resolved" badge.
  3. For topics without answers, a gray "Not Resolved" badge should be displayed.

Resolves #5

@coveralls
Copy link

Pull Request Test Coverage Report for Build 10983497931

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.005%) to 81.831%

Totals Coverage Status
Change from base Build 10982726621: 0.005%
Covered Lines: 22344
Relevant Lines: 25863

💛 - Coveralls

@ariel0206qyx ariel0206qyx merged commit 64913cd into f24 Sep 22, 2024
3 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.

US1-4: Add UI Elements to Display Resolved/Unresolved Status of Questions.
3 participants