overleaf/services/web/frontend/stylesheets/app
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
..
editor Implement deleted file restore for history react (#12753) 2023-04-28 08:04:59 +00:00
list
about-page.less
about.less
account-settings.less Merge pull request #8910 from overleaf/ta-add-email-wider 2022-07-21 08:03:58 +00:00
admin-hub.less
base.less Merge pull request #9882 from overleaf/ii-dashboard-system-message-migration 2022-10-13 08:05:38 +00:00
beta-program.less
blog-posts.less
blog.less
bonus.less
cms-page.less Merge pull request #12504 from overleaf/jel-cms-card-padding 2023-04-14 08:03:19 +00:00
contact-us.less
content_page.less Merge pull request #10830 from overleaf/jel-remove-test-show-unified-navigation 2022-12-13 09:04:28 +00:00
editor.less add 'Ace removal' notification (#12800) 2023-04-28 08:04:19 +00:00
error-pages.less Merge pull request #8426 from overleaf/ta-error-pages-style 2022-06-23 08:02:34 +00:00
features.less
front-chat-widget.less
grammarly.less Merge pull request #9747 from overleaf/ii-cm6-grammarly-dark-theme-css-fix 2022-09-28 08:06:08 +00:00
homepage.less Merge pull request #10633 from overleaf/ds-login-page-css-new-builds 2022-12-01 09:04:42 +00:00
import.less
institution-hub.less
invite.less
login-register.less Merge pull request #10633 from overleaf/ds-login-page-css-new-builds 2022-12-01 09:04:42 +00:00
metrics.less
ol-chat.less
ol-style-guide.less
open-in-overleaf.less
plans-ol.less
plans-v2.less Merge pull request #11706 from overleaf/jpa-fix-de-translations 2023-02-09 09:03:57 +00:00
plans.less Merge pull request #12593 from overleaf/jk-remove-plans-split-test 2023-04-26 08:04:21 +00:00
portals.less
primary-email-check.less
project-list-react.less [web] Colour picker for tags (#12255) 2023-04-13 08:04:03 +00:00
project-list.less Revert "Refactor project list notification by using onDismiss on Alert instead of custom Close component (#12043)" (#12133) 2023-03-07 09:06:25 +00:00
project-url-lookup.less
publisher-hub.less
recurly.less Merge pull request #10073 from overleaf/jel-cleanup-imports 2022-11-02 09:04:29 +00:00
register.less
review-features-page.less
sidebar-v2-dash-pane.less [web] Add new admin tool for surveys (#8356) 2022-06-23 08:02:37 +00:00
sprites.less
subscription.less Merge pull request #11670 from overleaf/ab-manage-members-back-button 2023-02-15 09:04:46 +00:00
templates-v2.less Merge pull request #12249 from overleaf/tm-gallery-top-picks 2023-04-19 08:03:19 +00:00
templates.less
translations.less
wiki.less