From 5786921708b26fd10cf4c575fdc0f4740813f0fd Mon Sep 17 00:00:00 2001 From: Chris Maniewski Date: Wed, 31 Jul 2024 17:00:03 +0200 Subject: [PATCH] fix: add remaining tx group translations --- src/i18n/en.json | 10 ++++++++++ .../sagas/expenditures/reclaimExpenditureStake.ts | 3 ++- src/redux/sagas/extensions/extensionDeprecate.ts | 4 +++- src/redux/sagas/extensions/extensionInstall.ts | 3 ++- src/redux/sagas/extensions/extensionUninstall.ts | 3 ++- src/redux/sagas/extensions/extensionUpgrade.ts | 3 ++- src/types/transactions.ts | 5 +++++ 7 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/i18n/en.json b/src/i18n/en.json index fd201d29aa2..68a16198955 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -208,8 +208,12 @@ "transaction.group.approveExit.description": "Approve Exiting Recovery Mode", "transaction.group.buyTokens.title": "Buy Tokens", "transaction.group.buyTokens.description": "Buy Tokens", + "transaction.group.cancelDraftExpenditure.title": "Cancel Draft Expenditure", + "transaction.group.cancelDraftExpenditure.description": "Cancel Draft Expenditure", "transaction.group.cancelStakedExpenditure.title": "Cancel Staked Expenditure", "transaction.group.cancelStakedExpenditure.description": "Cancel Staked Expenditure", + "transaction.group.cancelLockedExpenditure.title": "Cancel Locked Expenditure", + "transaction.group.cancelLockedExpenditure.description": "Cancel Locked Expenditure", "transaction.group.claimColonyFunds.title": "Claim Pending Transactions", "transaction.group.claimColonyFunds.description": "Claim Pending Transactions", "transaction.group.claimExpenditurePayouts.title": "Claim Expenditure Payouts", @@ -240,6 +244,8 @@ "transaction.group.finalizeMotion.description": "Finalize motion", "transaction.group.deposit.title": "Activate tokens", "transaction.group.deposit.description": "Activate tokens", + "transaction.group.deprecateExtension.title": "Deprecate Colony Extension", + "transaction.group.deprecateExtension.description": "Deprecate Colony Extension", "transaction.group.editExpenditure.title": "Edit Expenditure", "transaction.group.editExpenditure.description": "Edit Expenditure", "transaction.group.enableExtension.title": "Enable Colony Extension", @@ -265,6 +271,8 @@ "transaction.group.moveFunds.title": "Transfer Funds", "transaction.group.moveFunds.description": "Move Funds Between Teams", "transaction.group.payment.title": "Expenditure Payment", + "transaction.group.reclaimStake.title": "Reclaim Stake", + "transaction.group.reclaimStake.description": "Reclaim Stake", "transaction.group.removeExistingSafes.title": "Remove Existing Safes", "transaction.group.removeExistingSafes.description": "Remove existing Safes from this Colony", "transaction.group.removeVerifiedMembers.title": "Remove verified members", @@ -283,6 +291,8 @@ "transaction.group.unlockToken.description": "Unlocking native Token", "transaction.group.upgrade.title": "Colony Version Upgrade", "transaction.group.upgrade.description": "Colony Version Upgrade", + "transaction.group.upgradeExtension.title": "Upgrade Colony Extension", + "transaction.group.upgradeExtension.description": "Upgrade Colony Extension", "transaction.group.voteMotion.title": "Vote on motion", "transaction.group.voteMotion.description": "Vote on motion", "transaction.group.withdraw.title": "Withdraw tokens", diff --git a/src/redux/sagas/expenditures/reclaimExpenditureStake.ts b/src/redux/sagas/expenditures/reclaimExpenditureStake.ts index 6b85199abda..0553b8b967b 100644 --- a/src/redux/sagas/expenditures/reclaimExpenditureStake.ts +++ b/src/redux/sagas/expenditures/reclaimExpenditureStake.ts @@ -2,6 +2,7 @@ import { ClientType } from '@colony/colony-js'; import { call, fork, put, takeEvery } from 'redux-saga/effects'; import { type Action, ActionTypes, type AllActions } from '~redux/index.ts'; +import { TRANSACTION_METHODS } from '~types/transactions.ts'; import { createTransaction, @@ -23,7 +24,7 @@ function* reclaimExpenditureStake({ yield fork(createTransaction, meta.id, { context: ClientType.StakedExpenditureClient, group: { - key: 'reclaimStake', + key: TRANSACTION_METHODS.ReclaimStake, id: meta.id, index: 0, }, diff --git a/src/redux/sagas/extensions/extensionDeprecate.ts b/src/redux/sagas/extensions/extensionDeprecate.ts index 35f8104818f..716c639917d 100644 --- a/src/redux/sagas/extensions/extensionDeprecate.ts +++ b/src/redux/sagas/extensions/extensionDeprecate.ts @@ -1,6 +1,8 @@ import { ClientType, getExtensionHash } from '@colony/colony-js'; import { call, fork, put, takeEvery } from 'redux-saga/effects'; +import { TRANSACTION_METHODS } from '~types/transactions.ts'; + import { ActionTypes } from '../../actionTypes.ts'; import { type AllActions, type Action } from '../../types/actions/index.ts'; import { @@ -20,7 +22,7 @@ function* extensionDeprecate({ yield fork(createTransaction, meta.id, { context: ClientType.ColonyClient, group: { - key: 'deprecatedExtension', + key: TRANSACTION_METHODS.DeprecateExtension, id: meta.id, index: 0, }, diff --git a/src/redux/sagas/extensions/extensionInstall.ts b/src/redux/sagas/extensions/extensionInstall.ts index cca1c16a063..a0d54754fbe 100644 --- a/src/redux/sagas/extensions/extensionInstall.ts +++ b/src/redux/sagas/extensions/extensionInstall.ts @@ -2,6 +2,7 @@ import { ClientType, getExtensionHash } from '@colony/colony-js'; import { call, takeEvery, fork, put } from 'redux-saga/effects'; import { type Action, ActionTypes, type AllActions } from '~redux/index.ts'; +import { TRANSACTION_METHODS } from '~types/transactions.ts'; import { createTransaction, @@ -23,7 +24,7 @@ export function* extensionInstall({ yield fork(createTransaction, meta.id, { context: ClientType.ColonyClient, group: { - key: 'installExtension', + key: TRANSACTION_METHODS.InstallExtension, id: meta.id, index: 0, }, diff --git a/src/redux/sagas/extensions/extensionUninstall.ts b/src/redux/sagas/extensions/extensionUninstall.ts index 5a349a3e83b..d5d35ac29ad 100644 --- a/src/redux/sagas/extensions/extensionUninstall.ts +++ b/src/redux/sagas/extensions/extensionUninstall.ts @@ -2,6 +2,7 @@ import { ClientType, getExtensionHash } from '@colony/colony-js'; import { call, fork, put, takeEvery } from 'redux-saga/effects'; import { type Action, ActionTypes, type AllActions } from '~redux/index.ts'; +import { TRANSACTION_METHODS } from '~types/transactions.ts'; import { createTransaction, @@ -20,7 +21,7 @@ export function* extensionUninstall({ yield fork(createTransaction, meta.id, { context: ClientType.ColonyClient, group: { - key: 'uninstallExtension', + key: TRANSACTION_METHODS.UninstallExtension, id: meta.id, index: 0, }, diff --git a/src/redux/sagas/extensions/extensionUpgrade.ts b/src/redux/sagas/extensions/extensionUpgrade.ts index a21ce70f2cf..158d71c14ce 100644 --- a/src/redux/sagas/extensions/extensionUpgrade.ts +++ b/src/redux/sagas/extensions/extensionUpgrade.ts @@ -2,6 +2,7 @@ import { ClientType, getExtensionHash } from '@colony/colony-js'; import { takeEvery, call, fork, put } from 'redux-saga/effects'; import { type AllActions, type Action, ActionTypes } from '~redux/index.ts'; +import { TRANSACTION_METHODS } from '~types/transactions.ts'; import { createTransaction, @@ -20,7 +21,7 @@ function* extensionUpgrade({ yield fork(createTransaction, meta.id, { context: ClientType.ColonyClient, group: { - key: 'upgradeExtension', + key: TRANSACTION_METHODS.UpgradeExtension, id: meta.id, index: 0, }, diff --git a/src/types/transactions.ts b/src/types/transactions.ts index 8926f5503a5..61e67f7e3ab 100644 --- a/src/types/transactions.ts +++ b/src/types/transactions.ts @@ -81,6 +81,7 @@ export enum TRANSACTION_METHODS { DeployTokenViaNetwork = 'deployTokenViaNetwork', DeployTokenAuthority = 'deployTokenAuthority', Deposit = 'deposit', + DeprecateExtension = 'deprecateExtension', EditColony = 'editColony', EditColonyByDelta = 'editColonyByDelta', EditDomain = 'editDomain', @@ -90,15 +91,19 @@ export enum TRANSACTION_METHODS { FinalizeMotion = 'finalizeMotion', FundExpenditure = 'fundExpenditure', InitiateSafeTransaction = 'initiateSafeTransaction', + InstallExtension = 'installExtension', LockExpenditure = 'lockExpenditure', ManageTokens = 'manageTokens', MintTokens = 'mintTokens', MoveFunds = 'moveFunds', Payment = 'payment', + ReclaimStake = 'reclaimStake', ReleaseExpenditure = 'releaseExpenditure', RemoveVerifiedMembers = 'removeVerifiedMembers', SetUserRoles = 'setUserRoles', StakeMotion = 'stakeMotion', + UninstallExtension = 'uninstallExtension', UnlockToken = 'unlockToken', Upgrade = 'upgrade', + UpgradeExtension = 'upgradeExtension', }