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

For #5567: Removes search shortcuts button #5739

Merged
merged 2 commits into from
Oct 3, 2019

Conversation

sblatz
Copy link
Contributor

@sblatz sblatz commented Oct 2, 2019

image

image

Pull Request checklist

  • Quality: This PR builds and passes detekt/ktlint checks (A pre-push hook is recommended)
  • 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

@sblatz sblatz changed the title Remove shortcuts button For #5567: Removes search shortcuts button Oct 2, 2019
@sblatz sblatz requested review from brampitoyo and a team October 2, 2019 16:58
@sblatz
Copy link
Contributor Author

sblatz commented Oct 2, 2019

@brampitoyo please verify this matches your expected mocks :)

@sblatz sblatz force-pushed the remove-shortcuts-button branch 2 times, most recently from 3a339e0 to ea273ee Compare October 2, 2019 17:30
@codecov-io
Copy link

codecov-io commented Oct 2, 2019

Codecov Report

Merging #5739 into master will decrease coverage by <.01%.
The diff coverage is 37.5%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #5739      +/-   ##
============================================
- Coverage     14.46%   14.45%   -0.01%     
- Complexity      322      323       +1     
============================================
  Files           255      256       +1     
  Lines         10490    10505      +15     
  Branches       1526     1529       +3     
============================================
+ Hits           1517     1519       +2     
- Misses         8851     8864      +13     
  Partials        122      122
Impacted Files Coverage Δ Complexity Δ
...la/fenix/components/metrics/GleanMetricsService.kt 5.94% <ø> (+0.08%) 3 <0> (ø) ⬇️
.../java/org/mozilla/fenix/search/SearchInteractor.kt 100% <ø> (+10%) 9 <0> (ø) ⬇️
...va/org/mozilla/fenix/components/metrics/Metrics.kt 25.96% <ø> (+0.24%) 0 <0> (ø) ⬇️
.../mozilla/fenix/search/awesomebar/AwesomeBarView.kt 0% <0%> (ø) 0 <0> (ø) ⬇️
...c/main/java/org/mozilla/fenix/home/HomeFragment.kt 0% <0%> (ø) 0 <0> (ø) ⬇️
...in/java/org/mozilla/fenix/search/SearchFragment.kt 0% <0%> (ø) 0 <0> (ø) ⬇️
...illa/fenix/settings/search/SearchEngineFragment.kt 0% <0%> (ø) 0 <0> (ø) ⬇️
.../java/org/mozilla/fenix/search/SearchController.kt 93.02% <100%> (+5.26%) 0 <0> (ø) ⬇️
.../src/main/java/org/mozilla/fenix/utils/Settings.kt 72.78% <100%> (+0.52%) 15 <0> (ø) ⬇️
...la/fenix/home/intent/StartSearchIntentProcessor.kt 71.42% <100%> (-1.91%) 5 <0> (ø)
... and 8 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 bc471ea...73fad7c. Read the comment docs.

Copy link

@brampitoyo brampitoyo left a comment

Choose a reason for hiding this comment

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

@sblatz This looks good! Thanks for suggesting an awesome, easy to build idea that solves our problem.

searchStore.dispatch(SearchFragmentAction.ShowSearchShortcutEnginePicker(!isOpen))

if (isOpen) {
requireComponents.analytics.metrics.track(Event.SearchShortcutMenuClosed)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove these telemetry items? (Should not using these events break the build on telemetry?)

android:id="@+id/searchShortcutsButton"
style="@style/search_pill"
android:drawableStart="@drawable/ic_search"
android:textOff="@string/search_shortcuts_button"
Copy link
Contributor

Choose a reason for hiding this comment

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

Still need this string?

@sblatz sblatz merged commit 785b8b9 into mozilla-mobile:master Oct 3, 2019
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.

None yet

4 participants