Commit Graph

22 Commits (978871c8590373dd2633f0f94e52b9f334f1c949)

Author SHA1 Message Date
Gabriel Luong 978871c859 Bug 1848527 - Part 1: Enable OutdatedDocumentation detekt rule in Fenix 8 months ago
Matthew Tighe 1020af9827 Bug 1854709 - Add Store actions for remaining History interactor calls 9 months ago
Matthew Tighe 816dbfdead Bug 1842250 - Refactor the remaining HistoryController functions to lib-state 10 months ago
MatthewTighe d0db2795e7 Bug 1842251 - Refactor HistoryController delete functions to lib-state. 10 months ago
MatthewTighe 7e97ccb6f1 Bug 1842245 - Refactor history fragment item click handlers to lib-state 11 months ago
mcarare 932823c871 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26844: Fix ktlint issues and remove them from baseline. 2 years ago
mike a 5c597031e3 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/26502: add isLocal parameter for history openItem telemetry event 2 years ago
mike a caa53eb6e9 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/24513: add undo snackbar to history group screen 2 years ago
Roger Yang 1b420ea198 [fenix] Close https://github.com/mozilla-mobile/fenix/issues/23250: Remove duplicate sites within a time period in history 2 years ago
Grisha Kruglov c367072d11 [fenix] 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
Grisha Kruglov b13e149900 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/22764: Convert History.id to an Int position
We were converting Long timestamps into Ints (and getting negative
numbers back), and treating that as, basically, a position for the
paging API; the paging API would pass us back the obscure negative
number back as an offset, and we'll mishandle it resulting in an
infinite loop.

This patch removes all of the Long -> Int conversions, and introduces an
explicit 'position' that is calculated once we have a full page of
results completed.
3 years ago
Gabriel Luong 4d23db624f [fenix] For https://github.com/mozilla-mobile/fenix/issues/21551 - Add delete history metadata in the History view
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
3 years ago
Gabriel Luong e3bc494414 [fenix] Issue https://github.com/mozilla-mobile/fenix/issues/21117 - Modify layout for items displayed under "Recently Visited" in the HomeScreen to follow latest UX designs 3 years ago
Gabriel Luong bc30e53e5d [fenix] For https://github.com/mozilla-mobile/fenix/issues/21408 - Pass the corresponding HistoryMetadataKey to openToBrowserAndLoad and addTab use case 3 years ago
Gabriel Luong 793ceb8e28 [fenix] For https://github.com/mozilla-mobile/fenix/issues/20893 - Search term groups in history 3 years ago
Tiger Oakes ad4476342b [fenix] Fix license on remaining files 4 years ago
Mihai-Eduard Badea 65c98d6c16 [fenix] For issue https://github.com/mozilla-mobile/fenix/issues/9949 - Bookmarks/History deletion inconsistencies (https://github.com/mozilla-mobile/fenix/pull/12630)
- Added the undo action for deleting individual history items by creating a new field to the history state containing the id's of the history items that are pending for deletion; This field is used inside the update function from the view to show/hide the items.

 - Added a new check inside the "deleteMulti" method from BookmarkFragment that calls the showRemoveFoldersDialog to prevent the user from being able to delete one or more bookmark folders without being asked for confirmation, as in https://github.com/mozilla-mobile/fenix/issues/8648.

Co-authored-by: Mihai Eduard Badea <mihai.badea@softvision.ro>
4 years ago
Emily Kager b7af130eb7 [fenix] Revert "For issue https://github.com/mozilla-mobile/fenix/issues/9949 - Bookmarks/History deletion inconsistencies"
This reverts commit fc8365728f1f9bd02766e5931aa990c91c59c03b.
4 years ago
David Walsh db28b7df4e [fenix] For issue https://github.com/mozilla-mobile/fenix/issues/9949 - Bookmarks/History deletion inconsistencies
- Added the undo action for deleting individual history items by creating a new field to the history state containing the id's of the history items that are pending for deletion; This field is used inside the update function from the view to show/hide the items.

 - Added a new check inside the "deleteMulti" method from BookmarkFragment that calls the showRemoveFoldersDialog to prevent the user from being able to delete one or more bookmark folders without being asked for confirmation, as in https://github.com/mozilla-mobile/fenix/issues/8648.
4 years ago
person808 f1511fc053 [fenix] For https://github.com/mozilla-mobile/fenix/issues/2165 - Implement pull-to-refresh gesture to sync history. 4 years ago
Sebastian Kaspari 98f0427ea2 [fenix] Fix ktlint MaxLineLength issues. 5 years ago
Sebastian Kaspari ec29bdbc78 [fenix] Rename HistoryStore/State/Action to HistoryFragmentStore/State/Action. 5 years ago