overleaf/services/web/test/frontend/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
..
chat Fix: Chat messages deduplication (#12667) 2023-04-19 08:03:31 +00:00
clone-project-modal/components Merge pull request #9584 from overleaf/jel-copy-modal-wrapper 2022-09-16 08:04:49 +00:00
dictionary/components Merge pull request #8148 from overleaf/ta-pr-dictionary-style 2022-05-27 08:04:16 +00:00
editor-left-menu/components Always use mockable location methods (#11929) 2023-03-17 09:05:21 +00:00
editor-navigation-toolbar/components Merge pull request #11078 from overleaf/jel-features-page-analytics 2023-01-10 09:06:43 +00:00
file-tree Merge pull request #8258 from overleaf/jk-clean-up-too-many-files-errors 2022-06-09 08:02:18 +00:00
file-view/components Fix a few minor test issues (#5415) 2021-10-12 08:03:58 +00:00
group-management/components [web] Migrate group management to React (#11293) 2023-02-07 09:04:18 +00:00
history Implement history react toolbar UI (#12530) 2023-04-21 08:03:39 +00:00
hotkeys-modal/components Update "go to line" hotkey for cm6 and add new info text in hotkeys modal 2022-11-25 09:04:20 +00:00
outline Merge pull request #10397 from overleaf/td-memoize-file-outline 2022-11-15 09:05:12 +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 #12278 from overleaf/ii-change-email-confirmation 2023-03-21 09:04:23 +00:00
share-project-modal/components Avoid reading some variables directly from window (#12280) 2023-03-30 08:03:32 +00:00
source-editor Merge pull request #12701 from overleaf/dk-cm6-autocomplete-item-space 2023-04-21 08:03:08 +00:00
subscription Always use mockable location methods (#11929) 2023-03-17 09:05:21 +00:00
word-count-modal/components Delete unused PDF-related code (#6334) 2022-03-16 09:03:04 +00:00