Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(settings): Fixed changing network urls #14353

Merged
merged 1 commit into from May 13, 2024

Conversation

Cuteivist
Copy link
Contributor

Task #14228

What does the PR do

  • Passed additional parameter to use proper networks depending on active tab (prod or test)
  • Added binding to open tab (prod or test) depending whether currently test network is enabled|
    NOTE this is executed in onVisibleChanged because normal binding would be broken when tabs are manually changed.

Affected areas

Settings / networks

Screenshot of functionality (including design for comparison)

network_settings.mp4

@status-im-auto
Copy link
Member

status-im-auto commented Apr 9, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 14bd68c #1 2024-04-09 05:48:49 ~6 min tests/nim 📄log
✔️ 14bd68c #1 2024-04-09 05:48:57 ~6 min macos/aarch64 🍎dmg
✔️ 14bd68c #1 2024-04-09 05:53:14 ~10 min macos/x86_64 🍎dmg
✔️ 14bd68c #1 2024-04-09 05:53:51 ~11 min tests/ui 📄log
✔️ 14bd68c #1 2024-04-09 05:58:59 ~16 min linux/x86_64 📦tgz
✔️ 14bd68c #1 2024-04-09 06:09:48 ~27 min windows/x86_64 💿exe
✔️ 01f086e #2 2024-05-07 12:32:03 ~7 min tests/nim 📄log
✔️ 01f086e #2 2024-05-07 12:32:46 ~7 min macos/aarch64 🍎dmg
✔️ 01f086e #2 2024-05-07 12:34:23 ~9 min macos/x86_64 🍎dmg
✔️ 01f086e #2 2024-05-07 12:40:01 ~14 min linux/x86_64 📦tgz
✔️ 01f086e #2 2024-05-07 12:41:23 ~16 min tests/ui 📄log
✔️ 01f086e #2 2024-05-07 12:58:44 ~33 min windows/x86_64 💿exe

signal updateNetworkValues(int chainId, string newMainRpcInput, string newFailoverRpcUrl, bool revertToDefault)
signal updateNetworkValues(int chainId, bool testNetwork, string newMainRpcInput, string newFailoverRpcUrl, bool revertToDefault)

onVisibleChanged: {
Copy link
Member

Choose a reason for hiding this comment

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

You could use a Binding (in order not to break with manual tab changes) here but assuming the first tab will be always prod this is good imo :)

@Cuteivist Cuteivist force-pushed the bug/revert-networks-notification-14228 branch from 14bd68c to 01f086e Compare May 7, 2024 12:24
@Cuteivist Cuteivist merged commit 406f12d into master May 13, 2024
8 checks passed
@Cuteivist Cuteivist deleted the bug/revert-networks-notification-14228 branch May 13, 2024 10:06
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.

None yet

4 participants