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

Record User Interactions and Authorization Enhancements #251

Merged
merged 3 commits into from
Nov 7, 2023

Conversation

lugenx
Copy link
Owner

@lugenx lugenx commented Sep 30, 2023

This PR introduces changes to the HabitCard component and the answerController. Specifically, the PR ensures user interactions like answering a question are stored in the database, and states on the UI reflect these changes.

Changes:

  • HabitCard Component: Logic for sending answers to the database and toggling between answer options.
  • Answer Controller: Introduced authorization checks in methods to ensure users can only access and modify their answers.

Note: Current state updates in the front end do not persist. This will be addressed in a future update after the endpoint creation.

Copy link
Collaborator

@tsimian tsimian left a comment

Choose a reason for hiding this comment

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

Looks good to me @lugenx!

@lugenx
Copy link
Owner Author

lugenx commented Oct 23, 2023

@rcamach7 & @vishwaszadte , could you guys review this as well

@lugenx
Copy link
Owner Author

lugenx commented Nov 7, 2023

Thank you @tsimian, No its more than a month other reviewers didn't respond, to be able to progress, i will have to merge this pr now.

@lugenx lugenx merged commit 990959d into main Nov 7, 2023
@lugenx lugenx deleted the record-user-answers branch November 7, 2023 21:02
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.

Enhance HabitCard Interactions & Improve Authorization in answerController
2 participants