overleaf/services/web/frontend/js/features/history/utils
M Fahru fb6746a887 Add default pathname logic on history react file tree (#12505)
On history react, when the initial screen has been loaded, no default pathname is selected. This PR adds logic for selecting default pathname and getting the diff for that pathname.

Also, add some other small changes, the notable ones are:

- Refactor some type naming and file structure related to the history file tree
- Refactor file tree selectable hooks (merge selectable context provider into the main provider)
- prevent clicking on the same file tree item by checking the current pathname before invoking the handler function

GitOrigin-RevId: 73c36e9ed918ae3d92dd47108fbe8542a7571bdd
2023-04-12 08:04:58 +00:00
..
auto-select-file.ts Add default pathname logic on history react file tree (#12505) 2023-04-12 08:04:58 +00:00
file-tree.ts Add default pathname logic on history react file tree (#12505) 2023-04-12 08:04:58 +00:00
highlights-from-diff-response.ts Merge pull request #12549 from overleaf/ii-history-react-list-of-all-versions 2023-04-12 08:03:47 +00:00
history-details.ts Merge pull request #12549 from overleaf/ii-history-react-list-of-all-versions 2023-04-12 08:03:47 +00:00
label.ts Merge pull request #12549 from overleaf/ii-history-react-list-of-all-versions 2023-04-12 08:03:47 +00:00