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(ConnectWalletForm): ask consent for automatic key addition #637

Merged
merged 9 commits into from
Oct 4, 2024

Conversation

sidvishnoi
Copy link
Member

@sidvishnoi sidvishnoi commented Oct 2, 2024

Context

Changes proposed in this pull request

Screencast.from.02-10-24.09.22.43.PM.IST.webm

@github-actions github-actions bot added area: background Improvements or additions to extension background script area: popup Improvements or additions to extension popup area: i18n labels Oct 2, 2024
Copy link

github-actions bot commented Oct 2, 2024

Extension builds preview

Name Link
Latest commit f46718a
Latest job logs Run #11180243127
BadgeDownload
BadgeDownload

@github-actions github-actions bot added the area: tests Improvements or additions to tests label Oct 2, 2024
Copy link
Member Author

@sidvishnoi sidvishnoi left a comment

Choose a reason for hiding this comment

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

test-e2e

@sidvishnoi sidvishnoi changed the base branch from main to connect-preserve-errors October 2, 2024 14:11
@sidvishnoi sidvishnoi changed the base branch from connect-preserve-errors to main October 2, 2024 14:11
@sidvishnoi sidvishnoi changed the base branch from main to connect-preserve-errors October 2, 2024 14:13
Base automatically changed from connect-preserve-errors to main October 2, 2024 15:46
Copy link
Member Author

@sidvishnoi sidvishnoi left a comment

Choose a reason for hiding this comment

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

test-e2e

@RabebOthmani
Copy link
Collaborator

@sidvishnoi Looks good. My only comment is if we can centre the message and buttons in the pop up

@sidvishnoi
Copy link
Member Author

sidvishnoi commented Oct 3, 2024

Final: @RabebOthmani

@sidvishnoi sidvishnoi marked this pull request as ready for review October 3, 2024 11:10
Copy link
Collaborator

@RabebOthmani RabebOthmani 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!

src/background/services/keyAutoAdd.ts Outdated Show resolved Hide resolved
src/background/services/openPayments.ts Show resolved Hide resolved
src/popup/pages/Settings.tsx Outdated Show resolved Hide resolved
<AutoKeyAddConsent
onAccept={() => {
autoKeyAddConsent.current = true;
// saveValue('autoKeyAddConsent', true);
Copy link
Member

Choose a reason for hiding this comment

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

Probably related to my comment above - saving this preference.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I'm not sure if we want to save, but I kept the code here in case we decide to.
Or, maybe we can ask for consent once per wallet address? Like we'll store the wallet address instead of true there.
If it's false, we most likely want to ask again, as that's a happier path for user (in case they find adding key manually is too much after seeing that input).

Copy link
Member

Choose a reason for hiding this comment

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

src/popup/components/ConnectWalletForm.tsx Outdated Show resolved Hide resolved
@sidvishnoi sidvishnoi merged commit 795f604 into main Oct 4, 2024
9 checks passed
@sidvishnoi sidvishnoi deleted the auto-key-consent branch October 4, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: background Improvements or additions to extension background script area: i18n area: popup Improvements or additions to extension popup area: tests Improvements or additions to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Setup]: Add consent screen before starting key-add automation
3 participants