I have added a bar chart under the Election Analytics section using the recharts library.
Fixes #19
Please mark the options that are relevant.
The changes have been made in accordance to the design proposed here: https://www.figma.com/file/Y1h1jmLku3LgPQitnmOQWY/gsoc-workflows?node-id=2%3A11694
the modifications are a continuation of the proposal of implementing ehr-workflows.
I have made the changes such that the application matches with the design. Some improvements were limited (like modifying existing lh-toolkit web-components such as the form to add a patient, edit a patient), because the web-components are not customizable.
@sunbiz I have made the following changes:
Demo after changes: https://vimeo.com/658867190
In order to implement multiple algorithms for elections, we can do the following:
Election.sol smart contract that will include the common functions like election information, candidate information, adding candidate function etc to prevent redundancyswitch statement. This will also allow addition of more algorithms in the future.what are your views on it?
@rranjan01234, I have made PR !29 for this issue
I have added a state hasVoted in the VoteModal component. This state signifies whether the user has already voted or not. By default, it is set to false, and once the user votes, it is set to true. Also, I have used the React useEffect hook to update the state, in case the user has already voted and revisits the page.
Fixes #16
Please mark the options that are relevant.
Kailash Kejriwal (c54047e6) at 24 Jan 13:47
Added functionality to disable vote button after user has voted
... and 8 more commits
I would like to work on this issue.
name: Enhance result's display
about: Enhancing the display of the results section
title: "[Enhance result's display]"
labels: new-feature
assignees: ""
Describe the purpose Currently, the results section displays only the winner of the election, and that too just the name. It would be better if a proper analytics of the election is displayed in the same section using graphs. This will enhance the user experience and provide with more details of the election, and make the UI more appealing.
Possible Implementation
The recharts package can be used to generate the different bar graphs. Since candidates array in the Election.sol is a public variable, it can be accessed using a get method and, and the response from this method can be used to feed the data of the candidates in those bar graphs.
@rranjan01234 Is someone working on this issue? If not, I would love to work on it.
@geforce6t I have made some fixes. Is it mergeable now?
Kailash Kejriwal (4f04ceb6) at 11 Jan 21:40
Upload New File
Kailash Kejriwal (79705f92) at 11 Jan 21:40
Upload New File
Kailash Kejriwal (2f93be6a) at 11 Jan 21:39
Upload New File
Kailash Kejriwal (a7ccd38a) at 11 Jan 21:39
Upload New File
Kailash Kejriwal (0a433152) at 11 Jan 21:39
Upload New File
Kailash Kejriwal (95b1c811) at 11 Jan 21:38
Upload New File