Commit Graph

19 Commits (e717d79abd56594220e045b7be0f1d45b9a892d4)

Author SHA1 Message Date
akliuxingyuan e717d79abd Merge tag 'v110.0.1' into fork 1 year ago
BFadairo 71bc9eb4f7 Closes #27854: Remove unnecessary Theme.getTheme() calls from FirefoxTheme usages 2 years ago
Mugurell 0924de7753 For #26826 - Add test tags for the recent visits section. 2 years ago
Harrison Oglesby e052493cd5
For #27459 - Add divider composable (#27544) 2 years ago
Noah Bond f4e7471aea For #26520 - Color homepage cards via wallpaper card colors 2 years ago
sarah541 8ac2dc317b Truncate urls to prevent slowing down of UI 2 years ago
Alexandru2909 b93b085085 For #26790 - Dismiss search dialog when opening recent visit dropdown menu 2 years ago
mcarare ffcef5ff2e For #26844: Fix ktlint issues and remove them from baseline. 2 years ago
Christian Sadilek b24650c449 Revert "For #26227 - Remove search term tab groups from Recently Visited"
This reverts commit c45e4b4ac5.
2 years ago
Noah Bond c45e4b4ac5 For #26227 - Remove search term tab groups from Recently Visited 2 years ago
Alexandru2909 b6f140a76f For #24528 - Remove isPrivate conditional in getTheme in favor of inComposePreview 2 years ago
Gabriel Luong 8652ff5bcf For #24519 - Add Private theme to FirefoxTheme 2 years ago
Gabriel Luong cc3c68c24b For #23450 - Rename design token Border Default to Border Primary 2 years ago
Sarah Khan e9a4272e82 For #23138 - Close recently visited menu on orientation change 2 years ago
Gabriel Luong 2ad2691724 For #23086 - Update Border Divider to Border Default 2 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.
2 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 e20ef25bd1 For #22637 - Add new color tokens provided by the mobile styles to FirefoxTheme 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