overleaf/services/web/frontend/js
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
..
directives
features Implement history react toolbar UI (#12530) 2023-04-21 08:03:39 +00:00
filters
ide Merge pull request #12701 from overleaf/dk-cm6-autocomplete-item-space 2023-04-21 08:03:08 +00:00
infrastructure
main Always use mockable location methods (#11929) 2023-03-17 09:05:21 +00:00
modules
pages Merge pull request #12185 from overleaf/jpa-fix-segmentation 2023-03-17 09:06:08 +00:00
services
shared add sm size to badge 2023-04-21 08:03:33 +00:00
utils
vendor/libs
base.js
cdn-load-test.js
i18n.js
ide-detached.js
ide.js Move source editor out of module (#12457) 2023-04-13 08:40:56 +00:00
libraries.js
main.js
marketing.js
tracing.js