Rebeka Dekany
960eea7129
Bootstrap files and folders cleanup ( #27692 )
...
* Remove icons folder
* Create folders for badge, button, and dropdown components
* Remove Bootstrap 5 from test
* Rename `getBootstrap5Breakpoint` to `getBootstrapBreakpoint`
* Cleanup and update BS 5 comments
* Move components to the shared folder
* Rename `tooltips-bs5` to `tooltip`
* Remove `-bs5` suffix
* Fix path
* Delete BS3 version file
* Rename `_form_marketing-bootstrap-5` to `_form_marketing`
* Delete BS3 version file
* Rename `_contact_general_modal-marketing-bootstrap-5` to `_contact_general_modal-marketing`
* Delete BS3 version file
* Rename `_contact_modal-marketing-bootstrap-5` to `_contact_modal-marketing`
* Delete BS3 version file
* Rename `thin-footer-bootstrap-5` to `thin-footer`
* Delete BS3 version file
* Rename `language-picker-bootstrap-5` to `language-picker`
* Rename `fat-footer-react-bootstrap-5` to `fat-footer-react`
* Delete BS3 version file
* Rename `navbar-marketing-bootstrap-5` to `navbar-marketing`
* Rename `navbar-marketing-react-bootstrap-5` to `navbar-marketing-react`
* Delete BS3 version file
* Rename `layout-website-redesign-cms-bootstrap-5` to `layout-website-redesign-cms`
* Source format
* Fix path
GitOrigin-RevId: cf0f5db7c84cf545c69213dcc271d9ff17fe5db7
2025-08-11 08:06:16 +00:00
Tim Down
aae0d42002
Merge pull request #23940 from overleaf/td-react-18
...
Upgrade to React 18
GitOrigin-RevId: 9b81936e6eea2bccd97fe5c2c5841f0b946371b8
2025-05-02 08:05:29 +00:00
Tim Down
719fbe7847
Merge pull request #25093 from overleaf/td-upgrade-react-error-boundary-second-attempt
...
Upgrade react-error-boundary to version 5, second attempt
GitOrigin-RevId: 2b88334b66f0ace383211c147279ff88e9f956bb
2025-04-29 08:06:23 +00:00
Tim Down
d60c5bb41f
Merge pull request #25080 from overleaf/revert-25073-td-upgrade-react-error-boundary
...
Revert "Upgrade react-error-boundary to version 5"
GitOrigin-RevId: 3301adb508eed26e4429c6aa912abf9e81c1d9f8
2025-04-25 08:05:25 +00:00
Tim Down
3da444f2c5
Merge pull request #25073 from overleaf/td-upgrade-react-error-boundary
...
Upgrade react-error-boundary to version 5
GitOrigin-RevId: ebccd35e10084aa221c437c09ddfdb86f6272cf3
2025-04-25 08:05:20 +00:00
Alf Eaton
a12e2001c3
Remove Bootstrap 3 code from IDE page components ( #23061 )
...
GitOrigin-RevId: b41aff10672bf96e892de0be396a69eb25e2443b
2025-03-07 09:05:45 +00:00
Domagoj Kriskovic
ccb0a54d58
Disable restore project/file and project settings for a reviewer ( #23104 )
...
* Disable restore project/file and project settings for a reviewer
* hide github menu
* use permissions context
GitOrigin-RevId: a705ecf8bc1f722b8818baef85c5411e7a762989
2025-01-29 09:05:29 +00:00
Tim Down
0931abc372
Merge pull request #21028 from overleaf/td-bs5-history-header
...
Migrate history header to Bootstrap 5
GitOrigin-RevId: de875cc698b0892d87d6f120131fc7fc3dc24e51
2024-10-17 08:05:50 +00:00
Tim Down
e3c01fad80
Merge pull request #21013 from overleaf/td-bs5-history-document-diff-viewer
...
Migrate document diff viewer to Bootstrap 5
GitOrigin-RevId: 361e6398a09a5ec5c48aced02f27d9896567b539
2024-10-17 08:05:45 +00:00
Tim Down
321daacbe0
Merge pull request #20860 from overleaf/td-bs5-history-versions-list
...
Migrate history versions list to Bootstrap 5
GitOrigin-RevId: 4e006ad353cb11eadaefb2df41d2b8591003c664
2024-10-14 11:11:01 +00:00
Mathias Jakobsen
18ddc4516a
Merge pull request #20226 from overleaf/mj-restore-file-badge
...
[web] Add split test badge for file restore
GitOrigin-RevId: 59bbdd4cc5b76141a8bae06c2e7181e5a5c5ccc0
2024-09-05 08:04:53 +00:00
Mathias Jakobsen
7a87211a82
Merge pull request #19743 from overleaf/mj-restore-project
...
[web+project-history] Add project version reverting
GitOrigin-RevId: 0f77cec730393187d531c0c6561faaa652bebf29
2024-08-21 08:05:08 +00:00
Domagoj Kriskovic
95063712c0
[web] Rename "Revert file" to "Restore this version" ( #19069 )
...
* rename revert file to restore file
* rename file/function name
* rename split test
* fix formatting
* do not rename split test name
* fix typo
GitOrigin-RevId: e4e2eae622a270b3b6483348f441ddd424623f81
2024-06-28 08:04:49 +00:00
Domagoj Kriskovic
900e942873
[web] Show confirmation modal when reverting a file ( #18105 )
...
* [web] Show confirmation modal when reverting a file
* only show Revert file in ui even if deleted
* format:fix
* using the same message for every revert
* replace "document" with "file" in confirm dialog
* remove "pull-left" class
* fix split test name
GitOrigin-RevId: ab5937b9a0570cd1fdbe5d71eda0a16ae539dc66
2024-05-14 08:03:44 +00:00
Antoine Clausse
4b707e7630
[web] Use React hooks to get split-test variants instead of getSplitTestVariant (getMeta) ( #18133 )
...
* Fix split-tests loading in React component: use `useSplitTestContext` instead of `getSplitTestVariant`
* Replace use of `isSplitTestEnabled` by `useSplitTestContext`
* Add SplitTestProvider to roots, and fix tests
* Create `useFeatureFlag` hook
* Use `useFeatureFlag` where applicable
GitOrigin-RevId: 9ff7bb3975d50bc4d07d74d93c482d56dc96f615
2024-05-01 08:04:55 +00:00
Domagoj Kriskovic
2200d9d1bc
[web] add Revert File button behind a feature flag ( #17975 )
...
* [web] add Revert File button behind a feature flag
* improve error message
* use constant for timeout
GitOrigin-RevId: 047c35d22e948351c52d469e48b869719f44ec4f
2024-04-19 08:04:06 +00:00
Alf Eaton
890678db9b
Set EditorState.readOnly on DocumentDiffViewer ( #16756 )
...
GitOrigin-RevId: 4c38441c3ca3010bf28544e237a5b76f7a26b000
2024-02-02 09:03:05 +00:00
Mathias Jakobsen
a0f818120e
Merge pull request #15781 from overleaf/ds-react-history-split-test-tear-down
...
History View React - Split test tear down
GitOrigin-RevId: 6095ea94a74fc96c7031a4d1bbefdc6211cc934c
2023-11-24 09:04:14 +00:00
Tim Down
f148e683e1
Merge pull request #15707 from overleaf/td-user-settings-context
...
Move user settings to a context
GitOrigin-RevId: 9a9d55dfee9f71cee323fe64d1442303ac7cfeb2
2023-11-22 09:04:39 +00:00
Alf Eaton
052bbdcb61
Ensure that translation values are correctly escaped ( #15252 )
...
GitOrigin-RevId: 5a38b4c01921fd4d95dbdb7b9e756443fdb00b80
2023-10-20 08:03:31 +00:00
Tim Down
389b0199e6
Merge pull request #14829 from overleaf/td-history-scroll-editor-tab
...
History view: prevent scroll to top of document diff viewer when editing in another tab
GitOrigin-RevId: d94da63fdb8e76203a1a2cc5729188a9d28e0be5
2023-09-21 08:04:00 +00:00
Jimmy Domagala-Tang
4183d0d1ab
Merge pull request #14866 from overleaf/jdt-hist-rename-test
...
fix: rename the history view split test so we can reroll it
GitOrigin-RevId: fd42fab5b6fd715b89688b401596962453b1d002
2023-09-19 08:04:10 +00:00
Tim Down
1ccdef561f
Merge pull request #13309 from overleaf/td-history-font-size-setting
...
History migration: use font size, font family and line height from user settings in document diff viewer
GitOrigin-RevId: 59a0bfe3fa0403a971b7a9b0d5aba2ce37d976c8
2023-07-17 10:23:52 +00:00
Tim Down
9cbe4efc07
Merge pull request #13227 from overleaf/td-history-keyboard-scroll-diff-viewer
...
History migration: Add tabindex to document diff viewer to allow keyboard scrolling
GitOrigin-RevId: 95a0be27fa710a4f81e5944432b6b108e529634f
2023-07-17 10:23:42 +00:00
Tim Down
c4a4aaaa51
Merge pull request #13259 from overleaf/td-history-survey-link
...
History migration: Add beta badge to history toolbar
GitOrigin-RevId: e5c818953a7d41c31018a2d39c3937d70c057f8c
2023-06-01 08:04:24 +00:00
Tim Down
ef1211401e
History migration: Abort previous GET requests ( #12893 )
...
GitOrigin-RevId: ad72d526bf7cdfa91b00025b58205d9a5b4cc62f
2023-05-25 08:04:15 +00:00
Tim Down
23b6b062b1
Merge pull request #13159 from overleaf/td-history-comparison-text-icon-tweaks
...
History migration: Icon and text changes to version comparison, switch order of from and to
GitOrigin-RevId: e31db255c55caf15481ed0237875e637c0ac0861
2023-05-23 08:04:15 +00:00
Tim Down
07024a23b9
Merge pull request #13093 from overleaf/td-history-cm6-translations
...
History migration: Use translatable strings in history diff highlight tooltips
GitOrigin-RevId: 90c127b792c116c5805ee191b80564eb763cee44
2023-05-17 12:05:12 +00:00
Tim Down
6617df7ee7
Merge pull request #12962 from overleaf/td-history-loading-state-fix
...
History migration: Split updates and file diff loading states, move file restore load state out of context
GitOrigin-RevId: a994a1bdc8168043f045aaa3b7708bfce994d505
2023-05-10 08:04:59 +00:00
Tim Down
a992d697cf
Merge pull request #12969 from overleaf/td-history-prevent-flashes
...
History migration: Prevent flash of previous document in document diff viewer when switching document
GitOrigin-RevId: dae99c13779006b61eb018772295376320770d3b
2023-05-10 08:04:26 +00:00
Tim Down
fcdd043535
Merge pull request #12873 from overleaf/td-history-loading-improvements
...
History migration: Improve loading logic and display for loading file diffs
GitOrigin-RevId: 9d20c4632e6a804cb21e6fffd52faa88bc03f01a
2023-05-05 08:04:45 +00:00
Tim Down
cc66c1d85b
Merge pull request #12936 from overleaf/td-history-diff-viewer-fixed-font
...
History migration: Use fixed font, text size, line height and theme in document diff viewer
GitOrigin-RevId: 9f86be609e0fe72ca41429bae9db03e047952c08
2023-05-05 08:04:37 +00:00
Tim Down
21e99e789a
Merge pull request #12874 from overleaf/td-history-binary-file
...
History migration: Show alert for binary file preview
GitOrigin-RevId: f30e4946ce9f873661055b8a096c6aba7ab08e2d
2023-05-02 19:45:22 +00:00
Tim Down
2025abf6ca
History migration: Add error handling for all history requests ( #12872 )
...
* Add error handling for all history requests
* Remove comment
GitOrigin-RevId: 528dc98a0fc4ab523f8536274996c4166be45064
2023-05-02 19:44:48 +00:00
M Fahru
84ed369a39
Implement deleted file restore for history react ( #12753 )
...
* Add strikethrough to deleted file tree item in history file tree
* Add "restore file" button on toolbar if the selected file have a `removed` operation.
* Implement "restore file" functionality on removed file:
- Refactor the `Selection` object in history context value since we need the `deletedAtV` data which currently is not passed through the state.
- Refactor and clean up file tree type system to support passing through the whole `FileDiff` object for getting the `deletedAtV` data which only appear on `removed` operation
- Implement `postJSON` with file restoration API and pass it on restore file onClick handler at toolbar
* Implement loading behaviour while restoring file is inflight:
- Add `loadingRestoreFile` to `LoadingState`
- Change restore file button to `Restoring...` when in loading state.
* Refactor:
- Rename `DiffOperation` to `FileOperation`
- Extract `isFileRemoved` and `isFileRenamed` to its own file
- Extract `Toolbar` components into small files
GitOrigin-RevId: 2e32ebd2165f73fc6533ff282a9c084162efd682
2023-04-28 08:04:59 +00:00
Tim Down
b3fc8bcf07
Add infinite scrolling to history versions list ( #12752 )
...
* Add infinite scrolling to change list, add spinner while doing initial updates load, refactor updates state
* Update type in tests
* Update types
* Using LoadingSpinner component
* Remove redundant imports
GitOrigin-RevId: 98c7eae8edbc4d10d7107d825045edfc4159494f
2023-04-25 08:06:22 +00:00
Tim Down
d7ca8d241a
Merge pull request #12721 from overleaf/td-history-improve-diff-highlight
...
Add markers for addition and deletion on empty lines in history diff
GitOrigin-RevId: 62e329da8bc055ee922854b837fe9465d724402e
2023-04-25 08:06:14 +00:00
M Fahru
8f892bd303
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
Tim Down
f3a7752f5d
Merge pull request #12668 from overleaf/td-history-scroll-to-first-change
...
Scroll to first change in history document diff viewer
GitOrigin-RevId: e135877ca440c5eb2732890e8723d9098444727f
2023-04-19 08:03:28 +00:00
Tim Down
f7e3ccbd02
Merge pull request #12644 from overleaf/td-history-compare
...
Initial implementation of comparing history versions
GitOrigin-RevId: 890e270d6e41856a79689ab41ccfbde25c4703ba
2023-04-19 08:03:25 +00:00
Tim Down
ad243690a9
Implement history diff viewer buttons ( #12439 )
...
GitOrigin-RevId: 0ed8eb8568783b4938188a86c4ee75c767e6d713
2023-04-17 08:05:41 +00:00
Eric Mc Sween
326fc860be
Merge pull request #12481 from overleaf/td-history-remove-source-editor-imports
...
Remove accidental imports from source-editor module in history
GitOrigin-RevId: 808597e113c3b1e74cacc712313af0e20b0e1786
2023-04-04 12:22:25 +00:00
ilkin-overleaf
c999b5c8cb
Merge pull request #12434 from overleaf/ii-history-react-feature-flag
...
[web] Fix history view feature flag
GitOrigin-RevId: af2e76074ed43ec1ed1b877a6ffd403abab48ec8
2023-04-04 08:03:50 +00:00
Tim Down
b612ad09f5
Connect up document diff viewer to history state
...
GitOrigin-RevId: 610a254ea77c194969033d0791ecf1129e02c4bf
2023-03-31 08:03:47 +00:00