Commit Graph

148 Commits (782e8980b04226991582988266fd28ecc1b81b77)

Author SHA1 Message Date
Alexandru2909 3135062936 For #22770 - Use String.toShortUrl from A-C 2 years ago
Roger Yang 35e0afe329 Close #24613: Remove history improvement feature flag 2 years ago
mcarare d9d01db7cc For #25980: Replace deprecated setHasOptionsMenu with MenuProvider. 2 years ago
Roger Yang e81da189cd Close #24498: Add test for history search telemetry 2 years ago
mcarare ffcef5ff2e For #26844: Fix ktlint issues and remove them from baseline. 2 years ago
Roger Yang 30814884b5 For #26502: Add time group and private extras in history telemetry 2 years ago
mike a c90debfe15 Revert "Closes #24307: add synced history empty fragment, feature flag and history screen showing only local files 2 years ago
mike a 3434c702de Closes #26502: add isLocal parameter for history openItem telemetry event 2 years ago
mavduevskiy 40ef60ca87 Revert "Closes #25942: use HistoryFragment to show synced history"
This reverts commit 6483e1c647.
2 years ago
mike a 6483e1c647 Closes #25942: use HistoryFragment to show synced history 2 years ago
mcarare 11a7085e46 For #26197: Cancel history list update on fragment destroyed. 2 years ago
mike a 063a09782a Issue #26101: add telementry for deleting history time range 2 years ago
mike a 7982c6b79f Close #25954: add a new delete time range confirmation dialog for history screen 2 years ago
Roger Yang 22ac345513 Issue #24740: Use unified search bar in history search 2 years ago
JLRoberts 479e44b0a1 For #23700 - HistoryFragment: Exit edit mode when multi-selection is opened in tabs or shared.
This mirrors behavior currently in Bookmarks library with the same actions.
2 years ago
mcarare ffa1ecd300 For #21292: Remove unused MetricController parameters. 2 years ago
mike a 8e9464fee3 Closes #24307: add synced history empty fragment, feature flag and history screen showing only local files 2 years ago
mike a a066dddce9 Closes #24513: add undo snackbar to history group screen 2 years ago
mavduevskiy 602f55b5d2
For #23665 - Make the undo snackbar for the library screens work globally (#24398)
* Closes #23665: make snackbar work after leaving the fragment it was initiated from

* Closes #23665: bring back the removed bookmark navigation test, sort imports alphabetically

Co-authored-by: mike a <mavduevskiy@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2 years ago
Alexandru2909 e571f0bb3a For #24498 - Remove Event.wrapper for History metrics 2 years ago
mike a ebf4ce2fe7 Closes #24276:
– remove unused import
– remove HistoryViewModel
2 years ago
mike a 9f699e2b40 Closes #24276: fixed history tests 2 years ago
mike a 7b5d3181df Closes #24276: updating pagination library, changing history related classes 2 years ago
mike a 9aa613c443 Closes #23517: history items are not being removed after deletion 2 years ago
Gabriel Luong a6c8f8b313 For #24252 - Rename destructive attribute to textWarning 2 years ago
Roger Yang 7d8bad05cd Close #23694: Add telemetry for history search 2 years ago
Roger Yang 1e90235dcc Close #10046: Add history search 2 years ago
Grisha Kruglov 413ff7cd85 Closes #22499: Emit search group disband action on history group removal
This is needed to prevent removed search groups from coming back after
user interacts with the tab. E.g. if we don't fire this action, upon
interaction with the tab after a corresponding search group was removed
we will end up creating metadat with the deleted 'searchTerms' (they'll
be read from the 'historyMetadata' state on the tab).

At this point we probably want to start encapsulating all of this in a
use case - let's do that separately in
https://github.com/mozilla-mobile/android-components/issues/11309, and
just fix the bug for now.
3 years ago
Grisha Kruglov 77672dfa15 Post: move group removal logic into PagedHistoryProvider
This moves the group removal logic to the place where the groups are
actually formed. This helps clean-up the fragment code a bit, and
removes the awkward 'allow mutate some random internal state' API from
the provider.
3 years ago
Mugurell 9cce30b824 For #22226 - Open grouped history entries the same as individual ones 3 years ago
Gabriel Luong 603ba63962 For #21776 - 'protected' visibility is effectively 'private' in a final class 3 years ago
Mugurell 6d62aed35f For #21933 - Refresh history items everytime the fragment is opened 3 years ago
Sebastian Kaspari 170fa9705e Update Kotlin and Jetpack Compose versions. 3 years ago
Gabriel Luong 15d1a0aa17 For #21551 - Add delete history metadata in the History view
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
3 years ago
Gabriel Luong 2ae7d5d593 For #20893 - Search term groups in history 3 years ago
Gabriel Luong 4080eba225 For #21037 - Add a delete history menu item
This removes the existing "Delete history" button in the History in favour of a menu item
3 years ago
Gabriel Luong e4a25f4123 For #21035 - Refactor HistoryViewInteractor from HistoryView into HistoryInteractor 3 years ago
codrut.topliceanu 94cf03a1ca For #17917: Use View binding in history screens 3 years ago
Sebastian Kaspari 971b419d77 Run ktlintFormat to adapt to latest formatting rules. 3 years ago
Roger Yang 74c1cc82fb Closes #19921: Update appcompat and fragment dependencies to 1.3.x 3 years ago
Sebastian Kaspari 4753a1d494 Complete browser-state migration and remove browser-session dependency.
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
3 years ago
mcarare 4dd4e35982 For #19258: Replace default Android back button with a custom icon. 3 years ago
Roger Yang 79cf3fc765
Closes #18253: Bookmark and History open new tabs in the background (#19275) 3 years ago
MarcLeclair 990bfa7e6d
16900 make navgraph inflation asynchronous (#18889)
* For #16900: implement async navgraph inflation

For #16900: removed nav graph from xml

For #16900: inflate navGraph programatically

For #16900: Made NavGraph inflation asynchronous

For #16900: Changed to block with runBlocking

For #16900: Refactored blocking call into a function

For 16900: NavGraph inflation is now async

We now attach the nav graph (or check if its attached) on every nav call ( an extension function for NavController).
This is done by checking the value of the job stored in PerfNavController.map which keeps track of the job with the NavController as a Key.
If the job hasn't been completed, it will block the main thread until the job is done. The job itself is responsible for attaching the navgraph
to the navcontroller (and the inflation of the latter too)

For 16900: rebased upstream master

For 16900: Rebase on master

For #16900: Fixed Async Navgraph navigation per review comments.

1)The Asynchronous method is now found in NavGraphProvider.kt. It creates a job on the IO dispatcher
2)The Job is tracked through a WeakHashMap from Controller --> NavGraph
3)The Coroutine scope doesn't use MainScope() anymore
4)The Coroutine is cancelled if the Activity is destroyed
5)The tests mockk the blockForNavGraphInflation method through the FenixReoboelectricTestApplication instead of calling the mock every setup()

For #16900: inflateNavGraphAsync now takes navController

For #16900: Pass lifecycleScope to NavGraphProvider

For #16900: removed unused mock

For #16900: Added linter rules for navigate calls

We need linting rules to make sure no one calls the NavController.navigate() methods

For #16900: Added TestRule to help abstract the mocks in the code

For 16900: Fix linting problems

For #16900: Cleaned duplicated code in tests

For #16900: cleaned up NavGraphTestRule for finished test

For #16900: had to revert an accidentally edited file

For #16900: rebased master

* For #16900: Review nits for async navgraph

This is composed of squash commits, the original messages can be found below:

-> DisableNavGraphProviderAssertionRule + kdoc.

Use test rule in RobolectricApplication.

Fix failing CrashReporterControllerTest

Fix blame by -> navigate in tests.

This commit was generated by the following commands only:
```
find app/src/test -type f -exec sed -i '' "/import org.mozilla.fenix.ext.navigateBlockingForAsyncNavGraph/d" {} \;
find app/src/test -type f -exec sed -i "" "s/navigateBlockingForAsyncNavGraph/navigate/g" {} \;
git checkout app/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker
```

Fix various blame

This is expected to be squashed into the first commit so, if so, it'd
fix the blame.

Move test rule to helpers pkg.

add missing license header

Add import change I missed

fix unused imports

Replace robolectricTestrunner with test rule.

Improve navGraphProvider docs

Remove unnecessary rule as defined by robolectric.

add clarifying comment to robolectric

remove unnecessary space

* For #16900: nit fixes for MozillaNavigateCheck and lint fixes

3 squash commits:
 *Changed violation message and fixed the lint rule for MozillaNavigateCheck
 *Added suppression to NavController.kt
 *Fixed detekt violations

* For 16900: Fixed failing tests

Co-authored-by: Michael Comella <michael.l.comella@gmail.com>
3 years ago
Roger Yang 9049513017
Closes #18178: Rework History Telemetry (#18261) 3 years ago
Mihai Adrian Carare 3bb074b133
For #13522: Also remove history entries from tab history. (#17392)
* For #13522: Also remove history entries from tab history.

* For #13522: Test that deleting history also removes it from tab history.
3 years ago
mcarare d233229ce4 For #15366: Add recently closed tabs metrics from history fragment. 4 years ago
Shen 45e3f7805b For #13168 - Removed the close button from history navigation bar 4 years ago
Jocelyne e74a12b442
For #15471: Show Delete button in red in multi-select overflow menu (#15576) 4 years ago
Grisha Kruglov 51dab196c4 Closes #15443: Use fragment's lifecycleScope for AlertDialog actions 4 years ago