Skip to content

Commit

Permalink
Merge pull request #2818 from JoinColony/fix/tx-translations-groups
Browse files Browse the repository at this point in the history
  • Loading branch information
chmanie authored Aug 2, 2024
2 parents 5d6e2fb + 5786921 commit 2df5c19
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 5 deletions.
10 changes: 10 additions & 0 deletions src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/redux/sagas/expenditures/reclaimExpenditureStake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
},
Expand Down
4 changes: 3 additions & 1 deletion src/redux/sagas/extensions/extensionDeprecate.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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,
},
Expand Down
3 changes: 2 additions & 1 deletion src/redux/sagas/extensions/extensionInstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
},
Expand Down
3 changes: 2 additions & 1 deletion src/redux/sagas/extensions/extensionUninstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
},
Expand Down
3 changes: 2 additions & 1 deletion src/redux/sagas/extensions/extensionUpgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
},
Expand Down
5 changes: 5 additions & 0 deletions src/types/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export enum TRANSACTION_METHODS {
DeployTokenViaNetwork = 'deployTokenViaNetwork',
DeployTokenAuthority = 'deployTokenAuthority',
Deposit = 'deposit',
DeprecateExtension = 'deprecateExtension',
EditColony = 'editColony',
EditColonyByDelta = 'editColonyByDelta',
EditDomain = 'editDomain',
Expand All @@ -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',
}

0 comments on commit 2df5c19

Please sign in to comment.