overleaf/services/web/frontend/js/features
M Fahru 4dec157e08 Implement history react toolbar UI (#12530)
There are two different UI in this PR: `comparing` and `viewing` mode.

- For `comparing`, the user would be shown two separate date. It uses the `UpdateRange` object and this PR adds a timestamp to both `fromV` and `toV` of the object type.
- For `viewing`, the user would only be shown one date since `viewing` mode means viewing a specific update version.

Some other notable changes:

- Move `diff` state to `diff-view.tsx`, which contains `main.tsx` (main editor history view) and `toolbar.tsx` as its children
- refactor `autoSelectFile` by passing `updateRange.toV` directly
- refactor `updateIsSelected` by passing an object that contains `fromV` and `toV` instead of passing `update

There's also a cypress test for both the `viewing` mode and `comparing` mode in this PR.

GitOrigin-RevId: ba54f073f3479c55a39eb6b2932ea7faff78dddc
2023-04-21 08:03:39 +00:00
..
algolia-search Merge pull request #5071 from overleaf/jpa-web-learn-de-ng 2021-09-16 08:03:43 +00:00
bookmarkable-tab Merge pull request #5133 from overleaf/as-bookmarkable-tab 2021-09-22 08:03:35 +00:00
chat Fix: Chat messages deduplication (#12667) 2023-04-19 08:03:31 +00:00
clone-project-modal Always use mockable location methods (#11929) 2023-03-17 09:05:21 +00:00
contact-form Merge pull request #5137 from overleaf/jpa-contact-form-selector 2021-09-24 08:03:30 +00:00
cookie-banner Add cookie banner (#6627) 2022-04-05 12:17:25 +00:00
dictionary Merge pull request #10793 from overleaf/mj-split-test-cleanup 2022-12-21 09:04:04 +00:00
editor-left-menu Move source editor out of module (#12457) 2023-04-13 08:40:56 +00:00
editor-navigation-toolbar Merge pull request #11706 from overleaf/jpa-fix-de-translations 2023-02-09 09:03:57 +00:00
event-tracking Add new analytics events in the new plans page and update analytics event in the current plans page (#7639) 2022-05-20 08:03:21 +00:00
fallback-image Merge pull request #5217 from overleaf/jpa-web-templates-de-ng 2021-09-30 08:03:41 +00:00
faq-search Merge pull request #10675 from overleaf/mj-wiki-search-submit 2022-12-12 09:03:38 +00:00
file-tree Merge pull request #12442 from overleaf/jel-bsStyle 2023-04-05 08:02:50 +00:00
file-view Merge pull request #11996 from overleaf/jel-pdf-detach-download 2023-03-09 09:04:49 +00:00
form-helpers Merge pull request #10394 from overleaf/ii-password-reset-and-strength-checking 2022-12-07 09:03:36 +00:00
group-management Merge pull request #11670 from overleaf/ab-manage-members-back-button 2023-02-15 09:04:46 +00:00
history Implement history react toolbar UI (#12530) 2023-04-21 08:03:39 +00:00
hotkeys-modal Fix autocomplete hotkeys description (#12607) 2023-04-17 08:04:51 +00:00
link-helpers Merge pull request #5190 from overleaf/jpa-sso-oauth-de-ng 2021-09-28 08:03:31 +00:00
mathjax Move code for loading MathJax v3 into the editor core (#11433) 2023-01-25 11:47:06 +00:00
multi-submit Merge pull request #6424 from overleaf/jpa-multi-submit-async-form 2022-01-26 09:02:55 +00:00
onboarding Implement onboarding video tour split test (#11889) 2023-03-02 09:05:43 +00:00
outline Merge pull request #11958 from overleaf/ds-td-documentation-btn-refactor 2023-02-27 09:03:47 +00:00
pdf-preview Improve handling of doc:saved events (#12522) 2023-04-17 08:04:26 +00:00
plans Merge pull request #12185 from overleaf/jpa-fix-segmentation 2023-03-17 09:06:08 +00:00
preview Merge pull request #10793 from overleaf/mj-split-test-cleanup 2022-12-21 09:04:04 +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 #12566 from overleaf/jdt-ghost-danger-buttons 2023-04-18 08:04:51 +00:00
share-project-modal Always use mockable location methods (#11929) 2023-03-17 09:05:21 +00:00
source-editor Merge pull request #12672 from overleaf/ae-emacs-compile-keydown 2023-04-21 08:03:11 +00:00
subscription Always use mockable location methods (#11929) 2023-03-17 09:05:21 +00:00
user-content-domain-access-check Merge pull request #12198 from overleaf/jpa-force-new-compile-domain 2023-03-17 09:04:49 +00:00
utils Merge pull request #12549 from overleaf/ii-history-react-list-of-all-versions 2023-04-12 08:03:47 +00:00
word-count-modal Merge pull request #10682 from overleaf/ds-btn-default-to-secondary-in-editor-part-2 2022-12-08 09:03:42 +00:00