overleaf/services/web/frontend/stylesheets
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
..
app Implement deleted file restore for history react (#12753) 2023-04-28 08:04:59 +00:00
components Merge pull request #12773 from overleaf/ii-history-react-changes-list-dropdown 2023-04-26 08:05:24 +00:00
core [cm6] Show Regex errors in find & replace (#12720) 2023-04-27 08:05:14 +00:00
modules Merge pull request #11094 from overleaf/jel-use-label-style 2023-01-10 09:06:51 +00:00
variables [cm6] Show Regex errors in find & replace (#12720) 2023-04-27 08:05:14 +00:00
vendor Merge pull request #10105 from overleaf/ii-rich-text-scroll-bar 2022-10-24 08:03:07 +00:00
_ol_style_includes.less Merge pull request #10394 from overleaf/ii-password-reset-and-strength-checking 2022-12-07 09:03:36 +00:00
_style_includes.less Merge pull request #12557 from overleaf/ii-history-react-labels-only 2023-04-13 08:04:12 +00:00
ieee-style.less
light-style.less
main-ieee-style.less Merge pull request #10072 from overleaf/jel-start-new-css 2022-10-25 08:04:04 +00:00
main-light-style.less Merge pull request #10072 from overleaf/jel-start-new-css 2022-10-25 08:04:04 +00:00
main-style.less Merge pull request #12557 from overleaf/ii-history-react-labels-only 2023-04-13 08:04:12 +00:00
style.less Improve the Rich Text toolbar (#11616) 2023-02-07 09:04:39 +00:00