Commit Graph

371 Commits

Author SHA1 Message Date
MiZiet
b4967ca82c
Popup menu replace and styling (#6007)
* Add custom popup

* Render popup window with react portal

* Handle scroll

* Handle pointer scroll

* Refactor types

* Add useOutsideClick

* Restore button styles

* Update types

* Add tests

* Set multiple refs

* Cleanup

* Cleanup

* Move offset const to the utils

* Add useCallback in useScroll

* Remove empty lines in useElementPosition

* Change styled components to functional

* Make sure popup window stays in view

* Highlight trigger button when popup is open

* Add uesPopupWindow hook

* Make triangle larger

* Use full trigger height

* Apply new lint rules

* Group popup items into groups suggested by Jaco

Menu.Item is of SUI (semantic UI). It supports icons, but
we plan to replace SUI and thus this feature is likely to use
font awesome instead of SUI icons.

* Remove sui menu

* Improve styles

* Add translations

* Add hover

Co-authored-by: Marcin Wachulski <marcin@ethworks.io>
2021-08-31 10:39:17 +02:00
MiZiet
b6c827a908
Remove sui popup (#5924)
* Add custom popup

* Render popup window with react portal

* Handle scroll

* Handle pointer scroll

* Refactor types

* Add useOutsideClick

* Restore button styles

* Update types

* Add tests

* Set multiple refs

* Cleanup

* Cleanup

* Move offset const to the utils

* Add useCallback in useScroll

* Remove empty lines in useElementPosition

* Change styled components to functional

* Make sure popup window stays in view

* Highlight trigger button when popup is open

* Add uesPopupWindow hook

* Make triangle larger

* Use full trigger height

* Apply new lint rules

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-08-31 09:35:33 +02:00
Jaco
b8daf379e7
Bump dev (w/ lint fixes) (#6006)
* Bump dev (w/ lint fixes)

* Additional

* Bump ui/extension
2021-08-26 12:16:11 +02:00
MiZiet
9ac3d6a095
Replace sui modal with a custom one (#5914)
* Remove SUI modal

* Update modal positioning

* Clean up imports

* Restore removed size

* Add tests for Modal component

* Add border radius to actions

* Disable global scroll

* Introduce ESC_KEYCODE const

* Arrange props

* Change components definitions

* Change styled components to functional

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-08-24 12:14:34 +03:00
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
George Angelopoulos
1a1dfeaaf5
typo fix (#5704) 2021-06-29 05:58:40 +02:00
Jaco
aab27ca80f
Also display total nominator count (#5699)
* Also display total nominator count

* counter, not threshold
2021-06-27 06:23:50 +02:00
Jaco
5fafe37213
Bump API & common (#5692) 2021-06-26 11:49:35 +02:00
Jaco
d91bdcd191
Warn on staking min bond (#5674)
* Warn on staking min bond

* Warn on min validator amount
2021-06-24 13:46:09 +02:00
Jaco
299c95eb3d
Remove Substrate 2.0 generation payouts (#5612)
* Remove Subtrate 2.0 generation payouts

* Display available totals

* Empty available

* No need to check for batch availability

* Adjust headers

* Adjust views
2021-06-17 08:27:19 +02:00
Jaco
84091bd600
Adjust payout button groups (no content shift) (#5494) 2021-06-08 08:25:29 +02:00
Jaco
b5a3de5730
0.92 (#5475) 2021-06-07 11:40:04 +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
Chris Ganga
d22c82455f
use selected theme in the validator stats page (#5391)
* use selected theme in the validator stats page

* use table theme variables in validator stats page
2021-05-31 07:29:18 +02:00
Jaco
6dced3fe6b
Adjust Tabs usage (#5388)
* Adjust Tabs usage

* text
2021-05-29 07:53:02 +02:00
Jaco
e32c48755d
Display ideal staked (#5346) 2021-05-22 09:52:53 +02:00
Jaco
ece5999bea
Inflation adjustment (based on auctions) (#5326)
* Inflation adjustment (based on auctions)

* Adjust

* Adjust

* Apply adjustment after inflation

* Update packages/react-hooks/src/useInflation.ts
2021-05-22 09:34:33 +02:00
Jaco
f618d8b4b5
Adjust/simplify validator list rendering (#5345) 2021-05-22 08:43:36 +02:00
Jaco
f8490a6924
Hide para indicator on non relays (#5344) 2021-05-22 07:19:18 +02:00
Jaco
430cfc54d3
Badge for selected para validators (#5341) 2021-05-21 22:10:05 +02:00
Jaco
92443b64b8
Adjust focus for Validate/Session partials (#5321) 2021-05-19 10:19:41 +02:00
Jaco
7d1c12a0d4
Adjust slash creation for staking pages (#5311) 2021-05-18 12:06:35 +02:00
WoeOm
07af3f6279
Adapt Darwinia, Crab Network types (#5218) 2021-05-07 06:47:45 +02:00
Jaco
cf6c682333
Optional balances & timestamp (#5188) 2021-05-02 16:00:48 +02:00
Jaco
3f34af239b
Add check for reward destination existence (#5180)
* Add check for reward destination existence

* Align checks
2021-05-01 06:46:52 +02:00
Krzysztof Jelski
6bac862800
Check if accounts are loaded before hiding a tab (#5177) 2021-05-01 06:45:34 +02:00
Jaco Greeff
ecd6c5e53f
Tips & old-payouts via useBatchTx (#5056) 2021-04-12 13:06:24 +02:00
Jaco Greeff
e2687701ff
Bump deps (#5055) 2021-04-12 10:30:28 +02:00
Jaco Greeff
7c9aba6e4d
Extract batch creation into hook (#5005)
* Extract batch creation into hook

* Adjust

* Adjustfallback weight (just in-case...)

* Batch
2021-04-03 08:37:05 +02:00
SimonKraus
8463b8619a
fix(staking): fix typo (#4926)
fixed #4925

Co-authored-by: Simon Kraus <simon.kraus@tag24.de>
2021-03-25 08:36:00 +01: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
Nikos Kontakis
7c8ad1cbe8
fix typo in InputValidationController and in translations (#4881)
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-03-20 22:41:45 +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
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
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
ba4d14a836
Filter targets by blocking status (#4800) 2021-03-10 09:47:31 +01:00
Jaco Greeff
7d2d1842d1
Update deps (& berry) (#4765)
* Update deps (& berry)

* linting

* Additional

* Bumps

* jest babel helpers esm
2021-03-03 11:52:39 +01:00
Jaco Greeff
8226471cdd
Allow validator removal of nominators (#4747)
* Allow validator removal of nominators

* Updates

* Blocking

* Revert Dropdown

* Expand blocked

* typo

* Kick modal

* kicking operational

* Retrieve exposure
2021-03-01 13:45:03 +01:00
Jaco Greeff
adbf73eabb
Adjust calcs 2021-02-13 19:58:50 +01:00
Jaco Greeff
9b9cc54724
Add warning to bond, not send (#4656)
* Add warning to bond, not send

* Refresh update
2021-02-11 18:48:38 +01:00
Jaco Greeff
1a5f8fa4e1
Protect against overflows in target calcs (#4633) 2021-02-09 10:44:17 +01:00
Jaco Greeff
91bd4bb842
Check nomination amount on intial set (#4603) 2021-02-05 09:07:39 +01:00
Jaco Greeff
c1ed355706
Adjust staking max filter (#4600) 2021-02-04 19:24:16 +01:00
Jaco Greeff
332cd6bc3b
Add min staked to targets (#4599)
* Add min staked to targets

* token on total staked
2021-02-04 17:57:23 +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
Jaco Greeff
1b43ffa046
Ensure useState doesn't re-init with function calls (#4552)
* Ensure useState doesn't re-init with function calls

* extra

* Additional
2021-02-01 14:17:14 +01:00
WoeOm
1af085e642
Overrides types for Crab, Darwinia (#4543) 2021-01-30 08:41:22 +01:00
Jaco Greeff
2747c7a6ad
Staking warn inactive (#4511) 2021-01-27 14:19:57 +01:00