Skip to content

Commit

Permalink
fix: rename tx created field to tx received at (#343)
Browse files Browse the repository at this point in the history
# What ❔

Rename tx created field to tx received at, fix the tooltip for the
field.

## Why ❔

The new name better reflects the purpose of the value. As for the
tooltip, it was misleading, as it stated that the displayed time was
when the transaction was added to the block, which is incorrect. The
datetime shown is actually the time when the transaction was received.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [X] Tests for the changes have been added / updated.
  • Loading branch information
vasyl-ivanchuk authored Dec 3, 2024
1 parent 0d144bc commit 6a9cf04
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@
</tr>
<tr class="transaction-table-row">
<table-body-column class="transaction-table-label">
<span class="transaction-info-field-label">{{ t("transactions.table.created") }}</span>
<span class="transaction-info-field-label">{{ t("transactions.table.receivedAt") }}</span>
<InfoTooltip class="transaction-info-field-tooltip">
{{ t("transactions.table.createdTooltip") }}
{{ t("transactions.table.receivedAtTooltip") }}
</InfoTooltip>
</table-body-column>
<table-body-column class="transaction-table-value">
Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@
"transactionHashTooltip": "Transaction hash is a unique 66-character identifier that is generated whenever a transaction is executed",
"nonce": "Nonce",
"nonceTooltip": "Number of transactions sent from a sender address",
"created": "Created",
"createdTooltip": "The date and time at which a transaction is added to the block",
"receivedAt": "Received",
"receivedAtTooltip": "The date and time when the transaction was received",
"sendersNonce": "Sender`s Nonce",
"from": "From",
"fromTooltip": "The sending party of the transaction",
Expand Down
3 changes: 2 additions & 1 deletion packages/app/src/locales/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
"reasonTooltip": "Причина невиконання транзакції",
"transactionHash": "Хеш Транзакції",
"nonce": "Нонс",
"created": "Створено",
"receivedAt": "Отримано",
"receivedAtTooltip": "Час коли транзакцію було отримано",
"from": "Від",
"to": "До",
"block": "Блок",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ describe("Transaction info table", () => {
expect(gasLimitAndUsedTooltip).toBe(i18n.global.t("transactions.table.gasLimitAndUsedTooltip"));
expect(gasPerPubdataTooltip).toBe(i18n.global.t("transactions.table.gasPerPubdataTooltip"));
expect(nonceTooltip).toBe(i18n.global.t("transactions.table.nonceTooltip"));
expect(createdAtTooltip).toBe(i18n.global.t("transactions.table.createdTooltip"));
expect(createdAtTooltip).toBe(i18n.global.t("transactions.table.receivedAtTooltip"));
});
it("renders indexing transaction status", async () => {
const wrapper = mount(Table, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Feature: Main Page
| Input data | 0xa9059cbb00000000000000000000000 |
| Block | 45751 |
| Batch | #661 |
| Created | 2023-02-10 |
| Received | 2023-02-10 |
| Tokens Transferred | 0x8f0F33583a5 |
| Tokens Transferred | From |
| Tokens Transferred | 0x8f0F33583a5...d8f6 |
Expand Down Expand Up @@ -173,7 +173,7 @@ Feature: Main Page
| Input data | Function: transfer |
| Block | 3491940 |
| Batch | #28739 |
| Created | 2023-05-14 |
| Received | 2023-05-14 |


@id211 @testnet
Expand Down

0 comments on commit 6a9cf04

Please sign in to comment.