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

Add IPFS buttons to protocol badge popup #9899

Merged
merged 2 commits into from
Aug 31, 2021
Merged

Add IPFS buttons to protocol badge popup #9899

merged 2 commits into from
Aug 31, 2021

Conversation

spylogsster
Copy link
Contributor

@spylogsster spylogsster commented Aug 30, 2021

Resolves brave/brave-browser#16907

  • Added IPFS buttons to IPFS protocol badge popup

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:

  • Go to any ipfs page
  • Click by protocol badge
  • Make sure buttons are visible only for ipfs pages

@spylogsster spylogsster requested a review from a team as a code owner August 30, 2021 13:26
@spylogsster spylogsster self-assigned this Aug 30, 2021
@spylogsster
Copy link
Contributor Author

spylogsster commented Aug 30, 2021

@bbondy @karenkliu any propositions about icons/texts maybe?

@spylogsster spylogsster requested a review from bbondy August 30, 2021 13:28
@spylogsster spylogsster force-pushed the issue-16907 branch 2 times, most recently from 7721fa5 to 239b711 Compare August 30, 2021 13:40
@autonome
Copy link

Nice to have request:

Add visual distinction for things that are clickable vs not. Eg, underline links, or make them buttons. Or sometimes I see the icon at the end of the line which is like an arrow, signifying that you click that in order to leave native UI to open a link.

@bbondy
Copy link
Member

bbondy commented Aug 30, 2021

I defer to @karenkliu but if not you can always start with just links

Copy link
Member

@bbondy bbondy left a comment

Choose a reason for hiding this comment

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

Some minor text changes, but ++

components/resources/ipfs_strings.grdp Outdated Show resolved Hide resolved
components/resources/ipfs_strings.grdp Outdated Show resolved Hide resolved
components/resources/ipfs_strings.grdp Outdated Show resolved Hide resolved
components/resources/ipfs_strings.grdp Outdated Show resolved Hide resolved
components/resources/ipfs_strings.grdp Outdated Show resolved Hide resolved
components/resources/ipfs_strings.grdp Outdated Show resolved Hide resolved
Comment on lines 6 to 16
#include "brave/common/webui_url_constants.h"
#include "brave/components/vector_icons/vector_icons.h"
#include "brave/components/ipfs/ipfs_constants.h"
#include "brave/components/ipfs/ipfs_utils.h"
#include "brave/grit/brave_theme_resources.h"
#include "chrome/browser/ui/views/page_info/page_info_bubble_view.h"
#include "chrome/browser/ui/views/page_info/page_info_view_factory.h"
#include "components/grit/brave_components_strings.h"
#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/browser_finder.h"
#include "ui/base/l10n/l10n_util.h"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please, make sure the target already has deps for all these.

Copy link
Collaborator

@mkarolin mkarolin left a comment

Choose a reason for hiding this comment

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

LGTM, but see the comment on deps.

@karenkliu
Copy link

LGTM! :)

Copy link
Contributor

@lidel lidel left a comment

Choose a reason for hiding this comment

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

Good improvement, facilitates self-driven discovery 👍

@spylogsster spylogsster force-pushed the issue-16907 branch 2 times, most recently from 0cecc27 to d58bdfd Compare August 31, 2021 08:38
@spylogsster spylogsster force-pushed the issue-16907 branch 2 times, most recently from 9025860 to 7075432 Compare August 31, 2021 09:03
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.

IPFS protocol badge should link to settings and node diagnostics
6 participants