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: setup improve for testing #6187

Merged
merged 41 commits into from
May 14, 2022
Merged

Conversation

Lanttcat
Copy link
Contributor

@Lanttcat Lanttcat commented Apr 29, 2022

  • feat: split wallet app entries
  • chore: type
  • chore: type
  • feat: user guide
  • chore: solve conflict
  • Revert "chore: solve conflict"
  • chore: solve conflict
  • feat: should open twitter when user click agree button on welcome page
  • feat: be opened social network should determined by the caller
  • feat: merge develop
  • feat: recommend feature app
  • chore: update event
  • chore: persona connect
  • fix: little fix
  • fix: dialog title text center
  • fix: style
  • chore: add comment
  • fix: ui style
  • chore: ui style

Description

Closes #MF-415 #MF-416

Type of change

  • Documentation
  • Code refactoring (Restructuring existing code w/o changing its observable behavior)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (a fix or feature that would make something no longer possible to do/require old user must upgrade their Mask Network to this new version)

Previews

Checklist

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
    • I have removed all in development console.logs
    • I have removed all commented code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have read Internationalization Guide and moved text fields to the i18n JSON file.

If this PR depends on external APIs:

  • I have configured those APIs with CORS headers to let extension requests get passed.
    • chrome extension: chrome-extension://[id]
    • firefox extension: moz-extension://[id]
  • I have delegated all web requests to the background service via the internal RPC bridge.

zhouhanseng and others added 26 commits April 20, 2022 19:34
…-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)
  ...
@github-actions
Copy link
Contributor

github-actions bot commented Apr 29, 2022

@github-actions github-actions bot temporarily deployed to pull request April 29, 2022 08:36 Inactive
@guanbinrui guanbinrui changed the title feat/setup improve for testing feat: setup improve for testing Apr 29, 2022
@@ -226,6 +228,19 @@ export async function activateSocialNetworkUIInner(ui_deferred: SocialNetworkUI.
}
}

export async function loadSocialNetworkUIs(): Promise<SocialNetworkUI.Definition[]> {
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

@Jack-Works Jack-Works left a 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) {
Copy link
Member

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.

@github-actions github-actions bot temporarily deployed to pull request May 11, 2022 04:02 Inactive
@github-actions github-actions bot temporarily deployed to pull request May 13, 2022 06:12 Inactive
yanzhihong23 and others added 2 commits May 13, 2022 14:13
@github-actions github-actions bot temporarily deployed to pull request May 13, 2022 06:20 Inactive
@github-actions github-actions bot temporarily deployed to pull request May 13, 2022 08:23 Inactive
@github-actions github-actions bot temporarily deployed to pull request May 14, 2022 04:11 Inactive
@github-actions github-actions bot temporarily deployed to pull request May 14, 2022 07:08 Inactive
return requestExtensionPermission({
origins: [...req.map((x) => x.declarativePermissions.origins).flat()],
origins: [...uis.map((x) => x.declarativePermissions.origins).flat()],
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
origins: [...uis.map((x) => x.declarativePermissions.origins).flat()],
origins: uis.map((x) => x.declarativePermissions.origins).flat(),

@github-actions github-actions bot temporarily deployed to pull request May 14, 2022 08:00 Inactive
@github-actions github-actions bot temporarily deployed to pull request May 14, 2022 08:17 Inactive
@guanbinrui guanbinrui merged commit f28db25 into develop May 14, 2022
@guanbinrui guanbinrui deleted the feat/setup-improve-for-testing branch May 14, 2022 08:39
@@ -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)
Copy link
Member

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?

yanzhihong23 added a commit that referenced this pull request May 16, 2022
* 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)
  ...
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.

6 participants