Skip to content

feat: Implement PollDetail Component#4

Merged
tristenwallace merged 1 commit intomainfrom
PollDetail
Apr 16, 2024
Merged

feat: Implement PollDetail Component#4
tristenwallace merged 1 commit intomainfrom
PollDetail

Conversation

@tristenwallace
Copy link
Copy Markdown
Owner

Implement PollDetail Component

Changes Made:

  • PollDetail Component: Implemented a new component to display the detailed view of individual polls. The component checks if the user is logged in and whether the poll exists. If the poll doesn't exist or if the user is not logged in, it appropriately redirects or shows messages.
  • Routing: Added route for /questions/:question_id to show individual polls.
  • Error Handling: Enhanced user experience by handling errors like missing polls or unauthorized access.

Benefits:

  • Enhances user interaction by providing detailed views of polls.
  • Improves user experience with better error handling and user feedback.
  • Ensures that the application's state management is robust and handles edge cases effectively.

- Add routing and fetching logic to PollDetail component.
- Ensure the component handles state where the poll may not be
    initially available.
- Include conditional rendering to manage user authentication and poll
    existence checks.
- Improve error handling and redirection for unauthenticated access or
    missing polls.
@tristenwallace tristenwallace merged commit a7dc6b7 into main Apr 16, 2024
@tristenwallace tristenwallace deleted the PollDetail branch April 16, 2024 22:34
tristenwallace pushed a commit that referenced this pull request Jul 15, 2024
# 1.0.0 (2024-07-15)

### Bug Fixes

* Immediate Update Issues for Leaderboard and PollList ([#37](#37)) ([1e76f57](1e76f57))
* Leaderboard PollSlice Import ([#10](#10)) ([8fc57da](8fc57da))
* Model associations and importing ([d9a7960](d9a7960))
* Only use random port for tests ([b5225ff](b5225ff))
* Remove jwt on logout ([#36](#36)) ([88b1ac6](88b1ac6))
* Update api integration to be aligned ([ffef1ee](ffef1ee))
* Update AWS pipeline ([#28](#28)) ([a7a33fa](a7a33fa))
* upgrade express-validator from 7.0.1 to 7.1.0 ([#50](#50)) ([7c37bae](7c37bae))
* upgrade fs from 0.0.1-security to 0.0.2 ([#49](#49)) ([668c2aa](668c2aa))
* upgrade pg from 8.11.5 to 8.12.0 ([#48](#48)) ([c814616](c814616))
* userSlice typos ([0838e1e](0838e1e))

### Features

* Add login header to Home ([0c5bb27](0c5bb27))
* Create SignupForm component ([a533c18](a533c18))
* Implement PollDetail component ([#4](#4)) ([a7dc6b7](a7dc6b7))
* Implement protected routes ([#9](#9)) ([daba7c1](daba7c1))
* Implement User Session Persistence ([#19](#19)) ([db4796e](db4796e))
* Mobile Navbar with login/signup ([e42aa31](e42aa31))
* Replace temp server with api to backend ([b564fe3](b564fe3))
* Update components to use new api ([164668d](164668d))
* Update components with updated api responses ([bf917e6](bf917e6))
* Update pollService with new api calls ([8476160](8476160))
* Update userService with new api calls ([bf9cfa6](bf9cfa6))
@tristenwallace
Copy link
Copy Markdown
Owner Author

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant