-
Notifications
You must be signed in to change notification settings - Fork 308
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: setup improve for testing #6187
Conversation
This reverts commit a6a0438.
…-guide * hancheng/split-application-wallet-entry: (63 commits) chore: ui style fix: ui style chore: add comment fix: style fix: dialog title text center feat: add new theme color (#6094) refactor: move queryPersonaByProfile refactor: rename a field fix: little fix chore: persona connect chore: cleanup usage of toText chore: better type of signWithPersona refactor: post db types (#6172) fix: import make styles path in theme package (#6174) [Release] New release 2.7.0 (minor) (#6142) chore: update event chore(eslint): prefer object-shorthand (#6171) feat: recommend feature app fix: typo (#6173) refactor: xdai features EIP1559 (#6170) ...
@@ -226,6 +228,19 @@ export async function activateSocialNetworkUIInner(ui_deferred: SocialNetworkUI. | |||
} | |||
} | |||
|
|||
export async function loadSocialNetworkUIs(): Promise<SocialNetworkUI.Definition[]> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you're going to load every SNS Adaptors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to have the user authorize all SNS before creating persona.
packages/mask/src/components/InjectedComponents/ToolboxUnstyled.tsx
Outdated
Show resolved
Hide resolved
packages/dashboard/src/pages/Welcome/hooks/useSetupSocialNetwork.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change request
@@ -86,8 +86,10 @@ export async function activateSocialNetworkUIInner(ui_deferred: SocialNetworkUI. | |||
ui.collecting.currentVisitingIdentityProvider?.start(signal) | |||
|
|||
ui.injection.pageInspector?.(signal) | |||
if (Flags.toolbox_enabled) ui.injection.toolbox?.(signal) | |||
ui.injection.setupPrompt?.(signal) | |||
if (Flags.toolbox_enabled) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this PR contains many code from #6114. I'll defer the review.
packages/mask/src/extension/background-script/SocialNetworkService.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: septs <github@septs.pw>
This reverts commit 8f4c1aa.
return requestExtensionPermission({ | ||
origins: [...req.map((x) => x.declarativePermissions.origins).flat()], | ||
origins: [...uis.map((x) => x.declarativePermissions.origins).flat()], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
origins: [...uis.map((x) => x.declarativePermissions.origins).flat()], | |
origins: uis.map((x) => x.declarativePermissions.origins).flat(), |
@@ -79,7 +77,10 @@ export default function Welcome() { | |||
iframeRef={iframeRef} | |||
privacyPolicyURL={agreementContentPageURL} | |||
iframeLoadHandler={handleIFrameLoad} | |||
agreeHandler={() => navigate(DashboardRoutes.Setup)} | |||
agreeHandler={async () => { | |||
const url = await Services.SocialNetwork.setupSocialNetwork('twitter.com', false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you set up Twitter by default?
* develop: (124 commits) chore: improve string operations readability (#6257) fix: lint disable (#6238) chore: improve keyboard event (#6251) chore: simplify tutorial link (#6253) fix: remove useless style (#6252) docs(i18n): sync i18n files from Crowdin (#6254) refactor: the connect wallet dialog (#6218) fix(xdai): temporally disable 1559 feature, since failing of gas estimation (#6245) fix: limit for create persona (#6247) fix: add linked persona identifier to profile information (#6234) feat: setup improve for testing (#6187) New translations en-US.json (Quenya) (#6249) fix: backup not restore correctly (#6229) fix: check next id verified (#6242) fix: popup steps show snackbar issues (#6243) fix: adjust layout of dialog title (#6225) refactor: generate contact avatar color (#6239) fix: not parse mask payload (#6237) feat: update twitter theme color (#6236) chore: no-nested-ternary on plugins (#6223) ...
Description
Closes #MF-415 #MF-416
Type of change
Previews
Checklist
console.log
sIf this PR depends on external APIs:
chrome-extension://[id]
moz-extension://[id]