This is the first main content PR for #94. The pages themselves can def use some work (as I mentioned in Discord), though this PR is big enough that I think those changes should be a separate PR.
Main Changes
add new Manage Poll LiveView
contains poll insights such as multi-choice distributions (described as percentages + pie charts), vote counts, and a voter by vote item table
exposes new per-poll and per-item settings (as described below)
added many options fields to Poll and Poll.Item, and Poll.Item.Vote schemas (visible_results, optional, etc.)
expose these fields on the create/manage page forms
rework results page with pie charts and more general/useful info
fix major issues:
users can no longer vote more than once
users must add at least one poll item to create a poll
Testing
Run through the whole poll creation and voting process as the 3 types of users
Those users being: The poll owner, a logged-in poll voter, and a logged-out (anonymous) poll voter
Owners should be able to edit/delete the poll no matter what. The only restriction that's enforced on the owner as well as any other user is not being able to vote after the close_poll_at datetime has passed (though, they could simply navigate to the Manage Page and edit it).
This is the first main content PR for #94. The pages themselves can def use some work (as I mentioned in Discord), though this PR is big enough that I think those changes should be a separate PR.
Main Changes
Testing
close_poll_at
datetime has passed (though, they could simply navigate to the Manage Page and edit it).