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

[WIP] Add FrontEnd and Backend Functionality to create Anonymous Posts #25

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

tifflouie
Copy link

@tifflouie tifflouie commented Feb 12, 2025

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 many console.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.

@tifflouie tifflouie changed the title [WIP] Add FrontEnd [WIP] Add FrontEnd and Backend Functionality to create Anonymous Posts Feb 12, 2025
@tifflouie tifflouie self-assigned this Feb 12, 2025
@tifflouie tifflouie modified the milestones: Sprint 2, Sprint 1 Feb 12, 2025
@tifflouie tifflouie added bug Something isn't working enhancement New feature or request and removed enhancement New feature or request labels Feb 12, 2025
@Eddy114514
Copy link
Contributor

I think you might need to ensure the code follow the lint style, you can try type "npm run lint" in local to see which syntax/style error by lint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allowing user to be anonymous by allowing them to select "post anonymously"
3 participants