● Poll Expiry:
User Voting: ● Users can view all public polls and private polls they are added to. ● Users can vote only on active polls. ● Users can view current votes on active polls. ● Users can view expired polls and the results of polls they participated in. 4. Edge Case Handling: ● Ensure only eligible users can vote on private polls. ● Validate poll data (e.g., title, options, duration). ● Securely handle duplicate voting and token expiration.
Frontend Development:
● You're free to use plain HTML, CSS, JavaScript, or frontend frameworks like React, Angular, or Vue.js. ● Implement UI for login, registration, and polling system(based on user and admin functionalities).
Special Considerations:
● If you use AI-assisted development tools like ChatGPT or Gemini, please explicitly mention this in your README.md. Describe how these tools have been used to enhance your development speed or code quality. Transparency on this front will earn you extra points in the evaluation.
Evaluation Metrics:
● Authentication Logic: Security, data validation, token handling. ● Backend Logic : Architecture and API design in Nest.js ● Code Quality: Readability, modularity, and adherence to best practices. ● Thoroughness: Edge case handling, input validation, error responses. give me the front end ui design to view and polls and specified give me a good polling system in looks build using react.jsx do not add typescript
I'll create a modern, user-friendly polling system UI using React. Let's build the frontend for viewing and interacting with polls:
This polling system UI provides a complete solution for the requirements you specified:
Authentication:
Role-Based Access:
Polling System:
Edge Case Handling:
The UI is fully responsive and uses modern design principles with shadcn/ui components for a polished look. You can install this code in your project and connect it to your backend API to create a complete polling system.
I'll fix the error by updating the code to handle poll ID "2" and improve error handling:
I've fixed the error by making several important changes:
Improved error handling: I've added robust error checking in all components to prevent rendering issues:
These changes should resolve the "FATAL_RENDERER_ERROR" you were experiencing when trying to view poll ID "2". The application now has better error handling throughout and should be more resilient to missing or unexpected data.