overleaf/services
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 Merge pull request #12723 from overleaf/jpa-revert-node-18-upgrade 2023-04-21 08:03:22 +00:00
clsi Merge pull request #12706 from overleaf/bg-rollback-broken-node-18-services 2023-04-20 08:03:54 +00:00
contacts Merge pull request #12723 from overleaf/jpa-revert-node-18-upgrade 2023-04-21 08:03:22 +00:00
docstore Merge pull request #12723 from overleaf/jpa-revert-node-18-upgrade 2023-04-21 08:03:22 +00:00
document-updater Merge pull request #12706 from overleaf/bg-rollback-broken-node-18-services 2023-04-20 08:03:54 +00:00
filestore Merge pull request #12723 from overleaf/jpa-revert-node-18-upgrade 2023-04-21 08:03:22 +00:00
git-bridge Merge pull request #12551 from overleaf/msm-git-bridge-vulnerabilites 2023-04-12 08:03:57 +00:00
history-v1 Merge pull request #12706 from overleaf/bg-rollback-broken-node-18-services 2023-04-20 08:03:54 +00:00
notifications Merge pull request #12723 from overleaf/jpa-revert-node-18-upgrade 2023-04-21 08:03:22 +00:00
project-history Merge pull request #12706 from overleaf/bg-rollback-broken-node-18-services 2023-04-20 08:03:54 +00:00
real-time Merge pull request #12723 from overleaf/jpa-revert-node-18-upgrade 2023-04-21 08:03:22 +00:00
spelling Merge pull request #12706 from overleaf/bg-rollback-broken-node-18-services 2023-04-20 08:03:54 +00:00
track-changes Merge pull request #12723 from overleaf/jpa-revert-node-18-upgrade 2023-04-21 08:03:22 +00:00
web Implement history react toolbar UI (#12530) 2023-04-21 08:03:39 +00:00