diff --git a/frontend/src/lib/components/reporting/ReportingNeuronsButton.svelte b/frontend/src/lib/components/reporting/ReportingNeuronsButton.svelte index 6dd78d80168..8f55e4e9dd5 100644 --- a/frontend/src/lib/components/reporting/ReportingNeuronsButton.svelte +++ b/frontend/src/lib/components/reporting/ReportingNeuronsButton.svelte @@ -33,7 +33,10 @@ const exportNeurons = async () => { try { loading = true; - startBusy({ initiator: "reporting-neurons" }); + startBusy({ + initiator: "reporting-neurons", + labelKey: "reporting.busy_screen", + }); // we are logged in to be able to interact with the button const signIdentity = await getAuthenticatedIdentity(); diff --git a/frontend/src/lib/components/reporting/ReportingTransactionsButton.svelte b/frontend/src/lib/components/reporting/ReportingTransactionsButton.svelte index 4387b566286..9e9701e0905 100644 --- a/frontend/src/lib/components/reporting/ReportingTransactionsButton.svelte +++ b/frontend/src/lib/components/reporting/ReportingTransactionsButton.svelte @@ -53,7 +53,10 @@ const exportIcpTransactions = async () => { try { loading = true; - startBusy({ initiator: "reporting-transactions" }); + startBusy({ + initiator: "reporting-transactions", + labelKey: "reporting.busy_screen", + }); // we are logged in to be able to interact with the button const signIdentity = identity as SignIdentity; diff --git a/frontend/src/lib/i18n/en.json b/frontend/src/lib/i18n/en.json index a71bfead3d8..6ef1c1ae887 100644 --- a/frontend/src/lib/i18n/en.json +++ b/frontend/src/lib/i18n/en.json @@ -189,12 +189,13 @@ "neurons": "There was an error exporting the neurons. Please try again." }, "reporting": { - "neurons_title": "Neurons Portfolio", + "neurons_title": "NNS Neurons Portfolio", "neurons_description": "Download a detailed CSV report of your neuron portfolio, which includes the stake, maturity, and neuron account ID for manual tracking and analysis.", "neurons_download": "Export Neurons Portfolio", "transactions_title": "ICP Transactions", "transactions_description": "Download a detailed CSV report of your token transaction history, including both regular token accounts and neurons that will show neuron staking and minting transactions for manual tracking and analysis.", - "transactions_download": "Export Transactions" + "transactions_download": "Export Transactions", + "busy_screen": "Generating report..." }, "auth": { "login": "Sign in with Internet Identity", diff --git a/frontend/src/lib/types/i18n.d.ts b/frontend/src/lib/types/i18n.d.ts index 5e896a7728f..d6148b99fa2 100644 --- a/frontend/src/lib/types/i18n.d.ts +++ b/frontend/src/lib/types/i18n.d.ts @@ -205,6 +205,7 @@ interface I18nReporting { transactions_title: string; transactions_description: string; transactions_download: string; + busy_screen: string; } interface I18nAuth { diff --git a/frontend/src/tests/lib/components/reporting/ReportingNeuronsButton.spec.ts b/frontend/src/tests/lib/components/reporting/ReportingNeuronsButton.spec.ts index dc45125a260..1b26a2ebd24 100644 --- a/frontend/src/tests/lib/components/reporting/ReportingNeuronsButton.spec.ts +++ b/frontend/src/tests/lib/components/reporting/ReportingNeuronsButton.spec.ts @@ -234,7 +234,7 @@ describe("ReportingNeuronsButton", () => { expect(get(busyStore)).toEqual([ { initiator: "reporting-neurons", - text: undefined, + text: "Generating report...", }, ]); diff --git a/frontend/src/tests/lib/components/reporting/ReportingTransactionsButton.spec.ts b/frontend/src/tests/lib/components/reporting/ReportingTransactionsButton.spec.ts index dfe6965dc7b..0cb8ea075d1 100644 --- a/frontend/src/tests/lib/components/reporting/ReportingTransactionsButton.spec.ts +++ b/frontend/src/tests/lib/components/reporting/ReportingTransactionsButton.spec.ts @@ -305,7 +305,7 @@ describe("ReportingTransactionsButton", () => { expect(get(busyStore)).toEqual([ { initiator: "reporting-transactions", - text: undefined, + text: "Generating report...", }, ]);