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 Merge pull request #2401 from overleaf/cmg-ns-pretty-less 2019-12-06 04:19:26 +00:00
about-page.less Merge pull request #2401 from overleaf/cmg-ns-pretty-less 2019-12-06 04:19:26 +00:00
about.less Merge pull request #2401 from overleaf/cmg-ns-pretty-less 2019-12-06 04:19:26 +00:00
account-settings.less Merge pull request #8910 from overleaf/ta-add-email-wider 2022-07-21 08:03:58 +00:00
admin-hub.less Upgrade to webpack v5 (#7249) 2022-04-07 08:03:46 +00:00
base.less Merge pull request #9882 from overleaf/ii-dashboard-system-message-migration 2022-10-13 08:05:38 +00:00
beta-program.less Merge pull request #3558 from overleaf/pr-logs-ui-beta-icon 2021-01-22 03:04:55 +00:00
blog-posts.less Merge pull request #2401 from overleaf/cmg-ns-pretty-less 2019-12-06 04:19:26 +00:00
blog.less Merge pull request #2401 from overleaf/cmg-ns-pretty-less 2019-12-06 04:19:26 +00:00
bonus.less Merge pull request #3470 from overleaf/eslint 2020-12-16 03:08:28 +00:00
cms-page.less Merge pull request #12504 from overleaf/jel-cms-card-padding 2023-04-14 08:03:19 +00:00
contact-us.less Merge pull request #2401 from overleaf/cmg-ns-pretty-less 2019-12-06 04:19:26 +00:00
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 Merge pull request #2401 from overleaf/cmg-ns-pretty-less 2019-12-06 04:19:26 +00:00
front-chat-widget.less Merge pull request #2401 from overleaf/cmg-ns-pretty-less 2019-12-06 04:19:26 +00:00
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 Merge pull request #2349 from overleaf/as-webpack-css 2019-11-28 10:39:09 +00:00
institution-hub.less Merge pull request #2401 from overleaf/cmg-ns-pretty-less 2019-12-06 04:19:26 +00:00
invite.less Merge pull request #2401 from overleaf/cmg-ns-pretty-less 2019-12-06 04:19:26 +00:00
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 Merge pull request #5332 from overleaf/jpa-rework-metrics-csv-download 2021-10-07 08:04:16 +00:00
ol-chat.less Merge pull request #2401 from overleaf/cmg-ns-pretty-less 2019-12-06 04:19:26 +00:00
ol-style-guide.less Merge pull request #2401 from overleaf/cmg-ns-pretty-less 2019-12-06 04:19:26 +00:00
open-in-overleaf.less Merge pull request #2349 from overleaf/as-webpack-css 2019-11-28 10:39:09 +00:00
plans-ol.less Merge pull request #2401 from overleaf/cmg-ns-pretty-less 2019-12-06 04:19:26 +00:00
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 Merge pull request #5133 from overleaf/as-bookmarkable-tab 2021-09-22 08:03:35 +00:00
primary-email-check.less Adjusted primary-email-check page styling (#6626) 2022-02-18 09:04:14 +00:00
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 Merge pull request #7040 from overleaf/jpa-project-url-lookup 2022-04-05 12:18:38 +00:00
publisher-hub.less Merge pull request #2401 from overleaf/cmg-ns-pretty-less 2019-12-06 04:19:26 +00:00
recurly.less Merge pull request #10073 from overleaf/jel-cleanup-imports 2022-11-02 09:04:29 +00:00
register.less Merge pull request #2401 from overleaf/cmg-ns-pretty-less 2019-12-06 04:19:26 +00:00
review-features-page.less Merge pull request #3470 from overleaf/eslint 2020-12-16 03:08:28 +00:00
sidebar-v2-dash-pane.less [web] Add new admin tool for surveys (#8356) 2022-06-23 08:02:37 +00:00
sprites.less Upgrade to webpack v5 (#7249) 2022-04-07 08:03:46 +00:00
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 Merge pull request #2401 from overleaf/cmg-ns-pretty-less 2019-12-06 04:19:26 +00:00
translations.less Merge pull request #2942 from overleaf/jel-css-is-overleaf 2020-06-26 02:10:02 +00:00
wiki.less Merge pull request #3998 from overleaf/jpa-learn-sanitize 2021-05-08 02:10:06 +00:00