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

Import p2p keys #8771

Closed
wants to merge 29 commits into from
Closed

Import p2p keys #8771

wants to merge 29 commits into from

Conversation

spylogsster
Copy link
Contributor

@spylogsster spylogsster commented May 11, 2021

First (Import) part of brave/brave-browser#15566

  • Added "Import" button to dialog that allows to import a key with predefined name
  • Renamed button from Submit to Generate to be consistent with another button
  • Implemented some refactoring because I reuse file uploads logic to ipfs node (Moved all network blobs constructions to ipfs_network_utils, there are some related changes in import classes. Finally refactoring will be finished in next PR in Remove redundant classes for import brave-browser#15758)
  • Added alertion about error if import was not successful

image

image

Submitter Checklist:

  • I confirm that no security/privacy review is needed, or that I have requested one
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally: npm run test -- brave_browser_tests, npm run test -- brave_unit_tests, npm run lint, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

  • Try import keys
  • Try import any other files, should show error

petemill and others added 20 commits April 20, 2021 09:54
Fixes brave/brave-browser#15690

Due to the cr91 upstream change below the omnibox selection color is
now the same color as the focus ring of the omnibox. Since we override
the focus ring to be our brand color, the selection is now also the
brand color, which we don't want.

This fix reverts the omnibox selection color to what it was in cr90
(kGoogleBlue200 for Light theme, kGoogleBlue800 for Dark).

Chromium changes:

This change redefined kColorId_TextfieldSelectionBackgroundFocused from
explicit colors (gfx::kGoogleBlue200 and gfx::kGoogleBlue800 ) to fall
back onto kColorId_LabelTextSelectionBackgroundFocused.

https://source.chromium.org/chromium/chromium/src/+/76f9ef872febca7e3630db31c699ad2c2ec4e7a5

commit 76f9ef872febca7e3630db31c699ad2c2ec4e7a5
Author: Peter Kasting <[email protected]>
Date:   Mon Feb 22 17:56:22 2021 +0000

    Convert existing color definitions to more canonical forms.

    This defines as many colors as possible in terms of a small number of
    core colors.  The primary benefit of this is to remove most dark mode
    color definitions (which will now be automatically correct).  It also
    makes some relationships clearer.

    No behavior change intended (yet).

    Bug: none

This change made kColorId_LabelTextSelectionBackgroundFocused fall back to
AlphaBlend(kColorId_ProminentButtonColor, kColorId_WindowBackground, gfx::kGoogleGreyAlpha500)
We redefine kColorId_ProminentButtonColor as kBraveColorBrand = RGB(0xfb, 0x54, 0x2b).

https://source.chromium.org/chromium/chromium/src/+/c042fff0a7823aa4ebb0494d5b094f67f15aa4b3

commit c042fff0a7823aa4ebb0494d5b094f67f15aa4b3
Author: Peter Kasting <[email protected]>
Date:   Wed Mar 24 21:10:08 2021 +0000

    Tweak existing systematized colors.

    Primarily, this adjusts menus, tables, trees, and textfields to all use
    the same blue to represent a selected item (and that blue now matches
    the focus ring).

    Bug: 1061127
Desktop NTP: background is clickable when it is a branded wallpaper
Fix "verify wallet" button on tip dialog rewards onboarding
remove CallJavascriptFunctionUnsafe from brave://adblock webui
fix brave/brave-browser#15605

ticker prices raw data from crypto.com could be int or double.
…s-ui

Fix unsafe javascript calls in brave://rewards
Fixed crypto.com widget shows invalid price
@spylogsster spylogsster requested a review from a team as a code owner May 11, 2021 12:14
@spylogsster spylogsster self-assigned this May 11, 2021
SergeyZhukovsky and others added 4 commits May 11, 2021 09:36
Adds event emitter to window.ethereum object
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Implement custom ad notification field trials
@spylogsster spylogsster force-pushed the import-p2p-keys branch 2 times, most recently from 9eb820f to e45207b Compare May 11, 2021 17:37
@spylogsster spylogsster requested review from a team as code owners May 11, 2021 18:38
@spylogsster spylogsster requested review from jumde and zenparsing and removed request for a team May 11, 2021 18:38
@spylogsster spylogsster deleted the import-p2p-keys branch May 11, 2021 18:39
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.