overleaf/services/web/frontend/stylesheets/app/editor
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.less
compile-button.less Create new SplitMenu component and implement it for the pdf compile button (detached & non-detached) (#11772) 2023-02-22 09:04:42 +00:00
dictionary.less
error-boundary.less
file-tree.less Decouple history-file-tree styling out of editor file tree: 2023-04-21 08:03:36 +00:00
file-view.less
history-react.less Implement deleted file restore for history react (#12753) 2023-04-28 08:04:59 +00:00
history-v2.less Merge pull request #10790 from overleaf/ds-history-toggle-bug-fix 2022-12-08 09:03:57 +00:00
history.less
hotkeys.less Update "go to line" hotkey for cm6 and add new info text in hotkeys modal 2022-11-25 09:04:20 +00:00
left-menu.less Create settings menu react elements in editor left menu for editor left menu react migration 2022-11-15 09:07:01 +00:00
logs.less
online-users.less
outline.less Merge pull request #11958 from overleaf/ds-td-documentation-btn-refactor 2023-02-27 09:03:47 +00:00
pdf.less Create new SplitMenu component and implement it for the pdf compile button (detached & non-detached) (#11772) 2023-02-22 09:04:42 +00:00
publish-modal.less
publish-template.less
review-panel.less Improve the Rich Text toolbar (#11616) 2023-02-07 09:04:39 +00:00
rich-text.less
search.less
share.less Clean up link sharing upgrade prompt test and keep the default variant 2023-01-20 14:13:51 +00:00
symbol-palette.less
toolbar.less Fix editor switcher colour transition (#12328) 2023-03-30 08:03:20 +00:00