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

fix: mf-4979 setting jump link #10427

Merged
merged 9 commits into from
Aug 16, 2023
Merged

fix: mf-4979 setting jump link #10427

merged 9 commits into from
Aug 16, 2023

Conversation

zhouhanseng
Copy link
Contributor

@zhouhanseng zhouhanseng commented Aug 16, 2023

Description

https://mask.atlassian.net/browse/MF-4979
https://mask.atlassian.net/browse/MF-4916
https://mask.atlassian.net/browse/MF-4978
https://mask.atlassian.net/browse/MF-4984

Closes # (NO_ISSUE)

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 zhouhanseng added this to the 2.22.0 milestone Aug 16, 2023
@github-actions github-actions bot temporarily deployed to pull request August 16, 2023 08:51 Inactive
Comment on lines 73 to 80
browser.tabs.create({
active: true,
url: browser.runtime.getURL(`/dashboard.html#${DashboardRoutes.Settings}`),
})
if (navigator.userAgent.includes('Firefox')) {
window.close()
}
Services.Helper.removePopupWindow()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
browser.tabs.create({
active: true,
url: browser.runtime.getURL(`/dashboard.html#${DashboardRoutes.Settings}`),
})
if (navigator.userAgent.includes('Firefox')) {
window.close()
}
Services.Helper.removePopupWindow()
await browser.tabs.create({
active: true,
url: browser.runtime.getURL(`/dashboard.html#${DashboardRoutes.Settings}`),
})
if (navigator.userAgent.includes('Firefox')) {
window.close()
}
await Services.Helper.removePopupWindow()

@github-actions github-actions bot temporarily deployed to pull request August 16, 2023 09:19 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 16, 2023 09:34 Inactive
@zhouhanseng zhouhanseng marked this pull request as ready for review August 16, 2023 09:38
} else if (b.createdAt.getTime() - a.createdAt.getTime() > 10000) {
return 1
}
const numA = a.name.split('Wallet ')[1]
Copy link
Member

Choose a reason for hiding this comment

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

A wallet's name could be altered by the user.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This sorting only targets our default generate name.

@github-actions github-actions bot temporarily deployed to pull request August 16, 2023 09:46 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 16, 2023 13:25 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 16, 2023 13:42 Inactive
@guanbinrui guanbinrui merged commit c856421 into develop Aug 16, 2023
15 checks passed
@guanbinrui guanbinrui deleted the fix-bug-popups branch August 16, 2023 14:06
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.

None yet

2 participants