From ecee042833608690f5f36566ae6433ad08af6180 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Wed, 21 Feb 2024 18:07:13 -0500 Subject: [PATCH 01/15] fix RippleState --- public/locales/en-US/translations.json | 2 +- .../Transactions/DetailTab/Meta/RippleState.jsx | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/public/locales/en-US/translations.json b/public/locales/en-US/translations.json index 2b05ac83e..bb3d556ae 100644 --- a/public/locales/en-US/translations.json +++ b/public/locales/en-US/translations.json @@ -243,7 +243,7 @@ "number_of_affected_node": "It affected {{count}} nodes in the ledger:", "nodes_type": "{{action}} nodes", "node_meta_type": "It {{action}} a node with type", - "transaction_balance_line_one": "It <1><0>{{action}} a <3><0>{{currency}} RippleState node between <5><0>{{account}} and <7><0>{{counterAccount}}", + "transaction_balance_line_one": "It <1><0>{{action}} a <4><0>{{currency}} RippleState node between <6><0>{{account}} and <8><0>{{counterAccount}}", "transaction_balance_line_two": "Balance changed by <1><0>{{change}} from <3><0>{{previousBalance}} to <5><0>{{finalBalance}}", "transaction_owned_directory": "It {{action}} a DirectoryNode node owned by", "transaction_unowned_directory": "It {{action}} a DirectoryNode node", diff --git a/src/containers/Transactions/DetailTab/Meta/RippleState.jsx b/src/containers/Transactions/DetailTab/Meta/RippleState.jsx index 6d50ce114..3261cde8a 100644 --- a/src/containers/Transactions/DetailTab/Meta/RippleState.jsx +++ b/src/containers/Transactions/DetailTab/Meta/RippleState.jsx @@ -1,6 +1,7 @@ import { Trans } from 'react-i18next' import { Account } from '../../../shared/components/Account' import { localizeNumber, computeBalanceChange } from '../../../shared/utils' +import Currency from '../../../shared/components/Currency' const render = (t, language, action, node, index) => { const { @@ -15,8 +16,11 @@ const render = (t, language, action, node, index) => { const line1 = ( - It {action} a {currency} - ripplestate node between + It {action} a{' '} + + + + RippleState node between and From 668905b3e2e2c581ffe0767234a1901d374bb257 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Wed, 21 Feb 2024 18:14:14 -0500 Subject: [PATCH 02/15] fix TakerPays/TakerGets --- .../Transactions/DetailTab/Meta/Offer.jsx | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/containers/Transactions/DetailTab/Meta/Offer.jsx b/src/containers/Transactions/DetailTab/Meta/Offer.jsx index 5131c4868..ba9aa8219 100644 --- a/src/containers/Transactions/DetailTab/Meta/Offer.jsx +++ b/src/containers/Transactions/DetailTab/Meta/Offer.jsx @@ -7,6 +7,7 @@ import { } from '../../../shared/transactionUtils' import { localizeNumber } from '../../../shared/utils' import { Account } from '../../../shared/components/Account' +import Currency from '../../../shared/components/Currency' const normalize = (value, currency) => currency === 'XRP' ? (value / XRP_BASE).toString() : value @@ -24,21 +25,18 @@ const renderChanges = (t, language, node, index) => { const changePays = normalize(prevPays - finalPays, paysCurrency) const changeGets = normalize(prevGets - finalGets, getsCurrency) - const renderIssuer = (issuer) => - issuer ? ( - <> - . - - - ) : null - if (prevPays && finalPays) { const options = { ...CURRENCY_OPTIONS, currency: paysCurrency } meta.push(
  • TakerPays - {paysCurrency} - {renderIssuer(final.TakerPays.issuer)}{' '} + + + {' '} decreased by {{ change: localizeNumber(changePays, language, options) }} @@ -71,8 +69,13 @@ const renderChanges = (t, language, node, index) => { meta.push(
  • TakerGets - {getsCurrency} - {renderIssuer(final.TakerGets.issuer)}{' '} + + + {' '} decreased by {{ change: localizeNumber(changeGets, language, options) }} From f178b6ab03f2ab0f497e87cf96bfc41ff1937985 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Wed, 21 Feb 2024 18:25:33 -0500 Subject: [PATCH 03/15] clean up OfferCreate Description --- public/locales/en-US/translations.json | 8 ++-- .../Transaction/OfferCreate/Description.tsx | 41 +++++++++++++++---- 2 files changed, 38 insertions(+), 11 deletions(-) diff --git a/public/locales/en-US/translations.json b/public/locales/en-US/translations.json index bb3d556ae..82bc82d2d 100644 --- a/public/locales/en-US/translations.json +++ b/public/locales/en-US/translations.json @@ -254,11 +254,11 @@ "decreased_from_to": "decreased by <1><0>{{change}} from <3><0>{{previous}} to <5><0>{{final}}", "offer_node_meta": "It <1><0>{{action}} a <3><0>{{pair}} offer node owned by <5><0>{{account}} with sequence # <7><0>{{sequence}}", "offer_replaces": "This offer replaces the existing offer #", - "offer_partially_filled": "The offer was partially filled", - "offer_filled": "The offer was filled", - "offer_cancelled": "The offer was cancelled", + "offer_partially_filled": "The offer was partially filled.", + "offer_filled": "The offer was filled.", + "offer_cancelled": "The offer was cancelled.", "offer_replaced": "This offer was replaced by the new offer #", - "offer_lack_of_funds": "The offer was partially filled, then cancelled due to lack of funds", + "offer_lack_of_funds": "The offer was partially filled, then cancelled due to lack of funds.", "transaction_sequence": "The transaction's sequence number is", "trust_set_description": "It establishes <1><0>{{amount}} as the maximum amount of <3><0>{{currency}} from <5><0>{{issuer}} that <7><0>{{account}} is willing to hold", "payment_desc_line_1": "The payment is from to ", diff --git a/src/containers/shared/components/Transaction/OfferCreate/Description.tsx b/src/containers/shared/components/Transaction/OfferCreate/Description.tsx index aa31bc17f..9c14e5668 100644 --- a/src/containers/shared/components/Transaction/OfferCreate/Description.tsx +++ b/src/containers/shared/components/Transaction/OfferCreate/Description.tsx @@ -12,6 +12,9 @@ import { TransactionDescriptionProps, } from '../types' import { convertRippleDate } from '../../../../../rippled/lib/utils' +import Currency from '../../Currency' +import { Amount } from '../../Amount' +import { formatAmount } from '../../../../../rippled/lib/txSummary/formatAmount' const normalize = (amount: any) => amount.value || amount / XRP_BASE @@ -33,9 +36,35 @@ const Description: TransactionDescriptionComponent = ( if (invert) { rate = 1 / rate - pair = `${getsCurrency}/${paysCurrency}` + pair = ( + + + / + + + ) } else { - pair = `${paysCurrency}/${getsCurrency}` + pair = ( + + + / + + + ) } const renderLine4 = () => { @@ -66,13 +95,11 @@ const Description: TransactionDescriptionComponent = ( offered to pay - {normalizeAmount(data.tx.TakerGets, language)} - {data.tx.TakerGets.currency || 'XRP'} + in order to receive - {normalizeAmount(data.tx.TakerPays, language)} - {data.tx.TakerPays.currency || 'XRP'} + @@ -80,7 +107,7 @@ const Description: TransactionDescriptionComponent = ( {t('offer_create_desc_line_2')} {rate.toPrecision(5)} - {pair} + {pair} {data.tx.OfferSequence && ( From ace9e322810eeadc2ad85fb85a8d524a1b7f4337 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Wed, 21 Feb 2024 18:34:26 -0500 Subject: [PATCH 04/15] [WIP] clean up offer --- .../Transactions/DetailTab/Meta/Offer.jsx | 36 +++++++++++++++++-- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/src/containers/Transactions/DetailTab/Meta/Offer.jsx b/src/containers/Transactions/DetailTab/Meta/Offer.jsx index ba9aa8219..6350e4f42 100644 --- a/src/containers/Transactions/DetailTab/Meta/Offer.jsx +++ b/src/containers/Transactions/DetailTab/Meta/Offer.jsx @@ -118,9 +118,39 @@ const render = (t, language, action, node, index, tx) => { ) const invert = CURRENCY_ORDER.indexOf(getsCurrency) > CURRENCY_ORDER.indexOf(paysCurrency) - const pair = invert - ? `${getsCurrency}/${paysCurrency}` - : `${paysCurrency}/${getsCurrency}` + const pair = invert ? ( + + ( + + ) / ( + + ) + + ) : ( + + ( + + ) / ( + + ) + + ) if ( action === 'created' && From 965119272971845db091f1d25e0b5d4a2266afca Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Thu, 18 Apr 2024 17:30:49 -0400 Subject: [PATCH 05/15] fix offer --- public/locales/en-US/translations.json | 2 +- .../Transactions/DetailTab/Meta/Offer.jsx | 33 ++++++++++++++++--- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/public/locales/en-US/translations.json b/public/locales/en-US/translations.json index 82bc82d2d..55cf52a10 100644 --- a/public/locales/en-US/translations.json +++ b/public/locales/en-US/translations.json @@ -252,7 +252,7 @@ "account_balance_increased": "Balance increased by <1><0>{{difference}}<1><0>{{currency}} from <3><0>{{previous}}<1><0>{{currency}} to <5><0>{{final}}<1><0>{{currency}}", "account_balance_decreased": "Balance decreased by <1><0>{{difference}}<1><0>{{currency}} from <3><0>{{previous}}<1><0>{{currency}} to <5><0>{{final}}<1><0>{{currency}}", "decreased_from_to": "decreased by <1><0>{{change}} from <3><0>{{previous}} to <5><0>{{final}}", - "offer_node_meta": "It <1><0>{{action}} a <3><0>{{pair}} offer node owned by <5><0>{{account}} with sequence # <7><0>{{sequence}}", + "offer_node_meta": "It {{action}} a / offer node owned by with sequence # {{sequence}}", "offer_replaces": "This offer replaces the existing offer #", "offer_partially_filled": "The offer was partially filled.", "offer_filled": "The offer was filled.", diff --git a/src/containers/Transactions/DetailTab/Meta/Offer.jsx b/src/containers/Transactions/DetailTab/Meta/Offer.jsx index 6350e4f42..43c047b0a 100644 --- a/src/containers/Transactions/DetailTab/Meta/Offer.jsx +++ b/src/containers/Transactions/DetailTab/Meta/Offer.jsx @@ -208,11 +208,34 @@ const render = (t, language, action, node, index, tx) => { return (
  • - - It {action} a {pair} - owned by - - with sequence # {{ sequence: fields.Sequence }} + + ), + Currency2: ( + + ), + Account: , + }} + > + {pair}
      {lines}
  • From aa34287e30f8b696239367d8762404275049811d Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Thu, 18 Apr 2024 17:49:19 -0400 Subject: [PATCH 06/15] clean up --- .../Transactions/DetailTab/Meta/Offer.jsx | 39 ++----------------- .../Transaction/OfferCreate/Description.tsx | 1 - 2 files changed, 3 insertions(+), 37 deletions(-) diff --git a/src/containers/Transactions/DetailTab/Meta/Offer.jsx b/src/containers/Transactions/DetailTab/Meta/Offer.jsx index 43c047b0a..94c897ded 100644 --- a/src/containers/Transactions/DetailTab/Meta/Offer.jsx +++ b/src/containers/Transactions/DetailTab/Meta/Offer.jsx @@ -118,39 +118,6 @@ const render = (t, language, action, node, index, tx) => { ) const invert = CURRENCY_ORDER.indexOf(getsCurrency) > CURRENCY_ORDER.indexOf(paysCurrency) - const pair = invert ? ( - - ( - - ) / ( - - ) - - ) : ( - - ( - - ) / ( - - ) - - ) if ( action === 'created' && @@ -220,6 +187,7 @@ const render = (t, language, action, node, index, tx) => { } issuer={invert ? tx.TakerGets.issuer : tx.TakerPays.issuer} displaySymbol={false} + shortenIssuer /> ), Currency2: ( @@ -230,13 +198,12 @@ const render = (t, language, action, node, index, tx) => { } issuer={invert ? tx.TakerPays.issuer : tx.TakerGets.issuer} displaySymbol={false} + shortenIssuer /> ), Account: , }} - > - {pair} -
    + /> ) diff --git a/src/containers/shared/components/Transaction/OfferCreate/Description.tsx b/src/containers/shared/components/Transaction/OfferCreate/Description.tsx index 9c14e5668..8a16a76e1 100644 --- a/src/containers/shared/components/Transaction/OfferCreate/Description.tsx +++ b/src/containers/shared/components/Transaction/OfferCreate/Description.tsx @@ -4,7 +4,6 @@ import { DATE_OPTIONS, CURRENCY_ORDER, XRP_BASE, - normalizeAmount, } from '../../../transactionUtils' import { Account } from '../../Account' import { From d67f5b26cf1339fcc9d09cba519e7fe66cc38d20 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Thu, 18 Apr 2024 18:07:27 -0400 Subject: [PATCH 07/15] fix bug --- .../components/Transaction/OfferCreate/Description.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/containers/shared/components/Transaction/OfferCreate/Description.tsx b/src/containers/shared/components/Transaction/OfferCreate/Description.tsx index 8a16a76e1..846d1fec9 100644 --- a/src/containers/shared/components/Transaction/OfferCreate/Description.tsx +++ b/src/containers/shared/components/Transaction/OfferCreate/Description.tsx @@ -54,13 +54,15 @@ const Description: TransactionDescriptionComponent = ( pair = ( / ) From 9be092f04ee6e59dde9309e7f3cb2fdbbc126748 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Thu, 18 Apr 2024 18:21:48 -0400 Subject: [PATCH 08/15] clean up spelling/translations --- .vscode/settings.json | 8 ++++++++ public/locales/ca-CA/translations.json | 1 - public/locales/en-US/translations.json | 5 ++--- public/locales/es-ES/translations.json | 1 - public/locales/fr-FR/translations.json | 3 +-- public/locales/ja-JP/translations.json | 1 - public/locales/ko-KR/translations.json | 1 - 7 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 73e6a5b81..6ef34251c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -65,6 +65,7 @@ "Decomp", "esbuild", "fakenode", + "fullfillment", "Hant", "healthz", "hexbin", @@ -74,12 +75,19 @@ "nftoken", "nodemodules", "pageview", + "paychannel", "paychannels", + "paystring", "paystrings", + "setfee", "stylelint", "svgr", "topojson", + "trustlines", + "Txns", + "unauth", "VITE", + "Xahau", "xchain", "xchainbridge" ] diff --git a/public/locales/ca-CA/translations.json b/public/locales/ca-CA/translations.json index 1e7efac16..9a3c57089 100644 --- a/public/locales/ca-CA/translations.json +++ b/public/locales/ca-CA/translations.json @@ -40,7 +40,6 @@ "30D": "30D", "total_transactions": "# de Txns", "total_fees": "Total de comissions", - "async_component_timedout": "La càrrega del component ha trigat més del que s'esperava", "async_component_failed": "Error en carregar el component", "account_not_found": "No s'ha trobat el compte", "account_empty_title": "No s'ha proporcionat l'ID del compte", diff --git a/public/locales/en-US/translations.json b/public/locales/en-US/translations.json index 02f498f38..531ae8634 100644 --- a/public/locales/en-US/translations.json +++ b/public/locales/en-US/translations.json @@ -40,7 +40,6 @@ "30D": "30D", "total_transactions": "# of Txns", "total_fees": "Total Fees", - "async_component_timedout": "Loading component took longer than expected", "async_component_failed": "Failed to load Component", "account_not_found": "Account not found", "account_empty_title": "No account ID was supplied", @@ -277,12 +276,12 @@ "escrow_is_from": "The escrow is from <1><0>{{account}} to <3><0>{{destination}}", "escrow_is_created_by": "The escrow was created by <1><0>{{account}} and the funds will be returned to the same account", "escrowed_amount": "It escrowed", - "escrow_condition": "The escrow has a fullfilment condition of", + "escrow_condition": "The escrow has a fullfillment condition of", "describe_cancel_after": "It can be cancelled after", "describe_finish_after": "It can be finished after", "escrow_completion_desc": "Completion was triggered by", "escrow_completion_desc_2": "The escrowed amount of <1><0>{{amount}} was delivered to <3><0>{{destination}}", - "escrow_finish_fullfillment_desc": "The escrow condition is fullfilled by", + "escrow_finish_fullfillment_desc": "The escrow condition is fulfilled by", "escrow_cancellation_desc": "Cancellation was triggered by", "escrow_cancellation_desc_2": "The escrowed amount of <1><0>{{amount}} was returned to <3><0>{{owner}}", "escrow_after_transaction_cost": "after transaction cost", diff --git a/public/locales/es-ES/translations.json b/public/locales/es-ES/translations.json index 4c89774d3..66d5667e7 100644 --- a/public/locales/es-ES/translations.json +++ b/public/locales/es-ES/translations.json @@ -40,7 +40,6 @@ "30D": "30D", "total_transactions": "# de Txs", "total_fees": "Comisiones Totales", - "async_component_timedout": "Cargar el componente tomó más tiempo del esperado", "async_component_failed": "Fallo al cargar Componente", "account_not_found": "Cuenta no encontrada", "account_empty_title": "El ID de la cuenta no fue facilitado", diff --git a/public/locales/fr-FR/translations.json b/public/locales/fr-FR/translations.json index 9134fd8df..7b9fd7f96 100644 --- a/public/locales/fr-FR/translations.json +++ b/public/locales/fr-FR/translations.json @@ -39,8 +39,7 @@ "24H": "24H", "30D": "30J", "total_transactions": "# de Txns", - "total_fees": "Frais Totaux", - "async_component_timedout": "Le chargement du composant a pris plus de temps que prévu", + "total_fees": "Frais Totaux",\ "async_component_failed": "Impossible de charger le composant", "account_not_found": "Compte non trouvé", "account_empty_title": "Aucun id de compte n'a été fourni", diff --git a/public/locales/ja-JP/translations.json b/public/locales/ja-JP/translations.json index 7d036a6ca..132889bfe 100644 --- a/public/locales/ja-JP/translations.json +++ b/public/locales/ja-JP/translations.json @@ -40,7 +40,6 @@ "30D": "30日", "total_transactions": "トランザクション数", "total_fees": "合計トランザクション手数料", - "async_component_timedout": "コンポーネントの読み込みに通常以上の時間がかかりました", "async_component_failed": "コンポーネントの読み込みに失敗しました", "account_not_found": "アカウントが見つかりません", "account_empty_title": "アカウントIDが入力されていません", diff --git a/public/locales/ko-KR/translations.json b/public/locales/ko-KR/translations.json index 8a1790c07..544f85618 100644 --- a/public/locales/ko-KR/translations.json +++ b/public/locales/ko-KR/translations.json @@ -42,7 +42,6 @@ "30D": "30일", "total_transactions": "트랜잭션 수", "total_fees": "총 수수료", - "async_component_timedout": "컴포넌트 로딩이 예상보다 오래 걸렸습니다", "async_component_failed": "컴포넌트 로드 실패", "account_not_found": "계정을 찾을 수 없습니다", "account_empty_title": "계정 ID가 제공되지 않았습니다", From 43013ac22822f28c9b0672e09c04b116104d7851 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Wed, 1 May 2024 16:04:43 -0400 Subject: [PATCH 09/15] update some files to TS --- src/containers/Footer/{index.jsx => index.tsx} | 0 .../Meta/{AccountRoot.jsx => AccountRoot.tsx} | 0 .../Meta/{DirectoryNode.jsx => DirectoryNode.tsx} | 8 +++++++- src/containers/Transactions/DetailTab/Meta/index.tsx | 10 ++++++++-- 4 files changed, 15 insertions(+), 3 deletions(-) rename src/containers/Footer/{index.jsx => index.tsx} (100%) rename src/containers/Transactions/DetailTab/Meta/{AccountRoot.jsx => AccountRoot.tsx} (100%) rename src/containers/Transactions/DetailTab/Meta/{DirectoryNode.jsx => DirectoryNode.tsx} (77%) diff --git a/src/containers/Footer/index.jsx b/src/containers/Footer/index.tsx similarity index 100% rename from src/containers/Footer/index.jsx rename to src/containers/Footer/index.tsx diff --git a/src/containers/Transactions/DetailTab/Meta/AccountRoot.jsx b/src/containers/Transactions/DetailTab/Meta/AccountRoot.tsx similarity index 100% rename from src/containers/Transactions/DetailTab/Meta/AccountRoot.jsx rename to src/containers/Transactions/DetailTab/Meta/AccountRoot.tsx diff --git a/src/containers/Transactions/DetailTab/Meta/DirectoryNode.jsx b/src/containers/Transactions/DetailTab/Meta/DirectoryNode.tsx similarity index 77% rename from src/containers/Transactions/DetailTab/Meta/DirectoryNode.jsx rename to src/containers/Transactions/DetailTab/Meta/DirectoryNode.tsx index 62c6ec23f..70dd1a68a 100644 --- a/src/containers/Transactions/DetailTab/Meta/DirectoryNode.jsx +++ b/src/containers/Transactions/DetailTab/Meta/DirectoryNode.tsx @@ -1,6 +1,12 @@ +import { TFunction } from 'i18next' import { Account } from '../../../shared/components/Account' -const render = (t, action, node, index) => { +const render = ( + t: TFunction<'translations', undefined>, + action: string, + node: any, + index: number, +) => { const fields = node.FinalFields || node.NewFields return (
  • diff --git a/src/containers/Transactions/DetailTab/Meta/index.tsx b/src/containers/Transactions/DetailTab/Meta/index.tsx index 24335e480..e54255ad2 100644 --- a/src/containers/Transactions/DetailTab/Meta/index.tsx +++ b/src/containers/Transactions/DetailTab/Meta/index.tsx @@ -1,5 +1,6 @@ import { FC } from 'react' import { useTranslation } from 'react-i18next' +import { TFunction } from 'i18next' import renderAccountRoot from './AccountRoot' import renderDirectoryNode from './DirectoryNode' import renderOffer from './Offer' @@ -8,7 +9,12 @@ import renderPayChannel from './PayChannel' import { groupAffectedNodes } from '../../../shared/transactionUtils' import { useLanguage } from '../../../shared/hooks' -const renderDefault = (t, action, node, index) => ( +const renderDefault = ( + t: TFunction<'translations', undefined>, + action: string, + node: any, + index: number, +) => (
  • {t('node_meta_type', { action })} {node.LedgerEntryType}
  • @@ -18,7 +24,7 @@ export const TransactionMeta: FC<{ data: any }> = ({ data }) => { const language = useLanguage() const { t } = useTranslation() - const renderNodesMeta = (action, list, tx) => { + const renderNodesMeta = (action: string, list: any[], tx: any) => { const meta = list.map((node, index) => { switch (node.LedgerEntryType) { case 'AccountRoot': From 2af495217b9efbf3774872806c5d4caea432ecee Mon Sep 17 00:00:00 2001 From: Kenny Lei <3003853+kennyzlei@users.noreply.github.com> Date: Wed, 18 Dec 2024 10:06:29 -0800 Subject: [PATCH 10/15] fix: correct typo for website in english translation (#1101) ## High Level Overview of Change Fix typo for website in english translation ### Context of Change Bug introduced in https://github.com/ripple/explorer/pull/1056 ### Type of Change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Refactor (non-breaking change that only restructures code) - [ ] Tests (You added tests for code that already exists, or your new feature included in this PR) - [ ] Documentation Updates - [ ] Translation Updates - [ ] Release ### TypeScript/Hooks Update - [ ] Updated files to React Hooks - [ ] Updated files to TypeScript --- public/locales/en-US/translations.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/locales/en-US/translations.json b/public/locales/en-US/translations.json index 83fb30d98..d1ff3ff1d 100644 --- a/public/locales/en-US/translations.json +++ b/public/locales/en-US/translations.json @@ -542,7 +542,7 @@ "deleted": "Deleted", "holders": "HOLDERS: {{holders}}", "trustlines": " TRUSTLINES: {{trustlines}}", - "website": "Wesbite", + "website": "Website", "mpt_issuance_id": "MPT Issuance ID", "asset_scale": "Asset Scale", "metadata": "Metadata", From 1845c99cfc15fa6bd1439adf2d3f9b6f5fd22438 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Tue, 21 Oct 2025 14:51:32 -0400 Subject: [PATCH 11/15] rename files --- ...CreateDescription.test.tsx => OfferCancelDescription.test.tsx} | 0 .../{OfferCreateSimple.test.tsx => OfferCancelSimple.test.tsx} | 0 ...CreateTableDetail.test.tsx => OfferCancelTableDetail.test.tsx} | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename src/containers/shared/components/Transaction/OfferCancel/test/{OfferCreateDescription.test.tsx => OfferCancelDescription.test.tsx} (100%) rename src/containers/shared/components/Transaction/OfferCancel/test/{OfferCreateSimple.test.tsx => OfferCancelSimple.test.tsx} (100%) rename src/containers/shared/components/Transaction/OfferCancel/test/{OfferCreateTableDetail.test.tsx => OfferCancelTableDetail.test.tsx} (100%) diff --git a/src/containers/shared/components/Transaction/OfferCancel/test/OfferCreateDescription.test.tsx b/src/containers/shared/components/Transaction/OfferCancel/test/OfferCancelDescription.test.tsx similarity index 100% rename from src/containers/shared/components/Transaction/OfferCancel/test/OfferCreateDescription.test.tsx rename to src/containers/shared/components/Transaction/OfferCancel/test/OfferCancelDescription.test.tsx diff --git a/src/containers/shared/components/Transaction/OfferCancel/test/OfferCreateSimple.test.tsx b/src/containers/shared/components/Transaction/OfferCancel/test/OfferCancelSimple.test.tsx similarity index 100% rename from src/containers/shared/components/Transaction/OfferCancel/test/OfferCreateSimple.test.tsx rename to src/containers/shared/components/Transaction/OfferCancel/test/OfferCancelSimple.test.tsx diff --git a/src/containers/shared/components/Transaction/OfferCancel/test/OfferCreateTableDetail.test.tsx b/src/containers/shared/components/Transaction/OfferCancel/test/OfferCancelTableDetail.test.tsx similarity index 100% rename from src/containers/shared/components/Transaction/OfferCancel/test/OfferCreateTableDetail.test.tsx rename to src/containers/shared/components/Transaction/OfferCancel/test/OfferCancelTableDetail.test.tsx From dfd2799d948c5a7de6e41e6f41e511b95b95c770 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Tue, 21 Oct 2025 15:07:18 -0400 Subject: [PATCH 12/15] fix tests --- .../Transactions/DetailTab/Meta/Offer.jsx | 14 ++++--------- .../Transactions/test/Meta.test.tsx | 20 +++++++++---------- .../test/OfferCreateDescription.test.tsx | 6 +++--- 3 files changed, 17 insertions(+), 23 deletions(-) diff --git a/src/containers/Transactions/DetailTab/Meta/Offer.jsx b/src/containers/Transactions/DetailTab/Meta/Offer.jsx index 94c897ded..4cd0cf40e 100644 --- a/src/containers/Transactions/DetailTab/Meta/Offer.jsx +++ b/src/containers/Transactions/DetailTab/Meta/Offer.jsx @@ -181,22 +181,16 @@ const render = (t, language, action, node, index, tx) => { components={{ Currency: ( ), Currency2: ( diff --git a/src/containers/Transactions/test/Meta.test.tsx b/src/containers/Transactions/test/Meta.test.tsx index 12c5c4fde..3290b5f39 100644 --- a/src/containers/Transactions/test/Meta.test.tsx +++ b/src/containers/Transactions/test/Meta.test.tsx @@ -64,7 +64,7 @@ describe('TransactionMeta container', () => { ) expect(w.find('li').at(7).html()).toBe( - '
  • It modified a XRP/CNYowned bywith sequence # 1181517
    • offer_partially_filled
    • TakerPays XRP decreased by\uE90050.324316from\uE900470.31823to\uE900419.993914
    • TakerGets CNY. decreased byCN¥224.7141103fromCN¥2,100.12079671toCN¥1,875.40668641
  • ', + '
  • offer_node_meta
    • offer_partially_filled
    • TakerPays XRP decreased by\uE90050.324316from\uE900470.31823to\uE900419.993914
    • TakerGets CNY.rKiCet8SdvWxPXnAgYarFUXMh1zCPz432Y decreased byCN¥224.7141103fromCN¥2,100.12079671toCN¥1,875.40668641
  • ', ) expect(w.find('li').at(8).html()).toBe( @@ -72,15 +72,15 @@ describe('TransactionMeta container', () => { ) expect(w.find('li').at(9).html()).toBe( - '
  • TakerPays XRP decreased by\uE90050.324316from\uE900470.31823to\uE900419.993914
  • ', + '
  • TakerPays XRP decreased by\uE90050.324316from\uE900470.31823to\uE900419.993914
  • ', ) expect(w.find('li').at(10).html()).toBe( - '
  • TakerGets CNY. decreased byCN¥224.7141103fromCN¥2,100.12079671toCN¥1,875.40668641
  • ', + '
  • TakerGets CNY.rKiCet8SdvWxPXnAgYarFUXMh1zCPz432Y decreased byCN¥224.7141103fromCN¥2,100.12079671toCN¥1,875.40668641
  • ', ) expect(w.find('li').at(11).html()).toBe( - '
  • It modified a XRP/CNYowned bywith sequence # 5804
    • offer_partially_filled
    • TakerPays CNY. decreased byCN¥225.45293634fromCN¥12,589.58241408toCN¥12,364.12947774
    • TakerGets XRP decreased by\uE90050.324316from\uE9002,810.174646to\uE9002,759.85033
  • ', + '
  • offer_node_meta
    • offer_partially_filled
    • TakerPays CNY.razqQKzJRdB4UxFPWf5NEpEG3WMkmwgcXA decreased byCN¥225.45293634fromCN¥12,589.58241408toCN¥12,364.12947774
    • TakerGets XRP decreased by50.324316from2,810.174646to2,759.85033
  • ', ) expect(w.find('li').at(12).html()).toBe( @@ -88,15 +88,15 @@ describe('TransactionMeta container', () => { ) expect(w.find('li').at(13).html()).toBe( - '
  • TakerPays CNY. decreased byCN¥225.45293634fromCN¥12,589.58241408toCN¥12,364.12947774
  • ', + '
  • TakerPays CNY.razqQKzJRdB4UxFPWf5NEpEG3WMkmwgcXA decreased byCN¥225.45293634fromCN¥12,589.58241408toCN¥12,364.12947774
  • ', ) expect(w.find('li').at(14).html()).toBe( - '
  • TakerGets XRP decreased by\uE90050.324316from\uE9002,810.174646to\uE9002,759.85033
  • ', + '
  • TakerGets XRP decreased by50.324316from2,810.174646to2,759.85033
  • ', ) expect(w.find('li').at(15).html()).toBe( - '
  • It modified a CNYripplestate node betweenand
    • Balance changed byCN¥225.45293634fromCN¥187,682.19557797toCN¥187,907.64851431
  • ', + '
  • It modified a CNYRippleState node betweenand
    • Balance changed byCN¥225.45293634fromCN¥187,682.19557797toCN¥187,907.64851431
  • ', ) expect(w.find('li').at(16).html()).toBe( @@ -104,7 +104,7 @@ describe('TransactionMeta container', () => { ) expect(w.find('li').at(17).html()).toBe( - '
  • It modified a CNYripplestate node betweenand
    • Balance changed byCN¥224.7141103fromCN¥68,093.01974027toCN¥68,317.73385057
  • ', + '
  • It modified a CNYRippleState node betweenand
    • Balance changed byCN¥224.7141103fromCN¥68,093.01974027toCN¥68,317.73385057
  • ', ) expect(w.find('li').at(18).html()).toBe( @@ -112,7 +112,7 @@ describe('TransactionMeta container', () => { ) expect(w.find('li').at(19).html()).toBe( - '
  • It modified a CNYripplestate node betweenand
    • Balance changed by-CN¥224.7141103fromCN¥9,605.02284129toCN¥9,380.30873099
  • ', + '
  • It modified a CNYRippleState node betweenand
    • Balance changed by-CN¥224.7141103fromCN¥9,605.02284129toCN¥9,380.30873099
  • ', ) expect(w.find('li').at(20).html()).toBe( @@ -120,7 +120,7 @@ describe('TransactionMeta container', () => { ) expect(w.find('li').at(21).html()).toBe( - '
  • It modified a CNYripplestate node betweenand
    • Balance changed byCN¥225.90384221from-CN¥225.90384221toCN¥0.00
  • ', + '
  • It modified a CNYRippleState node betweenand
    • Balance changed byCN¥225.90384221from-CN¥225.90384221toCN¥0.00
  • ', ) expect(w.find('li').at(22).html()).toBe( diff --git a/src/containers/shared/components/Transaction/OfferCreate/test/OfferCreateDescription.test.tsx b/src/containers/shared/components/Transaction/OfferCreate/test/OfferCreateDescription.test.tsx index 4f175a236..1e730dcd6 100644 --- a/src/containers/shared/components/Transaction/OfferCreate/test/OfferCreateDescription.test.tsx +++ b/src/containers/shared/components/Transaction/OfferCreate/test/OfferCreateDescription.test.tsx @@ -11,7 +11,7 @@ describe('OfferCreate: Description', () => { const wrapper = createWrapper(OfferCreate) expect(wrapper.html()).toBe( - '
    The accountoffered to pay1,080,661.95882CSCin order to receive\uE9001,764.293151XRP
    offer_create_desc_line_2 612.52XRP/CSC
    offer_create_desc_line_3 44866443
    The offer expiresMay 18, 2022 at 5:28:16 PM UTCunless cancelled before', + '
    The accountoffered to pay1,080,661.95882 CSC.rCSCManTZ8ME9EoLrSHHYKW8PPwWMgkwrin order to receive1,764.293151 XRP
    offer_create_desc_line_2 612.52XRP/CSC.rCSCManTZ8ME9EoLrSHHYKW8PPwWMgkwr
    offer_create_desc_line_3 44866443
    The offer expiresMay 18, 2022 at 5:28:16 PM UTCunless cancelled before', ) wrapper.unmount() }) @@ -20,7 +20,7 @@ describe('OfferCreate: Description', () => { const wrapper = createWrapper(OfferCreateInvertedCurrencies) expect(wrapper.html()).toBe( - '
    The accountoffered to pay\uE90017,588.363594XRPin order to receive$6,101.33033905USD
    offer_create_desc_line_2 0.34690XRP/USD
    offer_create_desc_line_3 80543309
    ', + '
    The accountoffered to pay17,588.363594 XRPin order to receive$6,101.33033905 USD.rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B
    offer_create_desc_line_2 0.34690XRP/USD.rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B
    offer_create_desc_line_3 80543309
    ', ) wrapper.unmount() }) @@ -29,7 +29,7 @@ describe('OfferCreate: Description', () => { const wrapper = createWrapper(OfferCreateWithPermissionedDomainID) expect(wrapper.html()).toBe( - '
    The accountoffered to pay\uE90017,588.363594XRPin order to receive$10.00USD
    offer_create_desc_line_2 0.00056856XRP/USD
    offer_create_desc_line_5: 4A4879496CFF23CA32242D50DA04DDB41F4561167276A62AF21899F83DF28812
    ', + '
    The accountoffered to pay17,588.363594 XRPin order to receive$10.00 USD.rnybsH3BZKKCG7fwPzTeLtGejnq6UQyNCC
    offer_create_desc_line_2 0.00056856XRP/USD.rnybsH3BZKKCG7fwPzTeLtGejnq6UQyNCC
    offer_create_desc_line_5: 4A4879496CFF23CA32242D50DA04DDB41F4561167276A62AF21899F83DF28812
    ', ) wrapper.unmount() }) From 380d5fbd1f2eb776df5422ef1263d9501928a665 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Tue, 21 Oct 2025 15:08:54 -0400 Subject: [PATCH 13/15] run linter --- src/containers/Accounts/AccountAsset/styles.scss | 1 + src/containers/Accounts/AccountSummary/styles.scss | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/containers/Accounts/AccountAsset/styles.scss b/src/containers/Accounts/AccountAsset/styles.scss index ef3792562..7434c1211 100644 --- a/src/containers/Accounts/AccountAsset/styles.scss +++ b/src/containers/Accounts/AccountAsset/styles.scss @@ -164,6 +164,7 @@ backdrop-filter: blur( 100px ); /* As table rows scroll under the header, they appear blurred behind it */ + color: $black-50; font-size: 12px; text-align: left; diff --git a/src/containers/Accounts/AccountSummary/styles.scss b/src/containers/Accounts/AccountSummary/styles.scss index 79fca4b17..77723eada 100644 --- a/src/containers/Accounts/AccountSummary/styles.scss +++ b/src/containers/Accounts/AccountSummary/styles.scss @@ -397,9 +397,11 @@ padding: 12px; gap: 8px; } + .details-label { font-size: 12px; } + .details-value { font-size: 14px; } @@ -466,6 +468,7 @@ .properties { .properties-header { gap: 8px; + .properties-toggle { padding: 4px; } @@ -489,6 +492,7 @@ .flags-card { grid-column: auto; } + .signers-card { grid-column: auto; } From 78ef44f438d02c46b68dde4fc1dbf9e897621ee4 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Fri, 5 Dec 2025 17:54:56 -0500 Subject: [PATCH 14/15] more cleanup --- .vscode/settings.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 388c5c033..5b0f9bb6d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -58,14 +58,13 @@ "chopa", "chopb", "cimode", - "Clawback", + "clawback", "clsx", "ctid", "CUSTOMNETWORK", "Decomp", "esbuild", "fakenode", - "fullfillment", "Hant", "healthz", "hexbin", @@ -79,7 +78,7 @@ "pageview", "paychannel", "paychannels", - "Permissioned", + "permissioned", "setfee", "stylelint", "svgr", From 5d6b0ce4c7c56cb1422e3bf914073c987e945835 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Mon, 5 Jan 2026 16:21:16 -0500 Subject: [PATCH 15/15] fix typo --- public/locales/fr-FR/translations.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/locales/fr-FR/translations.json b/public/locales/fr-FR/translations.json index 6b13ceb40..ce386f151 100644 --- a/public/locales/fr-FR/translations.json +++ b/public/locales/fr-FR/translations.json @@ -36,7 +36,7 @@ "24H": "24H", "30D": "30J", "total_transactions": "# de Txns", - "total_fees": "Frais Totaux",\ + "total_fees": "Frais Totaux", "async_component_failed": "Impossible de charger le composant", "account_not_found": "Compte non trouvé", "account_empty_title": "Aucun id de compte n'a été fourni",