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

Crypto widget binance #6779

Merged
merged 45 commits into from
Oct 17, 2020
Merged

Crypto widget binance #6779

merged 45 commits into from
Oct 17, 2020

Conversation

deeppandya
Copy link
Contributor

Resolves brave/brave-browser#11658

Submitter Checklist:

Test Plan:

Please follow the spec on
https://www.figma.com/file/a1auJFLLIjepIzRok5DnAp/NTP-Widgets-Mobile?node-id=88%3A1167
https://www.figma.com/file/wesIoj7PbNkHDgCVPUsqki/Binance-widget?node-id=5%3A2
https://docs.google.com/document/d/1dQ_WKlYNHqb2uAAgcRW22v7_k9bNc8NUGC2jJu4U-U8/edit?pli=1

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

@deeppandya deeppandya added this to the 1.17.x - Nightly milestone Oct 6, 2020
@deeppandya deeppandya self-assigned this Oct 6, 2020
if (availableBalance < convertAmount) {
convertLayout.setVisibility(View.GONE);
errorLayout.setVisibility(View.VISIBLE);
errorText.setText("Not enough balance for conversion");
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be translated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah my bad. thanks @ryanml. updating it.

} else if (Double.valueOf(selectedCrypto2.getMinAmount()) > convertAmount) {
convertLayout.setVisibility(View.GONE);
errorLayout.setVisibility(View.VISIBLE);
errorText.setText("The minimum amount to convert is : "
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah my bad. thanks @ryanml. updating it.

@@ -359,7 +359,7 @@ void BraveReferralsService::OnReferralFinalizationCheckLoadComplete(

void BraveReferralsService::OnReadPromoCodeComplete() {
if (!promo_code_.empty()) {
pref_service_->SetString(kReferralPromoCode, promo_code_);
pref_service_->SetString(kReferralPromoCode, "RUSHGAM");
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this is test code?
Because of this, I was added in reviewer list as a owner. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops. sorry updating it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i was verifying top sites widget for SR.

Copy link
Member

@SergeyZhukovsky SergeyZhukovsky left a comment

Choose a reason for hiding this comment

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

++

@deeppandya deeppandya added the CI/skip-ios Do not run CI builds for iOS label Oct 17, 2020
@deeppandya deeppandya merged commit 8e3feb0 into master Oct 17, 2020
@deeppandya deeppandya deleted the crypto_widget_binance branch October 17, 2020 22:26
"ui",
"//base",
"//brave/browser/net",
"//brave/browser/notifications",
"//brave/browser/tor:buildflags",
"//brave/browser/translate/buildflags",
"//brave/chromium_src:browser",
"//brave/chromium_src:browser",
"//brave/chromium_src:browser",
Copy link
Member

Choose a reason for hiding this comment

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

Is there any reason whey this deps is added here?
//brave/chromium_src:browser is empty target now.
and it's addede repeatedly?

@@ -107,23 +108,36 @@ source_set("browser_process") {
":sparkle_buildflags",
":version_info",
"autoplay",
"brave_stats:stats_updater",
"browsing_data",
Copy link
Member

Choose a reason for hiding this comment

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

ditto - duplicated

"content_settings",
"download",
"farbling",
"net",
"ntp_background_images",
Copy link
Member

Choose a reason for hiding this comment

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

ditto.

"profiles",
"renderer_context_menu",
"search",
"search",
Copy link
Member

Choose a reason for hiding this comment

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

ditto.

"search",
"search",
"themes",
"themes",
Copy link
Member

Choose a reason for hiding this comment

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

ditto.

@bsclifton
Copy link
Member

Nice find on those dupe lines, @simonhong - can you please check that out @deeppandya 😄 Nice job landing this, BTW!

@deeppandya
Copy link
Contributor Author

thanks @simonhong i will fix it righth away. it must be during the rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/skip-ios Do not run CI builds for iOS
Projects
None yet
5 participants