Skip to content

Implement resolved/unresolved thread functionality for Q&A topics#27

Merged
DanAlejandroRodriguez merged 4 commits intoadd-q&A-featuresfrom
feature/qanda-resolved-and-accepted
Feb 11, 2026
Merged

Implement resolved/unresolved thread functionality for Q&A topics#27
DanAlejandroRodriguez merged 4 commits intoadd-q&A-featuresfrom
feature/qanda-resolved-and-accepted

Conversation

@ShreyasHariCMU
Copy link
Copy Markdown

@ShreyasHariCMU ShreyasHariCMU commented Feb 9, 2026

This PR adds Resolved & Unresolved threads for Q&A topics end-to-end. Q&A topics default to Unresolved on creation, moderators/admins can toggle the status from the Topic Tools dropdown, and the UI updates immediately (including real-time updates via events). This also adds Resolved / Unresolved filtering in the Unread/Recent views to make it easy to find questions by status.

Overall, this touches both backend and frontend: backend logic to store/guard the resolved state, plus UI + templates so users can toggle it and see it update live.

Main Changes:

  • Added resolved/unresolved toggle support for Q&A topics
  • Added Mark Resolved / Mark Unresolved buttons to the Topic Tools dropdown (Q&A-only)
  • Added live UI updates when status changes (badges + menu options flip instantly)
  • Added Resolved/Unresolved badges on topic pages and topic lists
  • Added Resolved Topics / Unresolved Topics filters to Unread + Recent
  • Ensured the UI gets the needed Q&A + resolved state data
  • Added tests in test/qanda.js

Topics in Q&A are automatically set to Unresolved when created:
Screenshot 2026-02-08 at 9 44 42 PM

In the "Topic Tools" dropdown, you can click the 'Mark Resolved' or 'Mark Unresolved' to set the topic as Resolved or Unresolved:
Screenshot 2026-02-08 at 9 45 01 PM

After clicking “Mark Resolved,” the UI updates immediately (status label flips to “Resolved”):
Screenshot 2026-02-08 at 9 45 15 PM

Resolved/Unresolved status is displayed on the topic page as a status badge under the title:

Screenshot 2026-02-08 at 9 45 23 PM

You can now filter the Unread/Recent lists by “Resolved” or “Unresolved” topics.:

Screenshot 2026-02-08 at 9 45 41 PM Screenshot 2026-02-08 at 9 45 47 PM

Next Steps / Follow Ups:

  1. Accepted Answer: Add the ability to mark/unmark a reply as the accepted answer on Q&A topics, and show that choice clearly in the UI (with live updates).

@Jingyan5
Copy link
Copy Markdown

Looks good overall! Topics in Q&A correctly default to Unresolved on creation, and using Topic Tools → Mark Resolved / Mark Unresolved updates the status immediately. The resolved badge shows up correctly on the topic page, and filtering by Resolved / Unresolved in the topic list works as expected.

I also like that the state stays consistent across views and updates without a refresh. This fits nicely into the existing Topic Tools UI and feels intuitive to use.

Copy link
Copy Markdown

@DanAlejandroRodriguez DanAlejandroRodriguez left a comment

Choose a reason for hiding this comment

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

Verified the logic in src/topics/tools.js; everything aligns with my branch and builds off of it well. Approving based on Jing's successful UI testing

@DanAlejandroRodriguez DanAlejandroRodriguez merged commit 45e8487 into add-q&A-features Feb 11, 2026
@ShreyasHariCMU ShreyasHariCMU self-assigned this Feb 18, 2026
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.

Questions Channel + "Resolved/Unresolved" Threads

3 participants