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

dApp - sd-6 - Same connected dApps appear on every account #15589

Closed
glitchminer opened this issue Jul 15, 2024 · 12 comments · Fixed by #15985
Closed

dApp - sd-6 - Same connected dApps appear on every account #15589

glitchminer opened this issue Jul 15, 2024 · 12 comments · Fixed by #15985
Assignees
Labels
bug Something isn't working dapp-interactions
Milestone

Comments

@glitchminer
Copy link
Contributor

glitchminer commented Jul 15, 2024

Bug Report

Description

  1. After a dApp is connected is appears in the dApp menu for every account, even when that account was not the one that was connected.
    image

  1. When the same app is connected to multiple accounts the dApp button displays each app only once making it unclear what is connected and what the disconnect button will do.

  1. The dApps button was not expected on the "All accounts" view but is shown - the list does not show which accounts are connected.

Steps to reproduce

Connect to the same dApp from multiple wallet accounts

Expected behavior

  • dApp button is shown on individual accounts
  • The connected dApps shown are specific to the selected accounts
  • the dApp menu is not displayed on the all accounts view

Additional Information

  • Status desktop version: Master, with dApp flag.
  • Operating System: Mac
@glitchminer glitchminer added bug Something isn't working dapp-interactions labels Jul 15, 2024
@glitchminer glitchminer added this to the 2.30.0 Beta milestone Jul 15, 2024
@glitchminer glitchminer changed the title dApp - sd-6 - All connected dApps appear on every account dApp - sd-6 - Same connected dApps appear on every account Jul 15, 2024
@stefandunca
Copy link
Contributor

stefandunca commented Jul 22, 2024

@glitchminer I missed these requirements and never planned to add filtering of dapps based on the account selected. Could you please clarify where are these coming from to see the complexity and if should we fix it now or leave it for later?

In the meantime I will test if the problem is also happening with different profiles which we expect should not overlap.

@glitchminer
Copy link
Contributor Author

Hi @stefandunca, these are coming from manual test cases derived from some user stories.

It will need confirmed with design now but Figma examples had the dapp button available on the individual account view only so there was an assumption that each account would display only dapps relevant to it.

@stefandunca
Copy link
Contributor

It will need confirmed with design now but Figma examples had the dapp button available on the individual account view only so there was an assumption that each account would display only dapps relevant to it.

That will be god to understand; @xAlisher must know better the intention there.

@clauxx
Copy link
Member

clauxx commented Jul 25, 2024

I agree with @glitchminer that most likely that was the initial intention. It's a different thing though whether it's high priority to have or the user can live with it as a global connected dapps list for M1 (cc @xAlisher)?

How complex or time consuming do you think it will be to add @stefandunca?

@stefandunca
Copy link
Contributor

How complex or time consuming do you think it will be to add @stefandunca?

I didn't deal with handling of accounts switching and filtering recently and we don't have logic to hide/manage the button so I can't say. For me it is high risk, however maybe UI team have a different view on the matter.

@clauxx
Copy link
Member

clauxx commented Jul 25, 2024

@stefandunca From what Alisher wrote on Discord:

I can't say if this is a blocker, but I can tell you that if you have two accounts—one with a lot of funds and another just for fun—you might connect the second account to many dApps to explore and experiment. Later on, if the account with funds shows all those unwanted dApps connected, it will be very detrimental for us.

I tend to agree with this. We also show unique connected dapps, right? If for instance two accounts are connected to the same dapp, would the user see two entries there or one? But even if we see two, the user wouldn't know which one to disconnect.

IMHO this makes this issue a blocker. WDYT?

@stefandunca
Copy link
Contributor

stefandunca commented Jul 25, 2024

... but I can tell you that if you have two accounts—one with a lot of funds and another just for fun—you might connect the second account to many dApps to explore and experiment

Indeed I didn't considered and AFAIK we don't have anything related to the concept of important and unimportant wallet account in the wallet. It is the first time I hear about this persona characteristics I will consider it in the future.

I tend to agree with this. We also show unique connected dapps, right? If for instance two accounts are connected to the same dapp, would the user see two entries there or one? But even if we see two, the user wouldn't know which one to disconnect.

Yes, we only show one and on disconnect it will disconnect all the sessions.

I remember we had a similar discussed and considered a limitation given that we descoped the session management. I mean we discussed the fapt that user can connect from different browsers/systems with the same dApp and different accounts and it has no way to mange or visualize this in the current requirements (descoped designs).

IMHO this makes this issue a blocker. WDYT?

It looks like. I will tackle this next then.

Also there will be nice to have a clear description of this user story and acceptance criteria. For example should we show all connected dapps on all accounts selected (as it seems to me a way to be consistent)?

@stefandunca
Copy link
Contributor

Also there will be nice to have a clear description of this user story and acceptance criteria. For example should we show all connected dapps on all accounts selected (as it seems to me a way to be consistent)?

I see the following requirements from @xAlisher in discord channel

  • All accounts page:
    • show all connected dApps
    • disconnect action disconnects dApp from all accounts
  • Account page:
    • only dApps connected to opened account
    • disconnect action disconnects dApp from opened account

@clauxx
Copy link
Member

clauxx commented Jul 25, 2024

do we have an "all accounts" page on desktop?

@stefandunca
Copy link
Contributor

stefandunca commented Jul 25, 2024

do we have an "all accounts" page on desktop?

Yup, it is the default view for wallet. I mean hiding the button on that page will hide the feature :)

@clauxx
Copy link
Member

clauxx commented Jul 25, 2024

Then there we would show all active sessions

@anastasiyaig
Copy link
Contributor

@stefandunca mind assigning that to you if you are on this task?

@stefandunca stefandunca self-assigned this Jul 26, 2024
@stefandunca stefandunca moved this from In Progress to QA in Status Desktop/Mobile Board Jul 29, 2024
@stefandunca stefandunca moved this from QA to Code Review in Status Desktop/Mobile Board Jul 29, 2024
Seitseman added a commit that referenced this issue Jul 30, 2024
1. Hiding DApps button on not supported wallet account selection
2. Filtering DApps in connected dApps list based on account selection

closes: #15589
closes: #15647
Seitseman added a commit that referenced this issue Jul 31, 2024
1. Hiding DApps button on not supported wallet account selection
2. Filtering DApps in connected dApps list based on account selection

closes: #15589
closes: #15647
Seitseman added a commit that referenced this issue Jul 31, 2024
1. Hiding DApps button on not supported wallet account selection
2. Filtering DApps in connected dApps list based on account selection

closes: #15589
closes: #15647
Seitseman added a commit that referenced this issue Jul 31, 2024
1. Hiding DApps button on not supported wallet account selection
2. Filtering DApps in connected dApps list based on account selection

closes: #15589
closes: #15647
Seitseman added a commit that referenced this issue Jul 31, 2024
1. Hiding DApps button on not supported wallet account selection
2. Filtering DApps in connected dApps list based on account selection

closes: #15589
closes: #15647
@stefandunca stefandunca moved this from Code Review to QA in Status Desktop/Mobile Board Aug 2, 2024
@stefandunca stefandunca moved this from QA to Code Review in Status Desktop/Mobile Board Aug 2, 2024
Seitseman added a commit that referenced this issue Aug 2, 2024
1. Hiding DApps button on not supported wallet account selection
2. Filtering DApps in connected dApps list based on account selection

closes: #15589
closes: #15647
Seitseman added a commit that referenced this issue Aug 2, 2024
1. Hiding DApps button on not supported wallet account selection
2. Filtering DApps in connected dApps list based on account selection

closes: #15589
closes: #15647
Seitseman added a commit that referenced this issue Aug 2, 2024
1. Hiding DApps button on not supported wallet account selection
2. Filtering DApps in connected dApps list based on account selection

closes: #15589
closes: #15647
Seitseman added a commit that referenced this issue Aug 5, 2024
1. Hiding DApps button on not supported wallet account selection
2. Filtering DApps in connected dApps list based on account selection

closes: #15589
closes: #15647
Seitseman added a commit that referenced this issue Aug 5, 2024
1. Hiding DApps button on not supported wallet account selection
2. Filtering DApps in connected dApps list based on account selection

closes: #15589
closes: #15647
@github-project-automation github-project-automation bot moved this from Code Review to Done in Status Desktop/Mobile Board Aug 5, 2024
jrainville pushed a commit that referenced this issue Aug 5, 2024
1. Hiding DApps button on not supported wallet account selection
2. Filtering DApps in connected dApps list based on account selection

closes: #15589
closes: #15647
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dapp-interactions
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants