Giter Site home page Giter Site logo

apollo's People

Contributors

dependabot[bot] avatar lxxxvi avatar

Stargazers

 avatar

Watchers

 avatar  avatar

apollo's Issues

Create users model

User has many polls.
User has to be authenticated by link, or automatically on create new poll, but only if new user.

User

  • email
  • email_verified_at
  • authentication_token
  • authentication_token_expires_at

Introduce state labels

draft: teal
published: violet
started: green
closed: pink
archived: lightbrown
deleted: grey

introduce tailwind colors

Cast a vote

Once the poll is started #38, a user can cast a vote using a valid token.

Only one vote can be cast per poll/token.

Poll start time

When creating a new poll a start time and end time (see also #35) can be picked.

Start time is mandatory.
Start time has to be before end time.

As soon as start date is reached the poll's (including nominees) can't be modified anymore.
Between start time and end time only votes can be cast.

After end time everything about the entire poll can be modified, except archiving.

Admin confirms email

On creation of a poll, the user enters an email. This email has to be confirmed before the poll can be published.

Archiving a poll

After the end date a poll can be archived.

Archived polls can only be accessed through direct link. The polls are not listed anywhere (if public)

Create n tokens

Admin can enter a number so that multiple tokens are generated.

Token values should not be displayed

Currently in poll#show token values are displayed. This should not be.

  • Admin sees tokens and if they are being used.
  • Guests or token users don't see the tokens on poll#show

Admin signs in/out

Admin should be able to sign in by sending an email containing a magic link that authenticates the user.

Sign out should also be possible

Lock token

A token should be locked, it means the cast vote can't be changed anymore after that.

Add checklist for starting a poll

Certain preconditions need to be met in order to start a poll:

  • email has to be confirmed
  • at least two nominees have to exist
  • at least one token has to exist

Add this as a checklist for admins

Poll publish time

A poll can have a publish time. This time has to be before or same as start time.
Between publish time and start time users can preview the poll but not cast votes. Changes are still possible during that time:

  • edit poll information
  • add/remove/edit nominees
  • add/remove tokens

Poll end date

Admin can set an poll end or close the poll immediately.

Protect token with a password

It should be possible that a user can protect their token with a password. Changing the tokens vote is only possible with that password.

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.