Skip to content
New issue

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

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

Already on GitHub? # to your account

chore(@desktop/wallet): Simplify the wallet networks service #13995

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

Khushboo-dev-cpp
Copy link
Contributor

@Khushboo-dev-cpp Khushboo-dev-cpp commented Mar 15, 2024

fixes #12717

What does the PR do

Simplifying the networks service and creating only 2 base types -

  1. combines networks single entry for each network for mainnet/testnet combined in one.
  2. Flat networks mainnet+test

Moving all the layer1, layer2 , enabled submodels to qml by using SortFilterProxyModels

I will be moving the networks submodule in profile in the next PR as this PR is already too bug.

Affected areas

Networks in UI (all app)

StatusQ checklist

  • add documentation if necessary (new component, new feature)
  • update sandbox app
    • in case of new component, add new component page
    • in case of new features, add variation to existing component page
    • nice to have: add it to the demo application as well
  • test changes in both light and dark theme?

Screenshot of functionality (including design for comparison)

  • I've checked the design and this PR matches it

@status-im-auto
Copy link
Member

status-im-auto commented Mar 15, 2024

Jenkins Builds

Click to see older builds (57)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ b97e016 #1 2024-03-15 15:07:49 ~6 min macos/aarch64 🍎dmg
✔️ b97e016 #2 2024-03-15 15:08:16 ~6 min tests/nim 📄log
b97e016 #2 2024-03-15 15:12:23 ~10 min tests/ui 📄log
✔️ b97e016 #1 2024-03-15 15:13:23 ~11 min macos/x86_64 🍎dmg
✔️ b97e016 #2 2024-03-15 15:18:19 ~16 min linux/x86_64 📦tgz
✔️ b97e016 #1 2024-03-15 15:34:44 ~33 min windows/x86_64 💿exe
✔️ 21e8bab #2 2024-03-15 21:56:40 ~4 min macos/aarch64 🍎dmg
✔️ 21e8bab #3 2024-03-15 21:58:10 ~6 min tests/nim 📄log
✔️ 21e8bab #2 2024-03-15 21:59:45 ~7 min macos/x86_64 🍎dmg
✔️ 21e8bab #3 2024-03-15 22:02:53 ~10 min tests/ui 📄log
✔️ 7899fe2 #3 2024-03-15 22:08:40 ~3 min macos/aarch64 🍎dmg
✔️ 7899fe2 #4 2024-03-15 22:10:52 ~6 min tests/nim 📄log
✔️ 7899fe2 #3 2024-03-15 22:11:38 ~6 min macos/x86_64 🍎dmg
✔️ 7899fe2 #4 2024-03-15 22:15:14 ~10 min tests/ui 📄log
✔️ 7899fe2 #4 2024-03-15 22:22:01 ~17 min linux/x86_64 📦tgz
✔️ 7899fe2 #3 2024-03-15 22:39:15 ~34 min windows/x86_64 💿exe
✔️ 2edaeaa #4 2024-03-18 12:57:13 ~4 min macos/aarch64 🍎dmg
✔️ 2edaeaa #5 2024-03-18 12:59:19 ~6 min tests/nim 📄log
✔️ 2edaeaa #4 2024-03-18 13:00:14 ~7 min macos/x86_64 🍎dmg
✔️ 2edaeaa #5 2024-03-18 13:04:33 ~12 min tests/ui 📄log
✔️ 2edaeaa #5 2024-03-18 13:09:36 ~17 min linux/x86_64 📦tgz
✔️ 2edaeaa #4 2024-03-18 13:19:12 ~26 min windows/x86_64 💿exe
✔️ ff17f9a #5 2024-03-18 16:26:40 ~4 min macos/aarch64 🍎dmg
✔️ ff17f9a #6 2024-03-18 16:28:50 ~6 min tests/nim 📄log
✔️ ff17f9a #5 2024-03-18 16:29:58 ~7 min macos/x86_64 🍎dmg
✔️ ff17f9a #6 2024-03-18 16:33:21 ~10 min tests/ui 📄log
✔️ ff17f9a #6 2024-03-18 16:38:21 ~16 min linux/x86_64 📦tgz
✔️ ff17f9a #5 2024-03-18 16:48:28 ~26 min windows/x86_64 💿exe
✔️ 4e33673 #6 2024-03-19 12:45:06 ~4 min macos/aarch64 🍎dmg
✔️ 4e33673 #7 2024-03-19 12:47:14 ~6 min tests/nim 📄log
✔️ 4e33673 #6 2024-03-19 12:48:42 ~7 min macos/x86_64 🍎dmg
✔️ 4e33673 #7 2024-03-19 12:52:07 ~11 min tests/ui 📄log
✔️ 4e33673 #7 2024-03-19 12:57:56 ~17 min linux/x86_64 📦tgz
✔️ 95b333e #7 2024-03-19 13:14:23 ~3 min macos/aarch64 🍎dmg
✔️ 95b333e #8 2024-03-19 13:16:40 ~6 min tests/nim 📄log
✔️ 95b333e #7 2024-03-19 13:17:23 ~6 min macos/x86_64 🍎dmg
✔️ 95b333e #8 2024-03-19 13:20:45 ~10 min tests/ui 📄log
✔️ 95b333e #8 2024-03-19 13:25:38 ~15 min linux/x86_64 📦tgz
✔️ 95b333e #7 2024-03-19 13:37:41 ~27 min windows/x86_64 💿exe
✔️ b7cefae #9 2024-03-20 12:33:11 ~6 min tests/nim 📄log
✔️ b7cefae #8 2024-03-20 12:34:13 ~7 min macos/aarch64 🍎dmg
✔️ b7cefae #8 2024-03-20 12:35:06 ~8 min macos/x86_64 🍎dmg
✔️ b7cefae #9 2024-03-20 12:38:42 ~11 min tests/ui 📄log
✔️ b7cefae #9 2024-03-20 12:42:41 ~15 min linux/x86_64 📦tgz
✔️ b7cefae #8 2024-03-20 12:57:23 ~30 min windows/x86_64 💿exe
✔️ b817659 #9 2024-03-20 20:41:04 ~5 min macos/aarch64 🍎dmg
✔️ b817659 #10 2024-03-20 20:42:39 ~6 min tests/nim 📄log
b817659 #9 2024-03-20 20:43:25 ~7 min macos/x86_64 📄log
✔️ b817659 #10 2024-03-20 20:47:24 ~11 min tests/ui 📄log
✔️ b817659 #10 2024-03-20 20:52:08 ~16 min linux/x86_64 📦tgz
✔️ b817659 #9 2024-03-20 21:06:40 ~30 min windows/x86_64 💿exe
3f3bb33 #10 2024-03-20 22:51:47 ~5 min macos/x86_64 📄log
✔️ 3f3bb33 #11 2024-03-20 22:56:13 ~9 min tests/nim 📄log
3f3bb33 #11 2024-03-20 22:56:50 ~10 min linux/x86_64 📄log
✔️ 3f3bb33 #11 2024-03-20 22:59:52 ~13 min tests/ui 📄log
3f3bb33 #10 2024-03-20 23:04:36 ~18 min macos/aarch64 📄log
3f3bb33 #10 2024-03-20 23:08:48 ~22 min windows/x86_64 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ bde077c #11 2024-03-21 09:11:54 ~4 min macos/aarch64 🍎dmg
✔️ bde077c #12 2024-03-21 09:13:55 ~6 min tests/nim 📄log
✔️ bde077c #11 2024-03-21 09:15:07 ~7 min macos/x86_64 🍎dmg
✔️ bde077c #12 2024-03-21 09:19:05 ~11 min tests/ui 📄log
✔️ bde077c #12 2024-03-21 09:23:47 ~16 min linux/x86_64 📦tgz
✔️ bde077c #11 2024-03-21 09:37:00 ~29 min windows/x86_64 💿exe
✔️ fd78a4d #12 2024-03-28 10:09:42 ~5 min macos/aarch64 🍎dmg
✔️ fd78a4d #13 2024-03-28 10:10:57 ~6 min tests/nim 📄log
✔️ fd78a4d #12 2024-03-28 10:13:14 ~8 min macos/x86_64 🍎dmg
✔️ fd78a4d #13 2024-03-28 10:15:53 ~11 min tests/ui 📄log
✔️ fd78a4d #13 2024-03-28 10:20:47 ~16 min linux/x86_64 📦tgz
✔️ fd78a4d #12 2024-03-28 10:37:54 ~33 min windows/x86_64 💿exe

@Khushboo-dev-cpp Khushboo-dev-cpp force-pushed the chore/#12717 branch 5 times, most recently from ff17f9a to 4e33673 Compare March 19, 2024 12:40
@Khushboo-dev-cpp Khushboo-dev-cpp marked this pull request as ready for review March 19, 2024 13:09
@Khushboo-dev-cpp Khushboo-dev-cpp force-pushed the chore/#12717 branch 5 times, most recently from 3f3bb33 to bde077c Compare March 21, 2024 09:06
@status-im-auto
Copy link
Member

Copy link
Contributor

@stefandunca stefandunca left a comment

Choose a reason for hiding this comment

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

Great simplification of networks handling. The common source of truth will hopefully help avoid network related issues in the future. I still don't like how test mode is everywhere instead of just having available networks, maybe in a future we can improve on this also.

Copy link
Contributor

@dlipicar dlipicar left a comment

Choose a reason for hiding this comment

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

nice!
There's some cleanup we can do on the collectibles side by left-joining network info instead of inserting it into each entry (https://github.com/status-im/status-desktop/blob/master/src/app/modules/shared_models/collectibles_entry.nim#L16)

@Khushboo-dev-cpp
Copy link
Contributor Author

nice! There's some cleanup we can do on the collectibles side by left-joining network info instead of inserting it into each entry (https://github.com/status-im/status-desktop/blob/master/src/app/modules/shared_models/collectibles_entry.nim#L16)

Yes we could create a follow up task for that so that its not lost.

@Khushboo-dev-cpp Khushboo-dev-cpp merged commit 5473e3b into master Mar 28, 2024
8 checks passed
@Khushboo-dev-cpp Khushboo-dev-cpp deleted the chore/#12717 branch March 28, 2024 10:47
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify the wallet networks service
5 participants