Commit Graph

59 Commits

Author SHA1 Message Date
Jaco Greeff
09c1fb716d
Initial display for auction bids (#4828)
* Initial display for auction bids

* Dedupe bids
2021-03-12 13:08:25 +01:00
Jaco Greeff
2bf88c5860
Use theme via css vars (#4789)
* Extract global CSS vars (non-theme specific)

* Use theme via css vars

* All text colors

* Additional

* All vars (excluding name...)

* Additional

* linting

* css linting

* Update Card css
2021-03-10 11:04:14 +01:00
Jaco Greeff
c7fa175949
Adjust bounty rows (#4728) 2021-02-25 08:30:02 +01:00
Jaco Greeff
ddbf46e7a0
Bump deps (common, local types) (#4726) 2021-02-25 07:55:48 +01:00
Jaco Greeff
0f69839626
Additional bounties alignment (#4704)
* Additional bounties alignment

* Button adjust
2021-02-20 14:58:45 +01:00
Jaco Greeff
20ae28d0f3
Minor table adjustments (#4687) 2021-02-17 21:15:26 +01:00
Jaco Greeff
10bf3fe55f
Adjust bounty expanded rows (#4653) 2021-02-11 12:32:24 +01:00
Jaco Greeff
b9506fabe6
Adjust summary for bounty-specific (UI-like countdown, total bounty summary) (#4652) 2021-02-11 12:32:00 +01:00
Jaco Greeff
6bcfabaaed
Bounty DueBlocks (human time-first, aligned with UI) (#4651)
* Initial bounty re-align (table borders, font colors)

* DueBlocks (align with UI counters, time first)
2021-02-11 12:31:37 +01:00
Jaco Greeff
92ab4b5626
Initial bounty re-align (table borders, font colors) (#4650) 2021-02-11 11:29:18 +01:00
Ewa Kowalska
a580ac4d5e
Bounties - list layout improvements (#4644) 2021-02-11 11:03:46 +01:00
Ewa Kowalska
31ebfcd3a0
Bounties - Add link redirecting to council/motions (#4536) 2021-02-05 19:37:51 +01:00
MiZiet
4dd9058623
Bounties - Better texts (#4615) 2021-02-05 19:00:53 +01:00
Ewa Kowalska
36eb0b2e6a
Bounties - Extract "give up curator" role modal, prioritize unhappy path motions to display and organize files into folders (#4596) 2021-02-04 20:25:49 +01:00
Ewa Kowalska
3272ffab43
Bounties - Show on the extend bounty expiry modal the new expiry date (#4593) 2021-02-04 11:21:59 +01:00
Krzysztof Jelski
cb954bc628
Bounties - refactor tests (#4589) 2021-02-04 09:16:23 +01:00
Ewa Kowalska
937754b644
Bounties - Distinguish slash and unassign curator in extended status (#4578) 2021-02-03 11:22:58 +01:00
Jaco Greeff
fd0ceaff0d
Use BN_{BILLION, MILLION} constants (#4577)
* Use BN_{BILLIN, MILLION} constants

* BN_ONE

* Update packages/page-treasury/src/Overview/ProposalCreate.tsx

* Update packages/page-staking/src/Payouts/useStakerPayouts.ts

* Additional

* Update packages/page-democracy/src/Overview/Summary.tsx

* Additional

* Additional

* Re-apply

* Cleanups

* Apply suggestions from code review
2021-02-03 10:59:37 +01:00
MiZiet
91c6337ff8
Remove type prop from address inputs (#4586) 2021-02-03 09:51:07 +01:00
Ewa Kowalska
a790447add
Bounties - Add "Accept curator role" modal (#4566) 2021-02-02 17:17:33 +01:00
MiZiet
9de151e5a2
Bounties - Additional info (#4563) 2021-02-02 12:04:44 +01:00
MiZiet
e8972c8aba
Bounties - Update summary (#4564) 2021-02-02 10:18:59 +01:00
MiZiet
99497724c5
Display bounty ID (#4527)
* Display Id in Bounty list

* Remove whitespace
2021-01-29 13:48:45 +01:00
Ewa Kowalska
ccf44f650b
Bounties - Hide bounty unhappy path actions (#4500) 2021-01-28 10:18:57 +01:00
MiZiet
f2b1b3f03c
Bounties - Award beneficiary action (#4501) 2021-01-27 12:49:06 +01:00
MiZiet
55ab547c86
Bounties - add slash curator action (#4499) 2021-01-26 15:25:04 +01:00
Jaco Greeff
31deae7a24
Bump deps (#4485)
* Bump deps

* Align icons, text
2021-01-24 20:51:37 +01:00
Jaco Greeff
38b7ebc24c
Format multiple balances w/ properties (#4480)
* Format mutiple balances w/ properties

* Bump API

* Update chainDecimals extraction

* Fox bounties mock API

* Expand rendering

* Bumps
2021-01-23 15:30:37 +01:00
Ewa Kowalska
7f80a06fe2
Add close bounty modal and show proposed curator based on proposeCurator motion (#4476) 2021-01-22 15:09:57 +01:00
MiZiet
b09bc9cbc9
Adjust components placement and styling in bounties list (#4460) 2021-01-22 12:06:49 +01:00
MiZiet
708aa6cf95
Add tooltips for bounty status (#4450)
* Add BountyStatusDisplay component

* Implement help tooltip in BountyStatusDisplay

* Add BountyStatusDisplay translations

* Add styling to BountyStatusDisplay

* Update translations

* Add missing types

* Add missing translation

* Update local imports

* Update local imports

* Rename BountyStatusDisplay to BountyStatusView

* Rewrite bounty status helpers

* Add review suggestion

* Change useMemo to useRef in BountyStatusView
2021-01-20 15:33:23 +01:00
MiZiet
ba15fa8fed
Add extend bounty action (#4445)
* [WIP] Add ExtendBountyExpiry action

* Add Extend bounty expiry action

* use renderOneBounty function in curator tests

* [WIP] Add happy path test

* [WIP] Happy path test

* Add happy path test

* Finish test

* Update locales

* Improve extend bounty expiry test

* Cleanup bounty indexes

* Change locales

* Remove AccountId from ExtendBountyExpiryAction

* Remove unused properties in bounty tests

* Apply review suggestions
2021-01-18 20:58:26 +01:00
Ewa Kowalska
84bc0b18ee
Sort bounties in descending order (#4421) 2021-01-15 11:44:42 +01:00
MiZiet
9084d42564
Add propose curator action to Bounties (#4417) 2021-01-15 09:40:01 +01:00
Ewa Kowalska
4e1fe4b38d
Render extended statuses when voting on bounty (#4396) 2021-01-14 17:46:25 +01:00
Krzysztof Jelski
d131d62665
Add a fast UI test for bounties. (#4302) 2021-01-11 10:15:01 +01:00
Jaco Greeff
d8b2bab912
Warning & Error with exclamation triangle (#4331)
* Warning & Error with exclamation triangle

* Fix lint

* Apply suggestions from code review
2021-01-10 08:37:51 +01:00
MiZiet
75023bb4f3
Add bounties summary (#4336)
* Add bounty summary INIT

* Add timed displays

* WIP

* Add locales

* Add chain colors and progress display

* Extract useTreasury hook

* Pull spendPeriod into useTreasury

* Apply review suggestions

* Apply review suggestion

* Add check if activeBounties exists

* Add dark theme to bounty summary

* Add border-radius to HighlightedSection

* Apply review suggestions

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-01-09 12:46:52 +01:00
Ewa Kowalska
967d10b6cb
Initiate voting from bounty list - accept / reject bounty (#4320)
* Add initiate voting functionality

* Use bounty proposals from bounty derive

* Apply review suggestions

* Apply review suggestions

* Use useRef for approveBounty and closeBounty extrinsics
2021-01-06 14:24:16 +01:00
Jaco Greeff
6dbb188a1a
2021 (#4310) 2021-01-03 11:33:39 +01:00
Jaco Greeff
d548b838a2
Bump deps (w/ cleanups) (#4301) 2020-12-30 12:49:01 +01:00
Krzysztof Jelski
21f0eb5a06
UI tests for bounties (#4284)
* v test

* Cleanup test. Add pull policy.

* Find new bounty on the list. Extract test support.

* Working no-substrate test

* Change imports to local

* Add a test for validation

* Extract local var

* Update package versions

* Read the right const (dataDepositPerByte)

* Update yarn.lock

* Revert fast test changes.

* Update yarn.lock

* Update yarn.lock
2020-12-30 11:46:14 +01:00
Ewa Kowalska
6d0a3f9484
Use index from BountyDerive (#4300) 2020-12-30 11:14:49 +01:00
Ewa Kowalska
8490d76bc0
Accept and reject curator from bounty list (#4295)
* Add Accept Curator functionality to bounty list

* Extract Bounties Action Button

* Add unassign curator functionality

* Change curator reject icon and button labels

* Apply review suggestions

* Revert "Apply review suggestions"

This reverts commit 93d637bb3d4593555ce4cc6d5a0654263eb7b4d2.

* Apply review suggestions

* Apply requested changes
2020-12-29 20:14:38 +01:00
MiZiet
6421bd360c
Use derive call in Bounty's useCounter (#4290)
* Use derive call in Bounty's useCounter

* Remove derive.treasury from useCall
2020-12-29 16:19:11 +01:00
MiZiet
fc86d6acbb
Add validation for bounty proposal (#4265)
* Add validation for bounty proposal

* Add bounty title max length

* Change title validation

* Improve typing and naming in bounty validation

* Change locales

* Wrap validation into useEffect

* Split validation

Co-authored-by: Krzysztof Jelski <krzysztof@ethworks.io>
2020-12-24 11:20:02 +01:00
Jaco Greeff
5830e5eab6
Pass explicit function through to TxButton tx prop (#4251)
* Pass explicit function through to TxButton tx prop

* Updates

* Claim adjust

* Allow null on tx

* Adjust

* Apply suggestions from code review

* Adjustments after merge
2020-12-24 10:01:42 +01:00
Ewa Kowalska
cd53cf1623
Claim payout from bounty list (#4269)
* Add Claim functionality to bounty list

* Apply review suggestions

* Apply review suggestions

* Add tests for isClaimable

* Apply review suggestions
2020-12-24 09:52:09 +01:00
Ewa Kowalska
70f72cfe73
Update help text (#4261)
Co-authored-by: Krzysztof Jelski <krzysztof@ethworks.io>
2020-12-22 13:33:52 +01:00
Ewa Kowalska
98cec17f6d
Add second column to bounty add modal (#4259) 2020-12-21 19:29:55 +01:00