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

Create a button and a status UI to set a post as "solved" or "unsolved" #5

Open
tu2463 opened this issue Sep 11, 2024 · 0 comments
Open

Comments

@tu2463
Copy link

tu2463 commented Sep 11, 2024

Step 1:
On the post details page, create a button on the menu bar. Clicking on the button will switch the post to solved or unsolved.
This button is only shown to the author of this post or TA/professors. Other students won't see the button.
Image

Step 2:
On the category page, show whether the post is solved or unsolved next to each post.
Image

Estimated effort: 8h
Dependencies: none
Acceptance criteria:

  • Log in as a student.

  • Create a post. Confirm that the post status shows "unsolved" on the category page.

  • In the post detail page, click the button to set the post to be "solved".

  • Confirm that the post status shows "solved" on the category page.

  • Open a post by another user. Confirm that you can't see the solve/unsolve button.

  • Log in as a TA/professor

  • In the post detail page, change a post's solved/unsolved status. Confirm that you can change the status of posts by all users.

  • Confirm that each time you change the status, the post's status in the category page will also change correspondingly.

@tu2463 tu2463 self-assigned this Sep 12, 2024
@tu2463 tu2463 added this to the Sprint 1 milestone Sep 12, 2024
@tu2463 tu2463 removed their assignment Sep 12, 2024
@tu2463 tu2463 removed this from the Sprint 1 milestone Sep 12, 2024
@mhli1260 mhli1260 added this to the Sprint 2 milestone Sep 12, 2024
@jullia02 jullia02 assigned jullia02 and unassigned jullia02 Sep 18, 2024
@mhli1260 mhli1260 removed this from the Sprint 2 milestone Sep 25, 2024
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

No branches or pull requests

3 participants