Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Simsala] automatic release created for v1.0.155 #3335

Merged
merged 8 commits into from
Dec 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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. <[email protected]>",
"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