Skip to content

Commit 4e1eba9

Browse files
authored
0.51 (#3277)
* 0.51 * Completed on poll * Remove Toggle completely after poll
1 parent 58ea293 commit 4e1eba9

File tree

35 files changed

+270
-244
lines changed

35 files changed

+270
-244
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# CHANGELOG
22

3+
## 0.51.1 Jul 27, 2020
4+
5+
- Support for Acala chain and types (Thanks to https://github.com/aniiantt)
6+
- First batch of i18n for Arabic (Thanks to https://github.com/nightwolf3)
7+
- Update for Polkadot council thresholds
8+
- Council motion adjustment to cater for current and previous generations
9+
- Adjust imminent proposals to not need own type adjustments
10+
- Cleanup voting totals to only take free into account
11+
- Support JSON v3 formats with kdf
12+
- Always display time left in countdowns, not blocks
13+
- Adjust progress component to be circular
14+
- Rename "Deposit" button to "Send" button (less confusion)
15+
- Ensure new generation tip cancel works for council & users
16+
- Split council votes in backing & number of votes
17+
- Adjust council motions to have the correct max display for nay votes
18+
- Adjust payout toggles with increasing day increments
19+
- Adjust button formats & layouts
20+
- Adjust council slashing params to cater for current generation
21+
- Fixed for keyboard locale detection
22+
- Don't allow display in an iframe
23+
324
## 0.50.1 Jul 20, 2020
425

526
- Adjust CSPs for Electron (Thanks to https://github.com/EthWorks)

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"packages": [
1111
"packages/*"
1212
],
13-
"version": "0.51.0-beta.34"
13+
"version": "0.51.0"
1414
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"main": "packages/apps-electron/build/electron.js",
55
"description": "An Apps portal into the Polkadot network",
66
"author": "Jaco Greeff <jacogr@gmail.com>",
7-
"version": "0.51.0-beta.34",
7+
"version": "0.51.0",
88
"license": "Apache-2",
99
"private": true,
1010
"homepage": ".",
@@ -33,10 +33,10 @@
3333
"afterSign": "electron-builder-notarize"
3434
},
3535
"resolutions": {
36-
"@polkadot/api": "^1.26.0-beta.4",
37-
"@polkadot/api-contract": "^1.26.0-beta.4",
36+
"@polkadot/api": "^1.26.1",
37+
"@polkadot/api-contract": "^1.26.1",
3838
"@polkadot/keyring": "^3.0.1",
39-
"@polkadot/types": "^1.26.0-beta.4",
39+
"@polkadot/types": "^1.26.1",
4040
"@polkadot/util": "^3.0.1",
4141
"@polkadot/util-crypto": "^3.0.1",
4242
"@polkadot/wasm-crypto": "^1.2.1",

packages/apps-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polkadot/apps-config",
33
"private": true,
4-
"version": "0.51.0-beta.34",
4+
"version": "0.51.0",
55
"main": "index.js",
66
"repository": "https://github.com/polkadot-js/apps.git",
77
"author": "Jaco Greeff <jacogr@gmail.com>",

packages/apps-electron/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"name": "@polkadot/apps-electron",
33
"main": "index.js",
44
"private": true,
5-
"version": "0.51.0-beta.34",
5+
"version": "0.51.0",
66
"dependencies": {
77
"@babel/core": "^7.10.5",
88
"@babel/polyfill": "^7.10.4",
99
"@polkadot/dev": "^0.55.28",
10-
"@polkadot/react-components": "0.51.0-beta.34",
10+
"@polkadot/react-components": "0.51.0",
1111
"electron-log": "^4.2.2",
1212
"electron-updater": "^4.3.4"
1313
},

packages/apps-routing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polkadot/apps-routing",
33
"private": true,
4-
"version": "0.51.0-beta.34",
4+
"version": "0.51.0",
55
"main": "index.js",
66
"repository": "https://github.com/polkadot-js/apps.git",
77
"author": "Jaco Greeff <jacogr@gmail.com>",

packages/apps/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polkadot/apps",
33
"private": true,
4-
"version": "0.51.0-beta.34",
4+
"version": "0.51.0",
55
"description": "An Apps portal into the Polkadot network",
66
"main": "index.js",
77
"homepage": ".",
@@ -17,8 +17,8 @@
1717
"@babel/polyfill": "^7.10.4",
1818
"@babel/runtime": "^7.10.5",
1919
"@polkadot/dev": "^0.55.28",
20-
"@polkadot/react-components": "0.51.0-beta.34",
21-
"@polkadot/react-signer": "0.51.0-beta.34",
20+
"@polkadot/react-components": "0.51.0",
21+
"@polkadot/react-signer": "0.51.0",
2222
"query-string": "^6.13.1"
2323
},
2424
"devDependencies": {

packages/page-accounts/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polkadot/app-accounts",
33
"private": true,
4-
"version": "0.51.0-beta.34",
4+
"version": "0.51.0",
55
"main": "index.js",
66
"repository": "https://github.com/polkadot-js/apps.git",
77
"author": "Jaco Greeff <jacogr@gmail.com>",
@@ -12,8 +12,8 @@
1212
"license": "Apache-2.0",
1313
"dependencies": {
1414
"@babel/runtime": "^7.10.5",
15-
"@polkadot/react-components": "0.51.0-beta.34",
16-
"@polkadot/vanitygen": "^0.17.1",
15+
"@polkadot/react-components": "0.51.0",
16+
"@polkadot/vanitygen": "^0.18.1",
1717
"detect-browser": "^5.1.1",
1818
"file-saver": "^2.0.2"
1919
}

packages/page-claims/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polkadot/app-claims",
33
"private": true,
4-
"version": "0.51.0-beta.34",
4+
"version": "0.51.0",
55
"description": "An app for claiming Polkadot tokens",
66
"main": "index.js",
77
"scripts": {},
@@ -13,7 +13,7 @@
1313
"license": "Apache-2.0",
1414
"dependencies": {
1515
"@babel/runtime": "^7.10.5",
16-
"@polkadot/react-components": "0.51.0-beta.34",
16+
"@polkadot/react-components": "0.51.0",
1717
"secp256k1": "^3.8.0"
1818
}
1919
}

packages/page-contracts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polkadot/app-contracts",
33
"private": true,
4-
"version": "0.51.0-beta.34",
4+
"version": "0.51.0",
55
"description": "Deployment and management of substrate contracts",
66
"main": "index.js",
77
"scripts": {},
@@ -12,6 +12,6 @@
1212
"license": "Apache-2.0",
1313
"dependencies": {
1414
"@babel/runtime": "^7.10.5",
15-
"@polkadot/api-contract": "^1.26.0-beta.4"
15+
"@polkadot/api-contract": "^1.26.1"
1616
}
1717
}

packages/page-council/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polkadot/app-council",
33
"private": true,
4-
"version": "0.51.0-beta.34",
4+
"version": "0.51.0",
55
"description": "Council",
66
"main": "index.js",
77
"scripts": {},
@@ -12,7 +12,7 @@
1212
"license": "Apache-2.0",
1313
"dependencies": {
1414
"@babel/runtime": "^7.10.5",
15-
"@polkadot/react-components": "0.51.0-beta.34",
16-
"@polkadot/react-query": "0.51.0-beta.34"
15+
"@polkadot/react-components": "0.51.0",
16+
"@polkadot/react-query": "0.51.0"
1717
}
1818
}

packages/page-dashboard/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polkadot/app-dashboard",
33
"private": true,
4-
"version": "0.51.0-beta.34",
4+
"version": "0.51.0",
55
"description": "Dashboard for all apps, allowing for an overview and quick navigation",
66
"main": "index.js",
77
"scripts": {},
@@ -12,7 +12,7 @@
1212
"license": "Apache-2.0",
1313
"dependencies": {
1414
"@babel/runtime": "^7.10.5",
15-
"@polkadot/apps-routing": "0.51.0-beta.34",
16-
"@polkadot/react-components": "0.51.0-beta.34"
15+
"@polkadot/apps-routing": "0.51.0",
16+
"@polkadot/react-components": "0.51.0"
1717
}
1818
}

packages/page-democracy/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polkadot/app-democracy",
33
"private": true,
4-
"version": "0.51.0-beta.34",
4+
"version": "0.51.0",
55
"description": "A referendum & proposal app",
66
"main": "index.js",
77
"scripts": {},
@@ -12,7 +12,7 @@
1212
"license": "Apache-2.0",
1313
"dependencies": {
1414
"@babel/runtime": "^7.10.5",
15-
"@polkadot/react-components": "0.51.0-beta.34",
16-
"@polkadot/react-query": "0.51.0-beta.34"
15+
"@polkadot/react-components": "0.51.0",
16+
"@polkadot/react-query": "0.51.0"
1717
}
1818
}

packages/page-explorer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polkadot/app-explorer",
33
"private": true,
4-
"version": "0.51.0-beta.34",
4+
"version": "0.51.0",
55
"main": "index.js",
66
"repository": "https://github.com/polkadot-js/apps.git",
77
"author": "Jaco Greeff <jacogr@gmail.com>",
@@ -12,6 +12,6 @@
1212
"license": "Apache-2.0",
1313
"dependencies": {
1414
"@babel/runtime": "^7.10.5",
15-
"@polkadot/react-components": "0.51.0-beta.34"
15+
"@polkadot/react-components": "0.51.0"
1616
}
1717
}

packages/page-extrinsics/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polkadot/app-extrinsics",
33
"private": true,
4-
"version": "0.51.0-beta.34",
4+
"version": "0.51.0",
55
"main": "index.js",
66
"repository": "https://github.com/polkadot-js/apps.git",
77
"author": "Jaco Greeff <jacogr@gmail.com>",
@@ -12,8 +12,8 @@
1212
"license": "Apache-2.0",
1313
"dependencies": {
1414
"@babel/runtime": "^7.10.5",
15-
"@polkadot/react-components": "0.51.0-beta.34",
16-
"@polkadot/react-params": "0.51.0-beta.34",
17-
"@polkadot/react-signer": "0.51.0-beta.34"
15+
"@polkadot/react-components": "0.51.0",
16+
"@polkadot/react-params": "0.51.0",
17+
"@polkadot/react-signer": "0.51.0"
1818
}
1919
}

packages/page-generic-asset/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polkadot/app-generic-asset",
33
"private": true,
4-
"version": "0.51.0-beta.34",
4+
"version": "0.51.0",
55
"description": "A basic GenericAsset transfer app",
66
"main": "index.js",
77
"scripts": {},
@@ -12,6 +12,6 @@
1212
"license": "Apache-2.0",
1313
"dependencies": {
1414
"@babel/runtime": "^7.10.5",
15-
"@polkadot/react-components": "0.51.0-beta.34"
15+
"@polkadot/react-components": "0.51.0"
1616
}
1717
}

packages/page-js/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polkadot/app-js",
33
"private": true,
4-
"version": "0.51.0-beta.34",
4+
"version": "0.51.0",
55
"description": "A simple JavaScript console for playing with the API",
66
"main": "index.js",
77
"scripts": {},
@@ -12,6 +12,6 @@
1212
"license": "Apache-2.0",
1313
"dependencies": {
1414
"@babel/runtime": "^7.10.5",
15-
"@polkadot/react-components": "0.51.0-beta.34"
15+
"@polkadot/react-components": "0.51.0"
1616
}
1717
}

packages/page-parachains/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polkadot/app-parachains",
33
"private": true,
4-
"version": "0.51.0-beta.34",
4+
"version": "0.51.0",
55
"description": "Parachains",
66
"main": "index.js",
77
"scripts": {},
@@ -12,7 +12,7 @@
1212
"license": "Apache-2.0",
1313
"dependencies": {
1414
"@babel/runtime": "^7.10.5",
15-
"@polkadot/react-components": "0.51.0-beta.34",
16-
"@polkadot/react-query": "0.51.0-beta.34"
15+
"@polkadot/react-components": "0.51.0",
16+
"@polkadot/react-query": "0.51.0"
1717
}
1818
}

packages/page-poll/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polkadot/app-poll",
33
"private": true,
4-
"version": "0.51.0-beta.34",
4+
"version": "0.51.0",
55
"description": "A basic polling module",
66
"main": "index.js",
77
"scripts": {},
@@ -12,6 +12,6 @@
1212
"license": "Apache-2.0",
1313
"dependencies": {
1414
"@babel/runtime": "^7.10.5",
15-
"@polkadot/react-components": "0.51.0-beta.34"
15+
"@polkadot/react-components": "0.51.0"
1616
}
1717
}

packages/page-poll/src/index.tsx

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ function PollApp ({ className }: Props): React.ReactElement<Props> {
9494
</div>
9595
)}
9696
<div>
97-
{canVote && <BlockToTime blocks={blocksLeft} />}
97+
{canVote
98+
? <BlockToTime blocks={blocksLeft} />
99+
: t<string>('Completed')
100+
}
98101
<div>#{formatNumber(api.consts.poll.end as BlockNumber)}</div>
99102
</div>
100103
</div>
@@ -113,19 +116,21 @@ function PollApp ({ className }: Props): React.ReactElement<Props> {
113116
<Columar.Column className='option'>
114117
<div className='optionName'>{label}</div>
115118
<div className='optionDesc'>{desc}</div>
116-
<Toggle
117-
className='pollToggle'
118-
isDisabled={!canVote}
119-
label={
120-
canVote
121-
? value
122-
? t<string>('Aye, I support this')
123-
: t<string>('Nay, I do not support this')
124-
: t<string>('Voting closed')
125-
}
126-
onChange={onChange}
127-
value={canVote && value}
128-
/>
119+
{canVote && (
120+
<Toggle
121+
className='pollToggle'
122+
isDisabled={!canVote}
123+
label={
124+
canVote
125+
? value
126+
? t<string>('Aye, I support this')
127+
: t<string>('Nay, I do not support this')
128+
: t<string>('Voting closed')
129+
}
130+
onChange={onChange}
131+
value={canVote && value}
132+
/>
133+
)}
129134
</Columar.Column>
130135
<Columar.Column>
131136
{totals[index].isZero()

packages/page-settings/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polkadot/app-settings",
33
"private": true,
4-
"version": "0.51.0-beta.34",
4+
"version": "0.51.0",
55
"description": "Settings management",
66
"main": "index.js",
77
"scripts": {},
@@ -12,9 +12,9 @@
1212
"license": "Apache-2.0",
1313
"dependencies": {
1414
"@babel/runtime": "^7.10.5",
15-
"@polkadot/apps-config": "0.51.0-beta.34",
16-
"@polkadot/react-components": "0.51.0-beta.34",
17-
"@polkadot/react-query": "0.51.0-beta.34",
15+
"@polkadot/apps-config": "0.51.0",
16+
"@polkadot/react-components": "0.51.0",
17+
"@polkadot/react-query": "0.51.0",
1818
"query-string": "^6.13.1"
1919
}
2020
}

0 commit comments

Comments
 (0)