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

Onboarding v2 dp #6234

Merged
merged 27 commits into from
Jul 30, 2020
Merged

Onboarding v2 dp #6234

merged 27 commits into from
Jul 30, 2020

Conversation

deeppandya
Copy link
Contributor

Resolves : brave/brave-browser#9555

Submitter Checklist:

Test Plan:

Follow test plan on the issue. and follow the design spec as mention on the issue.

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 CI/skip-linux CI/skip-macos-x64 Do not run CI builds for macOS x64 CI/skip-ios Do not run CI builds for iOS labels Jul 28, 2020
@deeppandya deeppandya added this to the 1.13.x - Nightly milestone Jul 28, 2020
@deeppandya deeppandya self-assigned this Jul 28, 2020
@deeppandya deeppandya mentioned this pull request Jul 28, 2020
32 tasks
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.

++

Add resources for onboardingv2
Update code for animations
Add third party library for graph/chart
Add data table for brave stats

Update code for brave stats
Update code with pref
Add datatable for saved bandwidth
Update code for stat site

Update code with Saved bandwidth
Update BraveNewTabPageLayout for CR84

Remove Search onboarding

Remove graph/chart library
Update code for highlighted view
Update code for4 animated bg
Update existing UI accordingly
Update UI for updated brave stats code

Refactor code

Update onboarding image

Remove previous onborading images

Remove unused images

Refactor code to avoid warnings

Remove unused onboarding code
Fix resources related error

Fix resources related error

Fix private tab test
@deeppandya deeppandya merged commit 7c3ca0b into master Jul 30, 2020
@deeppandya deeppandya deleted the onboarding_v2_dp branch July 30, 2020 08:41
@mariospr
Copy link
Contributor

I rebased today on top of the latest master and I can't build on Linux anymore because of this PR, more specifically because of this: 72df475#diff-e9394688e89210103ace82f5b1b746ba

It seems like that commit introduced a dependency on android-specific code from components/brave_perf_predictor/browser/perf_predictor_tab_helper.cc, which is also built on (non-android) Linux.

I looked into the changes in there and I suppose it should be possible to add some preprocessor conditions to make sure that those includes, and the code used from them, are not used in Linux, but @deeppandya will probably know better 🙂

@@ -23,10 +25,10 @@ content::WebContents* GetWebContents(int render_process_id,
int render_frame_id,
int frame_tree_node_id) {
content::WebContents* web_contents =
content::WebContents::FromFrameTreeNodeId(frame_tree_node_id);
Copy link
Contributor

Choose a reason for hiding this comment

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

@deeppandya would you mind restoring proper formatting as per Chromium code style? You can set up clang-format to automatically format code in your IDE

"//brave/android/java/org/chromium/chrome/browser/onboarding/animations/privacy_protection.json",
"//brave/android/java/org/chromium/chrome/browser/onboarding/animations/save_data_and_battery.json",
"//brave/android/java/org/chromium/chrome/browser/onboarding/animations/website_loads_faster.json",
"//brave/android/java/org/chromium/chrome/browser/onboarding/animations/onboarding_ads_notification.json",
Copy link
Contributor

@iefremov iefremov Jul 30, 2020

Choose a reason for hiding this comment

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

we should keep all these lists sorted, gn format makes it easy to fix @deeppandya

@srirambv
Copy link
Contributor

srirambv commented Aug 19, 2020

Verification passed on OnePlus 6T with Android 10 running 1.14.44 x64 nightly build

Clean Install

  • Verified privacy stats onboarding is shown the moment browser is launched
First info card about Privacy protection highlights Trackers & Ads blocked Second info card about Save data and battery highlights Data Saved Third info card about Websites loads faster highlights Est. Time saved
image image image
Light theme Dark Theme
light-theme-onboarding dark-theme-onboarding
  • Verified swiping across the privacy onboarding brings up the fourth info card and clicking on Learn more starts the onboarding again
Light theme Dark Theme
light-theme-skip-onboarding dark-theme-skip-onboarding

Search Engine discovery

  • Verified clicking on the URL bar brings up the SE onboarding
  • Verified changing default search engine via onboarding is retained
  • Verified changing/retaining default search engine is set for both normal and private tabs

Brave Shields

  • Verified visiting a page for the first time where nothing is blocked doesn't bring out the shields message
  • Verified visiting a page for the first time shows shields onboarding message when the page load is done
  • Verified clicking on the shields message opens the Shields panel
  • Onboarding message is not dismissed when a new tab is opened before page load completes [Android] Shields onboarding is not dismissed when a new tab is opened brave-browser#11318

Rewards

Brave Desktop intro

  • Verified Brave Desktop intro card is shown after 12 days
  • Verified intro card is shown on a private tab if the browser is launched via private tab on the home screen
Light Dark
image image

Upgrade Install


Verification passed on Samsung Tab A with Android 10 running 1.14.44 x64 nightly build

Clean Install

  • Verified privacy stats onboarding is shown the moment browser is launched
First info card about Privacy protection highlights Trackers & Ads blocked Second info card about Save data and battery highlights Data Saved Third info card about Websites loads faster highlights Est. Time saved
image image image
Light theme Dark Theme
tab-light-theme-onboarding tab-dark-theme-onboarding
  • Verified swiping across the privacy onboarding brings up the fourth info card and clicking on Learn more starts the onboarding again
Light theme Dark Theme
tab-light-theme-skip-onboarding tab-dark-theme-skip-onboarding

Search Engine discovery

  • Verified clicking on the URL bar brings up the SE onboarding
  • Verified changing default search engine via onboarding is retained
  • Verified changing/retaining default search engine is set for both normal and private tabs

Brave Shields

  • Verified visiting a page for the first time where nothing is blocked doesn't bring out the shields message
  • Verified visiting a page for the first time shows shields onboarding message when the page load is done
  • Verified clicking on the shields message opens the Shields panel
  • Onboarding message is not dismissed when a new tab is opened before page load completes [Android] Shields onboarding is not dismissed when a new tab is opened brave-browser#11318

Rewards

Brave Desktop intro

  • Verified Brave Desktop intro card is shown after 12 days.
  • Verified intro card is shown on a private tab if the browser is launched via private tab on the home screen
Light Dark
image image

Upgrade Install

Tab specific issues

Note: Translations are not checked for any of the above

@srirambv
Copy link
Contributor

Verification passed on OnePlus 6T with Android 10 running 1.14.57


Verification passed on Samsung Tab A with Android 10 running 1.14.57

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 CI/skip-macos-x64 Do not run CI builds for macOS x64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android] Onboarding V2
5 participants