Commit Graph

166 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
George Angelopoulos
1a1dfeaaf5
typo fix (#5704) 2021-06-29 05:58:40 +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
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
92443b64b8
Adjust focus for Validate/Session partials (#5321) 2021-05-19 10:19:41 +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
Jaco Greeff
e2687701ff
Bump deps (#5055) 2021-04-12 10:30:28 +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
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
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
91bd4bb842
Check nomination amount on intial set (#4603) 2021-02-05 09:07:39 +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
Jaco Greeff
2747c7a6ad
Staking warn inactive (#4511) 2021-01-27 14:19:57 +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
Jaco Greeff
2d1da5332c
Staking fixes (comm, entries) (#4329)
* Staking fixes (comm, entries)

* Flatten
2021-01-06 11:15:19 +01:00
Jaco Greeff
6dbb188a1a
2021 (#4310) 2021-01-03 11:33:39 +01:00
Jaco Greeff
5e3c9185d7
Fix bond more isDisabled check (#4278) 2020-12-28 21:28:54 +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
Jaco Greeff
93b38ece21
Cleanup WebPack (#4258)
* Remove unused WP5 override

* Adjust

* Additional imports

* Adjust
2020-12-21 13:15:40 +01:00
Jaco Greeff
582d0a18cc
Warn on non-atomic batches (#4242) 2020-12-19 16:46:29 +01:00
Ewa Kowalska
541213f233
Ek extract type only imports into separate group (#4168)
* Plug new beta of eslint plugin simple import sort

* Apply new configuration to existing imports
2020-12-07 16:04:05 +01:00
Ewa Kowalska
87505b1c59
Eslint imports (#4037)
* Add eslint configuration

* Patch eslint plugin for sorting imports

* Apply eslint rules for imports
2020-12-01 14:40:42 +01:00
Jaco Greeff
e6d3c61176
Use type imports from @polkadot/types/interfaces (#4103)
* Move chain params to apps-config

* Use type imports from @polkadot/types/interfaces
2020-11-29 19:03:06 +01:00
Jaco Greeff
ca21879056
Staking accounts filtering (#4099) 2020-11-29 13:47:32 +01:00
Jaco Greeff
ab00ed377a
Validator chill refresh (#4082) 2020-11-26 13:50:21 +01:00
Jaco Greeff
7425ff11ee
Use batchAll as appropriate (#4066) 2020-11-24 19:23:04 +01:00
Jaco Greeff
a0b82d88a4
Use import type { ... } (#4052)
* Use import type { ... }

* value imports

* TypeDefInfo

* Apply suggestions from code review

* fixes... am going blind.
2020-11-19 16:20:14 +01:00
Jaco Greeff
fce4f76297
Adjust config imports/exports (#4051)
* Adjust config imports/exports

* Move type import

* yarn

* drive-by type imports
2020-11-19 14:17:29 +01:00
Jaco Greeff
dfdf75ba2b
On-demand Expander rendering (#4039)
* On-demand Expander rendering

* Use indexes, not progress
2020-11-17 15:33:13 +01:00
Jaco Greeff
b62def9a87
Allow selection of payment destination (#3956) 2020-11-01 09:50:33 +01:00
Jaco Greeff
922c786e9b
Bump deps (#3926)
* Bump deps

* Additional bumps

* New linting

* Solve styling issues

* Revert style adjustments (logged)
2020-10-24 09:59:09 +02:00
Jaco Greeff
364bb3bcfc
Revert https://github.com/polkadot-js/apps/pull/3922 (#3923)
* Revert "[CI Skip] release/beta 0.63.2-18"

This reverts commit a11d5fd582.

* Revert "Bump deps (#3922)"

This reverts commit b698fb4961.
2020-10-23 15:35:29 +02:00
Jaco Greeff
b698fb4961
Bump deps (#3922)
* Bump deps

* linting

* external dep resolution
2020-10-23 14:54:13 +02:00
Jaco Greeff
59623f419b
(Very) experimental dark theme (only localhost) (#3731)
* (Very) experimental dark theme (only localhost)

* Listener for theme changes

* ThemeProps

* Use actual theme with colors

* Page background

* Adjust with theme.bgPage

* Table adjustments

* Some progress (menu & inputs)

* Adjustments in a number of places

* Progress colors

* Modals

* Some calandar stuff

* Toggle

* Updates

* Hack around dropdowns

* Popup menus

* Overlays

* Connecting overlays
2020-10-01 15:50:33 +02:00
Thibaut Sardan
e1424e5a4d
Show nomination balance below nominees (#3714)
* show nomination balance belo nominees

* alphabetical order

* with useCall and useMemo

* derive staking may be undefined

* Update packages/page-staking/src/Actions/Account/ListNominees.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Update packages/page-staking/src/Actions/Account/ListNominees.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Update packages/page-staking/src/Actions/Account/ListNominees.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-09-18 15:42:04 +02:00
Jaco Greeff
7ba7339d96
SPDX (#3705) 2020-09-17 16:46:46 +02:00
Jaco Greeff
3dc3f2b1f5
Add Account as payout desitination (#3684) 2020-09-15 13:13:02 +02:00
Jaco Greeff
fab8c86dfa
Expander adjustment (right-align, icons) (#3668)
* Expander adjustment (right-align, icons)

* Alignements

* caret

* caret alignment
2020-09-12 12:14:47 +02:00
Jaco Greeff
731408696a
i18n for rewardDesitination options (#3650) 2020-09-10 10:17:36 +02:00
Jaco Greeff
d17efb4014
Display reward destination for isAccount (#3646)
* Display reward desitnation for isAccount

* Allow adjustment of destination
2020-09-09 16:21:59 +02:00