MiZiet
ca6c592349
Style redeemable balance ( #6220 )
...
Co-authored-by: Ewa Kowalska <ewcia.kowalska@gmail.com>
2021-10-06 14:53:17 +03:00
Ewa Kowalska
03a58ad8e7
Style badges in accounts list ( #6208 )
2021-10-06 11:48:47 +02:00
MiZiet
053e0efca2
Split registrars display ( #6157 )
...
* Add subs modal
* Add tests
* Add Translations
* Improve closing modal
* Improve tests
* Improve styles
* Style balances & identity
* Optimize imports
* Improve styles
* Set greater width to balance section
* Rename subs modal toggle
* Change 'amount' to 'count' in test name
* Set make modal header fixed while content is scrollable
* Style multisig
* Update multisig styles
* Capitalize headers
* Move sidebar tests to Sidebar.spec.tsx
* Remove duplications in tests
* Add UserIcon component
* Revert subs modal changes and add scrollable section in Sidebar
* Remove unused styles
* Use accountsPage clearAccount method
* Wrap subs into Expander
* Add useSubidentities hook
* Adjust api mock in tests
* WIP - split judgements
* Display judgements
* Handle no judgements case
* [WIP] Add popup test
* Extract JudgmentTag component
* Add popup test
* Refactor tests and remove pointer from no judgements tag
* Extract JudgementTag test class
* Close popup on scroll
* Remove old section
* Clean registration
* Clean up identity in useAccountInfo and mock in Page
* Remove fragment tag
* Fix imports
* Move SortedJudgements to /types
* Move Registrar interface to types
* Refactor clickRegistrar fcn
* Move hasAccount check to isRegistrar
* Add useJudgements hook
* Rename and move getJudgementColor to utils
* Fix import and casting in tests
* Sort imports
* Add review fixes
* Fix tests
Co-authored-by: Krzysztof Jelski <krzysztof@ethworks.io>
Co-authored-by: Ewa Kowalska <ewcia.kowalska@gmail.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-09-29 10:45:34 +02:00
Ewa Kowalska
93091ba434
Fix colouring issue when filtering ( #6166 )
...
* WIP - fix coloring
* Fix row coloring
* Remove unnecessary test
* Apply review suggestions
* Update yarn lock file
* Apply review suggestion
* Restore row coloring in Extensions.tsx
* Remove unused field index in class Row
Co-authored-by: MiZiet <michalzietalak@o2.pl>
2021-09-22 15:52:14 +02:00
Ewa Kowalska
1e7dc8b399
Apply the same filter and buttons style to Contacts as in Accounts ( #6155 )
...
* Extract FilterInput component
* Apply filter input and buttons style as in accounts
* Remove filter--tags class name
2021-09-20 19:52:27 +02:00
Jaco
6fbc0e33bb
User getSiName from @polkadot/types ( #6153 )
2021-09-20 10:33:23 +02:00
Jaco
829830b83a
Adjust query type display ( #6150 )
...
* Adjust query type display
* linting
* Fix test page
2021-09-19 17:58:56 +02:00
MiZiet
42ef182879
Style identity and balance sections in sidebar ( #6096 )
...
* Add subs modal
* Add tests
* Add Translations
* Improve closing modal
* Improve tests
* Improve styles
* Style balances & identity
* Optimize imports
* Improve styles
* Set greater width to balance section
* Rename subs modal toggle
* Change 'amount' to 'count' in test name
* Set make modal header fixed while content is scrollable
* Style multisig
* Update multisig styles
* Capitalize headers
* Move sidebar tests to Sidebar.spec.tsx
* Remove duplications in tests
* Add UserIcon component
* Revert subs modal changes and add scrollable section in Sidebar
* Remove unused styles
* Use accountsPage clearAccount method
* Wrap subs into Expander
* Add useSubidentities hook
* Adjust api mock in tests
* WIP - split judgements
* Revert mistaken commit
Co-authored-by: Krzysztof Jelski <krzysztof@ethworks.io>
Co-authored-by: Ewa Kowalska <ewcia.kowalska@gmail.com>
2021-09-19 08:49:23 +02:00
Jaco
76e21f78c6
Fix Map single-arg queries on v14 ( #6146 )
2021-09-18 09:53:27 +02:00
Jaco
73e3a32aba
Support for v14 metadata ( #5927 )
...
* Support for v14 metadata
* sessionIds as map or array
* Cleanups
* Some storage page adjustments
* Arg mapping, no filterOrigin
* Use base64Encode in metadata
* Cleanups
* Storage cleanups
* Additional
* Use API types
* typo
* Storage historic compat
* Const input type
* Bumps
* Bumps
* Bumps
* Force salt to string
2021-09-18 08:18:51 +02:00
Krzysztof Jelski
ca8bbd1836
Reduce warnings in tests ( #6132 )
...
* Change i18next from wait to suspense (resolves console warning in app and in tests)
* Reduce error and warning output in fast tests
2021-09-16 15:08:53 +02:00
MiZiet
25c275cd13
Style sort dropdown ( #6099 )
...
* Style sort dropdown
* Use default icons
* Use rems
* Extract border-input variable
2021-09-14 09:03:44 +02:00
Jaco
162470d80e
Only allow Gilt bids via proxy ( #6103 )
...
* Only allow Gilt bids via proxy
* Proxy actual bid
* Fix summary
2021-09-13 07:23:28 +02:00
Ewa Kowalska
ad8226a5c3
Account sidebar - single button for editing name and tags ( #6049 )
...
* WIP - merge edition of account name and tags
* [WIP] - tests
* Apply test improvements
* Improve tests
* Improve tests and use useCallback
* WIP - add cancel button
* Outside click
* Add more tests
* Apply styling
* Add opacity on not editable elements
* Remove unnecessary code and fix type of sidebar ref
* Disable eslint rule
* Place edit button within account menu buttons
* Adjust test setup
* Ato-lint fixes
* Update styles
* Apply review suggestions
* Remove unused styles and change type of sidebar ref
* Remove onCancel from useAccountInfo hook
* Fix issue with edit button
* Apply review suggestions, remove tests
* Adjust tests
* Simplify tests
* Apply lint fixes
* Change layout of buttons
Co-authored-by: MiZiet <michalzietalak@o2.pl>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-09-09 19:40:09 +02:00
Vitaliy
734c3c653a
Add sorting for accounts view ( #5923 )
...
* Show basic balance info
* Show bonded summary
* Show redeemable summary
* Show unbonding summary
* Adopt linter suggestions
* Hide cards with zero balance
* Apply simplifications
Co-authored-by: Jaco <jacogr@gmail.com>
* Remove dead code
* Simplify balance==undefined case
* Add summary bar tests (#5890 )
* Add tests for summary bar
* Improve test case name
Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>
* Factor empty render into a beforeEach block
* Improve name of helper variable
Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>
* Construct correct instance for StakingLedger.active
* Override only the relevant parts in each test case
* Simplify test cases
Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>
* Sort by total balance and by type
* Rename "clas" to "htmlClass"
* Extract DEFAULT_SORT_CONTROLS constant
* Move stableSort to its own file
* Optimize sorting on accounts page
* Adopt new sorting design
* Apply suggestions from code review
Co-authored-by: Jaco <jacogr@gmail.com>
* Remove stableSort function
* Move Dropdown css to Account styles
* Add tests for sorting
* Adjust tests and apply lint fixes
* Apply lint fixes
* Improve row coloring and styling of button for sort direction
* Improve styling
* Fix tests setup and bug connected with cloning accounts
* Restore condition
* Fix imports
Co-authored-by: Jaco <jacogr@gmail.com>
Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>
Co-authored-by: MiZiet <michalzietalak@o2.pl>
Co-authored-by: Ewa Kowalska <ewcia.kowalska@gmail.com>
2021-09-06 14:14:56 +02:00
Jaco
302df65239
Fix democracy icon location ( #6077 )
2021-09-06 11:52:51 +02:00
Jaco
5eecad1635
Bump deps ( #6072 )
...
* Bump deps
* Bumps
2021-09-05 14:37:55 +02:00
MiZiet
9b81349946
Add hover to the expand button ( #6052 )
...
* Extract ExpandButton
* Add simple hover
* Lint fixes after merge
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-09-03 09:40:49 +02:00
Jaco
2693f18f8b
Adjust balance alignment ( #6051 )
...
* Adjust balance alignment
* Slight adjustment to row gaps
2021-09-02 08:15:49 +03:00
Jaco
a7fade8724
Jest config cleanup ( #6053 )
...
* Jest config cleanup
* auto-lint fixes
2021-09-01 21:38:45 +03:00
MiZiet
a4c431ce92
Allow keyboard navigation in create account modal ( #5968 )
...
* 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
* Allow keyboard navigation in create account modal
* Change toggle to set(true) in open modal button onClick
* Restore slow tests
* Refactor tests
* Add empty lines
* Wrap setIsCreateOpen in useCallback
* Rename activeOnEnterKeyPress to activeOnEnter
* Extract mockStatusChange fn
* Hoist noop fn out of component
* Fix hook mock
Co-authored-by: Ewa Kowalska <ewcia.kowalska@gmail.com>
2021-09-01 12:17:37 +02:00
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
Ewa Kowalska
e7d77a1a26
Style flags ( #6003 )
...
* Style tags
* Improve styling
* Apply lint fixes
* Extract flag styles to Flag component
* Export Flag component from index file
* Add margins
* Remove unnecessary code
2021-08-28 10:47:23 +03:00
Ewa Kowalska
c7416ae159
Account row collapsible row details ( #5975 )
...
* 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
* Fix display of AddressSmall
* Fix height of icons in AddressSmall
* Fix bouncing cells in address row
* Fix density of accounts display
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: Jaco Greeff <jacogr@gmail.com>
2021-08-26 13:02:24 +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
Ewa Kowalska
85bc648779
Replace sidebar text links with icons ( #5999 )
2021-08-24 17:06:21 +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
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
Vitaliy
c9aef5cfe9
Add summary bar for accounts view ( #5876 )
...
* Show basic balance info
* Show bonded summary
* Show redeemable summary
* Show unbonding summary
* Adopt linter suggestions
* Hide cards with zero balance
* Apply simplifications
Co-authored-by: Jaco <jacogr@gmail.com>
* Remove dead code
* Simplify balance==undefined case
* Add summary bar tests (#5890 )
* Add tests for summary bar
* Improve test case name
Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>
* Factor empty render into a beforeEach block
* Improve name of helper variable
Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>
* Construct correct instance for StakingLedger.active
* Override only the relevant parts in each test case
* Simplify test cases
Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>
Co-authored-by: Jaco <jacogr@gmail.com>
Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>
2021-08-18 11:26:12 +02:00
MiZiet
5c1f6729bc
Style tags ( #5893 )
...
* Style tags
* Style Input tags
* Change delete tag icon
* Update colors
* Style flags
* Apply review suggestions
Co-authored-by: Ewa Kowalska <ewcia.kowalska@gmail.com>
2021-08-14 09:10:21 +02:00
Jaco
255cdae2f0
0.95.1 ( #5908 )
2021-08-02 14:21:45 +02:00
Jaco
4eaba98c86
Bump API ( #5871 )
2021-07-23 08:52:12 +02:00
Jaco
b3e8226263
Bump API ( #5850 )
...
* Bump API
* Bump deps
2021-07-19 17:01:25 +02:00
Jaco
c3da616b55
Ensure siDefault is always used on InputNumber ( #5810 )
2021-07-12 06:33:50 +02:00
Jaco
8a898c6b6d
Bump deps ( #5789 )
...
* Bump deps
* Updates
* Rewrite translation keys
* Lint fixes
2021-07-08 06:24:01 +02:00
Jaco
ef27b9aea5
Check number for <= max (not < max) ( #5713 )
...
* Check number for <= max (not < max)
* Use gt (aligns with comment)
2021-06-29 07:39:59 +02:00
Jaco
a7f4b4c2f1
Add tabIndex=-1 to all hints ( #5703 )
2021-06-29 06:50:17 +02:00
Jaco
42f2bdfc18
Bump deps ( #5681 )
2021-06-25 09:55:35 +02:00
Jaco
a44faff60d
Bump deps ( #5665 )
...
* Bump deps
* Use override
* additional override
2021-06-23 11:21:24 +02:00
Jaco
5401577bbc
Adjust contribution state update (& indicator) ( #5561 )
2021-06-11 09:48:28 +02:00
Jaco
a2da532cb5
Display homepage links for crowdloans ( #5521 )
...
* Display homepage links for crowdloans
* Update packages/apps-config/src/endpoints/productionRelayKusama.ts
2021-06-09 11:15:14 +02:00
Jaco
0e72723b7b
Enable Statemine <-> Kusama (w/ fees) ( #5495 )
...
* Enable Statemine <-> Kusama (w/ fees)
* Retrievals
* text
2021-06-08 11:08:15 +02:00
Jaco
ef2906ad0a
Adjust icon based on spec ( #5491 )
...
* Adjust icon based on spec
* Rococo
* Remove unneeded console.error in tests
2021-06-08 08:05:39 +02:00
Jaco
951af6454a
Balance display with SI units ( #5440 )
...
* Balance display with SI units
* Remove extra logs
* Always return SiDef
* Update packages/react-components/src/InputNumber.tsx
* Only use SI (detected) in isDisabled
* Move logic
2021-06-04 10:13:32 +02:00
Jaco
42c5e4ae6c
Call decoder ( #5435 )
...
* Call decoder
* Allow for extrinsics to be decoded
2021-06-03 16:47:16 +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
6dced3fe6b
Adjust Tabs usage ( #5388 )
...
* Adjust Tabs usage
* text
2021-05-29 07:53:02 +02:00
Jaco
4adfaf3098
Logo/colors based on specName ( #5325 )
2021-05-19 08:58:03 +02:00