[WIP] Add FrontEnd and Backend Functionality to create Anonymous Posts #25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issues addressed: #3
Changes in codebase:
In src/topics/posts.js, I created a helper function
generateRandomUsername()
that generates a random username for each student using random characters. I also added manyconsole.logs
in different files to try and trigger the frontend code in hopes to find the file that creates the buttons when a user wants to create a new post.Tests:
I registered multiple accounts and for each account, I created multiple posts to check and see that for each post, a random username is displayed instead of the students real username.
Note:
ChatGpt was used for code development
Next Steps:
I hope that in Sprint 2, I'm able to find the file that creates the button. From there, I want add backend functionality so that a random username is only generated if the student wants their post to be anonymous.