You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Step 2:
On the category page, show whether the post is solved or unsolved next to each post.
Step 1:
![Image](https://private-user-images.githubusercontent.com/117417955/366663422-8fc86115-d03a-4704-8218-278b93a83e74.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MzI5NzQsIm5iZiI6MTczOTkzMjY3NCwicGF0aCI6Ii8xMTc0MTc5NTUvMzY2NjYzNDIyLThmYzg2MTE1LWQwM2EtNDcwNC04MjE4LTI3OGI5M2E4M2U3NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOVQwMjM3NTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xNjVjNDc4ZmU5MzhkMDhhMzVmODhjNzIzNWNhNzA3MjgzM2UwNmEzYmU5Y2Q2ZWU4NTY5NGJkNTllYzViMzI0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Ibe7JUL0sCsXrWuau47-nipiof-ElMD5JMDSNw4Tqlc)
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.
Step 2:
![Image](https://private-user-images.githubusercontent.com/117417955/366663624-0e38d4f1-fcdb-4c43-b93b-9acbc7e3ab46.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MzI5NzQsIm5iZiI6MTczOTkzMjY3NCwicGF0aCI6Ii8xMTc0MTc5NTUvMzY2NjYzNjI0LTBlMzhkNGYxLWZjZGItNGM0My1iOTNiLTlhY2JjN2UzYWI0Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOVQwMjM3NTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jNTgyNzJiODcxNDZlYWQwMDQ5ODk2ZTE4ZTI0M2RhNDVmYzM4ZDkxMTg0ZTYyYjgxZjRkYzc3YmE2ZTAxNmJjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ZMNHr5LqvsOVzRmiW0OxYxN5jd0GRKQSpOyrs3G8BFE)
On the category page, show whether the post is solved or unsolved next to each post.
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.
The text was updated successfully, but these errors were encountered: