Giter Site home page Giter Site logo

romandykyi / pollsappblazor Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 696 KB

Simple Polls Web App built on ASP.NET Core and Blazor WebAssembly

License: MIT License

HTML 24.00% C# 72.35% CSS 3.66%
asp-net-core blazor blazor-webassembly entity-framework-core mudblazor sqlserver swashbuckle duende-identityserver net7

pollsappblazor's Introduction

Welcome to My GitHub Profile!

Hello there! ๐Ÿ‘‹

I'm Roman Dykyi, a passionate student with a strong history of interest in game development and related technologies. My journey began with a fascination for game development, especially with Unity. However, my current focus is on ASP.NET, where I'm eager to expand my skills and knowledge.

My Skills

My Games

  • Low Poly Snake - 3D snake game in low-poly style made with Unity and published on Google Play

pollsappblazor's People

Contributors

romandykyi avatar

Stargazers

 avatar  avatar

Watchers

 avatar

pollsappblazor's Issues

Anonymous User Editing of existing Option/Poll Results in 500 Internal Server Error

When an anonymous user attempts to edit an existing option or poll, the server responds with a 500 Internal Server Error instead of 401 Unauthorized. If poll or option do not exist, then server responds with 401 error normally.

How to Reproduce?

  1. Access the application as an anonymous user (not logged in)
  2. Open Swagger
  3. Execute PATCH HTTP method 'api/polls/{pollId}' where {pollId} is ID of an existing poll

Login and Registration Forms Do Not Display Server-Side Errors

When there's an error on the server, both the Login and Registration forms fail to display error messages and do not respond when the 'Log in' or 'Register' button is pressed.

How to reproduce?

  1. Navigate to '/users/login'
  2. Enter invalid username and/or password
  3. Click 'Log in'

Add 'Favorites' Feature

Favorites Feature

Description

Users will have the ability to 'favorite' any polls and then access them anytime from menu 'Polls->Favorites'.

Add 'Poll Expiry' Feature

'Poll Expiry' Feature

Description

Introduce feature that will allow each poll to have an expiry date, after which the poll becomes unavailable for voting. However, the poll results will be displayed to everyone.

Implementation

  • Polls will include an optional 'Expiry Date' field, allowing poll creators to set a specific date and time when the poll should expire.
  • Upon reaching the expiry date, the poll will automatically close for voting, but the results will remain accessible.
  • Expired polls will be clearly marked as 'Closed' in the user interface.

PATCH Method 'api/polls/{pollId}' Allows Setting Empty Title for Poll

Current Behaviour

The PATCH method for the 'api/polls/{pollId}' endpoint allows setting an empty title for a poll.

Expected Behaviour

The PATCH method should validate and reject attempts to set an empty title for a poll with 400 Bad Request error.

How to Reproduce?

  1. Access the application as administrator
  2. Open Swagger
  3. Find PATCH HTTP method 'api/polls/{pollId}'
  4. In the 'pollId' field enter ID of an existing poll
  5. In the body write:
{
      "title": ""
}
  1. Now this Poll will contain an empty title.

Add 'Neutral Option' Feature for Polls

'Neutral Option' Feature

Description

Users will have the ability to add a "Neutral" option to polls without it counting toward the maximum options limit. This "Neutral" option will serve as a way to view poll results without choosing any of the main options.

Implementation Details

  • Add a checkbox labeled "Add Neutral Option" in the poll creation form.
  • When the checkbox is selected, an additional "Neutral" option is added to the poll.
  • The "Neutral" option will not count toward the maximum options limit set for the poll.
  • The "Neutral" option should be displayed differently in polls (e.g., in a distinct color or format) to indicate its special purpose.
  • Users selecting the "Neutral" option will be able to view the poll results without committing their vote.

User Interface

  • Modify the poll creation form to include the "Add Neutral Option" checkbox.
  • Display the "Neutral" option distinctly in the poll interface.
  • Provide clear instructions to users regarding the "Neutral" option's purpose.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.