Commit Graph

320 Commits

Author SHA1 Message Date
basti efd1b371f9 Make contribution lists much more dense
We have too many contributions for them to be multiple lines by default.
2019-04-25 19:09:20 +01:00
basti 3c73ddd443 Turn user avatars into a component
This allows us to add them anywhere in the app, and also to add more
features, like e.g. hover info boxes, links, and so on.
2019-04-25 19:08:22 +01:00
basti 29e9df97fb Use Rinkeby explorer URL 2019-04-25 13:33:31 +01:00
basti fa95376fda WIP: Fix/update adding contributors 2019-04-25 13:24:36 +01:00
bumi de937aceee Shorter JS syntax 2019-04-24 09:48:24 +02:00
bumi d1791cadfe Display contribution balances not token balances
We want to display the contribution balances (kredits earned) of the
contributors not the token balances.
2019-04-19 18:16:02 +02:00
bumi 562a8d159b Cleanup 2019-04-19 14:54:18 +02:00
bumi 6f4afaf84a List only contrbutors with more than 0 kredits
This is a bit of a problem because we list integer values, so if
somebody has less than 1 Kredit than they would still show up. Not sure
what is the best to do here. - but this should be good enough for now.
2019-04-19 11:45:53 +02:00
bumi 2aae2a8f90 Fix kredits balance handling
Kredits are stored on the Token contract as uint256 / bignumbers with 18
decimal points. Just like Ether and required by the ERC20 standard.
So we need to work with bignumbers and format a bignumber value here.
2019-04-19 11:37:18 +02:00
bumi da608a0012 Do not rely on web3 injection with new ethereum provider standard
when window.ethereum is available web3 is likely not available as the
browser uses the new provider standard.
So we either user the window.ethereum as provider or the
web3.currentProvider as legacy option.
2019-04-09 22:37:48 +02:00
basti 5db628311e Fix confirmed/unconfirmed filter 2019-04-09 22:15:09 +02:00
basti aa28a14d04 Switch to contribution token instead of proposals
No vetos yet, and only for collections (not creation).

closes #20
2019-04-09 12:55:44 +02:00
basti f05b0bbd8b Remove Bourbon and Neat 2019-04-09 10:09:29 +02:00
bumi bff611f866 Merge pull request #94 from 67P/refactor/healthcheck-1
Add Kredits preflight checks
2019-04-05 13:01:02 +00:00
bumi f0b75d96db No bignumber anymore
as numbers are uint32 in the contract so no bignumber in JS anymore
2019-04-05 12:31:21 +02:00
basti 1f8fa367a5 Support new Metamask/Web3 privacy mode
closes #87
2019-04-04 12:13:39 +02:00
bumi 137f9ae8bf Add Kredits preflight checks
This should identify potential config issues and print a usefull error
message. e.g. if ipfs is not available.
2019-04-03 20:06:40 +02:00
basti e44a8efa4a Merge pull request #93 from 67P/fix/contributor-list-on-proposals
Remove default contributors value in propsal component
2019-04-03 19:02:05 +02:00
galfert 3dbcba5eb2 Add empty array as default for contributors list 2019-04-03 14:25:59 +02:00
bumi bd2a640be0 Remove default contributors value in propsal component
It seems that this somehow prevents/overwrites the contributors which
actually should be loaded in the controller.
2019-04-03 13:46:49 +02:00
bumi 889f2c05fc Fix bignumber computed property
The ethers.js bignumber API changed in v4.x
2019-04-03 13:43:57 +02:00
basti 32c85ea56b Merge pull request #90 from 67P/update-kredits-contracts
Update kredits-contracts and ethers.js
2019-04-03 11:02:15 +02:00
galfert 88be3525b5 Fix highlighting of current user in contributor list
Fixes #72

Introduces a helper to determine if a contributor is the current user.
2019-04-03 01:35:08 +02:00
basti 7da7de1edc Make some kredits params configurable 2019-04-02 17:56:27 +02:00
bumi b75ac5c8b9 Update kredits-contracts and ethers.js
This uses the new ethers.js 4.x API which is required by the new
kredits-contracts.
Also Operator is now Proposal in the new kredits-contracts wrapper
2019-03-29 19:54:45 +01:00
galfert 1fb20b1d08 Fix linting errors 2019-03-27 18:19:25 +01:00
galfert bfa0b350ac Fix template linting errors 2019-03-27 18:19:10 +01:00
galfert 487013f301 Run codemods 2019-03-26 23:07:02 +01:00
basti 64997d74e9 Fix wrong level for CSS mobile query 2018-07-20 12:31:32 +02:00
basti e43706e2a6 Remove obsolete title from proposal list items 2018-07-14 17:36:45 +02:00
basti 2befc91d90 Add data from proposals to contribution chart 2018-07-14 17:35:06 +02:00
basti 7a35f5177c Add charts.js plugin, basic chart component 2018-07-14 16:36:23 +02:00
basti ef0f3ffbfb Add background overlay to improve contrast
And use lowercase-hyphenated syntax for variables/mixins.
2018-07-12 11:29:45 +02:00
basti c074ccf460 Improve all the things 2018-06-17 16:15:02 +02:00
basti 5436469128 Don't show vote count for confirmed contributions 2018-06-17 15:32:08 +02:00
basti 32714efeb9 Improve layout a bit.
WIP, because this is not ideal. But now it's readable at least.
2018-06-16 17:12:53 +02:00
basti cf777571dc Move contribution info from title to actual content 2018-06-16 16:37:39 +02:00
basti 44b4340a91 New CSS grid layout 2018-06-16 16:09:33 +02:00
basti 24e3171311 Add topbar, move account info to top-right corner 2018-06-16 15:36:35 +02:00
fsmanuel 47b8421d35 Rename loading.hbs to application-loading.hbs 2018-06-14 19:04:42 +02:00
fsmanuel 38d853a272 Remove spinner route 2018-06-14 19:04:22 +02:00
bumi 804060ad34 Pass ETH signer only if it can actually sign
We have seen an "no accounts" invalid operation getAddress when trying
to call a contract function in the init calls.
It seems ethers has a problem with a signer that does not have any
accounts - even though we don't try to sign an actual transaction and
only read data from the contract.

This change only passes the signer if we have an unlocked web3 provider
(metamask).
2018-06-14 15:00:43 +02:00
basti a0ee2f7bb8 Use our new IPFS node 2018-06-07 13:32:43 +02:00
fsmanuel acd1ce28f4 Use .init() instead of static .setup() 2018-04-21 11:58:17 +02:00
fsmanuel 7083d2369d Fix eslint 2018-04-21 11:20:47 +02:00
fsmanuel 8fed06b494 Rename initEthProvider to getEthProvider 2018-04-21 11:15:13 +02:00
fsmanuel 75650c19ab Cleanup kredits service 2018-04-21 11:05:02 +02:00
bumi 31e27865bb Use kredits-contracts from npm 2018-04-18 19:26:35 +02:00
bumi 0e556aa794 Remove kredits library files and use npm package
Currently it uses the package directly from git
2018-04-18 19:01:26 +02:00
basti a4088e7acf Merge branch 'master' into naming-conventions 2018-04-17 12:55:20 +02:00