overleaf/services/web/frontend
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
..
fonts Add font-weight range and remove webkit prefix for Material Symbols (#11730) 2023-02-17 09:04:55 +00:00
js Implement history react toolbar UI (#12530) 2023-04-21 08:03:39 +00:00
macros Merge pull request #4101 from overleaf/ae-settings-module 2021-07-08 02:08:28 +00:00
stories Merge pull request #12668 from overleaf/td-history-scroll-to-first-change 2023-04-19 08:03:28 +00:00
stylesheets Implement history react toolbar UI (#12530) 2023-04-21 08:03:39 +00:00
extracted-translations.json Implement history react toolbar UI (#12530) 2023-04-21 08:03:39 +00:00
translations-loader.js Merge pull request #3589 from overleaf/i18next-scanner 2021-02-11 03:04:29 +00:00