1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Merge pull request #7299 from MetaMask/Version-v7.3.1

Version v7.3.1 RC
This commit is contained in:
Dan Finlay 2019-10-22 10:08:46 -07:00 committed by GitHub
commit 06dc3b260a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 20 deletions

View File

@ -2,6 +2,9 @@
## Current Develop Branch
## 7.3.1 Mon Oct 21 2019
- [#7298](https://github.com/MetaMask/metamask-extension/pull/7298): Turn off full screen vs popup a/b test
## 7.3.0 Fri Sep 27 2019
- [#6972](https://github.com/MetaMask/metamask-extension/pull/6972): 3box integration
- [#7168](https://github.com/MetaMask/metamask-extension/pull/7168): Add fixes for German translations

View File

@ -1,7 +1,7 @@
{
"name": "__MSG_appName__",
"short_name": "__MSG_appName__",
"version": "7.3.0",
"version": "7.3.1",
"manifest_version": 2,
"author": "https://metamask.io",
"description": "__MSG_appDescription__",

View File

@ -233,13 +233,11 @@ function setupController (initState, initLangCode) {
//
// MetaMask Controller
//
const { ABTestController = {} } = initState
const { abTests = {} } = ABTestController
const controller = new MetamaskController({
// User confirmation callbacks:
showUnconfirmedMessage: triggerUi,
showUnapprovedTx: abTests.fullScreenVsPopup === 'fullScreen' ? triggerUiInNewTab : triggerUi,
showUnapprovedTx: triggerUi,
openPopup: openPopup,
closePopup: notificationManager.closePopup.bind(notificationManager),
// initial state
@ -443,20 +441,6 @@ function triggerUi () {
})
}
/**
* Opens a new browser tab for user confirmation
*/
function triggerUiInNewTab () {
const tabIdsArray = Object.keys(openMetamaskTabsIDs)
if (tabIdsArray.length) {
extension.tabs.update(parseInt(tabIdsArray[0], 10), { 'active': true }, () => {
extension.tabs.reload(parseInt(tabIdsArray[0], 10))
})
} else {
platform.openExtensionInBrowser()
}
}
/**
* Opens the browser popup for user confirmation of watchAsset
* then it waits until user interact with the UI

View File

@ -8,6 +8,7 @@ import BasicTabContent from './basic-tab-content'
export default class GasModalPageContainer extends Component {
static contextTypes = {
t: PropTypes.func,
metricsEvent: PropTypes.func,
}
static propTypes = {
@ -162,6 +163,7 @@ export default class GasModalPageContainer extends Component {
customModalGasPriceInHex,
customModalGasLimitInHex,
disableSave,
isSpeedUp,
...tabProps
} = this.props
@ -175,6 +177,15 @@ export default class GasModalPageContainer extends Component {
onCancel={() => cancelAndClose()}
onClose={() => cancelAndClose()}
onSubmit={() => {
if (isSpeedUp) {
this.context.metricsEvent({
eventOpts: {
category: 'Navigation',
action: 'Activity Log',
name: 'Saved "Speed Up"',
},
})
}
onSubmit(customModalGasLimitInHex, customModalGasPriceInHex)
}}
submitText={this.context.t('save')}

View File

@ -113,6 +113,14 @@ export default class TransactionListItem extends PureComponent {
const retryId = id || initialTransactionId
this.context.metricsEvent({
eventOpts: {
category: 'Navigation',
action: 'Activity Log',
name: 'Clicked "Speed Up"',
},
})
return fetchBasicGasAndTimeEstimates()
.then(basicEstimates => fetchGasEstimates(basicEstimates.blockTime))
.then(retryTransaction(retryId, gasPrice))

View File

@ -36,9 +36,9 @@ const mapStateToProps = (state, ownProps) => {
const transaction = totalUnconfirmed
? unapprovedTxs[id] || unconfirmedTransactions[totalUnconfirmed - 1]
: {}
const { id: transactionId, transactionCategory, origin } = transaction
const { id: transactionId, transactionCategory } = transaction
const trackABTest = origin !== 'MetaMask'
const trackABTest = false
return {
totalUnapprovedCount: totalUnconfirmed,