Commit Graph

220 Commits

Author SHA1 Message Date
Vadim Arasev b84c6b9ccd (Fix) Avoid some exceptions if Metamask is locked 2018-07-11 11:20:38 +03:00
Vadim Arasev 1240d72e29 (Fix) Show a new ballot card right after the ballot is created 2018-07-09 18:55:06 +03:00
Vadim Arasev e17c262af6
Merge branch 'core' into fix-144 2018-07-04 15:48:40 +03:00
Victor Baranov 66a86aac19
Merge pull request #145 from varasev/fix-123
(Fix) Checking transaction status when voting or finalizing
2018-07-04 14:04:21 +03:00
Vadim Arasev d52d5f5915 (Fix) Minor fixes 2018-07-04 09:48:07 +03:00
Vadim Arasev d3b3fbbd1a (Fix) isFinalized 2018-07-02 16:53:57 +03:00
Vadim Arasev db743f3e5a (Fix) Refresh ballot card after voting or finalization 2018-07-02 16:53:51 +03:00
Vadim Arasev 9f89940b0f (Fix) calling canBeFinalizedNow() in BallotCard.jsx 2018-07-02 16:53:46 +03:00
Vadim Arasev 685d43285e (Fix) Refresh ballot card after voting or finalization 2018-07-02 16:53:41 +03:00
Vadim Arasev a9cb25a89b (Fix) Checking transaction status 2018-07-02 16:53:37 +03:00
Vadim Arasev e89cb7c5f9 (Fix) Checking transaction status 2018-07-02 13:02:20 +03:00
Vadim Arasev 9cb2d2fe14 (Fix) transaction's status checking 2018-06-29 19:43:14 +03:00
Vadim Arasev 287735aed8 (Refactor) Collapse core and demo branches 2018-06-21 20:16:37 +03:00
Vadim Arasev e5ce111130 (Fix) Fix of searching and code refactoring 2018-06-20 15:34:28 +03:00
Vadim Arasev 0a32885ef1 (Fix) Remove unused vars and comments 2018-06-19 15:38:36 +03:00
Vadim Arasev a513d1429f (Fix) Optimized ballot card 2018-06-19 15:38:31 +03:00
Vadim Arasev fc4f9b5553 (Fix) Optimization for new smart contracts 2018-06-19 15:38:25 +03:00
Vadim Arasev 0f9e032899 (Feature) "Load More" button for "All" tab 2018-06-15 18:53:50 +03:00
Vadim Arasev ebd0b7d8aa (Fix) Optimization 2018-06-14 15:47:26 +03:00
Vadim Arasev d9514c84e2 (Fix) Light optimization #2 2018-06-14 12:12:04 +03:00
Vadim Arasev b07af3dba9 (Fix) Light optimization 2018-06-14 12:11:59 +03:00
Vadim Arasev b2920ed578 (Update) Backward compatibility with old smart contracts 2018-06-13 18:16:23 +03:00
Vadim Arasev b5b2452e91 (Refactor) doesMethodExist function 2018-06-13 18:16:17 +03:00
Vadim Arasev 59d3e922ec (Fix) newVotingKey and newPayoutKey are not mandatory; interface fixes 2018-06-13 18:16:11 +03:00
Vadim Arasev 9812cf8a04 (Feature) Display three keys in ballot card when adding a new validator 2018-06-13 18:16:07 +03:00
Vadim Arasev fc44c691aa (Feature) Adding three keys at once when adding a new validator
Relates to https://github.com/poanetwork/poa-dapps-voting/issues/83, https://github.com/poanetwork/poa-dapps-voting/issues/131 and https://github.com/poanetwork/poa-network-consensus-contracts/issues/92.
2018-06-13 18:16:03 +03:00
Vadim Arasev ce45f3ee8c (Update) canBeFinalizedNow
Relates to https://github.com/poanetwork/poa-dapps-voting/issues/129.
2018-06-13 18:15:54 +03:00
Vadim Arasev 0421bbbe9f (Update) Rename createBallot method 2018-06-13 18:15:50 +03:00
Vadim Arasev 9a182e8ea2 (Fix) Remove trailing whitespace 2018-06-13 18:15:46 +03:00
Vadim Arasev 619c6c8ff4 (Update) "Contract Type" drop down list and getCreator method
Add ValidatorMetadata and ProxyStorage to drop down list and getCreator method to VotingToChange* contracts
2018-06-13 18:15:39 +03:00
Vadim Arasev a013595b72 (Fix) Remove ValidatorMetadata from "Contract Type" drop down list 2018-04-28 11:59:06 +03:00
varasev ec5f6a5cb5 (Fix) css bug on ballot creation
Relates to https://github.com/poanetwork/poa-dapps-voting/issues/119
2018-04-10 11:13:45 +03:00
varasev 42c5c270d1 (Fix) Change metadata zipcode from numeric to short string
Related to https://github.com/poanetwork/poa-network-consensus-contracts/issues/45
2018-04-02 19:00:09 +03:00
varasev 017196d4ca (Fix) Remove class="hidden" from parent div
Related to https://github.com/poanetwork/poa-dapps-voting/issues/117
2018-04-02 18:38:54 +03:00
varasev ec180f9920 (Feature) Add ValidatorMetadata to drop-down list in "Modify Proxy Contract Ballot" 2018-03-30 09:41:20 +03:00
viktor b8d6cfb460 Merge remote-tracking branch 'upstream/core' into color-for-vote-scale 2018-03-22 17:54:38 +03:00
viktor 4ae88e0aa7 reviever suggestions 2018-03-22 17:53:24 +03:00
viktor e12ce057b3 visualize if validator already voted 2018-03-22 16:33:01 +03:00
viktor 9fb30fcb88 eslint suggestions 2018-03-22 13:04:05 +03:00
Victor Baranov e73094bd0a
Merge branch 'core' into order-of-cards 2018-03-21 20:20:09 +03:00
Victor Baranov 9f72ef8a00 14 days upper limit for ballot's duration (#109) 2018-03-21 10:15:40 -07:00
viktor 06e0ea1305 To finalize filter 2018-03-21 19:39:18 +03:00
viktor 2621a277e8 different color for active cards 2018-03-21 19:05:44 +03:00
viktor 7bcd4f9a91 order of cards: new at the top; speed and stability of card loading 2018-03-21 17:53:27 +03:00
viktor f6214dd79e merge with master branch 2018-03-21 09:35:41 +03:00
Victor Baranov aef433a22a
Merge branch 'core' into ballot-vote-fix-2 2018-03-21 09:24:28 +03:00
Victor Baranov 8cdd15529e
Merge branch 'core' into search-fix 2018-03-21 09:19:29 +03:00
Victor Baranov a11d0432d5 UI improvements: time -> ballot time; hide finalize description if already finalized (#106) 2018-03-20 15:00:48 -07:00
Victor Baranov ef504127c7 handle errors from async calls (#102) 2018-03-20 14:57:28 -07:00
Victor Baranov edd89cd7a5 (Fix) invalid/duplicate ids for end date field and mining key field (#101)
* invalid/duplicate id for end date field

* invalid id for mining key element
2018-03-20 14:56:55 -07:00
viktor 852bf1749f fix on immediate vote after switching from start to close time 2018-03-20 18:17:01 +03:00
viktor 19e5419a8b Search by mining key, memo 2018-03-20 16:50:56 +03:00
viktor dd3869bd83 Sokol theme 2018-03-20 16:10:03 +03:00
viktor 95cac8f05d update mechanic for new ballot form 2018-03-20 12:18:23 +03:00
Igor Dobrovolsky d6ae1c11cf Update new page design 2018-02-15 21:33:13 +02:00
Roman Storm 0b6b30c556 (Feature) Add validator key to the table 2018-01-23 12:45:32 -08:00
Roman Storm 30934c9e55 (Fix #86) Check tx status after submission. 2018-01-23 12:45:32 -08:00
Victor Baranov 61a11a78ea
Merge pull request #88 from rstormsf/fix_timezone
Fix timezone
2018-01-23 23:34:47 +03:00
Roman Storm 2ee3601fdf Remove unused variable and fix error msg 2018-01-23 12:27:58 -08:00
Roman Storm fe91c624ef Prepend ballot end time with 2 days, 10 min.
Provide warning if it's less
2018-01-21 19:25:57 -08:00
Roman Storm 0f3a367f77 (Fix) Add proper name for buttons 2018-01-19 23:01:07 -08:00
Roman Storm 03a30059b5 (Fix) Add proper name for buttons 2018-01-19 22:47:00 -08:00
Roman Storm 55d8c5632c (Fix) Add front end validation 2018-01-19 19:03:26 -08:00
Roman Storm c27bd548c9 Code styling fixes 2018-01-19 15:11:54 -08:00
Roman Storm 7fd6bbd45d (Feature) Add memo, change Sokol addresses 2018-01-19 14:59:07 -08:00
Victor Baranov 236630fe23 (Feature) `AreBallotParamsValid` check before creating of ballot for keys (#75)
* Show if ballot is finalized

* Display US date format

* Codacy suggestion: Expected { after 'if' condition. (curly)

* Time to start

* typo

* Ballot is inactive alert

* Display invalid key address in alert

* errors catches

* dynamic year loading for footer

* Another format expression

* Codacy suggestions: A function with a name starting with an uppercase letter should only be used as a constructor. (new-cap)

* Codacy suggestions: semilolons and doublequotes

* messages typo

* AreBallotParamsValid check before creating of ballot for keys

* Codacy suggestions: Expected '===' and instead saw '=='. (eqeqeq); Unexpected console statement. (no-console); Missing semicolon. (semi)
2018-01-16 16:05:12 -08:00
Victor Baranov 8a77e489ba (Feature) Show time to start (#71)
* Show if ballot is finalized

* Display US date format

* Codacy suggestion: Expected { after 'if' condition. (curly)

* Time to start

* typo
2018-01-16 16:02:07 -08:00
Victor Baranov d25086561a (Fix) US date format (#70)
* Show if ballot is finalized

* Display US date format

* Codacy suggestion: Expected { after 'if' condition. (curly)

* typo
2018-01-16 15:58:45 -08:00
viktor 4d2293abda Codacy suggestion: Expected { after 'if' condition. (curly) 2018-01-16 15:55:23 -08:00
viktor 83bbff7248 Show if ballot is finalized 2018-01-16 15:55:23 -08:00
vbaranov 4b76f78866 Minimize complexity of render function 2018-01-12 12:51:29 -08:00
vbaranov ff53756c71 Generic Object Injection Sink (security/detect-object-injection) fix 2018-01-12 12:51:29 -08:00
vbaranov e4706b96d1 More Codacy suggestions 2018-01-12 12:51:29 -08:00
vbaranov 28604a7f8b Codacy suggestions 2018-01-12 12:51:29 -08:00
vbaranov 4df197c83e Search fix 2018-01-12 12:51:29 -08:00
vbaranov e0ff441448 Base BallotCard class 2018-01-12 12:51:29 -08:00
vbaranov 2b4a291e21 Codacy suggestions 2018-01-12 12:09:07 +03:00
vbaranov 42c8dab0b7 Console warning on switching to active ballots fix 2018-01-11 18:35:41 +03:00
Victor Baranov 12961b272d Keys ballot type to transaction: add/remove/swap fix 2018-01-06 14:56:33 -08:00
Roman Storm 1f900c641a (BugFix) pass correct miningKey value 2018-01-06 14:45:16 -08:00
Roman Storm 8dacc1d7f6 fix the rest of card with correct passing of decision 2018-01-05 13:10:19 -08:00
Roman Storm 2d7990e39e Add card id + have live clockwatch 2018-01-05 12:36:25 -08:00
Roman Storm e47c4ec16d (ESlint) fix styling issues 2018-01-03 20:51:10 -08:00
Roman Storm 64c8b107a4 add dropdown to select mining key, add limits 2018-01-03 19:34:22 -08:00
Roman Storm bce23f8573 Merge branch 'core' of github.com:poanetwork/poa-dapps-voting into core 2017-12-30 16:00:14 -08:00
Roman Storm abcdacbce9 Fixes #45. Correctly pass choice to the smart contract. 2017-12-30 15:58:50 -08:00
viktor c836b5f46e address autocomplete with react-places-autocomplete; relates to #34 2017-12-28 18:08:53 +03:00
viktor 22f8f3b9b1 date & time input for endTime field; relates to #35 2017-12-28 16:56:57 +03:00
viktor 6fb82a6152 Memo removed from a new ballot for keys form 2017-12-27 17:29:57 +03:00
viktor bdb37b41a2 Lorem ipsum change with meaningful text 2017-12-27 17:26:30 +03:00
viktor ec0c4edab8 Search logic; relates to #18 2017-12-26 15:12:37 +03:00
viktor e4f1ac8a3f Display votes amount fix 2017-12-26 13:07:55 +03:00
viktor d7dade298c Update addresses for core network 2017-12-25 22:25:17 +03:00
viktor c4670117c7 Updated instruction; relates to #21 2017-12-25 20:01:09 +03:00
viktor 062c2d412e Remove console.logs, fix footer link 2017-12-25 19:03:02 +03:00
viktor 3c6f75da91 Minor React suggestions-fixes 2017-12-25 18:47:33 +03:00
viktor 57577c1ccd Vote, finalize buttons validations 2017-12-25 18:15:43 +03:00
viktor 5b2efe8ac4 active filter, relates to #20 2017-12-25 17:23:09 +03:00
viktor 0b04e5089f Finalization of ballots in new design; rekates to #17 2017-12-25 15:18:37 +03:00
viktor 500a04c102 voting on ballots 2017-12-25 13:10:35 +03:00
viktor 00a08dbd4e Actual social links 2017-12-25 12:18:15 +03:00
viktor 242bb2279a actual votes number on a ballot card 2017-12-25 12:01:28 +03:00
viktor b11e0f707a Actual Min thresholds for every ballot type are displayed on a ballot card; relates to #15 2017-12-25 11:26:01 +03:00
viktor 25f8a00538 number of all validators in the network on a ballot card; relates to #15 2017-12-25 10:59:40 +03:00
viktor 69cec002f9 Ballot creator fullname from metadacontract ia added, relates to #15 2017-12-25 10:46:35 +03:00
viktor a1f157e750 Ballot cards values: ballot type and affected key type 2017-12-22 20:58:52 +03:00
viktor 6ea4392bcb Cards values 2017-12-22 20:46:49 +03:00
viktor ac74440ca2 Different cards structure for different ballots 2017-12-22 18:56:50 +03:00
viktor 70295f76e1 Ballot cards with id from voting contracts 2017-12-22 18:29:54 +03:00
viktor d7584644b0 Move to ballots page after creation 2017-12-21 21:55:19 +03:00
viktor e9ed9619bc Make routing work with mobx; deploy scripts 2017-12-21 19:55:57 +03:00
viktor 84bf97fcc0 New loader 2017-12-21 19:24:44 +03:00
viktor d8491b157f Check, if it is valid voting key, contracts addresses for sokol 2017-12-20 17:45:03 +03:00
viktor d084e9dec2 Creation ballots of all types 2017-12-20 17:30:54 +03:00
viktor c7ebedd1a8 New ballot validation for all types; loading screen 2017-12-20 16:13:28 +03:00
viktor 660c1ac094 mobx Validator storage; preparing for transaction to create ballot for keys 2017-12-19 19:53:51 +03:00
viktor 108f01acf7 mobx state management is added 2017-12-19 17:27:27 +03:00
viktor c76045a5ec mobx dependencies are added 2017-12-19 14:04:22 +03:00
viktor 520a63c06b replaceing header & footer; this closes #11 2017-12-18 17:49:56 +03:00
Igor Dobrovolsky 07c147d75b Stub react components 2017-12-12 00:23:01 +02:00