Commit Graph

9 Commits

Author SHA1 Message Date
Mugurell 06d4384c11 For #25025 - Rename PocketStoriesChange to PocketStoriesClean
PocketStoriesChange was called only once - to clean the shown stories when the
user gets to the homescreen and the Pocket feature is disabled - useful for the
situations in which the user returns after disabling the feature in settings.

Populating the store with recommended stories to show was already happening
based on 'PocketStoriesCategoriesChange' and sponsored stories will be added by
using 'PocketSponsoredStoriesChange' so renaming 'PocketStoriesChange' will
help on reducing any confusion in the future.

Also added documentation for all Pocket related actions from AppStore and
removed the 'UndocumentedPublicClass' detekt suppressions.
2022-05-25 07:28:57 +00:00
Mugurell bd1feeaac9 For #25025 - Download sponsored stories on debug only 2022-05-25 07:28:57 +00:00
Mugurell 1c7e788bae For #25025 - Use the `PocketStory` supertype
This prepares extending support from just `PocketRecommendedStory` to
`PocketSponsoredStory` also.
2022-05-25 07:28:57 +00:00
Mugurell abff68a31b For #25025 - Hardcode showing at max 8 Pocket stories
The default was already 8. This is now being moved closer to the source from
where the stories to be shown are emitted.
With the addition of sponsored stories at fixed positions having to support a
variable number of stories being returned from AppState#getFilteredStories
means increased complexity with no benefit.
2022-05-25 07:28:57 +00:00
Mugurell fc2c1700c9 For #23876 - Update kotlinx-coroutines to 1.6.1. Refactor runBlocking in tests.
After the update `TestCoroutineDispatcher`, `TestCoroutineScope` and
`runBlockingTest` are deprecated.
Instead of these new `TestDispatcher`, `TestScope` and `runTest` APIs are used.

Took the oportunity to also replace most of the `runBlocking` calls with the
new `runTest` specially designed for running coroutines in tests API.
2022-05-10 12:03:42 -04:00
MatthewTighe 414a54ed02 for #24549: add telemetry for recent synced tab 2022-04-12 00:17:30 +00:00
MatthewTighe dbfd5ffca0 for #24177: sync tabs when home is shown 2022-04-07 00:20:28 +00:00
Jonathan Almeida f953c5ec94 For #24220 and #24223: Connect GleanPlumb messages with the new tab ui card.
Co-authored-by: Jonathan Almeida <jalmeida@mozilla.com>
2022-03-26 22:14:49 +00:00
Gabriel Luong 6ae4f9b4c5 For #24114 - Refactor HomeFragmenStoreTest to AppStoreTest 2022-03-21 20:13:17 +00:00