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

wallet-ext: dapp connection status #4707

Merged
merged 1 commit into from
Sep 19, 2022

Conversation

pchrysochoidis
Copy link
Contributor

  • minimal version only shows the status in the header
  • use background service to track the active tab and notify the ui
Screen.Recording.2022-09-18.at.22.28.11.mov

part of #4696

@github-actions
Copy link
Contributor

github-actions bot commented Sep 19, 2022

💳 Wallet Extension has been built, you can download the packaged extension here: https://github.com/MystenLabs/sui/actions/runs/3083854857#artifacts

Copy link
Collaborator

@mystie711 mystie711 left a comment

Choose a reason for hiding this comment

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

@pchrysochoidis am i correct to assume this is a work in progress and you intend to add the "Disconnect" ui in a dropdown when the user clicks on "mystenlabs.com" pill in the header? Or is this particular task only about showing the connected/disconnected state and no other interaction?

@pchrysochoidis
Copy link
Contributor Author

@pchrysochoidis am i correct to assume this is a work in progress and you intend to add the "Disconnect" ui in a dropdown when the user clicks on "mystenlabs.com" pill in the header? Or is this particular task only about showing the connected/disconnected state and no other interaction?

@mystie711 Yeah this is the first part, I am working on the disconnect part (will open another PR soon). I did it this way to keep the PR relatively small and easier to review!

@@ -18,12 +18,16 @@ type AppState = {
appType: AppType;
apiEnv: API_ENV;
navVisible: boolean;
activeOrigin: string | null;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is fine for now, but I wonder if should be some kind of state bag for the sake of easily adding other information beyond the origin and favicon.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @Jordan-Mysten, yeah it makes sense, but let's do it when we need to add extra info - to save some time for now

* minimal version only shows the status in the header
@pchrysochoidis pchrysochoidis force-pushed the pc-wallet-ext-4696-apps-connected-indicator branch from 2e5bb14 to 16040b9 Compare September 19, 2022 16:00
@pchrysochoidis pchrysochoidis merged commit b41bbf4 into main Sep 19, 2022
@pchrysochoidis pchrysochoidis deleted the pc-wallet-ext-4696-apps-connected-indicator branch September 19, 2022 16:08
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.

3 participants