Coder Social home page Coder Social logo

brain-blitz's Introduction

stats Anurag's GitHub stats

wakatime

brain-blitz's People

Contributors

codesmith28 avatar jeelrajodiya avatar

Stargazers

 avatar

Watchers

 avatar

brain-blitz's Issues

Question maker problem

that bug which makes the save button go abnormal...
i think i found out the reason why it happens so...

here only 1 option is filled and it happens to be the correct option:
image

now if i write somthing in the second option and then delete it:
image

as we can see...
this code:
image

it only accounts for the options that are created
if the second option is created and it is blank then and only then the code responds to it else not...
hence we need to change the db such that there are 4 options created by default or give the user an option in the quiz maker settings to choose the number of options...

Distribute the code into multiple files

Files Questions.tsx is about 200+ lines and JoinQuiz.tsx is about 400+ lines

Large files make it hard to maintain the code, so it is better if the files are distributed in more files
These distributions can be

  • Create a separate file for types
  • Distribute components

Add user feedback when the user deletes the quiz

image
This feedback includes a

  • loading animation when the user's quiz is being deleted
  • popup when deletion is successful or failed

(loading and the pop-up should be shown in such a way that the user can continue doing other things in the site, it would be great to position it in a bottom-right corner)

Validate User Inputs

  • User can not create a quiz with an empty title
  • Can not create a quiz with 0 question
  • Cannot save a question if there are duplicate options
  • When creating a quiz, they can not leave the questions empty
  • Can not leave an empty option in any question
  • User has to add a difficulty tag to each question
  • Show error when user gives wrong quiz code
  • Prevent the user from joining the quiz they have already joined, when they try to join this type of quiz redirect them to the results page

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.