Commit Graph

1000 Commits (2343b7534cb32b4225fcde559728f26e91ce8187)

Author SHA1 Message Date
Gabriel Luong 8652ff5bcf For #24519 - Add Private theme to FirefoxTheme 2 years ago
Gabriel Luong e950ec3f4d For #24319 - Migrate PrivateBrowsingDescriptionViewHolder to Compose 2 years ago
Alexandru2909 ffbcaa82de For #24203 - Remove Event.wrapper for Onboarding telemetry 2 years ago
sarah541 3b39b4668f For #23968 - Migrate homescreen recent tabs to compose
For #23968 - Migrate homescreen recent tabs to compose
2 years ago
sarah541 ce7d2d1962 For #23969 - Migrate homescreen recent bookmarks to compose 2 years ago
sarah541 e11c9b2e8f For #23970 - Migrate homescreen recent visits header to compose 2 years ago
Brais Gabín 1f633edd7d For #23046 - Align detekt config between Fenix and Android Components
Co-authored-by: Gabriel Luong <gabriel.luong@gmail.com>
2 years ago
MatthewTighe 387be0a135 closes #24442: refactor recent tabs to use common composables 2 years ago
Arturo Mejia bfeceb562d For #24224: Send telemetry events related to the messaging framework 2 years ago
Jonathan Almeida f953c5ec94 For #24220 and #24223: Connect GleanPlumb messages with the new tab ui card.
Co-authored-by: Jonathan Almeida <jalmeida@mozilla.com>
2 years ago
Gabriel Luong b72c915d77 For #24114 - Dispatch the current mode when the HomeFragment is created 2 years ago
Gabriel Luong 48635fb031 For #24114 - Check feature settings to show and hide home screen sections 2 years ago
Gabriel Luong d7a9e304fb For #24114 - Refactor initial HomeFragmentState into AppState 2 years ago
Gabriel Luong aaa3d7b977 For #24114 - Refactor HomeFragmentStore parameters to AppStore 2 years ago
Gabriel Luong c2e3d251cb For #24114 - Refactor HomeFragmentState into AppState 2 years ago
Mugurell 81604e8612 For #24342 - Actually log when Pocket stories are shown
Based on this we'll send telemetry and rotate the stories shown to prioritize
fresh ones instead of the ones already shown.
2 years ago
MatthewTighe 3727d55b88 for #24177: add ui wireframe for synced recent tab 2 years ago
Gabriel Luong 221ce814ef For #24235 - Remove Tip from HomeFragmentStore 2 years ago
Gabriel Luong 0448530440 For #24235 - Remove MasterPasswordTipProvider 2 years ago
Gabriel Luong a6c8f8b313 For #24252 - Rename destructive attribute to textWarning 2 years ago
Gabriel Luong 4263e1fd62 For #24252 - Rename above attribute to layer2 2 years ago
Gabriel Luong f1e7b49425 For #24252 - Rename primaryText attribute to textPrimary 2 years ago
Gabriel Luong 779660f615 For #24246 - Refactor Tab from HomeFragmentStore 2 years ago
Gabriel Luong c9a47d08a8 For #24130 - Change Shortcuts setting to toggle the display of Top Sites 2 years ago
Alexandru2909 c1431c5c12 For #22189 - Replace app name with 'Firefox' for Sync strings 2 years ago
Gabriel Luong 56022546f2 For #23893 - Add telemetry for Contile services 2 years ago
Gabriel Luong bd3f1a420e For #24069 - Use the correct design tokens for Powered by Pocket text 2 years ago
Gabriel Luong 09101eb787 For #24051 - Remove showStartOnHomeSettings feature flag 2 years ago
mcarare 1aac79357a For #22189: Replace placeholder with app name. 2 years ago
Gabriel Luong a6b5ab6726 For #24006 - Return a null change payload if the new top sites list is larger than the old 2 years ago
Gabriel Luong 9834e818cb For #24017 - Replace @color/foundation_private_theme with @color/fx_mobile_private_layer_color_1 2 years ago
Sarah541 a222ea521d
For #23821 - Add telemtry for RecentlyVisted Homepage (#23909)
Add test

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Ryan VanderMeulen <rvandermeulen@mozilla.com>
2 years ago
Gabriel Luong 2f30442610 For #23905 - Update onboarding icons to use Icon Active color 2 years ago
MatthewTighe 2cc9ca3773 for #23069: add blocklist middleware for home 2 years ago
Alexandru2909 5153cee0e0 For #22189 - Replace the 'Firefox' word in all strings with placeholder 2 years ago
sunil9211 de4ea0a086 For #23551 - Change the spacing between Pocket header and content to 16dp 2 years ago
Roger Yang 20094cd1e9
No issue: Renew/remove metrics set to expire in April 2022 (#23786) 2 years ago
Gabriel Luong 37683531e7 For #23456 ⁃ Use lifecycleScope in TopSiteItemViewHolder 2 years ago
Mugurell bc59ede073 For #22722 - Reacting to the crashed flag
Whenever the ".crashed" property of the currently displayed
TabSessionState -> EngineState is true we will show an in-app crash reporter
with the usual close tab / restore tab options and also the option to report
all current non-fatal crashes to Mozilla if the setting for sending the crash
reports is enabled in app settings.
This closely mimics the previous crash reporter UI but there might be some
subtle differences stemming from migrating to using a ComposeView.

Whenever the ".crashed" property of the currently displayed
TabSessionState -> EngineState is false we will set the in-app crash reporter
to have a View.GONE visibility effectively removing it from the layout.

The functionality for receiving the non-fatal crashes from the AC CrashReporter
through an Intent is still kept and these crashes will be persisted in memory
until the user closes / restores a tab and so also makes a decision about
sending or not these crashes.

Currently more tabs can crash following just one since more share the same
process and as such there is no way to differentiate between them or link a
certain Crash to a certain tab.
They will all be acted upon at once from any tab the user chooses to close or
restore.
2 years ago
Rohan Maity df0d196759 For #20634 remove some lint issues from baseline 2 years ago
Gabriel Luong 37a0edceb6 For #23431 - Display the order of Contile Top Sites correctly 2 years ago
Mugurell 5bd6f1cb8c For #21854 - Split the big ComposeView in 3 smaller ones
This would shorten the time needed to layout all Pocket recommended stories
content in one go, though it may lead to shorten hiccups over a bigger period
of time.
2 years ago
Noah Bond c0942eadb2 For #23526 - Add telemetry for Contile interactions 2 years ago
jhugman b230c39a7f
Fixes #23492: Perf regression of calling isFirefoxDefault from main thread (#23556)
* Fixes #23492 — Fixup perf regression of calling isFirefoxDefault from the main thread

* Tightening of near defunct default browser message

* Fixup early crash in debug build

* ktlint
2 years ago
Matt Tighe 0c297dcee2 closes #23540: scale wallpaper and translate to bottom of image 2 years ago
Sarah Khan 26c7562e62 For #23596 and #23309 - Add deeplink to wallpaper settings 2 years ago
Gabriel Luong 1484f77bdb For #23575 - Use design system colors for the Pocket filter and Customize homepage buttons 2 years ago
Gabriel Luong 6f2af25a60 For #23558 - Update menu copy for What's new and Customize homepage 2 years ago
Arturo Mejia fdb2006c85 For #23498 add content description for wallpapers 2 years ago
Gabriel Luong 39c6067b03
For #23350 - Revert changes from removing duplicate icons that already exists in ui-icons (#23527)
* Revert "For #23121 - Override @color/mozac_ui_icons_fill with ?primaryText attribute"

This reverts commit 12347c9999.

* Revert "For #23121 - Replace @drawble/ic_share with @drawable/mozac_ic_share"

This reverts commit bbf6ce3f0c.

* Revert "For #23121 - Replace @drawble/ic_storage_enabled with @drawable/mozac_ic_storage"

This reverts commit 930c7bf3b3.

* Revert "For #23121 - Replace @drawble/ic_notifications_enabled with @drawable/mozac_ic_notification"

This reverts commit 9069b57c24.

* Revert "For #23121 - Replace @drawble/ic_microphone_enabled with @drawable/mozac_ic_microphone"

This reverts commit 53216f3f4a.

* Revert "For #23121 - Replace @drawble/ic_location_enabled with @drawable/mozac_ic_location"

This reverts commit 9ee9aafd87.

* Revert "For #23121 - Replace @drawble/ic_autoplay_disabled with @drawable/mozac_ic_autoplay_blocked"

This reverts commit b045a5e203.

* Revert "For #23121 - Replace @drawble/ic_camera_enabled with @drawable/mozac_ic_video"

This reverts commit 62842db131.

* Revert "For #23121 - Replace @drawble/mozac_ic_extensions_black with @drawable/mozac_ic_extensions"

This reverts commit c020a9da10.

* Revert "For #23121 - Replace @drawble/ic_top_sites with @drawable/mozac_ic_pin"

This reverts commit ca67b0a752.

* Revert "For #23121 - Replace @drawble/ic_search with @drawable/mozac_ic_search"

This reverts commit 02d9197945.

* Revert "For #23121 - Replace @drawble/ic_readermode with @drawable/mozac_ic_reader_mode"

This reverts commit cf8592c709.

* Revert "For #23121 - Replace @drawble/ic_menu with @drawable/mozac_ic_menu"

This reverts commit a1ac019024.

* Revert "For #23121 - Replace @drawble/ic_login with @drawable/mozac_ic_login"

This reverts commit 541c56b589.

* Revert "For #23121 - Replace @drawble/ic_internet with @drawable/mozac_ic_globe"

This reverts commit 4d8adce85e.

* Revert "For #23121 - Replace @drawble/ic_download with @drawable/mozac_ic_download"

This reverts commit ef026d3ec2.

* Revert "For #23121 - Replace @drawble/ic_lock with @drawable/mozac_ic_lock"

This reverts commit 18591d5dd8.

* Revert "For #23121 - Replace @drawble/ic_desktop with @drawable/mozac_ic_device_desktop"

This reverts commit ad33e3c1e1.

* Revert "For #23121 - Replace @drawble/ic_close with @drawable/mozac_ic_close"

This reverts commit a9f0fefac2.

* Revert "For #23121 - Replace @drawble/ic_delete with @drawable/mozac_ic_delete"

This reverts commit 33dc752ef2.

* Revert "For #23121 - Replace @drawble/ic_chevron_up with @drawable/mozac_ic_arrowhead_up"

This reverts commit 5bf937cfd3.

* Revert "For #23121 - Replace @drawble/ic_chevron_down with @drawable/mozac_ic_arrowhead_down"

This reverts commit 0fadd68112.

* Revert "For #23121 - Replace @drawble/ic_back_button with @drawable/mozac_ic_back"

This reverts commit bea766e785.

* Revert "For #23121 - Replace @drawable/ic_arrowhead_right with @drawable/mozac_ic_arrowhead_right"

This reverts commit 5a6f349ea8.

* Revert "For #23121 - Replace @drawable/ic_new with @drawable/mozac_ic_new"

This reverts commit ae38410106.

* Revert "For #23121 - Replace @drawable/ic_addons_extensions with @drawable/mozac_ic_extensions"

This reverts commit 9352946afc.
2 years ago
Gabriel Luong a14e6ddde3 For #23433 - Align the provided top sites to the design spec 2 years ago
Gabriel Luong 42ac6feb0c For #23424 - Part 2: Add context menu for contile top sites 2 years ago
Gabriel Luong 532bb9a38a For #23424 - Part 1: Refactor TopSiteItemMenu into its own file 2 years ago
Gabriel Luong cc3c68c24b For #23450 - Rename design token Border Default to Border Primary 2 years ago
jhugman 82a6f8cae4
First use of Nimbus FML plugin (#23400)
* Consume Nimbus FML plugin

* Convert Homescreen to use FML

* Convert nimbusValidation to use FML

* Convert legacy experiments to use the feature API and FML

Remove dead helper code and documentation

* Fixup failing test

Co-authored-by: Grisha Kruglov <gkruglov@mozilla.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2 years ago
Gabriel Luong 6596f4c28b For #23432 - Use the imageUrl as the favicon for a provided top site 2 years ago
Arturo Mejia 393de99196 For #22851 Add logo animation for wallpapers 2 years ago
Matt Tighe d23fb30151 replace WallpaperFeatureDiscovered probe with WallpaperSettingsOpened 2 years ago
Matt Tighe a419a6963c add events based on feedback 2 years ago
Matt Tighe a5f540568e update based on PR feedback and data review 2 years ago
Matt Tighe eed42ee96b closes #23381: add telemetry for wallpapers feature 2 years ago
Gabriel Luong e5e7e6dbcf For #23409 - Specify fetchProvidedTopSites parameter for TopSitesConfig 2 years ago
Matt Tighe 670657b484 fixes #23404: add switch to wallpaper settings to disable tap-to-change 2 years ago
Arturo Mejia dc0f50b590 For #22851: Load wallpapers dynamically from the assets directory. 2 years ago
Gabriel Luong ef026d3ec2 For #23121 - Replace @drawble/ic_download with @drawable/mozac_ic_download 2 years ago
Gabriel Luong ad33e3c1e1 For #23121 - Replace @drawble/ic_desktop with @drawable/mozac_ic_device_desktop 2 years ago
Gabriel Luong a9f0fefac2 For #23121 - Replace @drawble/ic_close with @drawable/mozac_ic_close 2 years ago
Gabriel Luong 33dc752ef2 For #23121 - Replace @drawble/ic_delete with @drawable/mozac_ic_delete 2 years ago
Gabriel Luong 9352946afc For #23121 - Replace @drawable/ic_addons_extensions with @drawable/mozac_ic_extensions 2 years ago
mcarare a6abaf7cf9 Set a minimum number of sites a search group should contain. 2 years ago
Gabriel Luong 26b65a2a23 For #22727 - Add Contile to Top Sites 2 years ago
Sarah Khan e9a4272e82 For #23138 - Close recently visited menu on orientation change 2 years ago
Arturo Mejia d1ace92e64 Revert "For #22851: Add logo animation for wallpapers."
This reverts commit d089f007
2 years ago
Arturo Mejia d089f00793 For #22851: Add logo animation for wallpapers. 2 years ago
Arturo Mejia 2bba66fb58 For #23144 Address regression in COLD start 2 years ago
mcarare 58a6fafabc For #22383: Propagate ViewTreeLifecycleOwner to composable view holders. 2 years ago
Gabriel Luong 2ad2691724 For #23086 - Update Border Divider to Border Default 3 years ago
Gabriel Luong 76fb147ed8 For #23076 - Clean up unneeded FeatureFlags 3 years ago
Roger Yang 0b0f69ab4e Closes #22754: Customize home button should work on fresh install 3 years ago
Grisha Kruglov 5bbfd49e1d Refactor History types to eliminate nullability
This introduces a separate HistoryDB type at the PagedHistoryProvider
layer, that doesn't need to deal with positions. Positioning logic in
HistoryDataSource becomes a type conversion between the new type and an
existing History type that UI and ItemKeyedDataSource API is written against.

With this refactor, we entirely eliminate nullability from these types.
3 years ago
Arturo Mejia cf31bc408a For #22931 Only enable wallpapers on normal mode 3 years ago
Arturo Mejia 7a44412619 For #22851 toggle wallpapers when tap on the Firefox logo 3 years ago
rxu 073fd89390 Add default topsite MeiTuan for MozillaOnline builds 3 years ago
Matt Tighe db71d8dfe7 fixes #22889: add bottom spacer to onboarding adapter 3 years ago
Mugurell eb2ec677ca For #22508 - Increase menu height to avoid it become scrollable
Compose enforces a DropdownMenuItem having at least a 64dp height
(48 dp height + 8dp vertical padding) so we need to ensure the parent
doesn't hardcode a smaller height.
3 years ago
mcarare bbf0ccca54 For #22450: Replace quit icon with AC one. 3 years ago
rxu b41542dc5e Modify strings for Privacy notice for MozillaOnline builds 3 years ago
Matt Tighe edcccc2f4c fixes #20833: move home recycler bottom margin into standalone item 3 years ago
Gabriel Luong 2c22622edb For #22836 - Replace primary_text_private_theme with fx_mobile_private_text_color_primary color token 3 years ago
Gabriel Luong 543f2000af For #22793 - Rename fx_mobile_icon_color_notice color token to fx_mobile_icon_color_information 3 years ago
Mugurell 604f188970 For #22445 - Improve the scrolling behavior for Recently visited
One important issue was that the items are smaller that the width of the
screen and so a bit of the next column would be showing also and user could
interact with this only peaking items and a long press would open a dropdown
menu with no place to anchor it.
To mitigate this:
- the items will now snap to the next position when scrolling so that we'll
always show at least one column in it's entirety.
- menus are enabled only if more than half of the item is visible effectively
disabling clicks on that peaking area of neighbour columns.

This patch also updates the divider for history groups which previously wasn't
showing.
3 years ago
Gabriel Luong 596072729d For #22701 - Replace whats_new_notification_color with fx_mobile_icon_color_notice color token 3 years ago
Gabriel Luong e20ef25bd1 For #22637 - Add new color tokens provided by the mobile styles to FirefoxTheme 3 years ago
Christian Sadilek 26713a58c8 Refactor: Move historymetadata classes in separate package 3 years ago
Roger Yang 3d33a9422c Close #20701: Dismiss keyboard when scrolling home screen 3 years ago
Gabriel Luong 3c82a34aa1 For #22592 - Refactor hideOnboardingIfNeeded() calls when the home menu items are tapped 3 years ago
Mugurell 5c3fedd707
For #22534 - Show history highlights and groups in "Recently visited" (#22535)
* For #22534 - Update homescreen section name to "Recently visited"

* For #22534 - Show both history highlights and groups in Recently visited

For now the metadata groups don't support scoring so as an interim solution we
will show up to 9 items, evenly distributes, first favoring groups sorted by
date then history highlights pre-sorted by default.

Tapping a history highlight will switch to it's already open tab if available
or create a new one in which to load it if needed.

A "Remove" option will also be available for history highlights to remove it
from the screen and also from history.
Currently removing a group / highlight will not query new ones to again show up
to 9 items, this will be implemented separately.

* For #22534 - Rename and refactor historymetadata to recentvisits

The updated feature supports more than history metadata so updating the overall
naming scheme seems needed.
To signal that this is a homescreen feature the entire package is moved to home

* For #22534 - Update UI tests to account for the new items space on the screen

Saw failures about not finding the collection section on screen.
This is probably happening because w are now adding the recent visits to
homescreen above the collections section pushing it off screen.

Since the collections might be obstructed by the toolbar shown on top as a
quick solution we'll scroll to the next homescreen section so that the
collections will be shown above in their entirety.

* Update app/src/main/java/org/mozilla/fenix/home/recentvisits/RecentVisitsFeature.kt

Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>

* Update app/src/main/java/org/mozilla/fenix/home/recentvisits/RecentVisitsFeature.kt

Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>

Co-authored-by: Gabriel Luong <gabriel.luong@gmail.com>
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
3 years ago
Gabriel Luong 7c2d9bd8a8 For #22595 - Remove unused OnboardingAutomaticSignInViewHolder 3 years ago
Gabriel Luong 91da5318e3 For #22211 - Use Hero images for Recent Bookmarks 3 years ago
Arturo Mejia 3f86a5d6f9 Improve loading URLs 3 years ago