Commit Graph

70 Commits

Author SHA1 Message Date
Jaco
97d2866e6e
Use useCollectiveModule for all collective locations (#5762)
* Use useCollectiveModule for all collective locations

* staking useCollectiveModule

* Bounties useCollectiveModule

* Mock collective

* Adjust

* useMember -> useCollectiveMembers
2021-07-05 08:03:27 +02:00
Jaco
42cb6b84d3
Rework collective queries (#5732)
* Rework collective queries

* members derive

* All via derive

* Adjust society useMembers

* Adjust optional consts

* Detect council module locations

* Adjust tech comm with module locations

* Rework loading

* Unused type import
2021-07-02 10:42:13 +02:00
Jaco
3aebcd387c
Adjust useContributions (trigger on event) (#5534)
* Adjust useContributions (trigger on event)

* length check fix

* Adjust bounty spec
2021-06-09 16:27:00 +02:00
Jaco
8a95b1a93b
Handle BN type-only imports correctly (#5428)
* Handle BN type-only imports correctly

* lint fixes
2021-06-03 10:41:55 +02:00
Jaco
2f572b68c5
Bounty display alignment (#5191) 2021-05-03 09:18:17 +02:00
Jaco
cf6c682333
Optional balances & timestamp (#5188) 2021-05-02 16:00:48 +02:00
Jaco Greeff
d3482e638b
Adjust menubar (& overview naming) (#4922)
* Adjust menubar (& overview naming)

* Slight padding adjustment
2021-03-24 13:14:46 +01:00
Jaco Greeff
2d97581b17
Flatten tabs (#4883) 2021-03-21 09:31:43 +01:00
Jaco Greeff
15c08c6364
Display next action countdown (#4849)
* Display next action countdown

* Show parathreads
2021-03-14 19:45:02 +01:00
Jaco Greeff
d34bd33568
useBestNumber hook (#4846)
* useBestNumber hook

* Cleanups
2021-03-14 15:12:53 +01:00
Jaco Greeff
a86bc3284a
Flatten modal columns (#4841)
* Flatten modal columns

* Additional

* Additional

* Additional

* Additional

* Additional

* Adjust tests

* No bids outside ending

* s/winners/bids/

* Adjust

* lease offsets
2021-03-14 14:36:49 +01:00
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