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

feature(connector)_: Add model join to handle connected dApps #15954

Merged
merged 3 commits into from
Aug 6, 2024

Conversation

kounkou
Copy link
Contributor

@kounkou kounkou commented Aug 1, 2024

fixes #15885

Waits for status-im/status-go#5646

What does the PR do

This PR contains the changes to be able to see the list of connected DApps on the Status desktop for Connector service. It also contains changes to managed DAppPermissionGranted and DAppPermissionRevoked

Affected areas

  • Connected DApps list

Screenshot of functionality (including design for comparison)

Screencast.from.2024-08-02.01-51-36.webm

Impact on end user

Similar to other PR's this PR reuses some Wallet connect functionalities. I performed test to make sure Wallet Connect still works as expected

How to test

Please refer to the video to test. Please be aware that this PR requires setting the FLAG_DAPPS_ENABLED flag to enabled since it enables seeing the list of DApps.

Or use : https://app.uniswap.org/swap

Risk

Very low risk since Connector service duplicated some WC facilities which live isolated and would not create regression by definition.

Tick one:

  • Low risk: 2 devs MUST perform testing as specified above and attach their results as comments to this PR before merging.
  • High risk: QA team MUST perform additional testing in the specified affected areas before merging.

@kounkou kounkou added backend-team E:D Browser Plugin Connector M1 Task to implement the connector between the browser plugin and Status labels Aug 1, 2024
@kounkou kounkou self-assigned this Aug 1, 2024
@status-im-auto
Copy link
Member

status-im-auto commented Aug 1, 2024

Jenkins Builds

Click to see older builds (32)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ ea38227 #1 2024-08-01 09:39:02 ~6 min tests/nim 📄log
ea38227 #1 2024-08-01 09:40:46 ~8 min macos/x86_64 📄log
ea38227 #1 2024-08-01 09:42:40 ~10 min linux-nix/x86_64 📄log
ea38227 #1 2024-08-01 09:43:30 ~11 min macos/aarch64 📄log
ea38227 #1 2024-08-01 09:43:31 ~11 min linux/x86_64 📄log
ea38227 #1 2024-08-01 09:44:39 ~12 min tests/ui 📄log
ea38227 #1 2024-08-01 09:56:38 ~24 min windows/x86_64 📄log
✔️ af8a916 #3 2024-08-02 08:58:04 ~7 min tests/nim 📄log
✔️ af8a916 #3 2024-08-02 09:01:20 ~10 min macos/aarch64 🍎dmg
✔️ af8a916 #3 2024-08-02 09:01:52 ~11 min macos/x86_64 🍎dmg
af8a916 #3 2024-08-02 09:02:32 ~12 min tests/ui 📄log
✔️ af8a916 #3 2024-08-02 09:06:37 ~16 min linux-nix/x86_64 📦tgz
✔️ ad5242e #4 2024-08-02 09:13:22 ~6 min tests/nim 📄log
✔️ ad5242e #4 2024-08-02 09:14:24 ~7 min macos/aarch64 🍎dmg
✔️ ad5242e #4 2024-08-02 09:15:21 ~8 min macos/x86_64 🍎dmg
✔️ e47fcaf #5 2024-08-02 09:23:25 ~6 min tests/nim 📄log
✔️ e47fcaf #5 2024-08-02 09:23:41 ~7 min macos/aarch64 🍎dmg
✔️ e47fcaf #5 2024-08-02 09:24:33 ~7 min macos/x86_64 🍎dmg
e47fcaf #5 2024-08-02 09:29:06 ~12 min tests/ui 📄log
✔️ e47fcaf #5 2024-08-02 09:29:10 ~12 min linux-nix/x86_64 📦tgz
✔️ e47fcaf #5 2024-08-02 09:32:29 ~15 min linux/x86_64 📦tgz
✔️ e47fcaf #5 2024-08-02 09:44:54 ~28 min windows/x86_64 💿exe
✔️ 94e44d1 #6 2024-08-02 18:52:13 ~6 min tests/nim 📄log
✔️ 94e44d1 #6 2024-08-02 18:53:17 ~7 min macos/aarch64 🍎dmg
✔️ 94e44d1 #6 2024-08-02 18:53:23 ~7 min macos/x86_64 🍎dmg
✔️ 58a90b9 #7 2024-08-02 19:05:32 ~6 min tests/nim 📄log
✔️ 58a90b9 #7 2024-08-02 19:05:49 ~7 min macos/aarch64 🍎dmg
✔️ 58a90b9 #7 2024-08-02 19:06:27 ~7 min macos/x86_64 🍎dmg
✔️ 58a90b9 #7 2024-08-02 19:12:02 ~13 min tests/ui 📄log
✔️ 58a90b9 #7 2024-08-02 19:14:12 ~15 min linux-nix/x86_64 📦tgz
✔️ 58a90b9 #7 2024-08-02 19:16:47 ~18 min linux/x86_64 📦tgz
✔️ 58a90b9 #7 2024-08-02 19:24:19 ~25 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 5a51c2a #8 2024-08-06 18:32:27 ~6 min tests/nim 📄log
✔️ 5a51c2a #8 2024-08-06 18:33:41 ~7 min macos/aarch64 🍎dmg
✔️ 5a51c2a #8 2024-08-06 18:35:17 ~9 min macos/x86_64 🍎dmg
✔️ 5a51c2a #8 2024-08-06 18:38:41 ~13 min linux-nix/x86_64 📦tgz
✔️ 5a51c2a #8 2024-08-06 18:38:44 ~12 min tests/ui 📄log
✔️ 5a51c2a #8 2024-08-06 18:41:50 ~16 min linux/x86_64 📦tgz
✔️ 5a51c2a #8 2024-08-06 18:56:03 ~30 min windows/x86_64 💿exe
✔️ e8ca7be #9 2024-08-06 19:53:44 ~6 min tests/nim 📄log
✔️ e8ca7be #9 2024-08-06 19:55:01 ~7 min macos/aarch64 🍎dmg
✔️ e8ca7be #9 2024-08-06 19:56:36 ~9 min macos/x86_64 🍎dmg
✔️ e8ca7be #9 2024-08-06 20:00:32 ~13 min tests/ui 📄log
✔️ e8ca7be #9 2024-08-06 20:00:32 ~13 min linux-nix/x86_64 📦tgz
✔️ e8ca7be #9 2024-08-06 20:03:09 ~16 min linux/x86_64 📦tgz
✔️ e8ca7be #9 2024-08-06 20:19:29 ~32 min windows/x86_64 💿exe

@kounkou kounkou force-pushed the feature-join-dappsModel-and-connector-models branch 2 times, most recently from 4ee6005 to af8a916 Compare August 2, 2024 08:50
@status-im-auto
Copy link
Member

✔️ status-desktop/prs/linux/x86_64/tests-nim/PR-15954#3 🔹 ~7 min 39 sec 🔹 af8a916 🔹 📦 tests/nim package

Copy link
Member

@jrainville jrainville left a comment

Choose a reason for hiding this comment

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

Looks good

@status-im-auto
Copy link
Member

✔️ status-desktop/prs/linux/x86_64/tests-nim/PR-15954#6 🔹 ~6 min 59 sec 🔹 94e44d1 🔹 📦 tests/nim package

Copy link
Contributor

@MishkaRogachev MishkaRogachev left a comment

Choose a reason for hiding this comment

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

Looks fine!

@iurimatias iurimatias added this to the 2.30.0 Beta milestone Aug 6, 2024
@jrainville jrainville force-pushed the feature-join-dappsModel-and-connector-models branch from 58a90b9 to 5a51c2a Compare August 6, 2024 18:25
@kounkou
Copy link
Contributor Author

kounkou commented Aug 6, 2024

Note for testers, and QA :

The current code is under a feature flag waiting for 1/ Status-go merge, 2/ QA testing. For those interested into testing the applicatio :

  • Download a build of the application Here

  • Activate the feature flag for testing the functionality :

export FLAG_DAPPS_ENABLED=1
  • Verify the needed functionality is activate

Screenshot 2024-08-06 182927

@kounkou
Copy link
Contributor Author

kounkou commented Aug 6, 2024

Performed testing again after merging status-go changes to make sure everything works as expected. Bumping status-go now.

@kounkou kounkou merged commit bef6661 into master Aug 6, 2024
9 checks passed
@kounkou kounkou deleted the feature-join-dappsModel-and-connector-models branch August 6, 2024 20:20
@kounkou
Copy link
Contributor Author

kounkou commented Aug 6, 2024

Hi @anastasiyaig could you be able to perform testing on this feature, instructions and information here : #15954 (comment) please 🙏🏾

kounkou added a commit that referenced this pull request Aug 6, 2024
* feature(connector)_: Add model join to handle connected dApps

* Fix review comments

* chore: bump status-go
kounkou added a commit that referenced this pull request Aug 6, 2024
* feature(connector)_: Add model join to handle connected dApps

* Fix review comments

* chore: bump status-go
@felicio
Copy link

felicio commented Aug 7, 2024

My quick notes:

  • the video shows WalletConnect icon for the connector which is not WC
  • desktop crashes when left running for a while

jrainville pushed a commit that referenced this pull request Aug 7, 2024
#16006)

* feature(connector)_: Add model join to handle connected dApps (#15954)

* feature(connector)_: Add model join to handle connected dApps

* Fix review comments

* chore: bump status-go

* chore: bump status-go to latest
@felicio
Copy link

felicio commented Aug 7, 2024

Also, the component does not seem to be contextual. Meaning that if Account 1 (not All accounts) is elected, dApps for Account 2 can be disconnected.

image

@kounkou
Copy link
Contributor Author

kounkou commented Aug 8, 2024

My quick notes:

  • the video shows WalletConnect icon for the connector which is not WC

Could you post a screenshot for this point, I am actually confused what you mean by shows WalletConnect icon for the connector which is not WC

  • desktop crashes when left running for a while

Do you have some more information about the crash? any logs to share please? Is it reproducible or it's just a one off? Also any estimation about the amount of time when saying for a while

@kounkou
Copy link
Contributor Author

kounkou commented Aug 8, 2024

Also, the component does not seem to be contextual. Meaning that if Account 1 (not All accounts) is elected, dApps for Account 2 can be disconnected.

image

Thanks for bringing this is interesting perspective... 🙏🏾 If I understand what you meant here, the connections should obviously be filtered by account. I believe this should work unless there is a small tweak to make in the WC model fetching. @stefandunca do you confirm that this should work on WC or is there anything in progress?

@felicio
Copy link

felicio commented Aug 8, 2024

Could you post a screenshot for this point, I am actually confused

image

@kounkou
Copy link
Contributor Author

kounkou commented Aug 8, 2024

I am opening a new ticket, this PR is merged. let's move these on the other ticket

#16026

@felicio
Copy link

felicio commented Aug 8, 2024

Do you have some more information about the crash?

On macOS, not logs to share atm. Try running it for more than ~1h, happens regularly.

@stefandunca
Copy link
Contributor

Thanks for bringing this is interesting perspective... 🙏🏾 If I understand what you meant here, the connections should obviously be filtered by account. I believe this should work unless there is a small tweak to make in the WC model fetching. @stefandunca do you confirm that this should work on WC or is there anything in progress?

Indeed, it was implemented by @Seitseman here #15877

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E:D Browser Plugin Connector M1 Task to implement the connector between the browser plugin and Status waiting-for-status-go-merge
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Browser plugin connector] List browser plugin dApps in the dApps dialog
7 participants