overleaf/services/web/test/frontend/features
M Fahru 0648b8aa6c Implement deleted file restore for history react (#12753)
* Add strikethrough to deleted file tree item in history file tree

* Add "restore file" button on toolbar if the selected file have a `removed` operation.

* Implement "restore file" functionality on removed file:

- Refactor the `Selection` object in history context value since we need the `deletedAtV` data which currently is not passed through the state.
- Refactor and clean up file tree type system to support passing through the whole `FileDiff` object for getting the `deletedAtV` data which only appear on `removed` operation
- Implement `postJSON` with file restoration API and pass it on restore file onClick handler at toolbar

* Implement loading behaviour while restoring file is inflight:

- Add `loadingRestoreFile` to `LoadingState`
- Change restore file button to `Restoring...` when in loading state.

* Refactor:

- Rename `DiffOperation` to `FileOperation`
- Extract `isFileRemoved` and `isFileRenamed` to its own file
- Extract `Toolbar` components into small files

GitOrigin-RevId: 2e32ebd2165f73fc6533ff282a9c084162efd682
2023-04-28 08:04:59 +00:00
..
chat Fix: Chat messages deduplication (#12667) 2023-04-19 08:03:31 +00:00
clone-project-modal/components Merge pull request #9584 from overleaf/jel-copy-modal-wrapper 2022-09-16 08:04:49 +00:00
dictionary/components Merge pull request #8148 from overleaf/ta-pr-dictionary-style 2022-05-27 08:04:16 +00:00
editor-left-menu/components Always use mockable location methods (#11929) 2023-03-17 09:05:21 +00:00
editor-navigation-toolbar/components Merge pull request #11078 from overleaf/jel-features-page-analytics 2023-01-10 09:06:43 +00:00
file-tree Merge pull request #8258 from overleaf/jk-clean-up-too-many-files-errors 2022-06-09 08:02:18 +00:00
file-view/components Fix a few minor test issues (#5415) 2021-10-12 08:03:58 +00:00
group-management/components [web] Migrate group management to React (#11293) 2023-02-07 09:04:18 +00:00
history Implement deleted file restore for history react (#12753) 2023-04-28 08:04:59 +00:00
hotkeys-modal/components Update "go to line" hotkey for cm6 and add new info text in hotkeys modal 2022-11-25 09:04:20 +00:00
outline Merge pull request #10397 from overleaf/td-memoize-file-outline 2022-11-15 09:05:12 +00:00
project-list Merge pull request #12528 from overleaf/jpa-switch-dashboard-events-to-bq 2023-04-14 08:03:12 +00:00
settings Merge pull request #12278 from overleaf/ii-change-email-confirmation 2023-03-21 09:04:23 +00:00
share-project-modal/components Avoid reading some variables directly from window (#12280) 2023-03-30 08:03:32 +00:00
source-editor [cm6] Use a block widget for padding at the top of the editor (#12705) 2023-04-25 08:04:53 +00:00
subscription Always use mockable location methods (#11929) 2023-03-17 09:05:21 +00:00
word-count-modal/components Delete unused PDF-related code (#6334) 2022-03-16 09:03:04 +00:00