Skip to content

Commit

Permalink
[Simsala] automatic release created for v1.0.155 (#3335)
Browse files Browse the repository at this point in the history
* Fabo/handle image null on validator page (#3319)

* handle picture is null

* changelog

* handle null images on page validator

* Update proposals every new block (#3295)

* Update proposals every 10 blocks

* changelog

* istanbul ignore next

* Trigger CI

* istanbul ignore next

* Use loaded

* Update snap

* istanbul ignore next

* Update single proposal page every new block

* Job is done!

* Comment

* Remove comment

* istanbul ignore next

* Improve coverage

* Update all proposal data

* Simplify

* Revert

* Fix watcher func testing

* Fix, cleanup, optimization

* Update snap

* Cleanup

* chooseFilter for pagevalidator. fix website (#3289)

* chooseFilter for pagevalidator. fix website

* changelog

* add filter as second parameter

* add test for isblankfield

* lint

* Ana/3313 add link for linux users to ledger connection issues article (#3315)

* add linux webusb message. center signin button

* add linux test but it errors. lint

* changelog

* fix linux message test

* Ana/fixes-for-pagevalidator (#3323)

* small but important fixes

* changelog

* Fabo/handle async tx failure (#3327)

* add new property to receive notification if tx inclusion failed

* dev life

* changelog

* fix tests

* release-1.0.155
  • Loading branch information
faboweb committed Dec 18, 2019
1 parent 3512e29 commit d764901
Show file tree
Hide file tree
Showing 17 changed files with 466 additions and 40 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

<!-- SIMSALA --> <!-- DON'T DELETE, used for automatic changelog updates -->

## [1.0.155] - 2019-12-18

### Changed

- [#3313](https://github.com/cosmos/lunie/issues/3313) Now when Linux users go to sign in with Ledger they get a warning message with a link to the Ledger documentation to fix connection issues @Bitcoinera
- [#3289](https://github.com/cosmos/lunie/pull/3289) Now PageValidator handles empty fields more uniformly, always displaying `--` @Bitcoinera

### Fixed

- [#3323](https://github.com/cosmos/lunie/pull/3323) Fixes the userTransactionAdded subscription and deletes the double TmLoadingComponent @Bitcoinera
- Show failing txs in action modal @faboweb
- [#3277](https://github.com/cosmos/lunie/issues/3277) Update proposals every 10 blocks @mariopino

## [1.0.154] - 2019-12-16

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lunie",
"version": "1.0.154",
"version": "1.0.155",
"description": "Lunie is the staking and governance platform for proof-of-stake blockchains.",
"author": "Lunie International Software Systems Inc. <hello@lunie.io>",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/ActionModal/components/SendModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ import TmFormMsg from "src/components/common/TmFormMsg"
import ActionModal from "./ActionModal"
import transaction from "../utils/transactionTypes"
import { toMicroDenom } from "src/scripts/common"
import config from "src/../config"
const defaultMemo = "(Sent via Lunie)"
Expand All @@ -153,7 +154,7 @@ export default {
},
data: () => ({
address: ``,
amount: null,
amount: config.development ? 0.000001 : null, // dev life, hard life > make simple
memo: defaultMemo,
max_memo_characters: 256,
editMemo: false,
Expand Down
1 change: 1 addition & 0 deletions src/ActionModal/utils/ActionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ export default class ActionManager {
simulate: false,
messageType: type,
networkId: context.networkId,
senderAddress: context.userAddress,
signedMessage
}
const result = await this.transactionAPIRequest(txPayload)
Expand Down
28 changes: 28 additions & 0 deletions src/components/common/TmSessionHardware.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,25 @@
<br />
</template>
</template>
<template v-else-if="isLinux">
Since we switched to WebUSB Linux users may experience connection
issues with their devices.
<br />
<br />
Please visit the following site to learn more about how to fix them:
<div
v-clipboard:copy="linuxLedgerConnectionLink"
v-clipboard:success="() => onCopy()"
class="copy-feature-link"
>
{{ linuxLedgerConnectionLink }}
<i class="material-icons copied" :class="{ active: copySuccess }">
check
</i>
</div>
<br />
<br />
</template>
<template v-else-if="status === `connect` || status === `detect`">
<p>
Please plug in your Ledger&nbsp;Nano and open the Cosmos Ledger
Expand Down Expand Up @@ -82,6 +101,7 @@ export default {
address: null,
copySuccess: false,
hidFeatureLink: `chrome://flags/#enable-experimental-web-platform-features`,
linuxLedgerConnectionLink: `https://support.ledger.com/hc/en-us/articles/360019301813-Fix-USB-issues`,
navigator: window.navigator
}),
computed: {
Expand All @@ -95,6 +115,9 @@ export default {
isWindows() {
return this.navigator.platform.indexOf("Win") > -1
},
isLinux() {
return this.navigator.platform.indexOf("Lin") > -1
},
hasHIDEnabled() {
return !!this.navigator.hid
},
Expand Down Expand Up @@ -199,4 +222,9 @@ export default {
.copy-feature-link .copied.active {
opacity: 1;
}
.session-main .button {
margin: 0 auto;
display: block;
}
</style>
58 changes: 50 additions & 8 deletions src/components/governance/PageProposal.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<template>
<TmPage data-title="Proposal" hide-header class="small">
<TmDataLoading
v-if="
$apollo.queries.proposals.loading ||
$apollo.queries.proposal.loading ||
$apollo.queries.parameters.loading
"
/>
<TmDataLoading v-if="$apollo.loading && !loaded" />
<TmDataNotFound v-else-if="!found" />
<TmDataError v-else-if="error" />
<template v-else>
Expand Down Expand Up @@ -202,6 +196,7 @@ import { ProposalItem, GovernanceParameters, Vote } from "src/gql"
import BigNumber from "bignumber.js"
import Bech32 from "common/Bech32"
import gql from "graphql-tag"
import refetchNetworkOnly from "scripts/refetch-network-only"
export default {
name: `page-proposal`,
Expand Down Expand Up @@ -243,7 +238,8 @@ export default {
depositDenom: "TESTCOIN"
},
error: undefined,
found: false
found: false,
loaded: false
}),
computed: {
...mapGetters([`address`, `network`]),
Expand All @@ -263,6 +259,12 @@ export default {
return id
}
},
watch: {
// Needed to show data loading component when you are browsing from one proposal to another
$route: function() {
this.loaded = false
}
},
methods: {
onVote() {
this.$refs.modalVote.open()
Expand Down Expand Up @@ -319,6 +321,7 @@ export default {
) {
this.found = true
}
/* istanbul ignore next */
return data.proposals
}
},
Expand All @@ -328,6 +331,8 @@ export default {
return ProposalItem(this.network)
},
update(data) {
/* istanbul ignore next */
this.loaded = true
/* istanbul ignore next */
return data.proposal
},
Expand Down Expand Up @@ -388,6 +393,43 @@ export default {
/* istanbul ignore next */
this.error = data.error
}
},
$subscribe: {
blockAdded: {
variables() {
/* istanbul ignore next */
return {
networkId: this.network
}
},
query() {
/* istanbul ignore next */
return gql`
subscription($networkId: String!) {
blockAdded(networkId: $networkId) {
height
}
}
`
},
skip() {
/* istanbul ignore next */
return !this.found
},
result() {
/* istanbul ignore next */
if (
// Don't update passed or rejected proposals
this.proposal.status !== "Passed" &&
this.proposal.status !== "Rejected" &&
this.loaded
) {
refetchNetworkOnly(this.$apollo.queries.proposal)
refetchNetworkOnly(this.$apollo.queries.parameters)
refetchNetworkOnly(this.$apollo.queries.vote)
}
}
}
}
}
}
Expand Down
46 changes: 38 additions & 8 deletions src/components/governance/PageProposals.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<template>
<TmPage data-title="Proposals" :managed="false" hide-header>
<TmPage
data-title="Proposals"
:managed="true"
hide-header
:loading="$apollo.loading && !loaded"
>
<div class="button-container">
<TmBtn
id="propose-btn"
Expand All @@ -26,10 +31,7 @@
</TmDataMsg>
</div>
</div>
<div v-else>
<TmDataLoading v-if="$apollo.loading" />
<TableProposals v-else :proposals="proposals" />
</div>
<TableProposals v-else :proposals="proposals" />
</TmPage>
</template>

Expand All @@ -39,26 +41,26 @@ import TableProposals from "governance/TableProposals"
import TmPage from "common/TmPage"
import TmBtn from "common/TmBtn"
import TmDataMsg from "common/TmDataMsg"
import TmDataLoading from "common/TmDataLoading"
import { mapGetters } from "vuex"
import { GovernanceParameters } from "src/gql"
import gql from "graphql-tag"
import refetchNetworkOnly from "scripts/refetch-network-only"
export default {
name: `page-proposals`,
components: {
ModalPropose,
TableProposals,
TmDataMsg,
TmDataLoading,
TmBtn,
TmPage
},
data: () => ({
proposals: [],
parameters: {
depositDenom: "xxx"
}
},
loaded: false
}),
computed: {
...mapGetters([`network`])
Expand Down Expand Up @@ -89,11 +91,14 @@ export default {
`
},
variables() {
/* istanbul ignore next */
return {
networkId: this.network
}
},
update(data) {
/* istanbul ignore next */
this.loaded = true
/* istanbul ignore next */
return data.proposals
}
Expand All @@ -107,10 +112,35 @@ export default {
/* istanbul ignore next */
return data.governanceParameters
}
},
$subscribe: {
blockAdded: {
variables() {
/* istanbul ignore next */
return {
networkId: this.network
}
},
query() {
/* istanbul ignore next */
return gql`
subscription($networkId: String!) {
blockAdded(networkId: $networkId) {
height
}
}
`
},
result() {
/* istanbul ignore next */
refetchNetworkOnly(this.$apollo.queries.proposals)
}
}
}
}
}
</script>

<style scoped>
.button-container {
display: flex;
Expand Down
Loading

0 comments on commit d764901

Please sign in to comment.