Commit Graph

28 Commits

Author SHA1 Message Date
Jaco
6aba26bf4e
Revert "Account row collapsible row details (#5894)" (#5974)
This reverts commit 466a1be22f.
2021-08-19 17:47:18 +02:00
Marcin Wachulski
466a1be22f
Account row collapsible row details (#5894)
* Retrofitting basic unit tests to Accounts

Extraction of useAccounts and useBalance hooks

* Retrofitting basic unit tests to Accounts

Extraction of useAccounts and useBalance hooks

* Fixing accounts unit tests - basic account balances

* Cleaning up after PR remarks

* Fixing arrangements of balances 1/3

Moving ArrangedAccount around

* Add useStakingInfo hook

* Adopt linter suggestions

* Fixing arrangements of balances 2/3

Linking arranged balances values to mocked balances calls.

* Fixing arrangements of balances 3/3

Formatting utils made consistent

* Details row odd-even + (un)hide

* Improving th/td/footer layout

* Add tags to details row

* Changing layout of account balance with details

* Add total/details balances unit tests

* Add tags unit tests

* Clean up of TODOs, adding comments

* Improve tags unit testing

* Alternate account row details coloring unit test

* Row details toggling unit tests

* Row details toggling unit tests - bad commit fix

* Style address balances (#5897)

* Fix jumping column problem

* Improve balances positioning

* Format sidebar

* Position header

* Extract common formatting of balances in tests.

Thx @vitaliyworks, great hint.

* Revert Sidebar styling

* Use rems

* Lint

* Use useToggle for expanding account row

* Add tags header

* Apply FormatBalance review comments

* Display parent account info above account name (#5947)

* Display parent address

* Improve layout

* Set keyring in tests

* Remove redundant code from components

* Use derivedAccount only in specific test

* Apply lint fixes

* Remove parent column from expanded row

* Apply review suggestions

* Improve styling in ParentAddress component

* Improve layout of parent address and add short address

* Apply review suggestions

* Use map instead of for loops

Co-authored-by: Marcin Wachulski <marcin@ethworks.io>
Co-authored-by: Vitaliy Mysak <vitaliy@ethworks.io>
Co-authored-by: MiZiet <55240109+MiZiet@users.noreply.github.com>
Co-authored-by: MiZiet <michalzietalak@o2.pl>
Co-authored-by: Ewa Kowalska <30404388+ekowalsk@users.noreply.github.com>
Co-authored-by: Ewa Kowalska <ewcia.kowalska@gmail.com>
2021-08-19 16:42:46 +02: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
6dbb188a1a
2021 (#4310) 2021-01-03 11:33:39 +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
Jaco Greeff
f86cc1a689
Small target opts (incl. non-selected sorting) (#4159)
* Small target opts (incl. non-selected sorting)

* Remove last dangling validatorPayment
2020-12-04 16:21:50 +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
7ba7339d96
SPDX (#3705) 2020-09-17 16:46:46 +02:00
Jaco Greeff
cf03e360a7
Adjust parent media breakpoint (#3234) 2020-07-19 21:28:37 +02:00
Jaco Greeff
8ed93360d9
Rework Button (#3171)
* Rework Button

* Input dropdown buttons

* Adjust cursor & border (InputNumber SI, disabled)

* first/last-of-byte in Button.Group

* Cleanup classes

* Cleanup linting

* Small cleanups

* Swap to actual <button ...>

* Sidebar adjust

* Adjust className creation

* Adjust signer toggle

* Button disabled cursor

* Poll adjust loading

* Basic buttons, SideBar with theme

* Adjust button styling

* Adjust Button shadows
2020-07-13 21:25:12 +02:00
Jaco Greeff
88d81b0ac3
Flatten IdentityIcon wrappers (#3170)
* Flatten IdentityIcon wrappers

* Cleanup onCopy
2020-07-12 11:25:49 +02:00
Jaco Greeff
59f430e219
Cleanup AddressName display (#3166)
* Cleanup AddressName display

* It compiles... ship it.
2020-07-11 14:54:31 +02:00
Jaco Greeff
176c7e9e8b
API bumps & small block display adjustment (#3025)
* API bumps & small block display adjustment

* Adjust for new multisig metadata

* Staking table badge class
2020-06-22 12:10:56 +02:00
Jaco Greeff
5bae454865
Media adjustments with AddressSmall (#3019)
* Media adjustments with AddressSmall

* Update packages/page-staking/src/Targets/Validator.tsx
2020-06-21 18:30:48 +02:00
Jaco Greeff
c60ba8708a
Bumps w/ eslint (#2802)
* Bumps w/ eslint

* Additional

* Additional

* Additional

* Additional

* Remove style props

* Additional

* Additional

* Additional

* Additional (< 100)

* eslint passes, tsc next

* tsc fixes

* Update deps

* Update i18n
2020-05-24 19:41:14 +02:00
Jaco Greeff
b5c2d9b239
Adjust IdentityIcon defaults (#2710) 2020-05-08 17:01:18 +02:00
Keith Ingram
9703811f8b
AddressMenu popup when clicking on address name (#2563)
* AddressMenu

* use menu

* refactor

* draft

* cleanup

* Sidebar

* Sidebar

* improvements

* redesign

* bump

* Small adjustments

* Layout adjustments, useCallbacks (not perfect...)

* Remove _setName with extra effect, re-add badges (edit missing)

* Missing useCallback in Address

* no withSidebar on AddressToggle

* useAccountInfo CPU spikes (split effects, no useCallback deps)

* Alway have underline (even on address)

* secondary button color

* Add name callback

* Make identity appear with displayname

* Adjust judgement button position

* UI adjustments

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-04-22 19:43:20 +02:00
Jaco Greeff
9fde464c11
Bump dev, JSX prop rules (#2499) 2020-04-01 15:30:08 +02:00
Jaco Greeff
76b16913c2
Cleanups for AccountName (#2446)
* Cleanus for AccountName

* Remove unused toggle prop

* Re-add toggle
2020-03-23 17:18:31 +01:00
Jaco Greeff
304dab95cc
Add React.memo to some components (#2375)
* Add React.emomo to some components

* Linting
2020-03-12 11:15:38 +01:00
Jaco Greeff
4d1908ed4d Bump API 2020-03-09 19:23:39 +01:00
Jaco Greeff
562e11dc06
Bump deps (#2091) 2020-01-06 16:16:50 +01:00
Jaco Greeff
a4ce84339e
Cleanup display from identity (#2081)
* Cleanup display from identity

* Bump API
2019-12-20 12:44:34 +01:00
Jaco Greeff
08adfbc43f
Provide judgement via account hover (#2078)
* Provide judgement via account hover

* Click to provide judgement
2019-12-19 13:08:21 +01:00
Jaco Greeff
6c58db0187
Small cleanups on withCalls (#2040)
* Fixups

* More

* Some withCalls -> useCall

* Linting

* Always defined

* Re-apply democracy changes

* TimePeriod adjusted

* Cleanup imports

* Additional

* More conversions

* Small loading cleanups

* Small context updates
2019-12-13 15:55:15 +01:00
Jaco Greeff
ee83086c4a
Rework address & accounts layout (#2008)
* Display accounts as rows

* Tags display

* Accounts seem ok (as a start)

* Filter by tags

* Don't add new tags via input

* Convert addresses

* Adjustments
2019-12-06 14:01:58 +01:00
Jaco Greeff
ffbea9788c
Democracy display updates (#1974)
* Democracy updates

* Democracy UI cleanups

* Cleanup labels

* Move seconding, again...
2019-12-02 13:51:29 +01:00