Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

For #6758 - Add Top Sites to Fenix #7523

Merged
merged 8 commits into from
Jan 24, 2020
Merged

Conversation

gabrielluong
Copy link
Member

@gabrielluong gabrielluong commented Jan 7, 2020

Fixes #6757, #6758 , #6759, #7525

Pull Request checklist

  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features

After merge

  • Milestone: Make sure issues finished by this pull request are added to the milestone of the version currently in development.

To download an APK when reviewing a PR:

  1. click on Show All Checks,
  2. click Details next to "Taskcluster (pull_request)" after it appears and then finishes with a green checkmark,
  3. click on the "Fenix - assemble" task, then click "Run Artifacts".
  4. the APK links should be on the left side of the screen, named for each CPU architecture

@gabrielluong gabrielluong added the pr:work-in-progress PRs that are not ready to be reviewed yet and are actively being worked on label Jan 7, 2020
@codecov-io
Copy link

codecov-io commented Jan 7, 2020

Codecov Report

Merging #7523 into master will increase coverage by 0.32%.
The diff coverage is 14.58%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #7523      +/-   ##
============================================
+ Coverage     19.24%   19.56%   +0.32%     
- Complexity      451      469      +18     
============================================
  Files           301      304       +3     
  Lines         11670    11658      -12     
  Branches       1584     1576       -8     
============================================
+ Hits           2246     2281      +35     
+ Misses         9239     9198      -41     
+ Partials        185      179       -6
Impacted Files Coverage Δ Complexity Δ
...fenix/home/sessioncontrol/SessionControlAdapter.kt 0% <0%> (ø) 0 <0> (ø) ⬇️
...me/sessioncontrol/viewholders/TopSiteViewHolder.kt 0% <0%> (ø) 0 <0> (?)
...ioncontrol/viewholders/topsites/TopSitesAdapter.kt 0% <0%> (ø) 0 <0> (?)
...c/main/java/org/mozilla/fenix/home/HomeFragment.kt 0% <0%> (ø) 0 <0> (ø) ⬇️
...a/org/mozilla/fenix/browser/BaseBrowserFragment.kt 0% <0%> (ø) 0 <0> (ø) ⬇️
...lla/fenix/components/toolbar/DefaultToolbarMenu.kt 0% <0%> (ø) 0 <0> (ø) ⬇️
...va/org/mozilla/fenix/components/metrics/Metrics.kt 21.37% <0%> (-0.72%) 0 <0> (ø)
...la/fenix/components/metrics/GleanMetricsService.kt 7.34% <0%> (-0.72%) 3 <0> (ø)
...ava/org/mozilla/fenix/components/TopSiteStorage.kt 0% <0%> (ø) 0 <0> (?)
...trol/viewholders/topsites/TopSiteItemViewHolder.kt 0% <0%> (ø) 0 <0> (?)
... and 81 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0fa0a84...f923f9c. Read the comment docs.

@gabrielluong
Copy link
Member Author

Request for data collection review form

All questions are mandatory. You must receive review from a data steward peer on your responses to these questions before shipping new data collection.

  1. What questions will you answer with this data?
  • How often the user interact with top sites.
  1. Why does Mozilla need to answer these questions? Are there benefits for users? Do we need this information to address product or business requirements?
  • This will help us prioritize bugs and features related to top sites based on user need.
  1. What alternative methods did you consider to answer these questions? Why were they not sufficient?
  • No current alternative methods.
  1. Can current instrumentation answer these questions?
  • Currently there are no events to track this.
  1. List all proposed measurements and indicate the category of data collection for each measurement, using the Firefox data collection categories on the found on the Mozilla wiki.
  • All data is Category 2.
  1. How long will this data be collected?
  • Until 03/01/2020
  1. What populations will you measure?
  • All release, beta, and nightly users with telemetry enabled.
  1. Please provide a general description of how you will analyze this data.
  • Glean / Amplitude
  1. Where do you intend to share the results of your analysis?
  • Only on Glean, Amplitude and with mobile teams.

@gabrielluong gabrielluong added the needs:data-review PR is awaiting a data review label Jan 7, 2020
@boek boek self-requested a review January 8, 2020 17:27
@gabrielluong gabrielluong force-pushed the 6758 branch 3 times, most recently from 9363251 to f2c0ed8 Compare January 10, 2020 20:43
@gabrielluong gabrielluong removed the pr:work-in-progress PRs that are not ready to be reviewed yet and are actively being worked on label Jan 10, 2020
@gabrielluong gabrielluong force-pushed the 6758 branch 2 times, most recently from 33b4062 to 6e0ceca Compare January 15, 2020 22:07
@boek
Copy link
Contributor

boek commented Jan 16, 2020

Data Review Form (to be filled by Data Stewards)

  1. Is there or will there be documentation that describes the schema for the ultimate data set in a public, complete, and accurate way?
    Yes, metrics.yaml and metrics.md

  2. Is there a control mechanism that allows the user to turn the data collection on and off?
    Yes, under data controls

  3. If the request is for permanent data collection, is there someone who will monitor the data over time?
    Has expiry

  4. Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?
    Type 2

  5. Is the data collection request for default-on or default-off?
    Default on

  6. Does the instrumentation include the addition of any new identifiers (whether anonymous or otherwise; e.g., username, random IDs, etc. See the appendix for more details)?
    No

  7. Is the data collection covered by the existing Firefox privacy notice?
    Yes

  8. Does there need to be a check-in in the future to determine whether to renew the data?
    Will check-in at expiry

  9. Does the data collection use a third-party collection tool?
    No

@liuche liuche removed the needs:data-review PR is awaiting a data review label Jan 17, 2020
@gabrielluong
Copy link
Member Author

Rebased

@gabrielluong gabrielluong force-pushed the 6758 branch 2 times, most recently from 0e2a425 to b0842c2 Compare January 21, 2020 19:00
@boek
Copy link
Contributor

boek commented Jan 22, 2020

Data Review Form (to be filled by Data Stewards)

  1. Is there or will there be documentation that describes the schema for the ultimate data set in a public, complete, and accurate way?
    Yes, metrics.yaml and metrics.md

  2. Is there a control mechanism that allows the user to turn the data collection on and off?
    Yes, under data controls

  3. If the request is for permanent data collection, is there someone who will monitor the data over time?
    Has expiry

  4. Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?
    Type 2

  5. Is the data collection request for default-on or default-off?
    Default on

  6. Does the instrumentation include the addition of any new identifiers (whether anonymous or otherwise; e.g., username, random IDs, etc. See the appendix for more details)?
    No

  7. Is the data collection covered by the existing Firefox privacy notice?
    Yes

  8. Does there need to be a check-in in the future to determine whether to renew the data?
    Will check-in at expiry

  9. Does the data collection use a third-party collection tool?
    No

@boek boek force-pushed the 6758 branch 2 times, most recently from f1112e4 to 2f95552 Compare January 22, 2020 23:04
@boek boek dismissed NotWoods’s stale review January 22, 2020 23:12

Nits were fixed

@gabrielluong gabrielluong changed the title For #6758 - Add Top Sites to Fenix For #6758 - Add Top Sites to Fenix. Jan 23, 2020
@gabrielluong gabrielluong changed the title For #6758 - Add Top Sites to Fenix. For #6758 - Add Top Sites to Fenix Jan 23, 2020
@Cheap-Skate
Copy link

Hi, I have been playing with the test build. I like it. Main comment is the text underneath the Top Sites favicons is very small. Could it be any larger? Thanks.

@gabrielluong
Copy link
Member Author

Hi, I have been playing with the test build. I like it. Main comment is the text underneath the Top Sites favicons is very small. Could it be any larger? Thanks.

Totally understand this. We will definitely be polishing this feature, but expect this as a follow up.

@Cheap-Skate
Copy link

Thanks. Looking forward to it landing, big step forward IMHO.

@boek boek changed the title For #6758 - Add Top Sites to Fenix For #6758 - Add Top Sites to Fenix 🎲 Jan 23, 2020
@gabrielluong gabrielluong changed the title For #6758 - Add Top Sites to Fenix 🎲 For #6758 - Add Top Sites to Fenix Jan 23, 2020
@boek boek changed the title For #6758 - Add Top Sites to Fenix For #6758 - Add Top Sites to Fenix🎲 Jan 24, 2020
@boek boek changed the title For #6758 - Add Top Sites to Fenix🎲 For #6758 - Add Top Sites to Fenix Jan 24, 2020
…C's TopSiteStorage

This follows the existing pattern around TabCollectionStorage.
…wser menu item

- The "Add to Firefox Home" browser menu item adds a top site to the top site storage.
- Refactors the FenixSnackbar from BaseBrowserFragment into BrowserToolbarController
since there are multiple menu items that need to show a FenixSnackbar.
- Adds metrics for the new browser menu item.
…mal and private mode and removing a top site
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Access top visited sites on homepage
6 participants