Skip to content

Conversation

@dlipicar
Copy link
Contributor

@dlipicar dlipicar commented Dec 16, 2025

What does the PR do

Cherrypicks #19544
status-go part status-im/status-go#7220
Closes #19542

Copilot AI review requested due to automatic review settings December 16, 2025 19:52
@dlipicar dlipicar requested review from friofry and removed request for a team December 16, 2025 19:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a "Refetch transaction history" button in the Advanced settings section to help users manually trigger a re-fetch of their transaction history when experiencing issues with missing transactions.

Key changes:

  • Added a new UI control in Advanced settings with a "Refetch" button that changes to "Done" after being clicked
  • Updated the beta warning message to direct users to the new refetch functionality instead of external block explorers
  • Implemented the backend RPC call chain through the wallet service to trigger transaction history refetch

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
vendor/status-go Updated subproject commit reference
ui/imports/shared/views/HistoryBetaTag.qml Simplified beta tag message and removed explorer link generation logic
ui/i18n/*.ts Added translation strings for "Refetch transaction history", "Refetch", and "Done" across multiple locales
ui/app/AppLayouts/Profile/views/AdvancedView.qml Added new UI section with refetch button and completion state tracking
ui/app/AppLayouts/Profile/stores/AdvancedStore.qml Added refetchTxHistory function that calls wallet module
src/backend/wallet.nim Added RPC call definition for refetchTxHistory
src/app_service/service/wallet_account/service.nim Implemented service method to call backend refetchTxHistory
src/app/modules/main/profile_section/wallet/*.nim Added refetchTxHistory methods through view, module, interface, and controller layers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +42 to +45
property bool refetchTxHistoryCompleted: false
onVisibleChanged: {
root.refetchTxHistoryCompleted = false
}
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The refetchTxHistoryCompleted state is reset every time the view becomes visible, but this approach doesn't account for the view becoming hidden. Consider resetting the state when visibility changes to false specifically, or add a comment explaining why resetting on any visibility change is the desired behavior.

Copilot uses AI. Check for mistakes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds legit :)


spacing: Theme.padding

height: 64
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The height is hardcoded to 64. Consider using a Theme constant or calculating the height based on content to maintain consistency with other UI elements and support different display scales.

Copilot uses AI. Check for mistakes.
}

function refetchTxHistory() {
if(!root.walletModule)
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space after 'if' keyword. The spacing should be 'if (!root.walletModule)' to follow QML/JavaScript style conventions.

Copilot uses AI. Check for mistakes.
Comment on lines +294 to +295
rpc(refetchTxHistory, "wallet"):
discard
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The RPC procedure lacks documentation explaining its purpose and expected behavior. Add a docstring describing what refetchTxHistory does and any side effects or requirements.

Copilot uses AI. Check for mistakes.
@status-im-auto
Copy link
Member

status-im-auto commented Dec 16, 2025

Jenkins Builds

Click to see older builds (10)
Commit #️⃣ Finished (UTC) Duration Platform Result
cfeee44 #1 2025-12-16 20:01:03 ~8 min macos/aarch64-nwaku 📄log
✔️ cfeee44 #1 2025-12-16 20:02:19 ~10 min android/arm64 🤖apk 📲
✔️ cfeee44 #1 2025-12-16 20:02:52 ~10 min tests/nim 📄log
✖️ cfeee44 #1 2025-12-16 20:05:05 ~12 min ios/aarch64 📱ipa
✔️ cfeee44 #1 2025-12-16 20:06:18 ~13 min tests/ui 📄log
cfeee44 #1 2025-12-16 20:07:11 ~14 min windows/x86_64 📄log
✔️ cfeee44 #1 2025-12-16 20:07:17 ~14 min macos/aarch64 🍎dmg
✔️ cfeee44 #1 2025-12-16 20:11:58 ~19 min linux/x86_64 📦tgz
✔️ cfeee44 #1 2025-12-16 20:14:13 ~21 min linux/x86_64-nwaku 📦tgz
✔️ cfeee44 pr19601 2025-12-16 20:28:03 ~15 min tests/e2e 📊rpt
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ d9e1df74 #2 2025-12-17 05:29:46 ~11 min android/arm64 🤖apk 📲
✔️ 0d57dcff #3 2025-12-18 05:31:28 ~13 min android/arm64 🤖apk 📲

Comment on lines +42 to +45
property bool refetchTxHistoryCompleted: false
onVisibleChanged: {
root.refetchTxHistoryCompleted = false
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds legit :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Transaction history] add Refetch transaction history feature

4 participants