Commit Graph

215 Commits

Author SHA1 Message Date
Jaco
b4098280d0
Upgrade to latest react-router (#9230)
* Upgrade to latest react-router

* Additional

* Adjustment to tabs, dedupe routes

* Adjust for Route element={...} usage

* Align (soon-to-be-removed) gilt routing

* Change path='' to index
2023-03-28 09:35:15 +03:00
Jaco
4bfda46580
Swap TS resolution to base config (#9194)
* Swap TS resolution to base config

* Run build fixup before lint

* Adjust with specific comment on fixup
2023-03-17 12:55:10 +02:00
Jaco
2422145a24
Adjust spec with references (not able to bump ts 5 as of yet) (#9190)
* Bump to TS 5.0

* Revert TS bump (needs investigation)
2023-03-17 08:34:43 +02:00
Jaco
eacf028ba6
Use .js imports in src (#9132)
* Use .js imports in src

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Add WP extension aliases

* Bump dev

* Additional

* Additional

* Adjust extensionAlias order
2023-03-09 12:11:03 +02:00
Jaco
27098f34b8
Bump deps (#9040)
* Bump deps

* Bumps

* Adjust

* Adjust

* Adjust test imports

* Adjust

* Re-adjust

* Fix frequency package name

* Adjust build

* Adjust

* Fix before import

* Adjust

* require script

* Adjust checks

* Linting fixes

* Fix json alongside other tests

* Move fixup script

* Remove main type: "module"

* Adjust (some) tests

* Adjust chartjs imports

* Bump deps

* Adjust

* Bump deps

* Adjust styled imports

* Bump deps

* Adjust
2023-02-20 11:38:52 +02:00
Jaco
7d24f50c38
Bump deps (incl. TS) (#8931)
* Bump deps (incl. TS)

* Adjust ESM packages for Jest

* Yet more Jest hacks

* Make horrible jest config slightly prettier

* Unbump electron

* Fix external package deps
2023-02-03 15:01:45 +02:00
Jaco
3565edfb0f
Adjust TC/Council prop display (#8869) 2023-01-23 16:13:23 +02:00
Jaco
2bf56dbf11
Adjust styled injection (final round) (#8814)
* Adjust styled injection (final round)

* Fix (some) build issues

* Fix (some more) build errors

* ... it builds (... ship it!)
2023-01-15 19:53:55 +02:00
Jaco
e23de46715
DRY-ed table cell FormatBalance usage (#8810) 2023-01-15 13:41:48 +02:00
Jaco
e214c0fde8
Additional styled injection changes to components (#8809)
* Additional styled injection changes to components

* Couple more

* One from claims (previously missed)

* Adjust

* Fix some build issues

* Final build adjustments

* Adjust address whitepace

* Adjust bounties
2023-01-15 13:25:59 +02:00
Jaco
c3172ef8dd
Rework governance (1 & 2) styled injection (#8798)
* Rework governance (1 & 2) styled injection

* Remove unneeded styles
2023-01-14 14:33:00 +02:00
Jaco
8edbedd5a5
Move usePreimage to react-hooks (#8796)
* Move usePreimage to react-hooks

* Adjust import

* Additional
2023-01-14 12:45:47 +02:00
Peter White
357d969b60
Small fixes to provide council page compatibility (#8791)
* small fixes to provide council page compatibility

* Suggestions to get CI to lint

* Update packages/page-democracy/src/Overview/ProposalCell.tsx

Co-authored-by: Jaco <jacogr@gmail.com>
2023-01-14 10:52:01 +02:00
Jaco
20bc11708d
Ensure correct preimage is used for democracy (#8782)
* Ensure correct preimage is used for democracy

* Remove cast
2023-01-13 09:54:29 +02:00
sander2
a40c609d6e
fix: democracy page for chains without launchPeriod (#8780) 2023-01-13 07:07:06 +02:00
Jaco
e1727917d1
Remove label help tooltips (#8767)
* Remove label help tooltips

* Fix missed item

* Adjust

* adjust

* Back to defaults
2023-01-12 10:11:02 +02:00
Jaco
ff328328ac
Small update to menu sizing (#8769)
* Small update to menu sizing

* Additional

* Align all short address displays

* shor hashes, short addresses

* isLoading to inputs

* Adjust --tmp for Labelled

* jiggle endpoint display

* button sizes

* label sizing

* final label sizing

* column headers

* label padding

* parachain hashes
2023-01-12 09:36:21 +02:00
Jaco
ff28428ff0
Remove unmaintained HelpOverlay (#8765) 2023-01-11 20:26:32 +02:00
Jaco
edc2bab238
Adjust handling of old-style preimages (#8739)
* Adjust handling of old-style preimages

* Adjust old columns

* Adjust

* Don't pass isLatest around ... will break when we change

* Cater for old-style preimage retrieval
2023-01-09 22:38:51 +02:00
Jaco
f495761c0b
Add a placeholder for full balance retrieval (#8734)
* Add a placeholder for full balance retrieval

* Adjust sidebar

* Add --placeholder class

* staking overview placeholder

* Adjust preimage & council

* Account Summary

* Additional

* Additionals

* Some more around staking

* Slight opacity adjustment

* Last remaining for this round

* One final for now
2023-01-09 17:37:40 +02:00
Jaco
ac2e910d8b
Adjust Table borders (w/ spacing) (#8729)
* Adjust Table borders (w/ spacing)

* Background only on cells
2023-01-08 15:54:26 +02:00
Jaco
0d918762b8
Default conviction to 1x (democracy & referenda) (#8715) 2023-01-06 22:22:31 +02:00
Jaco
453a505d58
Predefine columns for Table favorites/expander (#8690)
* Predefine columns for Table favorites/expander

* Adjust header definition types

* Additional header typings

* lint override

* Add Table.Column.Id

* Use Table.Column.Favorite for staking
2023-01-05 17:39:02 +02:00
Jaco
e3824c04c3
Adjust Table component spacing (#8674)
* Adjust Table component spacing

* px

* Add isExpanded

* Cleanup border placement

* Ref sizing
2023-01-02 19:49:25 +02:00
Jaco
4929b1c6fd
Update headers for 2023 (#8665)
* Update headers for 2023

* Adjust env-config
2023-01-01 10:32:05 +02:00
Jaco
af51568305
Add isSplit on tables (unused) (#8659)
* Add isSplit on tables (unused)

* Remove unused styles
2022-12-31 12:18:12 +02:00
Jaco
f288a265a1
Add collapsible rows to democracy (#8656)
* Add collapsible rows to democracy

* Adjust padding

* shortHash

* Fix test text

* Move bounty links

* Fix contacts tests
2022-12-30 10:38:16 +02:00
Jaco
d4fa6b29a6
Explicit hash copy for preimages (#8620)
* Explicit hash copy for preimages

* Adjust
2022-12-24 09:59:16 +02:00
Jaco
685b6aa732
Always pass through voting lock period (#8601)
* Always pass through voting lock period

* const from voting pallet

* Only allow non-empty
2022-12-23 11:10:29 +02:00
Jaco
9154d7a31a
Split scheduler into seperate app (#8492) 2022-12-06 13:00:09 +02:00
Jaco
ddfe4ba9c1
Decode scheduler Lookup entries (#8487)
* Decode scheduler Lookup entries

* short hashes
2022-12-06 07:36:44 +02:00
Jaco
fe612d6dc9
Display inline scheduler entries (#8448) 2022-11-30 08:20:47 +02:00
Jaco
023844f2e3
Adjust council proposeExternal (basic, non-optimal detect) (#8403)
* Adjust council proposeExternal (basic, non-optimal detect)

* Democracy propose

* Check for notePreimage
2022-11-23 17:47:36 +02:00
Jaco
7639ac4bda
Support new preimages on v1 democracy (#8390) 2022-11-21 21:04:59 +02:00
Jaco
27964a4101
Adjust democracy display detection (#8383) 2022-11-21 17:55:40 +02:00
Jaco
dcc17b2114
Bump API (#8338)
* Bump API

* Adjust
2022-11-13 13:04:24 +02:00
Jaco
be919f5353
Adjust preimage hash styling (#8308)
* Adjust preimage hash styling

* Fix preimage retrieval

* Adjust

* Remove debug log
2022-11-11 10:41:36 +02:00
Jaco
3522d85e3c
Update preimage usage to latest Substrate (#8254)
* Update preimage usage to latest Substrate

* Optional storageFee

* Bump deps

* PreImage as HexString

* Fasttrack
2022-10-24 08:29:33 +03:00
Jaco
fcdca155eb
Introduce tracks for gov2 referenda (#8141)
* Introduce tracks for gov2 referenda

* Adjust

* Track name

* Submit dialog

* Start of origin selection

* Submission cont

* At/After blocks
2022-09-19 13:08:18 +03:00
Jaco
f7657e0902
Sort scheduler display (#7703) 2022-06-06 11:16:08 +03:00
Jaco
c55a15dc53
Extract Latency/API stats reusable chart (#7679)
* Extract Latency/API stats reusable chart

* Adjust
2022-06-02 11:54:47 +03:00
Jaco
76aad8360b
No voting for Fasttrack when members <= 1 (#7658)
* No voting for Fasttrack when members <= 1

* Don't include in batch
2022-05-30 12:40:00 +03:00
Yongfeng LI
a07b57d273
Add subsquare external links for Kusama (#7641)
* Add subsquare external links for Kusama

* Fix object key order

* Add external links for democracy external proposals
2022-05-30 10:07:26 +03:00
Jaco
1996d6949a
Disable Fasttrack with no batching (#7577) 2022-05-14 08:07:11 +03:00
Jaco
057f6c10d5
Adjust all LinkExtrenal to icons (#7513) 2022-05-03 15:17:21 +03:00
Jaco
fb3e35118e
Adjust API check order, ensure deposit is defaultValue (#7465) 2022-04-27 08:45:58 +03:00
Jaco
26dc5120b1
Dedupe into ExpanderScroll (#7380)
* Dedupe into ExpanderScroll

* Fix naming

* Use renderChildren

* Remove unused prop

* Adjust

* Adjust empty render
2022-04-16 10:25:11 +03:00
Gilles Barnier
aa928f10b4
Fix display issues on the democracy dashboard page (#7360)
* PR7304

* Update packages/page-democracy/src/Overview/ReferendumVote.tsx

Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com>

* Update packages/page-democracy/src/Overview/ReferendumVote.tsx

Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com>

* Update packages/page-democracy/src/Overview/Referendums.tsx

Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com>

* Update packages/page-democracy/src/Overview/Referendum.tsx

Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com>

* Update packages/page-democracy/src/Overview/Referendum.tsx

Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com>

* Update packages/page-democracy/src/Overview/Referendum.tsx

Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com>

* PR7304 after Jegor s comments

* aligned the donut in democracy and fixed the 100% bug on the pie chart

* - fixed the 100% issue with the donut
- fixed the remaining horizontal alignment
- removed the horizontal scrollbar in the votes table
- fixed the vertical alignment of the donut

* - added min and max height to the listed tables (referendum and proposal)
- added the same table listing as referendum to proposals

* Update packages/react-components/src/CallExpander.tsx

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

* Update packages/react-components/src/Expander.tsx

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

* Update packages/page-democracy/src/Overview/Proposal.tsx

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

* Update packages/page-democracy/src/Overview/Proposal.tsx

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

* Update packages/page-democracy/src/Overview/Proposals.tsx

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

* Update packages/page-democracy/src/Overview/Proposals.tsx

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

* Update packages/page-democracy/src/Overview/Referendum.tsx

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

* Update packages/page-democracy/src/Overview/Referendums.tsx

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

* Update packages/react-components/src/TxButton.tsx

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

* Update packages/react-components/src/LinkExternal.tsx

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

* Auto-lint fixes (after master merge)

* Use Progress component for democracy (#7376)

* Apply suggestions from code review

* Centering

Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com>
Co-authored-by: Jaco <jacogr@gmail.com>
2022-04-15 08:00:40 +03:00
Jaco
7093802088
Only disable fast-track on super majority (#7117) 2022-03-07 15:14:49 +02:00
Jaco
9d55ee8bbc
Fast Foreward icon (again) (#7115) 2022-03-07 13:47:27 +02:00