Commit Graph

34 Commits (782e8980b04226991582988266fd28ecc1b81b77)

Author SHA1 Message Date
Noah Bond 21c270bb87 For #28133 - Fix Pocket story category color mismatch 2 years ago
BFadairo 71bc9eb4f7 Closes #27854: Remove unnecessary Theme.getTheme() calls from FirefoxTheme usages 2 years ago
Noah Bond 3f3f508b2b For #27457 - Refactor Pocket category colors 2 years ago
Noah Bond 0609475ede For #27457 - Refactor Pocket category colors 2 years ago
Mugurell a71aad1702 For #26826 - Add test tags allowing to differentiate Pocket stories 2 years ago
Mugurell f8c0ad0e59 For #26826 - Add test tags for the Pocket section 2 years ago
Alexandru2909 62b65d3a57 For #27691 - Replace 'Pocket' word in all strings with placeholder 2 years ago
Noah Bond f4e7471aea For #26520 - Color homepage cards via wallpaper card colors 2 years ago
Mugurell 2899a66b15 For #26737 - Use the body2 for title else caption style in the Pocket section 2 years ago
mcarare aa4a072d73 For #26743: Update the URL text styling in ClickableSubstringLink used by PoweredByPocketHeader
Co-authored-by: Gabriel Luong <gabriel.luong@gmail.com>
2 years ago
mcarare ffcef5ff2e For #26844: Fix ktlint issues and remove them from baseline. 2 years ago
Noah Bond 0ed40f239a For #26796 - Fix PocketStoriesComposablesPreview 2 years ago
Noah Bond f9380ebaa1 For #26797 - Add optional parameter to customize the background color of ListItemTabLarge 2 years ago
Mugurell e51ec147c5 For #26830 - Allow the Pocket stories to scroll to the edges of the screen
Restore using LazyRow's "contentPadding" property to add padding to just the
items while the entire section is allowed to extend to the edges of the screen
and so have enough room to draw items shadows without them being clipped.
2 years ago
mcarare 7cbe730b8a For #26444: Adapt Pocket 'powered by' text to wallpaper. 2 years ago
mcarare 02be7600e8 For #26444: Replace SectionHeader with HomeSectionHeader for home sections. 2 years ago
Mugurell de7cf91d8a For #26450: Remove the star icon from Pocket sponsored stories 2 years ago
Alexandru2909 b6f140a76f For #24528 - Remove isPrivate conditional in getTheme in favor of inComposePreview 2 years ago
Mugurell d4dd62341a For #25401 - Record Pocket sponsored stories telemetry 2 years ago
Mugurell feae3344de For #25401 - Improve how sponsored stories impressions are reported
While testing I observed that the Rect returned from `boundsInWindow()`
- will have the full height and width of the composable even if scrolled
offscreen vertically
- will only have the height and width of what part of the composable is shown
pn the screen.
Possibly because of the interactions of a vertically scrollable RecyclerView
and the LazyRow the composable is shown in.

To account for this the method calculating how much of the composable is shown
on screen will also now receive the real composable size as an argument.
2 years ago
Noah Bond 683226541c For #25490 - Remove PrimaryText and SecondaryText 2 years ago
Mugurell 12070cb7b8 For #25281 - Improve stories impressions recording.
This fixes the following two scenarios resulting in improper recordings:
- sponsored stories were recorded as shown as part of the impressions recording
for all the stories (both recommended and sponsored). Separated the two.
- sponsored stories were not recorded as shown if the user doesn't scroll.
This could happen if just toggling categories which would result in a new list
of stories to show. Will recheck after the time to settle if the composable is
shown.
2 years ago
Mugurell 41a1f31a84 For #25281 - Consider the toolbar when reporting stories visibility
The toolbar may appear over the Pocket stories causing our functionality for
reporting when a specific story is visible to misreport.
At the moment hardcoding the toolbar height in the visibility checks seems like
the best solution to ensure reliable data.
2 years ago
Mugurell 0b972660ca For #25281 - Allow the Pocket section to settle before reporting impressions
Currently just a hack that will ensure more reliable data.
This will have to be re-evaluated after the homescreen is migrated to compose.
2 years ago
Mugurell dfa5281b23 For #25281 - Pace and rotate sponsored stories
A new way to be able to reliably record actual impressions of sponsored stories
was needed and based on this data we can ensure we are promoting fresh stories
(with fewer impressions) or the ones with a higher priority.
2 years ago
Mugurell 2074131a58 For #25025 - Show sponsored stories on debug only
The design asks for a new row in between the primary and the secondary text so
I went with making "ListItemTabSurface" public allowing for customizing the
content it will show but keeping the same layout and general UX.
2 years ago
Mugurell 1c7e788bae For #25025 - Use the `PocketStory` supertype
This prepares extending support from just `PocketRecommendedStory` to
`PocketSponsoredStory` also.
2 years ago
sarah541 c09f899da4 For #25176 - Refactor TabTitle and TabSubtitle 2 years ago
Gabriel Luong 8652ff5bcf For #24519 - Add Private theme to FirefoxTheme 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
Gabriel Luong bd3f1a420e For #24069 - Use the correct design tokens for Powered by Pocket text 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
Gabriel Luong e20ef25bd1 For #22637 - Add new color tokens provided by the mobile styles to FirefoxTheme 3 years ago
Gabriel Luong 07a6a386f8 For #21753 - Refactor Pocket out of sessioncontrol 3 years ago